/* ─────────────────────────────────────────────────────────────
   AERA — the marketing + legal site, built as the LCD viewfinder
   of a phone from 2007. One committed world: near-black ground,
   pure white ink, one amber indicator. Multi-page, but the pages
   flip like screens in the camera's own menu.
   ───────────────────────────────────────────────────────────── */

@font-face {
  /* placeholder marker so a silent fallback is obvious in dev tools */
  font-family: "AERA_missing"; src: local("Arial");
}

:root {
  color-scheme: dark;
  --ground:      #0B0B0C;
  --ground-2:    #0e0e10;
  --panel:       #151517;
  --ink:         #FFFFFF;
  --ink-dim:     rgba(255,255,255,.46);
  --ink-faint:   rgba(255,255,255,.30);
  --ink-ghost:   rgba(255,255,255,.16);
  --hair:        rgba(255,255,255,.12);
  --hair-soft:   rgba(255,255,255,.06);
  --amber:       #D69449;
  --amber-dim:   rgba(214,148,73,.62);

  /* The app's own pairing, on the web. SF Mono has no web release, so
     IBM Plex Mono stands in for the Latin; Almarai is the very face the
     app ships for Arabic (SIL OFL).

     font-family resolves per character: the Latin face leads and Almarai
     sits right behind it, so Latin always renders in IBM Plex — the same
     on an English page and inside an Arabic sentence — and only the
     Arabic letters fall through to Almarai. One list, both directions. */
  --mono: "IBM Plex Mono", "Almarai", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 66ch;
  --pad: clamp(20px, 5vw, 64px);
  --bar-h: 34px;
  --sk-h: 40px;
  --rail-w: 232px;

  /* S60 chrome — the pale blue of a 2007 camera app, a soft even wash
     (no hard gloss seam) and always ABOVE the film-grain layer so the
     chrome stays crisp while only the viewfinder gets the texture */
  --s60: linear-gradient(180deg, #e8eef2 0%, #d0dde5 55%, #c6d4dd 100%);
  --s60-ink: #16232e;
  --s60-line: rgba(22,35,46,.26);
}

/* ── Arabic ─────────────────────────────────────────────────────
   The three rules the app enforces in `Typo.swift`: Almarai for the
   Arabic (the font list above already handles the mixing), a hair
   larger because Almarai reads small at a matched size; NO
   letter-spacing, because the script is cursive and tracking severs
   the joins; NO uppercasing, because Arabic has no case. The AERA
   wordmark is the one exception — it is the brand, so it stays Latin
   and keeps its tracking in both languages. */
[dir="rtl"] {
  font-size: 16px;
  line-height: 1.75;
}
[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] .tagline,
[dir="rtl"] .sign { text-indent: 0 !important; }

/* Latin islands inside the RTL page — the wordmark, the clock, the frame
   counter. Forced back to LTR so their tracking and the centring trick
   behave exactly as they do on the English page (an RTL text-indent
   pushes the mark off to one side). */
[dir="rtl"] .wordmark,
[dir="rtl"] footer .fmark,
[dir="rtl"] .s60-clock,
[dir="rtl"] .frame-counter {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .wordmark { letter-spacing: .40em !important; text-align: center; }
[dir="rtl"] footer .fmark { letter-spacing: .5em !important; }

/* The viewfinder frame and the ↗ stay identical in both directions —
   a frame is symmetric and the arrow is the same affordance. Only the
   hover marker turns, because it points into the text. */
[dir="rtl"] .menu li a::before { content: "◂"; }

.hero-lang {
  position: absolute; top: 20px; inset-inline-end: calc(var(--pad) + 44px);
  z-index: 2;
}
@media (max-width: 560px) { .hero-lang { inset-inline-end: calc(var(--pad) + 34px); top: 18px; } }

/* language switch — a pair in the footer and in the hero, on every page */
.lang {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-ghost);
}
.lang a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.lang a:hover { color: var(--amber); border-bottom-color: var(--amber-dim); }
.lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--hair); }
[dir="rtl"] .lang { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* cross-document view transitions — the pages flip like menu screens.
   Chromium honours this; everywhere else navigation is just instant. */
@view-transition { navigation: auto; }

/* min-width:0 everywhere — the usual cause of a rogue horizontal scrollbar
   is a flex/grid child refusing to shrink below its content's min size */
* { box-sizing: border-box; min-width: 0; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-bottom: var(--sk-h);   /* clear the fixed softkey bar */
  isolation: isolate;            /* keep the ambient layers behind content */
}
main, footer { position: relative; z-index: 0; }

::selection { background: var(--amber); color: var(--ground); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }

/* ── ambient ────────────────────────────────────────────────────
   These sit BEHIND the content (negative z, in body's own stacking
   context) — they texture the dark ground of the viewfinder, but the
   wordmark, the app icon, every button and every line of type render
   clean on top of them, never through them. */
#grain {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .05;
  mix-blend-mode: screen;
}
.scan {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.20) 2px 3px);
  opacity: .4;
  animation: scan 9s linear infinite;
}
.vignette {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(125% 80% at 50% 40%, transparent 42%, rgba(0,0,0,.55) 100%);
}
@keyframes scan { to { background-position: 0 120px; } }

