@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f4efe6;
  --paper-deep: #e8e1d4;
  --surface: #fcfaf5;
  --ink: #14191c;
  --ink-soft: #2e363b;
  --ink-muted: #3d464c;
  --rule: #d7cfc0;
  --rule-strong: #ab9f89;
  --accent: #8f350f;
  --accent-text: #7a2d0f;
  --numeral: #6c6046;
  --on-accent: #fdf6ee;
  --gold: #5f4206;
  --sea: #d8e3ea;
  --land: #efe7d7;
  --ice: #fbfdff;
  --coast: #756b5a;
  --river: #6f93a4;
  --grat: #c3d1d9;
  --route: #a63c15;
  --label: #202a2e;
  --label-halo: #efe7d7;
  --shadow: 0 1px 2px #14191c14, 0 8px 24px #14191c12;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --bar: 2.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e1418;
    --paper-deep: #151d22;
    --surface: #18222a;
    --ink: #eff3f4;
    --ink-soft: #d4dbdf;
    --ink-muted: #b6c2c8;
    --rule: #2a343a;
    --rule-strong: #4a585f;
    --accent: #ef8455;
    --accent-text: #ffa87f;
    --numeral: #7d8f98;
    --on-accent: #17100c;
    --gold: #eac977;
    --sea: #0a1317;
    --land: #1c2227;
    --ice: #46565f;
    --coast: #56646c;
    --river: #35606f;
    --grat: #152128;
    --route: #ff7b4d;
    --label: #eaf0f2;
    --label-halo: #1c2227;
    --shadow: 0 1px 2px #0007, 0 8px 24px #0006;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1418;
  --paper-deep: #151d22;
  --surface: #18222a;
  --ink: #eff3f4;
  --ink-soft: #d4dbdf;
  --ink-muted: #b6c2c8;
  --rule: #2a343a;
  --rule-strong: #4a585f;
  --accent: #ef8455;
  --accent-text: #ffa87f;
  --numeral: #7d8f98;
  --on-accent: #17100c;
  --gold: #eac977;
  --sea: #0a1317;
  --land: #1c2227;
  --ice: #46565f;
  --coast: #56646c;
  --river: #35606f;
  --grat: #152128;
  --route: #ff7b4d;
  --label: #eaf0f2;
  --label-halo: #1c2227;
  --shadow: 0 1px 2px #0007, 0 8px 24px #0006;
}

/* ---------- 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; } }
/* clip, not hidden: hidden turns body into a scroll container and every sticky element stops sticking */
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.62;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
section { scroll-margin-top: calc(var(--bar) + .5rem); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem .8rem; border-radius: 4px; }
.skip:focus { left: .8rem; top: .8rem; }

