  /* The ʻokina (U+02BB, as in Hōkūleʻa) for fonts without it (D-147): 824 bytes from Noto Serif (SIL OFL 1.1, renamed),
   fetched only when the character is drawn in a font that lacks it. */
@font-face { font-family: "Cabinet Okina"; src: url("fonts/okina.woff2") format("woff2"); unicode-range: U+02BB; font-display: swap; }
:root {
    --wood-0: #120c08;
    --wood-1: #1c130d;
    --wood-2: #2b1d13;
    --wood-edge: #3e2b1c;
    --velvet-0: #0f1a15;
    --velvet-1: #18291f;
    --paper-0: #f5ecd8;
    --paper-1: #e8d9b9;
    --ink: #2b1e13;
    --ink-soft: #6b5640;
    --cream: #efe3c8;
    --cream-soft: #b8a689;
    --brass: #c9a14a;
    --brass-hi: #ecc96f;
    --brass-lo: #7d5f24;
    --fancy: #b998f5;
    --fancy-lo: #6e4fb3;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "P052", "URW Palladio L", "Book Antiqua", Georgia, "Cabinet Okina", serif;
    --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    min-height: 100vh;
    color: var(--cream);
    font-family: var(--serif);
    line-height: 1.5;
    background-color: var(--wood-0);
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 161, 74, .14), transparent 70%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 9px),
      linear-gradient(180deg, var(--wood-1), var(--wood-0) 60%);
    background-attachment: fixed;
  }
  a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:hover { color: #fff1c9; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---------- masthead (same as the gallery) ---------- */
  .wrap { max-width: 1340px; margin: 0 auto; padding: 0 24px; }
  .masthead { padding: 16px 0 12px; }
  .eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-soft); }
  h1 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -.01em; font-size: clamp(2rem, 4vw, 2.9rem); }
  h1 em { color: var(--brass-hi); }
  .lede { max-width: 100ch; margin: 8px 0 0; color: #dccdb0; font-size: 1.06rem; }
  .scale-note { margin: 8px 0 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--brass-hi); }
  footer { padding: 18px 0 40px; color: #9a876b; font-size: .88rem; }
  footer p { margin: 0; max-width: 80ch; }
  footer code { font-family: var(--mono); font-size: .8em; }

  /* ---------- the map: one fixed-size SVG per view, panned inside its frame on a narrow screen ---------- */
  .frame {
    position: relative; overflow-x: auto; overflow-y: hidden; margin: 6px 0 0; border: 6px solid var(--wood-edge);
    border-bottom-width: 10px; border-radius: 4px; background: #0e1813; overscroll-behavior-x: contain;
  }
  .frame svg { display: block; }
  .map-cap { margin: 6px 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--cream-soft); }
  .tapped text { text-decoration: underline; }
  .map-now { min-height: 1.5em; margin: 10px 0 0; color: #dccdb0; }
  .map-between .between-door { margin: 4px 0 0; font-size: .93rem; }   /* the picked specimen's door into "How far apart?" (D-68) */
  .map-walk { margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--wood-edge); border-radius: 4px; background: rgba(14, 24, 19, .6); }
  .map-walk .walk-h { margin: 0; font-size: 1.15rem; outline: none; }
  .map-walk p { margin: 8px 0 0; }
  .walk-intro { color: var(--cream-soft); }
  .walk-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
  .walk-nav button { min-height: 44px; padding: 6px 14px; border: 1px solid var(--brass); border-radius: 4px; background: #1b120b; cursor: pointer; }
  .walk-nav button:disabled { opacity: .45; cursor: default; }
  .walk-stop { color: #fff1c9; }
  .arc.walk { stroke-width: 2.4; }
  .stop-no circle { fill: var(--brass); stroke: #1b120b; stroke-width: 1.5; }
  .stop-no.probable circle { fill: #0e1813; stroke: var(--brass-hi); stroke-dasharray: 3 2; }
  .stop-lead { stroke: var(--brass-hi); stroke-width: 1.5; }
  .stop-no text { font: bold 10px var(--mono); text-anchor: middle; fill: #1b120b; }
  .stop-no.probable text { fill: var(--brass-hi); }
  .lbl.stop text { fill: #fff1c9; font-weight: bold; }
  .lbl.stop .lbl-box { stroke: var(--brass-hi); stroke-width: 2; fill: rgba(14, 24, 19, .8); }
  .walk-no { display: inline-block; min-width: 1.6em; padding: 0 4px; border-radius: 9px; background: var(--brass); color: #1b120b; font: bold .75rem var(--mono); text-align: center; }
  .walk-here { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
  .land { fill: #2a3b2c; stroke: #4c6a4f; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .grat { stroke: rgba(236, 201, 111, .08); stroke-width: 1; fill: none; }
  .route { fill: none; stroke: #d9c9a6; stroke-width: 1.4; stroke-opacity: .55; stroke-linejoin: round; }
  .route.probable { stroke-dasharray: 5 4; }
  .route.on { stroke: var(--brass-hi); stroke-opacity: 1; stroke-width: 2.2; }
  .arc { fill: none; stroke: var(--brass-hi); stroke-width: 1.8; }
  .arc.fancy { stroke: var(--fancy); stroke-dasharray: 2 4; stroke-linecap: round; }
  .mk { fill: var(--brass); stroke: #1b120b; stroke-width: 1.2; }
  .mk.probable { fill: none; stroke: var(--brass-hi); stroke-dasharray: 2 1.6; stroke-width: 1.4; }
  .mk.on { fill: var(--brass-hi); stroke: #fff3c4; stroke-width: 2; }
  .mk.end { fill: var(--brass-hi); }
  .lead { stroke: var(--brass-hi); stroke-opacity: .8; stroke-width: 1; }
  .lbl text { font-family: var(--serif); font-size: 12px; fill: #e9dcbf; paint-order: stroke; stroke: #0e1813; stroke-width: 3px; stroke-linejoin: round; }
  .lbl:hover text, .lbl:focus text, .lbl.on text { fill: #fff1c9; }
  .lbl:focus { outline: none; }
  .lbl.on .lbl-box { stroke: var(--brass-hi); stroke-width: 1.5; }   /* picked from #s= (script focus has no ring) */
  /* Keyboard focus after .on and .stop, and unlike them (a picked or current walk stop is also focused, a11y3) */
  /* D-92: about 100 Tab stops of labels lie before the list; this link, seen only when focused, jumps them. */
  /* Out of sight as .sr-only (base.css) until it has focus. */
  .skip:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: inline-block; margin: 0 0 .5rem; padding: .3rem .6rem; background: var(--brass-hi); color: #1a1408; }
  .lbl:focus-visible .lbl-box { stroke: #fff3c4; stroke-width: 2.5; stroke-dasharray: 4 2; }
  .lbl-box { fill: transparent; stroke: none; rx: 3; }
  .inset-box { fill: none; stroke: var(--brass-hi); stroke-width: 1; stroke-dasharray: 4 3; }
  .inset-box-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; fill: var(--brass-hi); text-transform: uppercase; }

  .below { display: grid; grid-template-columns: minmax(0, auto) minmax(260px, 1fr); gap: 24px; align-items: start; margin-top: 22px; }
  .below h2 { margin: 0 0 6px; font-weight: 400; font-size: 1.3rem; }
  .side { font-size: .95rem; }
  .side h2 { margin-top: 0; }
  .legend { display: grid; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .9rem; color: #dccdb0; }
  .legend svg { vertical-align: -3px; margin-right: 8px; }
  .offmap { margin: 0 0 18px; padding-left: 18px; }
  .offmap li { margin-bottom: 6px; }
  .offmap small, .places small { color: var(--cream-soft); }
  details.places { margin-top: 22px; }
  details.places summary { cursor: pointer; color: var(--brass-hi); }
  details.places ol { columns: 2 320px; margin: 10px 0 0; padding-left: 22px; }
  details.places li { break-inside: avoid; margin-bottom: 4px; }
  /* Two columns: the inset stays in view beside the long Not-on-Earth list instead of leaving a hole under it. */
  @media (min-width: 901px) { .below > section:first-child { position: sticky; top: 12px; align-self: start; } }
  @media (max-width: 900px) { .below { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 600px) { .wrap { padding: 0 14px; } }
/* A finger (pointer: coarse) gets targets at least 44 px tall (WCAG 2.5.5; tools/touch-check.js measures them). */
@media (pointer: coarse) { summary { display: flex; align-items: center; min-height: 44px; } }
/* The world by a year (D-121): a later mark is hollow, its label italic and paler, its route dotted. Never colour alone;
   no forced-colours rules: the map keeps its own colours there, and GrayText on the labels' dark halo was unreadable. */
.map-time { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; margin: 14px 0 4px; max-width: 760px; }
.map-time label { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--brass-hi); min-width: 21ch; }
.map-time input { width: 100%; margin: 0; accent-color: var(--brass-hi); }
.map-time-ends { grid-column: 2; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; color: var(--cream-soft); }
.mk.later { fill: none; stroke: #b5a688; stroke-width: 1; stroke-dasharray: none; opacity: .75; }
.lbl.later text { fill: #b5a688; font-style: italic; }
.lead.later { stroke-opacity: .35; stroke-dasharray: 1 2; }
.route.later { stroke-dasharray: 1 3; stroke-opacity: .35; }
#offmap li.later, #placeList li.later { font-style: italic; opacity: .8; }
@media (prefers-reduced-motion: no-preference) { .mk, .lbl text, .route, .lead { transition: opacity .2s, stroke-opacity .2s, fill .2s; } }
@media (max-width: 600px) { .map-time { grid-template-columns: minmax(0, 1fr); } .map-time-ends { grid-column: 1; } }
@media (pointer: coarse) { .map-time input { min-height: 44px; } }
@media print { .map-time { display: none; } }