/* shutter flash — fired by the SHUTTER control */
#flash {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: #fff; opacity: 0;
}
#flash.fire { animation: flash .22s ease-out 1; }
@keyframes flash { 0% { opacity: .92; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan { animation: none; }
  #flash.fire { animation: none; opacity: 0; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ── S60 status bar (top chrome) ────────────────────────────── */
.s60-top {
  position: sticky; top: 0; z-index: 70;
  view-transition-name: statusbar;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--bar-h); padding: 0 clamp(10px, 3vw, 20px);
  background: var(--s60);
  border-bottom: 1px solid var(--s60-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  color: var(--s60-ink);
}
.s60-icons {
  width: clamp(92px, 30vw, 116px);
  aspect-ratio: 116 / 16;
  background: left center / 100% no-repeat url("s60-icons.svg");
}
.s60-clock {
  font-family: var(--mono);
  font-weight: 600; font-size: clamp(15px, 4.4vw, 19px);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
  color: var(--s60-ink);
}

/* ── S60 softkey bar (bottom chrome, always on) ─────────────── */
.s60-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  view-transition-name: softkeys;
  height: var(--sk-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--s60);
  border-top: 1px solid var(--s60-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  color: var(--s60-ink);
  font-family: var(--mono);
}
.s60-bottom .sk {
  font-size: 15px; letter-spacing: .01em; color: var(--s60-ink);
  padding: 0 clamp(12px, 4vw, 22px);
  display: flex; align-items: center; gap: 6px;
  height: 100%;
}
.s60-bottom .sk-left { justify-self: start; }
.s60-bottom .sk-right { justify-self: end; }
.s60-bottom .sk:hover { text-decoration: underline; text-underline-offset: 3px; }
.s60-bottom .sk:active { background: rgba(20,32,43,.10); }
.s60-bottom .s60-title {
  font-weight: 700; font-size: clamp(16px, 4.6vw, 21px);
  letter-spacing: .01em; text-align: center; padding: 0 8px;
  white-space: nowrap;
}
.s60-bottom .sk:focus-visible, .s60-top a:focus-visible { outline: 2px solid var(--s60-ink); outline-offset: -2px; }

@media (max-width: 420px) {
  .s60-bottom .sk { font-size: 13px; padding: 0 12px; }
  .s60-bottom .s60-title { font-size: 15px; }
  .s60-icons { width: 92px; }
}

/* ── shared page frame ─────────────────────────────────────── */
main { view-transition-name: page; display: block; }
::view-transition-old(page) { animation: pageOut .22s ease both; }
::view-transition-new(page) { animation: pageIn .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

section { padding-inline: var(--pad); }
.wrap { max-width: 940px; margin-inline: auto; width: 100%; }

/* ── viewfinder / hero (index) ─────────────────────────────── */
.viewfinder {
  position: relative;
  min-height: min(76vh, 640px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 20px;
  padding-block: clamp(56px, 12vh, 116px);
}
.viewfinder > *:not(.brackets):not(.frame-counter) { flex: none; }
/* short screens: let the hero be its own height so nothing hides behind
   the fixed softkey bar */
@media (max-height: 680px) {
  .viewfinder { min-height: 0; padding-block: clamp(44px, 9vh, 84px); gap: 16px; }
}
.brackets span {
  position: absolute; width: 26px; height: 26px; border: 1px solid var(--ink-ghost);
  transition: transform .4s ease;
}
.brackets span:nth-child(1){ top: 22px; left: var(--pad);  border-right:0; border-bottom:0 }
.brackets span:nth-child(2){ top: 22px; right: var(--pad); border-left:0;  border-bottom:0 }
.brackets span:nth-child(3){ bottom: 22px; left: var(--pad);  border-right:0; border-top:0 }
.brackets span:nth-child(4){ bottom: 22px; right: var(--pad); border-left:0;  border-top:0 }

.frame-counter {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .3em; color: var(--ink-ghost);
  font-variant-numeric: tabular-nums;
}
.frame-counter b { color: var(--amber-dim); font-weight: 500; }

/* A fixed-size box with the icon as a cover background — a span, not an
   <img>, so nothing in the flex column can stretch or squash it. */
.app-icon {
  flex: 0 0 auto;
  display: block;
  width: 80px; height: 80px;
  background: center / cover no-repeat url("appicon.png");
  border-radius: 22%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
  margin-bottom: 4px;
}
@media (min-width: 560px) { .app-icon { width: 84px; height: 84px; } }

.wordmark {
  margin: 0; font-weight: 500;
  font-size: clamp(56px, 16.5vw, 164px);
  letter-spacing: .40em; text-indent: .40em; line-height: .9;
  color: var(--ink); text-wrap: balance;
}
.wordmark.flick { animation: flick .5s steps(2) 1; }
@keyframes flick { 0%{opacity:0} 20%{opacity:.5} 40%{opacity:.1} 60%{opacity:.85} 100%{opacity:1} }

.tagline {
  margin: 0; font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: .46em; text-transform: uppercase; text-indent: .46em;
  color: var(--amber);
}
.subhead { margin: 0; max-width: 42ch; font-size: 13px; color: var(--ink-dim); }

.hero-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

.cta {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 24px 14px 22px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ground); background: var(--ink);
  transition: background .16s, color .16s;
}
[dir="rtl"] .cta { padding: 14px 22px 14px 24px; letter-spacing: 0; }
.cta:hover { background: transparent; color: var(--ink); }
.cta svg { width: 20px; height: 20px; fill: currentColor; flex: none; margin-block: -2px; }

/* The shutter: a real one — a white disc inside a ring that fills as the
   card does. The ring is a meter, which is the one job amber has; the
   button surface itself stays black and white. */
.shutter-wrap { width: 64px; height: 64px; flex: none; }

.shutter {
  --p: 0;                                  /* 0–100, set from JS */
  position: relative; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  border: 0; padding: 0; background: none;
  cursor: pointer;
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.shutter::before {                          /* the fill meter */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--amber) calc(var(--p) * 1%), rgba(255,255,255,.16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  transition: background .3s ease;
}
.shutter::after {                           /* the disc you press */
  content: ""; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink);
  transition: transform .13s cubic-bezier(.2,.7,.2,1), background .18s, box-shadow .18s;
}
.shutter:hover::after { transform: scale(.93); }
.shutter:active::after { transform: scale(.8); }
.shutter[data-full]::after {
  background: transparent; box-shadow: inset 0 0 0 2px var(--ink);
}
.shutter:focus-visible { outline: 1px solid var(--amber); outline-offset: 5px; }

.shutter-hint {
  margin: 0; text-align: center;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-ghost); transition: color .2s;
}
.shutter-hint.is-full { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .shutter::after, .shutter::before { transition: none; }
}

.cta-note { margin: 0; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-ghost); }

/* ── spec strip ────────────────────────────────────────────── */
.specs { padding-block: 0; }
.specs .wrap { border-block: 1px solid var(--hair); }
.spec-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-grid > button {
  all: unset; box-sizing: border-box; cursor: pointer;
  padding: 24px 22px; border-inline-start: 1px solid var(--hair-soft);
  display: flex; flex-direction: column; gap: 6px;
  transition: background .16s;
}
.spec-grid > button:first-child { border-inline-start: 0; }
.spec-grid > button:hover, .spec-grid > button:focus-visible { background: var(--ground-2); }
.spec-grid dt { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-ghost); }
.spec-grid dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.spec-grid dd small { color: var(--amber-dim); font-size: 11px; letter-spacing: .1em; }
.spec-grid .detail {
  display: block;
  font-size: 10.5px; line-height: 1.55; color: var(--ink-dim); letter-spacing: .02em;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .28s ease, opacity .2s, padding-top .28s ease;
}
.spec-grid > button[aria-expanded="true"] .detail {
  max-height: 22em;           /* well past the longest string, at any width */
  opacity: 1; padding-top: 5px;
}
@media (hover: hover) {       /* pointer devices: reveal on hover, no click */
  .spec-grid > button:hover .detail,
  .spec-grid > button:focus-visible .detail { max-height: 22em; opacity: 1; padding-top: 5px; }
}
@media (max-width: 720px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > button:nth-child(3) { border-inline-start: 0; }
  .spec-grid > button:nth-child(-n+2) { border-bottom: 1px solid var(--hair-soft); }
}

