/* Dopbot brand layer (Oct 2026 makeover, keep/design/20261027-homepage/). Loaded on every page right after /styles.css: it
   re-skins the shared design system (the classes every template already uses) with the new palette, type and header/footer,
   without changing any markup. Remove the <link> in src/lib/layout.ts and every page returns to /styles.css alone.
   The home page adds /home.css on top for its own sections. Fonts are self-hosted (SIL OFL, /fonts/LICENSES.txt). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2-variations"), url(/fonts/bricolage-grotesque-latin.woff2) format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url(/fonts/instrument-serif-latin-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(/fonts/geist-mono-latin-wght.woff2) format("woff2-variations"), url(/fonts/geist-mono-latin-wght.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (the names /styles.css components already read, plus the brand's own) ---------- */

:root {
  --paper: #f4f1ea;
  --paper-2: #eae5d9;
  --card: #fbfaf6;
  --ink: #15140f;
  --ink-2: #4a473f;
  --muted: #6c685e;
  --line: rgb(21 20 15 / .12);
  --line-2: rgb(21 20 15 / .22);
  --marker: #e4f53a;
  --marker-hover: #eefa6a;
  --on-marker: #15140f;
  --wash: rgb(228 245 58 / .42);
  --band: #15140f;
  --band-2: #1f1e18;
  --band-ink: #f1ede3;
  --band-muted: #bdb8ab;
  --band-line: rgb(241 237 227 / .14);
  --bar-track: rgb(21 20 15 / .09);

  --accent: var(--ink);
  --accent-ink: var(--paper);
  --accent-soft: var(--wash);
  --accent-text: var(--ink);
  --up: #2c7a4b;
  --down: #a3401a;
  --down-soft: #f6e3d8;
  --warn: #85590a;
  --warn-soft: #f5ead0;
  --violet: var(--ink-2);
  --violet-soft: var(--paper-2);
  --focus: var(--ink);
  --shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 18px 40px -30px rgb(21 20 15 / .35), 0 1px 3px rgb(21 20 15 / .05);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: var(--font-display);
  --mono: var(--font-mono);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.22, 1, .36, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%, 1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%, 1.004 59.2%, 1.001 69.3%, 1);
  --spring-smooth: linear(0, .004, .016 2.3%, .063 4.7%, .141 7.2%, .25 9.9%, .601 16.5%, .815 21%, .929 25.2%, .987 29%, 1.025 33.5%, 1.042 38%, 1.04 43.5%, 1.027 50%, 1.013 57.5%, 1.005 67%, 1.001 79%, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11110e;
    --paper-2: #181813;
    --card: #1d1c17;
    --ink: #f1ede3;
    --ink-2: #c9c4b8;
    --muted: #918c80;
    --line: rgb(241 237 227 / .12);
    --line-2: rgb(241 237 227 / .2);
    --wash: rgb(228 245 58 / .14);
    --band: #0b0b09;
    --band-2: #181813;
    --bar-track: rgb(241 237 227 / .1);
    --accent-ink: #11110e;
    --up: #6fcf97;
    --down: #ff9468;
    --down-soft: #3a1d12;
    --warn: #f0c060;
    --warn-soft: #302610;
    --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 18px 40px -26px rgb(0 0 0 / .8);
  }
}

/* ---------- base ---------- */

body {
  font-family: var(--font-display);
  background: var(--paper) url(/img/grain.svg);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--marker); color: var(--on-marker); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
a { color: var(--ink); text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; transition: text-decoration-color .25s var(--ease-snap); }
a:hover { text-decoration-color: currentColor; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; font-size: 1.06em; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); font-weight: 760; font-stretch: 82%; line-height: .95; letter-spacing: -0.042em; word-spacing: .04em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.7rem); font-weight: 720; font-stretch: 88%; line-height: 1.02; letter-spacing: -0.032em; }
h3 { font-size: 1.16rem; font-weight: 660; letter-spacing: -0.016em; line-height: 1.2; }
code, kbd { font-family: var(--font-mono); background: var(--paper-2); }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, .98rem + .35vw, 1.24rem); max-width: 46rem; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1rem;
  font: 500 .72rem/1.3 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1.5px var(--ink); }
.label { font-family: var(--font-mono); }

/* ---------- layout ---------- */

@media (min-width: 720px) { .container { padding: 0 clamp(28px, 4vw, 48px); } }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-2) url(/img/grain.svg); border-color: var(--line); }
.section-head { margin-bottom: 2rem; }
.hero { padding: clamp(44px, 7vw, 96px) 0 clamp(28px, 4vw, 56px); }
.hero h1 { max-width: 17ch; }