/* every section heading carries its own address */
.anchor-link { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-left: .2rem; vertical-align: middle; color: var(--rule-strong); opacity: 0; transition: opacity .15s; text-decoration: none; }
.anchor-link::before { content: ""; position: absolute; inset: -10px; }
h2:hover .anchor-link, h3:hover .anchor-link, .anchor-link:focus-visible { opacity: 1; color: var(--accent-text); }
@media (hover: none) { .anchor-link { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .anchor-link { transition: none; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .55rem;
  min-height: var(--bar); padding: .3rem var(--gutter);
  padding-top: calc(.3rem + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .78rem;
}
.topbar .home { font-weight: 650; color: var(--ink-soft); text-decoration: none; flex: none; padding: .3rem 0; }
.topbar .spacer { flex: 1; }
/* the bar scrolls sideways; fade the edge instead of clipping a word dead */
.topnav {
  display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; min-width: 0; margin-left: .25rem;
  mask-image: linear-gradient(to right, #000 calc(100% - 1.4rem), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.4rem), transparent);
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a { padding: .25rem .55rem; border-radius: 999px; text-decoration: none; color: var(--ink-muted); white-space: nowrap; }
.topnav a:hover { color: var(--accent-text); background: var(--paper-deep); }
.topnav a[aria-current="true"] { color: var(--ink); background: var(--paper-deep); font-weight: 650; }
.langmenu { position: relative; flex: none; }
.langmenu summary {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); color: var(--ink-soft); background: var(--surface);
  cursor: pointer; list-style: none; white-space: nowrap;
}
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { border-color: var(--accent); color: var(--accent-text); }
.langmenu ul {
  position: absolute; right: 0; top: calc(100% + .4rem); margin: 0; padding: .3rem; list-style: none;
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: .6rem;
  box-shadow: var(--shadow); min-width: 10rem; z-index: 60;
}
.langmenu li a { display: block; padding: .32rem .6rem; border-radius: .4rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.langmenu li a:hover { color: var(--accent-text); background: var(--paper-deep); }
.langmenu li a[aria-current="true"] { color: var(--ink); font-weight: 650; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.95rem; height: 1.95rem; padding: 0; border-radius: 999px; cursor: pointer;
  color: var(--ink-muted); background: var(--surface); border: 1px solid var(--rule-strong);
}
.icon-btn::before { content: ""; position: absolute; inset: -6.5px; }
.icon-btn:hover { color: var(--accent-text); border-color: var(--accent); }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
@media (max-width: 34rem) {
  .topbar { gap: .35rem; }
  .topbar .home { max-width: 5.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topnav a { padding: .25rem .38rem; }
}

/* ---------- reading rail ---------- */
.rail { display: none; position: fixed; top: 50%; right: 1.1rem; transform: translateY(-50%); flex-direction: column; align-items: flex-end; gap: .5rem; z-index: 30; }
@media (min-width: 88rem) { .rail { display: flex; } }
/* the dot is 6px; the target around it is not */
.rail-dot { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 24px; min-height: 24px; text-decoration: none; }
.rail-dot::before { content: ""; position: absolute; inset: -10px; }
.rail-dot .dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); transition: background-color .15s, transform .15s; }
.rail-dot:hover .dot, .rail-dot:focus-visible .dot { background: var(--ink-soft); }
.rail-dot.active .dot { background: var(--accent); transform: scale(1.5); }
.rail-label {
  position: absolute; right: 100%; top: 50%; margin-top: -.85rem; margin-right: .5rem;
  font-family: var(--sans); font-size: .75rem; line-height: 1.2; color: var(--ink-soft); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .55rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .12s, transform .12s;
}
.rail-dot:hover .rail-label, .rail-dot:focus-visible .rail-label { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rail-dot .dot, .rail-label { transition: none; } }
@media print { .rail, .topbar { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; gap: 1.5rem 2rem;
  padding: clamp(1.8rem, 5vw, 3.5rem) var(--gutter) 2rem; max-width: 96rem; margin: 0 auto;
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: minmax(0, 31rem) minmax(0, 1fr); align-items: center; min-height: calc(100svh - var(--bar)); padding-bottom: 1rem; }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-map { grid-column: 2; grid-row: 1 / span 2; }
  .cast-wrap { grid-column: 1; grid-row: 2; }
}
.kicker { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .9rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 1.1rem; font-weight: 640; font-variation-settings: "SOFT" 30, "WONK" 0; }
.deck { font-size: clamp(1.04rem, 1.6vw, 1.2rem); line-height: 1.5; color: var(--ink-soft); margin: 0 0 1rem; }
.byline { font-family: var(--sans); font-size: .82rem; color: var(--ink-muted); margin: 0; }
.hero-map { margin: 0; }
.hero-canvas { position: relative; }
.hero-map .map { width: 100%; height: auto; display: block; }
.hero-year {
  position: absolute; left: 3%; bottom: 8%; display: flex; pointer-events: none;
  font-family: var(--display); color: var(--accent-text); line-height: 1;
}
.hero-year-num { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.03em; }
.hero-key {
  display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .5rem;
  font-family: var(--sans); font-size: .74rem; line-height: 1.35; color: var(--ink-muted);
}
.replay {
  position: absolute; right: 3%; bottom: 5%; display: inline-flex; gap: .4rem; align-items: center;
  font: 600 .78rem var(--sans); color: var(--ink-soft); background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 999px; padding: .4rem .75rem; cursor: pointer; box-shadow: var(--shadow); min-height: 2.2rem;
}
.replay:hover { color: var(--accent-text); border-color: var(--accent); }
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr)); gap: .5rem; }
.cast a {
  display: block; padding: .55rem .7rem; border-radius: 6px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); transition: transform .15s, border-color .15s;
}
.cast a:hover { border-color: var(--accent); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .cast a { transition: none; } }
.cast-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.cast-note { display: block; font-family: var(--sans); font-size: .74rem; color: var(--ink-muted); margin-top: .1rem; }