/* ── the menu (index) ──────────────────────────────────────── */
.menu { padding-block: clamp(52px, 10vh, 96px); scroll-margin-top: 46px; }
#content { scroll-margin-top: 92px; }
.menu .eyebrow { display: block; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-ghost); margin-bottom: 20px; }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu li { border-top: 1px solid var(--hair); }
.menu li:last-of-type { border-bottom: 1px solid var(--hair); }
.menu li a {
  position: relative; display: flex; align-items: baseline; gap: 16px;
  padding: 22px 4px; font-size: clamp(15px, 3.3vw, 20px);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  transition: padding-inline-start .18s;
}
.menu li a .idx { font-size: 10px; letter-spacing: .2em; color: var(--ink-ghost); font-variant-numeric: tabular-nums; }
/* arrows and key glyphs: pin to the Latin mono and force text (not emoji)
   presentation — Almarai has no glyph for ↗ ↑ ↓, so an Arabic page would
   otherwise fall back to the colour-emoji font */
.menu li a .arw,
.menu-hint kbd,
.rail .rail-back,
.lang span { font-family: "IBM Plex Mono", ui-monospace, "Courier New", monospace; font-variant-emoji: text; }

.menu li a .arw { margin-inline-start: auto; color: var(--ink-ghost); transition: color .18s, transform .18s; }
.menu li a::before { content: "▸"; position: absolute; inset-inline-start: 0; color: var(--amber); opacity: 0; transition: opacity .18s; }
.menu li a:hover, .menu li a:focus-visible, .menu li[data-active] a { padding-inline-start: 18px; }
.menu li a:hover::before, .menu li a:focus-visible::before, .menu li[data-active] a::before { opacity: 1; }
.menu li a:hover .arw, .menu li a:focus-visible .arw { color: var(--amber); transform: translate(3px,-3px); }
.menu li a:hover .idx, .menu li a:focus-visible .idx { color: var(--amber-dim); }