/* ---------- header: a floating pill on every page (the home page fixes it over its hero in /home.css) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; padding: 14px 0 0;
  background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
}
.site-header .container {
  pointer-events: auto; width: calc(100% - 2 * clamp(16px, 4vw, 48px)); max-width: 1120px; min-height: 62px; margin: 0 auto;
  padding: 0 9px 0 22px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--paper-2) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 12px 30px -22px rgb(21 20 15 / .45);
}
.logo { gap: 9px; color: var(--ink); font: 760 1.32rem/1 var(--font-display); font-stretch: 92%; letter-spacing: -0.04em; text-transform: lowercase; }
.logo svg { width: 25px; height: 25px; color: var(--ink); transition: transform .5s var(--spring); }
.nav { gap: 30px; }
.nav a { position: relative; color: var(--ink-2); font-size: .96rem; font-weight: 540; white-space: nowrap; text-decoration: none; transition: color .3s var(--ease-snap); }
/* The Spanish labels are longer ("Metodología (en inglés)"): the pill needs about 900 px for them, below that it shows the
   logo and the button only, as on phones (the footer lists every page). */
@media (max-width: 919px) { :lang(es) .site-header .nav { display: none; } }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-snap);
}
.site-header .btn-primary { min-height: 44px; padding: 0 20px; font-size: .95rem; }
/* Checkout and private pages show the logo alone: the pill shrinks to it. */
.site-header .container:not(:has(.nav)) { max-width: max-content; padding-right: 22px; }
@media (hover: hover) and (pointer: fine) {
  .logo:hover svg { transform: rotate(-8deg) scale(1.08); }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
@media (max-width: 819px) {
  .site-header { padding-top: 10px; }
  .site-header .container { min-height: 56px; padding: 0 7px 0 16px; }
  .site-header .btn-primary { min-height: 42px; padding: 0 16px; font-size: .9rem; }
}

/* ---------- footer: the dark band and the wordmark ---------- */

.site-footer {
  position: relative; overflow: hidden; margin: 0; padding: clamp(64px, 8vw, 104px) 0 0; border: 0;
  background: var(--band) url(/img/grain.svg); color: var(--band-muted); font-size: .94rem;
}
.site-footer a { color: var(--band-ink); }
.site-footer .logo { color: var(--band-ink); }
.site-footer .logo svg { color: var(--marker); }
.site-footer .footer-title { padding-bottom: 12px; border-bottom: 1px solid var(--band-line); color: var(--band-ink); font: 500 .72rem/1 var(--font-mono); letter-spacing: .12em; }
.site-footer .footer-links li { margin: .55rem 0; }
.site-footer .legal-line { font: 500 .7rem/1.6 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.site-footer :focus-visible { outline-color: var(--marker); }
/* The wordmark bleeds off the bottom edge on purpose. The cut sits at about 40% of the x-height (translateY(35%) of the line
   box, the same share at every width): deep enough to open every counter, so it reads as deliberate (at 18% it only flattened
   the bowls, which looked like a bug). On phones it grows to poster scale (37vw) so the crop reads the same as on desktop.
   Fable's call, owner's yes, Oct 27, 2026. */
.site-footer::after {
  content: "dopbot"; content: "dopbot" / "";
  display: block; margin-top: clamp(32px, 3.5vw, 48px); text-align: center; pointer-events: none; user-select: none;
  font: 800 clamp(5rem, 37vw, 21.5rem)/.74 var(--font-display); font-stretch: 84%; letter-spacing: -0.035em;
  color: var(--band-ink); transform: translateY(35%);
}

/* ---------- buttons ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden; min-height: 46px; padding: 0 20px;
  font: 600 .97rem/1 var(--font-display); letter-spacing: -0.005em; border-width: 1px;
  /* overflow: hidden (for the sweep) would let a flex row squeeze the button and clip its one-line label: never shrink. */
  flex-shrink: 0;
  transition: transform .45s var(--ease-snap), background-color .3s var(--ease-snap), border-color .3s var(--ease-snap), color .3s var(--ease-snap), box-shadow .45s var(--ease-snap);
}
.btn-small { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn:active { transform: scale(.97); transition-duration: .16s; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -16px rgb(21 20 15 / .7); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--marker);
  transform: translateY(102%); transition: transform .5s var(--ease-snap);
}
.btn-secondary { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[disabled]::before, .btn[aria-disabled="true"]::before { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink); color: var(--on-marker); transform: translateY(-2px); }
  .btn-primary:hover::before { transform: translateY(0); }
  .btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
}

/* ---------- badges, chips, deltas ---------- */