/* ---------- maps ---------- */
.map { overflow: visible; }
.bm-sea { fill: var(--sea); }
.bm-grat { fill: none; stroke: var(--grat); stroke-width: .6; vector-effect: non-scaling-stroke; }
.bm-land { fill: var(--land); stroke: var(--coast); stroke-width: .7; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bm-ice { fill: var(--ice); stroke: none; }
.bm-lake { fill: var(--sea); stroke: var(--coast); stroke-width: .5; vector-effect: non-scaling-stroke; }
.bm-river { fill: none; stroke: var(--river); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.bm-frame { fill: none; stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mask-path { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.seg { fill: none; stroke: var(--route); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.seg.uncertain { stroke-dasharray: 6 5; stroke-width: 2.2; }
.seg.open { stroke-dasharray: 2 6; stroke-width: 2.2; }
.route[data-r="corridor"] .seg { stroke: var(--ink-soft); }
.route { transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .route { transition: none; } }
#hero-svg .seg { stroke-width: 2.6; }
#hero-svg .seg.uncertain, #hero-svg .seg.open { stroke-width: 2.4; }

.regions text { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--ink-muted); letter-spacing: .1em; text-anchor: middle; paint-order: stroke; stroke: var(--label-halo); stroke-width: 3px; stroke-linejoin: round; }
.regions .sea text { stroke: var(--sea); font-size: 12px; }
.stop circle { fill: var(--paper); stroke: var(--route); stroke-width: 2; }
.stop.inferred circle { stroke-dasharray: 2.2 2; }
.stop text { font-family: var(--sans); font-size: 11.5px; font-weight: 650; fill: var(--label); paint-order: stroke; stroke: var(--label-halo); stroke-width: 3.2px; stroke-linejoin: round; }
.stop .stop-mark { font-size: 9px; font-weight: 500; font-style: italic; fill: var(--ink-muted); }
.site rect { fill: var(--ink); stroke: var(--paper); stroke-width: 1.6; }
.site text { font-family: var(--sans); font-size: 12px; font-weight: 750; fill: var(--label); paint-order: stroke; stroke: var(--label-halo); stroke-width: 3.4px; stroke-linejoin: round; }
.site.lit rect { fill: var(--accent); }

/* atlas states: .ready is set only once the script has measured every route; without it every route and stop shows */
.atlas.ready[data-state="chapter"] .route { opacity: 0; }
.atlas.ready .route.active { opacity: 1; }
.atlas.ready[data-state="chapter"] .route.ghost { opacity: .2; }
.atlas.ready[data-state="chapter"] .route[data-r="corridor"] { opacity: .5; }
.atlas.ready .stopset { display: none; }
.atlas.ready .stopset.active { display: inline; }
.atlas.ready[data-state="overview"] .stopset[data-r="corridor"] { display: inline; }

/* ---------- atlas ---------- */
.atlas { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 96rem; margin: 0 auto; }
.atlas-map {
  position: sticky; top: var(--bar); z-index: 5; height: 44svh; min-height: min(14rem, 55vh);
  background: var(--paper); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.map-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.map-frame .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud {
  position: absolute; left: .6rem; top: .6rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--rule); border-radius: 8px;
  padding: .35rem .6rem; box-shadow: var(--shadow); max-width: calc(100% - 1.2rem);
}
.hud-name { font-family: var(--display); font-weight: 650; font-size: .96rem; line-height: 1.25; display: block; }
.map-legend { display: flex; margin: 0; padding: .35rem var(--gutter) .45rem; background: var(--paper); border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .68rem; color: var(--ink-muted); gap: .18rem .9rem; flex-wrap: wrap; }
.map-legend .lg { min-width: 0; }
.lg::before { content: ""; display: inline-block; width: 1.5rem; height: 0; margin-right: .35rem; vertical-align: middle; border-top: 2.6px solid var(--ink-soft); }
.lg-uncertain::before { border-top: 2.2px dashed var(--route); }
.lg-open::before { border-top: 2.2px dotted var(--route); }
.lg-site::before { width: .6rem; height: .6rem; border: 0; background: var(--ink); vertical-align: baseline; }
.atlas-text { position: relative; z-index: 1; padding: 0 var(--gutter); }
@media (min-width: 64rem) {
  .atlas { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); column-gap: 2.5rem; padding-inline: var(--gutter); }
  .atlas-map { grid-column: 2; grid-row: 1; top: calc(var(--bar) + 1rem); height: calc(100svh - var(--bar) - 2rem); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--sea); }
  .atlas-text { grid-column: 1; grid-row: 1; padding: 0; }
  .map-legend { display: flex; flex-wrap: wrap; padding-inline: .7rem; font-size: .72rem; gap: .3rem 1.1rem; }
}

.atlas-intro { padding: 3rem 0 1rem; }
.atlas-intro h2, .year h2, .game h2, .timeline h2, .sources h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 1rem; }
.atlas-intro p { color: var(--ink-soft); }

.chapter { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--rule); }
.ch-head { margin-bottom: 1.2rem; }
.ch-kicker { margin: 0 0 .35rem; font-family: var(--sans); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.ch-head h2 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.05; letter-spacing: -.02em; }
.ch-native { margin: .3rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.02rem; color: var(--ink-soft); }
.ch-ms { margin: .2rem 0 0; font-family: var(--sans); font-size: .82rem; color: var(--ink-muted); }
.stats { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 0 0 1.5rem; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
@media (min-width: 40rem) { .stats { grid-template-columns: 1fr 1fr; } }
.stats > div { background: var(--surface); padding: .6rem .8rem; }
.stats dt { font-family: var(--sans); font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.stats dd { margin: .12rem 0 0; font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.32; }
.chapter p { margin: 0 0 1.1rem; }
.map-note { font-family: var(--sans); font-size: .85rem; color: var(--ink-muted); border-left: 3px dashed var(--accent); padding-left: .7rem; }

.figure { margin: 1.8rem 0; }
.figure img { width: 100%; height: auto; border-radius: 6px; background: var(--paper-deep); box-shadow: var(--shadow); }
figcaption { font-family: var(--sans); font-size: .82rem; line-height: 1.45; color: var(--ink-muted); margin-top: .6rem; }
.credit { display: block; margin-top: .15rem; }
.credit a { color: var(--ink-muted); }

/* manuscript detail: the modern reading, the original line, the transcription */
.ms-detail { padding: 1.2rem 1.2rem 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ms-detail h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.ms-intro { margin: 0 0 1rem !important; font-size: .98rem; color: var(--ink-soft); }
.ms-detail img { border-radius: 4px; background: var(--paper-deep); box-shadow: none; }
.ms-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin: .9rem 0 .4rem !important; }
.ms-norse { font-family: var(--display); font-size: 1.3rem; font-weight: 650; letter-spacing: .04em; color: var(--accent-text); }
.ms-gloss { font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); }
.ms-note { margin: 0 0 .4rem !important; font-size: .96rem; color: var(--ink-soft); }

/* ---------- the year ---------- */
.year, .game, .timeline, .sources { padding: 4.5rem 0 3.5rem; border-top: 1px solid var(--rule); }
.year > .wrap > p { max-width: 44rem; color: var(--ink-soft); }
.rings-figure { margin: 2.2rem 0 2.4rem; }
.rings-figure figcaption { margin: 0 0 1rem; max-width: 44rem; }
.rings { display: block; width: 100%; height: auto; max-width: 56rem; overflow: visible; }
.ring { fill: var(--paper-deep); stroke: var(--rule-strong); stroke-width: .6; }
.ring.spike { fill: var(--accent); stroke: var(--accent); }
.ring.edge { fill: var(--ink); stroke: var(--ink); }
.ring-tag { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: var(--ink); }
.spike-tag { fill: var(--accent-text); }
.ring-tick { stroke: var(--rule-strong); stroke-width: 1; }
.ring-bracket { fill: none; stroke: var(--rule-strong); stroke-width: 1.2; }
.ring-count { font-family: var(--display); font-size: 17px; font-weight: 700; fill: var(--ink); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.6rem; max-width: 46rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem;
  display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  font: 700 .95rem var(--display); color: var(--on-accent); background: var(--accent);
}
.steps h3 { margin: 0 0 .35rem; font-size: 1.22rem; line-height: 1.25; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.03rem; }
.caveat { margin: 2.4rem 0; padding: 1.1rem 1.2rem; border-radius: 10px; background: var(--paper-deep); max-width: 46rem; }
.caveat h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.caveat p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }
.wood { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; min-width: 34rem; }
.wood caption { text-align: left; font: 700 .76rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: .5rem; }
.wood th, .wood td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.wood thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.wood tbody th { font-family: var(--display); font-size: 1rem; font-weight: 650; white-space: nowrap; }
.cell-note { display: block; font-size: .76rem; color: var(--ink-muted); margin-top: .2rem; }
.table-note { max-width: 44rem; font-family: var(--sans); font-size: .86rem; color: var(--ink-muted); margin-top: .9rem; }