.menu-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.menu-foot a { border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.menu-foot a:hover { color: var(--amber); border-color: var(--amber-dim); }
.menu-hint { font-size: 10px; letter-spacing: .2em; color: var(--ink-ghost); }
.menu-hint kbd {
  font: inherit; border: 1px solid var(--hair); padding: 1px 5px; color: var(--ink-dim);
}

/* ── subpage: menu-rail + content ──────────────────────────── */
.screen { display: grid; grid-template-columns: var(--rail-w) 1fr; gap: 0; align-items: start; }
.rail {
  position: sticky; top: var(--bar-h);
  align-self: start;
  border-inline-end: 1px solid var(--hair);
  padding: clamp(40px, 8vh, 72px) 0 40px;
  min-height: calc(100dvh - var(--bar-h) - var(--sk-h));
}
.rail .rail-mark { display: block; padding: 0 24px 22px; font-size: 15px; font-weight: 500; letter-spacing: .42em; text-indent: .42em; color: var(--ink); }
.rail nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 24px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim); border-inline-start: 2px solid transparent;
  transition: color .16s, border-color .16s, background .16s;
}
.rail nav a .idx { font-size: 9.5px; color: var(--ink-ghost); }
.rail nav a:hover { color: var(--ink); background: var(--ground-2); }
.rail nav a[aria-current="page"] { color: var(--amber); border-inline-start-color: var(--amber); }
.rail nav a[aria-current="page"] .idx { color: var(--amber-dim); }
.rail .rail-back { display: block; margin-top: 26px; padding: 12px 24px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-ghost); }
.rail .rail-back:hover { color: var(--amber); }

