/* Strell — strell.app
   Hand-written, no build step. Tokens follow docs/specs/2026-10-16-strell-brand-design.md §5.
   Dark mode is derived from the same palette (the app itself is light only). */

/* ─── Fonts (SIL OFL 1.1, self-hosted, Latin subset; licences in /assets/fonts/) ─── */
@font-face { font-family: "Young Serif"; src: url("../fonts/YoungSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ─── Tokens ─── */
:root {
  color-scheme: light dark;

  /* brand constants (same in both modes) */
  --parchment: #EEF0E6;
  --paper-c: #F7F8F2;
  --revealed: #F4F6EE;
  --fern-mist: #7F8E78;
  --moss: #3F5A3A;
  --moss-deep: #2F4A2B;
  --ink-c: #24331F;
  --sage-wash: #C5D4B1;
  --sage: #9DB08C;
  --river: #8FB3BA;
  --pollen: #D9A441;
  --street: #9AAA8A;

  /* light theme */
  --bg: #EEF0E6;
  --bg-alt: #E5E9DA;
  --surface: #F7F8F2;
  --ink: #24331F;
  --ink-muted: #51634B;
  --heading: #2F4A2B;
  --link: #3F5A3A;
  --link-hover: #24331F;
  --btn-bg: #3F5A3A;
  --btn-ink: #F7F8F2;
  --btn-bg-hover: #2F4A2B;
  --rule: #CBD3BE;
  --rule-strong: #A9B69B;
  --mist: #7F8E78;
  --plate: #F4F6EE;
  --plate-edge: #CBD3BE;
  --shadow: 0 1px 2px rgb(36 51 31 / .06), 0 8px 28px -12px rgb(36 51 31 / .22);
  --contour: rgb(63 90 58 / .17);
  --hex: rgb(63 90 58 / .55);
  --band-bg: #3F5A3A;
  --band-ink: #F7F8F2;
  --band-muted: #D5DEC9;

  --serif: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131911;
    --bg-alt: #182015;
    --surface: #1C2519;
    --ink: #E3E9D8;
    --ink-muted: #AAB89F;
    --heading: #D5E4C3;
    --link: #B9D2A1;
    --link-hover: #E3E9D8;
    --btn-bg: #B9D2A1;
    --btn-ink: #15200F;
    --btn-bg-hover: #CFE2BB;
    --rule: #33402E;
    --rule-strong: #4A5944;
    --mist: #4C5B47;
    --plate: #E9EDE0;
    --plate-edge: #3E4C39;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
    --contour: rgb(185 210 161 / .10);
    --hex: rgb(185 210 161 / .35);
    --band-bg: #22301E;
    --band-ink: #E3E9D8;
    --band-muted: #AAB89F;
  }
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--pollen); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--heading); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
strong { font-weight: 600; }
code { font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font: 600 12.5px/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ─── Header ─── */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--heading); }
.brand img { width: 30px; height: 30px; }
.brand span { font: 400 26px/1 var(--serif); letter-spacing: -.01em; transform: translateY(-1px); }
.site-nav { display: flex; gap: clamp(14px, 3vw, 30px); font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }
@media (max-width: 520px) { .site-nav .nav-optional { display: none; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 14px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn-quiet { color: var(--ink); padding-inline: 6px; }
.btn-quiet:hover { color: var(--link); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* App Store placeholder: replace with Apple's official badge before launch (see README). */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  border-radius: 14px;
  background: #0B0F0A; color: #F7F8F2;
  text-decoration: none;
  border: 1px solid #0B0F0A;
  transition: transform .15s ease;
}
@media (prefers-color-scheme: dark) { .store-badge { border-color: #59684F; } }
.store-badge:hover { color: #fff; transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font: 400 11.5px/1.1 var(--sans); letter-spacing: .04em; opacity: .85; }
.store-badge b { display: block; font: 600 19px/1.15 var(--sans); letter-spacing: -.005em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ─── Hero ─── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(56px, 9vw, 120px); }
.hero::before { /* contour lines, like an atlas sheet */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--contour);
  -webkit-mask: url("../img/contours.svg") center top / max(1400px, 110%) auto no-repeat, linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: url("../img/contours.svg") center top / max(1400px, 110%) auto no-repeat, linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-composite: intersect;
}
.hero::after { /* mist bank drifting in from the right */
  content: ""; position: absolute; z-index: -1;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -10vw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mist) 34%, transparent), transparent 72%);
  filter: blur(10px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(24px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 86px);
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero h1 .grow { color: var(--link); font-style: normal; display: inline-block; white-space: nowrap; }
.hero .lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink); max-width: 33em; margin-bottom: 32px; }
.hero .fine { margin-top: 18px; font-size: 14.5px; color: var(--ink-muted); }

/* the phone */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 360 / 740;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(150deg, #2B3627, #121810 60%);
  box-shadow: 0 2px 0 1px rgb(255 255 255 / .06) inset, 0 40px 80px -30px rgb(36 51 31 / .55), 0 18px 30px -18px rgb(36 51 31 / .5);
  transform: rotate(2.2deg);
}
.phone > svg { width: 100%; height: 100%; border-radius: 42px; }
.phone-note {
  position: absolute; left: -6%; bottom: 12%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.35; max-width: 210px;
  transform: rotate(-2deg);
}
.phone-note b { display: block; font: 400 17px/1.2 var(--serif); color: var(--heading); margin-bottom: 2px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { width: min(78vw, 320px); }
  .phone-note { left: 0; bottom: auto; top: 46%; max-width: 180px; }
}

/* reveal animation (the route grows in, then the plant appears) */
.route-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s cubic-bezier(.45,.05,.3,1) .5s forwards; }
.puck-pop { opacity: 0; transform-box: fill-box; transform-origin: 50% 70%; animation: pop .7s cubic-bezier(.2,.9,.3,1.3) 3.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .route-draw { animation: none; stroke-dashoffset: 0; }
  .puck-pop { animation: none; opacity: 1; }
}