.badge {
  gap: 6px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font: 500 .66rem/1.25 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.badge-accent { background: var(--marker); color: var(--on-marker); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-down { background: var(--down-soft); color: var(--down); border-color: transparent; }
.engine { padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--ink-2); font: 500 .66rem/1.2 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.delta { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; }
.delta.new { color: var(--ink); }

/* ---------- cards, stats, the score dial ---------- */

.card, .card-flat { border-radius: var(--radius); border-color: var(--line); padding: 24px; }
.card { box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card-link { transition: transform .45s var(--ease-snap), border-color .3s var(--ease-snap), box-shadow .45s var(--ease-snap); }
@media (hover: hover) and (pointer: fine) {
  .card-link:not(.cat-card):hover { border-color: var(--ink); transform: translateY(-3px); }
}
.stat .value { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 760; font-stretch: 80%; letter-spacing: -0.05em; line-height: .95; }
.stat .label { font: 500 .7rem/1.35 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.score { background: conic-gradient(var(--ink) calc(var(--w, 0%)), var(--bar-track) 0); }
.score span { font-weight: 780; font-stretch: 80%; letter-spacing: -0.05em; }
.score small { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }

/* ---------- bars and progress ---------- */

.bar { height: 8px; background: var(--bar-track); }
.bar > span { background: var(--ink); }
.bar.violet > span { background: var(--ink-2); }
.bar.muted > span { background: var(--line-2); }
.progress { height: 8px; background: var(--bar-track); }
.progress > span { background: var(--ink); transition: width .5s var(--ease-out); }

/* ---------- tables ---------- */

/* position: relative makes the scroller the containing block of the screen-reader-only labels in its cells; without it they
   are placed against the page and widen it on a phone (a wide table then pushed /index/<slug> to 430 px on a 375 px screen). */
.table-wrap { position: relative; border-color: var(--line); border-radius: var(--radius-sm); background: var(--card); }
table { font-size: .95rem; }
th, td { padding: 13px 16px; border-bottom-color: var(--line); }
th { background: transparent; border-bottom: 1.5px solid var(--ink); color: var(--ink-2); font: 500 .66rem/1.3 var(--font-mono); letter-spacing: .1em; }
td.num, th.num { font-variant-numeric: tabular-nums; }
td.num { font-family: var(--font-mono); font-size: .86rem; }
td.rank { font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
td.brand { font-weight: 640; }
tbody tr { transition: background-color .2s var(--ease-snap); }
@media (hover: hover) and (pointer: fine) { tbody tr:hover td { background: color-mix(in srgb, var(--marker) 14%, transparent); } }
tr.highlight td { background: var(--wash); }

/* ---------- the index as a ledger (the home page uses the same rows, /home.css) ---------- */

/* Only a list of category cards becomes a ledger; other .cat-grid lists (related categories, report months) stay a card grid. */
.cat-grid:has(> .cat-card) { display: block; border-top: 1.5px solid var(--ink); }
.cat-grid .cat-card {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) 5.4ch minmax(72px, .75fr) minmax(0, .95fr) 20px;
  grid-template-areas: "name lead pct bar count arrow" "badge lead pct bar count arrow";
  align-items: center; column-gap: clamp(14px, 2vw, 30px); row-gap: 8px;
  margin: 0; padding: 22px 8px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); text-decoration: none; transform: none;
}
.cat-grid .cat-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -14px; border-radius: 12px; background: var(--wash);
  opacity: 0; transform: scaleY(.6); transition: opacity .35s var(--ease-snap), transform .5s var(--ease-snap);
}
.cat-grid .cat-card::after {
  content: ""; grid-area: arrow; justify-self: end; width: 9px; height: 9px;
  border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg);
  transition: transform .45s var(--ease-snap);
}
.cat-grid .cat-card > div:first-child { grid-area: name; min-width: 0; }
.cat-grid .cat-card h3 { margin: 0; font-size: clamp(1.1rem, 1rem + .45vw, 1.42rem); font-weight: 680; letter-spacing: -0.022em; line-height: 1.15; }
.cat-grid .cat-card h3 + p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.cat-grid .leader { display: contents; }
.cat-grid .leader > span:first-child { grid-area: lead; color: var(--ink-2); font-size: .96rem; line-height: 1.35; min-width: 0; }
.cat-grid .leader strong { color: var(--ink); font-weight: 660; }
.cat-grid .leader .delta {
  grid-area: pct; justify-self: end; color: var(--ink);
  font: 720 clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem)/1 var(--font-display); font-stretch: 82%; letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
}
.cat-grid .cat-card > .bar { grid-area: bar; min-width: 0; }
.cat-grid .cat-card > .small.muted { grid-area: count; font: 500 .74rem/1.45 var(--font-mono); letter-spacing: .02em; color: var(--ink-2); }
.cat-grid .cat-card > .small:not(.muted) { grid-area: badge; }
.cat-grid .cat-card > p.small.muted:only-of-type { grid-area: lead; }
@media (hover: hover) and (pointer: fine) {
  .cat-grid .cat-card:hover { transform: none; }
  .cat-grid .cat-card:hover::before { opacity: 1; transform: none; }
  .cat-grid .cat-card:hover::after { transform: translateX(5px) rotate(45deg); }
}
.cat-grid .cat-card:focus-visible { outline-offset: -2px; }
.cat-grid .cat-card:focus-visible::before { opacity: 1; transform: none; }
@media (max-width: 879px) {
  .cat-grid .cat-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name pct" "lead pct" "bar bar" "count arrow" "badge badge";
    row-gap: 10px; padding: 20px 2px;
  }
  .cat-grid .leader .delta { align-self: start; }
  .cat-grid .cat-card::before { inset: 0 -8px; }
}
.group-title {
  display: flex; align-items: center; gap: 12px; margin: 3rem 0 0; padding-bottom: 12px;
  font: 500 .74rem/1.2 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- answers, questions, sources, fixes ---------- */

.answer { border-left: 3px solid var(--ink); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.prompt-q { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -0.005em; color: var(--ink); }
.source-list .domain { font-family: var(--font-mono); }
.fixes li { border-color: var(--line); border-radius: var(--radius-sm); background: var(--card); }

/* ---------- callouts and empty states ---------- */

.callout { border-color: var(--line); border-left: 3px solid var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--card); }
.callout-warn { border-left-color: var(--warn); }
.callout-violet { border-left-color: var(--marker); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink-2); }

