/* MakeCharts.co — shared site styles
   Fonts: Newsreader (display), Inter (text/UI), IBM Plex Mono (labels) */

:root {
  --paper: #FAF9F6;
  --paper-2: #F2F0EA;
  --card: #FFFFFF;
  --ink: #16161A;
  --ink-2: #3A3A42;
  --muted: #6B6B74;
  --rule: #E3E0D8;
  --accent: #2F55E4;
  --accent-ink: #1E3DB8;
  --accent-soft: #E6EBFD;
  --warm: #F2A93B;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow--accent { color: var(--accent); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 17px; letter-spacing: -.01em;
}
.brand img { width: 28px; height: 28px; }
.brand span { font-family: var(--sans); }
.brand b { font-weight: 600; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-nav .btn { color: var(--paper); }
.site-nav .btn:hover { color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; margin-left: -8px;
  background: var(--ink); content: ""; transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { transform: translateY(-5px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--ink); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--rule { border-top: 1px solid var(--rule); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow, .section--ink .muted { color: #A5A5AE; }
.section--ink .lede { color: #D5D4CF; }
.section--alt { background: var(--paper-2); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
  flex-wrap: wrap;
}
.section-head .lede { margin-top: 16px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

.chart-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 22px 16px;
  box-shadow: 0 1px 0 rgba(22,22,26,.03), 0 24px 48px -28px rgba(22,22,26,.22);
}
.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-card__title { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.chart-card__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chart-card__foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
#hero-chart { width: 100%; aspect-ratio: 5 / 4; }
#hero-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Tool cards ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #CFCBC0;
  box-shadow: 0 20px 40px -24px rgba(22,22,26,.3);
}
.tool-card__media {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tool-card__media img,
.tool-card__media video { width: 100%; height: 100%; object-fit: cover; }
.tool-card__media svg { width: 70%; height: auto; }
.tool-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-card__title { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.tool-card__desc { font-size: 15px; color: var(--muted); margin: 0; }
.tool-card__cta { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 500; }
.tool-card__cta::after { content: " →"; }
.tool-card:hover .tool-card__cta { color: var(--accent); }

.tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: var(--paper);
}
.tag--accent { color: var(--accent); border-color: #C7D2FB; background: var(--accent-soft); }

.tool-card--soon { background: transparent; border-style: dashed; }
.tool-card--soon .tool-card__media { background: transparent; }
.tool-card--soon .tool-card__media span {
  font-family: var(--serif); font-style: italic; font-size: 30px; color: #B9B6AC;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid currentColor;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps li {
  padding: 22px 24px 8px 0;
  counter-increment: step;
}
.steps li + li { padding-left: 24px; border-left: 1px solid rgba(250,249,246,.18); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--warm);
  margin-bottom: 28px;
}
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; }
.steps p { margin: 0; font-size: 15px; color: #B9B8B2; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 28px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(250,249,246,.18); }
  .steps li::before { margin-bottom: 12px; }
}

/* ---------- Offer / pricing ---------- */

.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .offer { grid-template-columns: 1fr; } }
.offer__card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 40px);
  display: flex; flex-direction: column;
}
.offer__card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.offer__card--dark .muted, .offer__card--dark .offer__list li { color: #C9C8C2; }
.offer__price { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; margin: 20px 0 6px; }
.offer__price small { font-family: var(--sans); font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.offer__list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.offer__list li { position: relative; padding-left: 26px; font-size: 16px; color: var(--ink-2); }
.offer__list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.offer__card--dark .offer__list li::before { border-color: var(--warm); }
.offer__card .btn { margin-top: auto; align-self: flex-start; }
.offer__card--dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.offer__card--dark .btn:hover { background: var(--warm); border-color: var(--warm); }

/* ---------- Blog list ---------- */

.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  text-decoration: none;
  color: var(--ink);
}
.post-row__date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.post-row__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; margin: 0; transition: color .2s; }
.post-row__desc { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.post-row__arrow { font-size: 20px; color: var(--muted); transition: transform .2s, color .2s; }
.post-row:hover .post-row__title { color: var(--accent); }
.post-row:hover .post-row__arrow { color: var(--accent); transform: translateX(4px); }
@media (max-width: 640px) {
  .post-row { grid-template-columns: 1fr; gap: 4px; }
  .post-row__arrow { display: none; }
}

/* ---------- Forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__status { font-size: 15px; margin: 0; min-height: 1.6em; }
.form__status[data-state="ok"] { color: #1B7A46; }
.form__status[data-state="error"] { color: #B42318; }

.contact-aside { display: grid; gap: 20px; margin-top: 32px; }
.contact-aside p { margin: 0; }
.contact-aside a { color: var(--ink); }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-head .display { font-size: clamp(40px, 6vw, 72px); }

/* ---------- Article / prose ---------- */


.prose { font-size: 18.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { display: none; } /* titles live in .post-head */
.prose h2, .prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: 1.2;
  margin: 1.9em 0 .5em;
}
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 25px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img { border-radius: 8px; margin-block: 1.6em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 23px; line-height: 1.45; color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-block: 1.6em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 2px 5px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose .fa-solid, .prose .fa { color: var(--accent); }


/* ---------- Chart studio ---------- */

.studio-head { padding-block: clamp(28px, 4vw, 44px) 24px; }
.studio-head .eyebrow a { color: inherit; text-decoration: none; }
.studio-head .eyebrow a:hover { color: var(--accent); }
.studio-head .lede { margin-top: 12px; }

.studio {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.studio__panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.studio__main { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }

.panel-sec { border-bottom: 1px solid var(--rule); }
.panel-sec:last-child { border-bottom: 0; }
.panel-sec summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.panel-sec summary::-webkit-details-marker { display: none; }
.panel-sec summary::after { content: "+"; font-size: 16px; color: var(--muted); }
.panel-sec[open] summary::after { content: "–"; }
.panel-sec__body { padding: 0 18px 18px; display: grid; gap: 12px; }

.studio .field { gap: 5px; }
.studio .field label { font-size: 13.5px; display: flex; justify-content: space-between; }
.studio .field output { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.studio .field input[type="text"], .studio .field select {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; padding: 8px 10px;
}
.studio .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.studio .field input[type="color"] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); cursor: pointer; }
.studio .field input[type="range"] { width: 100%; accent-color: var(--accent); }
.studio input:focus-visible, .studio select:focus-visible, .studio textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.studio textarea {
  width: 100%; min-height: 210px; resize: vertical;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px;
  white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 12;
}
.studio .hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.studio .row { display: flex; gap: 8px; flex-wrap: wrap; }
.studio .row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.studio .check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.studio .check input { width: 16px; height: 16px; accent-color: var(--accent); }
.studio label.btn { cursor: pointer; }

.swatches { display: flex; gap: 8px; }
.swatch {
  width: 44px; height: 32px; border-radius: 7px; border: 1px solid var(--rule); cursor: pointer;
  font-family: var(--serif); font-size: 15px; display: grid; place-items: center;
}
.swatch:hover { border-color: var(--ink); }

.stage-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.stage-bar__spacer { flex: 1; }
.stage {
  --ratio: 16 / 9;
  aspect-ratio: var(--ratio);
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 1px 0 rgba(22,22,26,.03), 0 24px 48px -32px rgba(22,22,26,.3);
}
.stage[data-portrait="true"] { width: auto; height: min(72vh, 900px); margin-inline: auto; }
.stage svg { display: block; width: 100%; height: 100%; }
.stage:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; background: #000; display: grid; place-items: center; }
.stage:fullscreen svg { width: 100vw; height: 100vh; }
.studio__error { margin: 12px 0 0; color: #B42318; font-size: 14.5px; }
.studio__error:empty, .studio__warning:empty { display: none; }
.studio__warning { margin: 8px 0 0; color: #92590A; font-size: 14px; }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio__main { position: static; order: -1; }
  .studio__panel { position: static; max-height: none; }
  .stage[data-portrait="true"] { height: 70vh; }
}

/* Gallery */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip-nav a {
  font-size: 14px; text-decoration: none; color: var(--ink-2);
  padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
}
.chip-nav a:hover { border-color: var(--ink); color: var(--ink); }
.gallery-sec { padding-block: 24px 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.gallery-sec__title { margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.gallery-sec__title span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tool-card__media svg.thumb { width: 100%; height: 100%; padding: 6%; }
.thumb .tick text { display: none; }
.tool-card__media { background: #fff; }
.tool-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-grid--compact .tool-card__desc { font-size: 14px; }
@media (max-width: 900px) { .tool-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tool-grid--compact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 56px 40px;
  background: var(--paper);
  font-size: 15px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer h4 {
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__blurb { color: var(--muted); max-width: 26em; margin: 14px 0 0; }
.site-footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 13.5px; color: var(--muted);
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Cookie notice ---------- */

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 14px 14px 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px;
  box-shadow: 0 20px 48px -20px rgba(0,0,0,.45);
  font-size: 14px; line-height: 1.45;
}
.cookie p { margin: 0; flex: 1; }
.cookie a { color: var(--paper); }
.cookie .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); height: 38px; }
.cookie .btn:hover { background: var(--warm); border-color: var(--warm); }
.cookie[hidden] { display: none; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