.content { padding: clamp(40px, 8vh, 72px) var(--pad) clamp(64px, 10vh, 96px); min-width: 0; }

@media (max-width: 820px) {
  /* drop the grid entirely — the rail becomes a wrapping tab strip that
     sticks under the status bar, and the AERA mark + "back to viewfinder"
     are dropped (the softkey bar carries both) */
  .screen { display: block; }
  .rail {
    position: sticky; top: var(--bar-h); z-index: 30;
    min-height: 0; padding: 0;
    border-inline-end: 0; border-bottom: 1px solid var(--hair);
    background: var(--ground);
    background: color-mix(in srgb, var(--ground) 94%, transparent);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .rail .rail-mark, .rail .rail-back { display: none; }
  .rail nav { display: flex; flex-wrap: wrap; padding: 3px calc(var(--pad) - 12px); }
  .rail nav a {
    border-inline-start: 0; border-bottom: 2px solid transparent;
    padding: 11px 12px; font-size: 10.5px; letter-spacing: .12em;
  }
  .rail nav a[aria-current="page"] { border-bottom-color: var(--amber); }

  .content { padding-top: clamp(26px, 5vh, 42px); }
}

@media (max-width: 480px) {
  .doc-head { margin-bottom: 24px; }
  .doc-body { font-size: 15px; }
  .pager { flex-direction: column; gap: 24px; }
  .pager a.next { align-items: flex-start; text-align: left; }
  .callout { font-size: 12.5px; }
}

/* ── doc content ───────────────────────────────────────────── */
.doc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 30px; max-width: var(--measure); }
.doc-head .kicker { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--amber-dim); }
.doc-head h1 { margin: 0; font-weight: 500; font-size: clamp(26px, 5.6vw, 40px); letter-spacing: .04em; color: var(--ink); flex-basis: 100%; text-wrap: balance; }
.doc-head .stamp { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-ghost); }

.doc-body { max-width: var(--measure); font-family: var(--sans); font-size: 15.5px; line-height: 1.72; color: rgba(255,255,255,.82); overflow-wrap: break-word; }
.doc-body > * + * { margin-top: 1.05em; }
.doc-body h2 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-top: 2.4em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body ul { margin: 0; padding-inline-start: 1.2em; }
.doc-body li { margin-top: .5em; }
.doc-body li::marker { color: var(--ink-ghost); }

.callout { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink-dim); border-inline-start: 2px solid var(--amber); padding-block: 4px; padding-inline: 18px 0; }

.qa { display: grid; gap: 0; max-width: var(--measure); }
.qa > div { border-top: 1px solid var(--hair-soft); padding: 20px 0; }
.qa > div:last-child { border-bottom: 1px solid var(--hair-soft); }
.qa dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.qa dd { margin: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.66; color: rgba(255,255,255,.72); }

/* prev / next through the menu */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 8vh, 72px); border-top: 1px solid var(--hair); padding-top: 26px; max-width: var(--measure); }
.pager a { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); display: flex; flex-direction: column; gap: 5px; }
.pager a:hover { color: var(--amber); }
.pager a span { font-size: 13px; letter-spacing: .04em; text-transform: none; color: var(--ink); }
.pager a:hover span { color: var(--amber); }
.pager a.next { text-align: end; align-items: flex-end; }
.pager a.disabled { opacity: .3; pointer-events: none; }

/* ── footer ────────────────────────────────────────────────── */
footer {
  padding: clamp(44px, 8vh, 72px) var(--pad) 40px;
  border-top: 1px solid var(--hair);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
footer .fmark { font-size: 20px; font-weight: 500; letter-spacing: .5em; text-indent: .5em; color: var(--ink); }
footer .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-ghost); font-variant-numeric: tabular-nums; }
footer .meta a:hover { color: var(--amber); }
footer .sign { font-size: 10px; letter-spacing: .44em; text-transform: uppercase; color: var(--amber-dim); text-indent: .44em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ground); padding: 10px 16px; font-size: 12px; z-index: 100; }
.skip:focus { left: var(--pad); top: 8px; }