/* ---------- forms ---------- */

.field label, .field .label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .hint { color: var(--muted); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
  min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card);
  font-family: var(--font-display); font-size: 1rem;
  transition: border-color .3s var(--ease-snap), box-shadow .3s var(--ease-snap);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 60%, transparent); }
.choice input { accent-color: var(--ink); }
.form-error { color: var(--down); }

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

.tier { border-color: var(--line-2); border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow); transition: transform .6s var(--spring-smooth), box-shadow .5s var(--ease-snap); }
.tier h2, .tier h3 { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-2); }
.price .amount { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.2rem); font-weight: 780; font-stretch: 80%; letter-spacing: -0.055em; }
.price .unit { font: italic 400 1.3rem var(--font-serif); color: var(--ink-2); }
.tier li::before { border-color: var(--ink); }
.tier-featured { border: 1px solid var(--band); background: var(--band); color: var(--band-ink); }
.tier-featured::after { content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px; border-top-right-radius: 20px; background: var(--marker); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.tier-featured h2, .tier-featured h3, .tier-featured .unit, .tier-featured li, .tier-featured .muted, .tier-featured p { color: var(--band-muted); }
.tier-featured .amount { color: var(--band-ink); }
.tier-featured li::before { border-color: var(--marker); }
.tier-featured .badge { border-color: var(--band-line); color: var(--band-ink); }
.tier-featured .btn-primary { background: var(--marker); color: var(--on-marker); }
.tier-featured .btn-primary::before { background: var(--band-ink); }
.tier-featured .btn-ghost { color: var(--band-ink); border-color: var(--band-ink); }
.tier-featured a:not(.btn) { color: var(--band-ink); }
.tier-featured :focus-visible { outline-color: var(--marker); }
@media (hover: hover) and (pointer: fine) {
  .tier:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgb(21 20 15 / .5); }
  .tier-featured .btn-primary:hover { background: var(--marker); color: var(--on-marker); }
}

/* ---------- FAQ, prose, key-value lists ---------- */

.faq { gap: 0; border-top: 1.5px solid var(--ink); }
.faq details { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 0; }
.faq summary { padding: 22px 34px 22px 0; font-weight: 640; font-size: clamp(1.04rem, 1rem + .3vw, 1.22rem); letter-spacing: -0.015em; }
.faq summary::after { top: 16px; font-weight: 300; color: var(--ink); }
.faq details > div { padding: 0 34px 24px 0; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.7rem; }
.kv dt { font-family: var(--font-mono); font-size: .8rem; }

/* ---------- motion: the page head arrives, nothing else moves on its own ---------- */

@keyframes brand-rise { from { opacity: 0; transform: translateY(18px); } }
/* Zero specificity (:where), so a page's own entry (the home page's staggered hero) always wins. */
:where(main > section:first-child, main > .hero) :where(h1, .lead) { animation: brand-rise .7s var(--spring) backwards; }
:where(main > section:first-child, main > .hero) :where(.lead) { animation-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header { position: static; }
  .site-footer::after { content: none; }
}