/* ---------- quiz ---------- */
.game { background: var(--paper-deep); }
.section-intro { max-width: 42rem; color: var(--ink-soft); margin: 0 0 1.8rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.card-num { position: absolute; right: .9rem; top: .7rem; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--numeral); line-height: 1; }
.card-claim { margin: 0 2rem 1rem 0; font-size: 1.16rem; line-height: 1.25; }
.card-buttons { display: flex; gap: .5rem; margin-top: auto; }
.card-buttons button, .btn {
  flex: 1; font: 650 .92rem var(--sans); padding: .6rem .8rem; border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule-strong); min-height: 2.75rem;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.card-buttons button:hover, .btn:hover { border-color: var(--accent); color: var(--accent-text); }
.card-buttons button:active, .btn:active { transform: scale(.97); }
.card-buttons button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-buttons button:disabled { cursor: default; }
.card-buttons button:disabled:not([aria-pressed="true"]) { opacity: .45; }
.card-verdict { margin: .6rem 0 0; font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.card-verdict:empty { display: none; }
.card-source { margin: .1rem 0 .4rem !important; font: 650 .82rem var(--sans); color: var(--accent-text); }
.card.right { border-color: var(--gold); }
.card.right .card-verdict { color: var(--gold); }
.card.wrong .card-verdict { color: var(--accent-text); }
.card.answered { transform: translateY(-2px); }
.card-answer { margin-top: .6rem; font-size: .98rem; }
.card-answer summary { font: 600 .82rem var(--sans); color: var(--ink-muted); cursor: pointer; }
.card-answer p { margin: .4rem 0 .5rem; }
.game.ready .card-answer summary { display: none; }
.card-answer:focus { outline: none; }
.card-answer:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.game.ready .card:not(.answered) .card-answer { display: none; }
.scoreboard { margin-top: 1.6rem; padding: 1.2rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); display: grid; gap: .6rem; }
.score { margin: 0; font-family: var(--display); font-weight: 650; font-size: 1.35rem; }
.score-done { margin: 0; color: var(--ink-soft); }
.score-done:empty { display: none; }
.score-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.score-actions .btn { flex: 0 1 auto; }
.btn.share { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.share:hover { color: var(--on-accent); filter: brightness(1.08); }

/* ---------- timeline ---------- */
.events { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.events .event { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 0 1.2rem; align-items: start; }
.ev-year { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.28rem; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); line-height: 1.3; }
.ev-year .approx { display: block; font: 600 .66rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.ev-body h3 { margin: 0 0 .2rem; font-size: 1.1rem; line-height: 1.3; }
.ev-body p { margin: 0 0 .1rem; font-size: .98rem; color: var(--ink-soft); }
/* the distance between two events is drawn as an interruption, never as a smooth axis */
.events .gap { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 0 1.2rem; margin: .7rem 0; }
.events .gap span {
  grid-column: 2; font: 600 .74rem var(--sans); color: var(--ink-muted);
  border-left: 2px dotted var(--rule-strong); padding: .35rem 0 .35rem .8rem; margin-left: -1.2rem;
}

/* ---------- sources ---------- */
.sources { font-size: 1rem; }
.sources > .wrap > p { max-width: 46rem; color: var(--ink-soft); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.4rem 2rem; margin-top: 2rem; }
.src-group h3, .img-heading { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .5rem; }
.img-heading { margin-top: 2.2rem; }
.src-group ul, .img-credits { margin: 0; padding-left: 1.1rem; font-family: var(--sans); font-size: .86rem; line-height: 1.5; }
.src-group li, .img-credits li { margin-bottom: .7rem; overflow-wrap: anywhere; }
.src-note { display: block; color: var(--ink-muted); margin-top: .15rem; }
.img-credits { color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom, 0px)); text-align: center; font-family: var(--sans); font-size: .88rem; color: var(--ink-muted); }
.site-footer p { margin: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 404 ---------- */
.nf-main { padding-block: 5rem; max-width: 40rem; }
.nf-main .btn { display: inline-block; }

@media (max-width: 63.99rem) {
  .hero-year { left: 2%; bottom: 2%; }
  .hero-year-num { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .replay { position: static; margin: .6rem 0 0 auto; display: flex; width: max-content; }
  .events .event { grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0 .9rem; }
  .events .gap { grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0 .9rem; }
  .events .gap span { margin-left: -.9rem; }
}

/* phones: a section reached by a link must land below the pinned map as well as the bar */
@media (max-width: 63.99rem) {
  .atlas-text section { scroll-margin-top: calc(var(--bar) + max(44svh, 14rem) + .75rem); }
}