/* ─── Sections ─── */
section { position: relative; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(34px, 4.8vw, 56px); letter-spacing: -.015em; margin-bottom: 18px; }
.section-head p:not(.eyebrow) { font-size: 19px; color: var(--ink-muted); max-width: 36em; margin: 0; }

/* how it works: plates */
.plates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.plate {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 14px 14px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.plate.wide { grid-column: span 3; }
.plate.wide .plate-art { aspect-ratio: auto; min-height: 250px; padding: 44px 0 26px; }
.plate-art {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 22px;
}
.plate-art img { width: 100%; height: 100%; object-fit: cover; }
.plate-art .plate-no {
  position: absolute; top: 10px; left: 12px;
  font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: #51634B;
}
.plate-body { padding-inline: 10px; }
.plate h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.plate p { color: var(--ink); margin-bottom: .75em; }
.plate p:last-child { margin-bottom: 0; }
.plate .aside { color: var(--ink-muted); font-size: 15.5px; }

/* levels */
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 86%; }
.levels li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  background: #F7F8F2; border: 1px solid #CBD3BE; border-radius: 12px; padding: 9px 12px;
  color: #24331F; font-size: 14.5px; line-height: 1.25;
}
.levels li img { width: 34px; height: 34px; }
.levels li b { font: 400 17px/1.1 var(--serif); color: #2F4A2B; display: block; }
.levels li span { color: #51634B; font-size: 13px; }
.levels li .ring { font-weight: 600; color: #3F5A3A; font-variant-numeric: tabular-nums; font-size: 13.5px; white-space: nowrap; }
.levels li.on { border-color: #3F5A3A; box-shadow: 0 0 0 1px #3F5A3A inset; }

/* plant growth strip */
.growth { width: 90%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 4px; position: relative; padding-bottom: 6px; }
.growth::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 33px; height: 2px; background: #CBD3BE; border-radius: 2px; }
.growth figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.growth img { width: 100%; max-width: 104px; height: auto; position: relative; z-index: 1; }
.growth figcaption { font-size: 12.5px; color: #51634B; text-align: center; line-height: 1.2; }
.growth figcaption b { display: block; font-weight: 600; color: #24331F; font-size: 13.5px; }

@media (max-width: 960px) {
  .plate, .plate.wide { grid-column: span 3; }
.plate.wide .plate-art { aspect-ratio: auto; min-height: 250px; padding: 44px 0 26px; }
  .plate:first-child { grid-column: span 6; }
}
@media (max-width: 640px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate, .plate.wide, .plate:first-child { grid-column: auto; }
}

/* motto band */
.motto { background: var(--band-bg); color: var(--band-ink); overflow: hidden; }
.motto .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.motto blockquote { margin: 0; font: 400 clamp(32px, 4.4vw, 54px)/1.1 var(--serif); letter-spacing: -.015em; color: var(--band-ink); text-wrap: balance; }
.motto blockquote em { font-style: normal; color: var(--pollen); }
.motto p { color: var(--band-muted); margin: 0; font-size: 18px; }
.modes { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modes span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--band-ink) 30%, transparent); border-radius: 999px; padding: 7px 14px 7px 11px; font-size: 15px; color: var(--band-ink); }
.modes svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .motto .wrap { grid-template-columns: 1fr; } }

/* kit: extras */
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.kit > div { padding: 26px 22px 6px 0; border-bottom: 1px solid var(--rule); }
.kit > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.kit svg { width: 28px; height: 28px; color: var(--link); margin-bottom: 14px; }
.kit h3 { font-size: 21px; margin-bottom: 8px; }
.kit p { color: var(--ink-muted); font-size: 16px; }
@media (max-width: 900px) {
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .kit { grid-template-columns: 1fr; }
  .kit > div, .kit > div + div { padding-left: 0; border-left: 0; }
}

/* privacy ledger */
.privacy { background: var(--bg-alt); }
.privacy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--hex);
  -webkit-mask: url("../img/hexes.svg") right -60px top -60px / min(560px, 90vw) auto no-repeat;
  mask: url("../img/hexes.svg") right -60px top -60px / min(560px, 90vw) auto no-repeat;
}
.ledger { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); position: relative; }
.ledger-col { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.ledger-col h3 { font-size: 26px; margin-bottom: 6px; }
.ledger-col > p { color: var(--ink-muted); margin-bottom: 18px; font-size: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px;
  background: var(--link);
  -webkit-mask: url("../img/tick.svg") center / 20px 20px no-repeat; mask: url("../img/tick.svg") center / 20px 20px no-repeat;
}
.flows { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flows li { counter-increment: flow; display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.flows li::before {
  content: counter(flow);
  grid-row: span 2;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  display: grid; place-items: center;
  font: 600 13px/1 var(--sans); color: var(--ink-muted);
  margin-top: 1px;
}
.flows b { font-weight: 600; color: var(--ink); }
.flows span { color: var(--ink-muted); font-size: 15.5px; line-height: 1.5; }
.nots { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; position: relative; }
.nots li { border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); }
.policy-link { margin-top: 26px; position: relative; font-size: 17px; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }

/* closing CTA */
.closing { text-align: center; padding-block: clamp(72px, 11vw, 140px); position: relative; overflow: hidden; isolation: isolate; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--sage-wash) 55%, transparent), transparent 70%);
}
@media (prefers-color-scheme: dark) { .closing::before { background: radial-gradient(60% 70% at 50% 100%, rgb(127 142 120 / .22), transparent 70%); } }
.closing img.mark { width: 64px; height: 64px; margin: 0 auto 22px; }
.closing h2 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.02em; margin-bottom: 16px; }
.closing p { font-size: 19px; color: var(--ink-muted); max-width: 30em; margin: 0 auto 32px; }
.closing .cta-row { justify-content: center; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--rule); padding-block: 44px 56px; font-size: 15px; color: var(--ink-muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer .brand span { font-size: 24px; }
.site-footer .tagline { margin: 10px 0 0; }
.site-footer h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ─── Inner pages (privacy, data, support, 404) ─── */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 7vw, 84px) clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--contour);
  -webkit-mask: url("../img/contours.svg") center top / max(1400px, 110%) auto no-repeat, linear-gradient(to bottom, #000, transparent);
  -webkit-mask-composite: source-in;
  mask: url("../img/contours.svg") center top / max(1400px, 110%) auto no-repeat, linear-gradient(to bottom, #000, transparent);
  mask-composite: intersect;
}
.page-head h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.02em; margin-bottom: 14px; }
.page-head .lede { font-size: 19px; color: var(--ink-muted); max-width: 36em; margin: 0; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 15px; color: var(--ink-muted); }
.page-head .meta b { color: var(--ink); font-weight: 600; }

