@font-face { font-family: Fraunces; font-style: normal; font-weight: 300 800; 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+2000-206F, U+2074, 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 800; font-display: swap; src: url("fonts/fraunces-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 300 800; 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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 300 800; font-display: swap; src: url("fonts/fraunces-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 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+2000-206F, U+2074, 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: 400 700; font-display: swap; src: url("fonts/source-serif-4-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 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+2000-206F, U+2074, 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: 400 700; font-display: swap; src: url("fonts/source-serif-4-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f5f0e6; --paper-2: #ece4d5; --card: rgba(251, 248, 241, 0.95);
  --ink: #1f1a16; --ink-2: #473d35; --muted: #6a5d52; --rule: #d6c9b6;
  --accent: #a23f1b; --accent-ink: #8a3414;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 28px rgba(60, 40, 20, 0.1);
  --m-sea: #cfdcdf; --m-land: #f7f2e7; --m-coast: #a39b89; --m-grid: rgba(90, 100, 100, 0.10);
  --m-ink: #1f1a16; --m-muted: #4d433b; --m-land-route: #a6461c; --m-sea-route: #1f5f8b; --m-air-route: #5b7d2a; --m-space-route: #6b4c9a;
  --m-focus: #c0391b; --m-halo: rgba(192, 57, 27, 0.18); --m-strip-bg: rgba(245, 240, 230, 0.92); --m-band: rgba(154, 106, 18, 0.45);
  --bar-h: 3rem; --strip-h: 64px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --display: Fraunces, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151c; --paper-2: #1a1e27; --card: rgba(20, 24, 32, 0.95);
    --ink: #eee7da; --ink-2: #d2c9bb; --muted: #a79c8e; --rule: #333845;
    --accent: #f09a6c; --accent-ink: #f3ae86;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --m-sea: #0f1420; --m-land: #232b3b; --m-coast: #3b465c; --m-grid: rgba(160, 180, 210, 0.07);
    --m-ink: #f3ecdf; --m-muted: #c9c0b1; --m-land-route: #f0a36f; --m-sea-route: #7fc0e8; --m-air-route: #a9d36a; --m-space-route: #c7a6f2;
    --m-focus: #f3c669; --m-halo: rgba(243, 198, 105, 0.22); --m-strip-bg: rgba(15, 20, 32, 0.9); --m-band: rgba(243, 198, 105, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12151c; --paper-2: #1a1e27; --card: rgba(20, 24, 32, 0.95);
  --ink: #eee7da; --ink-2: #d2c9bb; --muted: #a79c8e; --rule: #333845;
  --accent: #f09a6c; --accent-ink: #f3ae86;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  --m-sea: #0f1420; --m-land: #232b3b; --m-coast: #3b465c; --m-grid: rgba(160, 180, 210, 0.07);
  --m-ink: #f3ecdf; --m-muted: #c9c0b1; --m-land-route: #f0a36f; --m-sea-route: #7fc0e8; --m-air-route: #a9d36a; --m-space-route: #c7a6f2;
  --m-focus: #f3c669; --m-halo: rgba(243, 198, 105, 0.22); --m-strip-bg: rgba(15, 20, 32, 0.9); --m-band: rgba(243, 198, 105, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 0.5rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.62 var(--serif); font-optical-sizing: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
i, em { font-style: italic; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 0.5rem; z-index: 50; background: var(--paper); padding: 0.4rem 0.8rem; }

/* top bar, one line */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 0.9rem; padding: 0 1rem; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.92rem; }
.topbar .home { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.topnav { display: flex; gap: 0.9rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.topnav::-webkit-scrollbar { display: none; }
.topnav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.topnav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.topnav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.icon-btn { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
.topbar .lang { color: var(--muted); text-decoration: none; font-size: 0.86rem; white-space: nowrap; }
.topbar .lang:hover { color: var(--ink); text-decoration: underline; }

/* the calendar: a themed map, sticky under the bar; cards scroll over it */
.story { position: relative; background: var(--m-sea); }
.stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: hidden; background: var(--m-sea); z-index: 1; }
.stage #map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage #strip { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--strip-h); display: block; border-top: 1px solid var(--rule); }
.hud { position: absolute; left: 1rem; top: 0.9rem; z-index: 2; pointer-events: none; color: var(--m-ink); text-shadow: 0 0 6px var(--m-sea), 0 0 12px var(--m-sea); }
.hud p { margin: 0; }
.hud-date { font: 420 clamp(1.5rem, 3.4vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.hud-count { font: 600 0.78rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: 0.04em; color: var(--m-muted); margin-top: 0.3rem !important; }
.stage:not(.live) .hud, .stage:not(.live) #strip { display: none; }

.flow { position: relative; z-index: 2; margin-top: calc(-100svh + var(--bar-h)); pointer-events: none; }
.flow .step { min-height: 125svh; display: flex; align-items: center; justify-content: flex-end; padding: 0 max(1rem, 4.5rem) 0 1rem; }
.flow .step.scrub { min-height: 160svh; align-items: flex-start; padding-top: 30svh; }
.card, .hero > * { pointer-events: auto; }
.card { max-width: 29rem; padding: 1.25rem 1.4rem 1.15rem; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card .when { margin: 0 0 0.35rem; font: 600 0.8rem/1.25 ui-monospace, Menlo, monospace; letter-spacing: 0.05em; color: var(--accent-ink); }
.card h2 { margin: 0 0 0.7rem; font: 400 clamp(1.6rem, 3.4vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.01em; }
.card p { margin: 0 0 0.8rem; font-size: 1.03rem; line-height: 1.55; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.more { font-size: 0.97rem; }
.more a { font-weight: 600; text-decoration: none; }
.more a::after { content: " \2192"; }
.more a:hover { text-decoration: underline; }
.scrubber { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 0.8rem; align-items: center; margin: 0.4rem 0 0.9rem; }
.scrubber[hidden] { display: none; }
.scrubber label { grid-column: 1 / -1; font: 600 0.85rem/1.2 ui-monospace, Menlo, monospace; color: var(--muted); }
.scrubber output { color: var(--ink); font-size: 1.05rem; }
.scrubber input { width: 100%; min-height: 44px; accent-color: var(--accent); }
.scrubber button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); font: 600 0.92rem/1 var(--serif); cursor: pointer; }
.onroad { font-size: 0.97rem !important; }

.flow .hero { min-height: calc(100svh - var(--bar-h)); justify-content: flex-start; align-items: flex-start; flex-direction: column; padding: clamp(5rem, 14vh, 8rem) 1rem 5rem max(1rem, calc((100vw - 76rem) / 2 + 1rem)); }
.hero .kicker { font: 600 0.8rem/1.3 var(--serif); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--accent); display: inline-block; }
.hero h1 { font: 380 clamp(2.1rem, 5.6vw, 4.3rem)/1.04 var(--display); letter-spacing: -0.02em; margin: 0 0 1.1rem; max-width: 19ch; text-wrap: balance; font-variation-settings: "SOFT" 50, "WONK" 0; }
.hero h1, .hero .deck, .hero .how { text-shadow: 0 0 10px var(--m-sea), 0 0 22px var(--m-sea), 0 0 34px var(--m-sea); }
.hero .deck { font-size: clamp(1.06rem, 2.1vw, 1.28rem); line-height: 1.5; color: var(--ink-2); max-width: 34rem; margin: 0 0 1rem; }
.hero .how { font-size: 0.97rem; color: var(--muted); max-width: 34rem; margin: 0; }

/* reading rail */
.rail { position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 20; display: none; flex-direction: column; gap: 0.62rem; }
.rail a { position: relative; display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(160, 150, 135, 0.55); }
.rail a[aria-current] { background: var(--accent); transform: scale(1.45); }
.rail a span { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.8rem; background: var(--paper); color: var(--ink); padding: 0.15rem 0.5rem; border-radius: 6px; border: 1px solid var(--rule); opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }
@media (min-width: 76rem) { .rail { display: flex; } }

/* after the descent: page chrome follows the theme */
.prose { max-width: 40rem; margin: 0 auto; padding: 4.5rem 1rem 1rem; }
.prose h2 { font: 400 clamp(2rem, 4.6vw, 3rem)/1.08 var(--display); letter-spacing: -0.015em; margin: 0 0 1rem; }
.prose p { margin: 0 0 1.05rem; }
.ending { max-width: 44rem; padding: 5rem 1rem 3rem; }
.ending p { font: 360 clamp(1.35rem, 3.2vw, 1.9rem)/1.38 var(--display); margin: 0 0 1.2rem; }
.ending p:nth-last-of-type(2) { color: var(--accent-ink); }
.ending .more { font: 400 1rem/1.6 var(--serif); }
.method h3 { font: 600 1.15rem/1.3 var(--serif); margin: 1.6rem 0 0.6rem; color: var(--ink); }
.tablewrap { overflow-x: auto; }
.method table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.method th, .method td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--rule); }
.method th { color: var(--muted); font-weight: 600; }
.shelf { max-width: 76rem; }
.shelf > p { max-width: 40rem; color: var(--ink-2); margin: 0 0 2rem; }
.shelf ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.2rem 2rem; }
.shelf li { padding: 0.6rem 0; border-bottom: 1px dotted var(--rule); }
.shelf li a { font-weight: 600; text-decoration: none; color: var(--ink); display: block; line-height: 1.3; }
.shelf li a:hover { color: var(--accent-ink); text-decoration: underline; }
.shelf li span { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.4; margin-top: 0.15rem; }
.method { font-size: 0.98rem; color: var(--ink-2); }
.method h2 { font-size: 1.8rem; color: var(--ink); }
.method .updated { color: var(--muted); }
.prose .more { font-size: 1rem; }
.foot { max-width: 76rem; margin: 2rem auto 0; padding: 2rem 1rem 3rem; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }
.foot a { color: var(--muted); }

/* phones: date top-left, strip at the bottom, the card low so the map stays visible above it */
@media (max-width: 47.5rem) {
  :root { --strip-h: 52px; }
  .flow .step { align-items: flex-end; justify-content: center; padding: 0 0.75rem calc(var(--strip-h) + 1.2rem); min-height: 135svh; }
  .flow .step.scrub { align-items: flex-end; padding-top: 0; }
  .card { padding: 1rem 1.05rem 0.95rem; }
  .card p { font-size: 0.99rem; }
  .flow .hero { padding-top: 47svh; padding-bottom: calc(var(--strip-h) + 1.5rem); justify-content: flex-start; }
  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.45rem); }
  .flow .step.hero { align-items: flex-start; }
}
html:not(.js) .stage { display: none; }
html:not(.js) .flow { margin-top: 0; }
html:not(.js) .flow .step { min-height: 0; padding-top: 1.2rem; padding-bottom: 1.2rem; justify-content: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .stage, .rail, .topbar { display: none; } .flow { margin-top: 0; } .flow .step { min-height: 0; } }