.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.toc h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--ink-muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--link); border-left-color: var(--link); }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 18px 20px 12px; }
}

.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.7; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 2.2em 0 .6em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--link); }
.prose a { overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose .callout { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--link); border-radius: 12px; padding: 18px 22px; margin: 0 0 1.6em; }
.prose .callout p:last-child { margin: 0; }
.prose blockquote, .credit {
  margin: 0 0 1.4em; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  font-size: 15.5px; line-height: 1.6; color: var(--ink);
}
.credit p { margin: 0 0 .6em; }
.credit p:last-child { margin: 0; }

/* support FAQ */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 2.4em; }
.contact-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 22px 24px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 22px !important; margin: 0 0 6px !important; }
.contact-card p { margin: 0 0 12px; color: var(--ink-muted); font-size: 16px; }
.contact-card a { font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0;
  font: 400 21px/1.3 var(--serif); color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  background: linear-gradient(var(--ink-muted), var(--ink-muted)) center / 10px 1.5px no-repeat,
              linear-gradient(var(--ink-muted), var(--ink-muted)) center / 1.5px 10px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--ink-muted), var(--ink-muted)) center / 10px 1.5px no-repeat; }
.faq details > div { padding: 0 0 18px; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; position: relative; isolation: isolate; overflow: hidden; }
.lost::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mist) 45%, transparent), transparent 75%);
  filter: blur(6px);
}
.lost .code { font: 400 clamp(84px, 16vw, 168px)/1 var(--serif); color: var(--heading); opacity: .9; letter-spacing: -.03em; }
.lost h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 14px; }
.lost p { color: var(--ink-muted); font-size: 18px; max-width: 28em; margin: 0 auto 28px; }
.lost .cta-row { justify-content: center; }
