@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-normal-latin.woff2?v=2a24bad466") 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: 200 900; font-display: swap; src: url("fonts/source-serif-4-normal-latin-ext.woff2?v=a0cd390d01") 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: 200 900; font-display: swap; src: url("fonts/source-serif-4-italic-latin.woff2?v=011e0ca2bd") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-italic-latin-ext.woff2?v=513549ab98") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

:root {
  --paper: #f3f0e8; --paper-2: #e9e4d8; --ink: #17181e; --muted: #474956; --rule: #cbc5b6;
  --accent: #4a39a8; --link: #3f2f9a;
  --space: #4f3fb0; --space-ink: #3b2c93; --seaside: #0e8f95; --sea-ink: #07595e;
  --ocean: #d4e2e8; --lake: #e8eef0; --dim: #ddd6c7; --landbg: #e4ddcd; --you: #d2410f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bar: 3rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1016; --paper-2: #181b24; --ink: #edeae2; --muted: #bdbcc8; --rule: #323644;
    --accent: #a898ff; --link: #b4a6ff;
    --space: #8e7bff; --space-ink: #b9adff; --seaside: #2fc4c7; --sea-ink: #6fe0e2;
    --ocean: #17222d; --lake: #121b24; --dim: #2e303a; --landbg: #22242e; --you: #ff8a50;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1016; --paper-2: #181b24; --ink: #edeae2; --muted: #bdbcc8; --rule: #323644;
  --accent: #a898ff; --link: #b4a6ff;
  --space: #8e7bff; --space-ink: #b9adff; --seaside: #2fc4c7; --sea-ink: #6fe0e2;
  --ocean: #17222d; --lake: #121b24; --dim: #2e303a; --landbg: #22242e; --you: #ff8a50;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.6 var(--serif); }
a { color: var(--link); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; }
b, strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.k-space { color: var(--space-ink); font-weight: 650; }
.k-sea { color: var(--sea-ink); font-weight: 650; }

/* one-line bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 0.9rem; height: var(--bar); padding: 0 1rem; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); font: 500 0.9rem/1 var(--sans); white-space: nowrap; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar .home { font-weight: 700; }
.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 a { padding: 0.9rem 0.1rem; border-bottom: 2px solid transparent; }
.topnav a[aria-current] { border-bottom-color: var(--accent); }
.chip { border: 1px solid var(--rule); border-radius: 999px; padding: 0.35rem 0.7rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; border: 0; background: none; color: var(--ink); border-radius: 50%; cursor: pointer; flex: none; }
.icon-btn svg[hidden] { display: none; }
@media (max-width: 560px) { .topbar .home { display: none; } }

/* reading rail */
.rail { position: fixed; right: 0.9rem; top: 50%; transform: translateY(-50%); z-index: 15; display: none; flex-direction: column; gap: 0.2rem; font: 500 0.78rem/1.2 var(--sans); }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; min-height: 1.9rem; color: var(--muted); text-decoration: none; }
.rail a span { opacity: 0; transition: opacity .2s; background: var(--paper); padding: 0.1rem 0.3rem; }
.rail a i { width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1.5px solid currentColor; }
.rail:hover a span, .rail a:focus-visible span, .rail a[aria-current] span { opacity: 1; }
.rail a[aria-current] { color: var(--accent); }
.rail a[aria-current] i { background: currentColor; }
@media (min-width: 1240px) { .rail { display: flex; } }

/* blocks */
.block { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
.block.wide { max-width: 68rem; }
.block.wide .prose { max-width: 38rem; margin: 0 auto; }
section.block { padding-top: 3.5rem; padding-bottom: 1rem; scroll-margin-top: var(--bar); }
h3[id] { scroll-margin-top: calc(var(--bar) + 1rem); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.5rem); font-weight: 700; margin: 0 0 0.8rem; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 4vw, 2.05rem); font-weight: 680; margin: 0 0 1rem; text-wrap: balance; }
h2 a.anchor { color: inherit; text-decoration: none; }
h2 a.anchor:hover::after { content: " #"; color: var(--muted); font-weight: 400; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1.05rem; }
.deck { font-size: 1.25rem; color: var(--muted); line-height: 1.45; }
figure { margin: 1.5rem 0; }
figcaption { font: 400 0.9rem/1.45 var(--sans); color: var(--muted); margin: 0.6rem auto 0; max-width: 38rem; }
.hero { padding-top: 2.4rem; }
.pedant { font: 400 0.92rem/1.5 var(--sans); color: var(--muted); border-left: 3px solid var(--rule); padding-left: 0.8rem; }

/* search */
.ask { margin: 1.4rem 0 0.4rem; }
.ask label { display: block; font: 600 0.92rem/1.3 var(--sans); margin-bottom: 0.45rem; }
.ask-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.combo { position: relative; flex: 1 1 14rem; }
.combo input { width: 100%; min-height: 2.9rem; font: 500 1.05rem/1 var(--sans); padding: 0.4rem 0.8rem; border: 1.5px solid var(--ink); border-radius: 0.55rem; background: var(--paper); color: var(--ink); }
.combo ul { position: absolute; z-index: 12; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0.25rem 0; list-style: none; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0.55rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); font: 400 0.98rem/1.3 var(--sans); max-height: 21rem; overflow-y: auto; }
.combo li { padding: 0.6rem 0.8rem; cursor: pointer; min-height: 2.75rem; }
.combo li small { color: var(--muted); margin-left: 0.35rem; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--paper-2); }
.ask-msg { font: 400 0.92rem/1.4 var(--sans); color: var(--muted); min-height: 1.3em; margin: 0.4rem 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 0.95rem/1 var(--sans); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }

/* the reader's result */
.result { margin: 1.1rem 0 1.2rem; padding: 1.1rem 1.1rem 0.6rem; border: 1.5px solid var(--rule); border-radius: 0.9rem; background: var(--paper-2); }
.r-place { font: 600 0.95rem/1.3 var(--sans); color: var(--muted); margin: 0 0 0.25rem; }
.r-verdict { font-size: clamp(1.7rem, 6.5vw, 2.5rem); font-weight: 700; line-height: 1.1; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.r-verdict.space { color: var(--space-ink); }
.r-verdict.sea { color: var(--sea-ink); }
.r-lines { font: 400 1rem/1.5 var(--sans); margin: 0 0 0.4rem; }
.duel { width: 100%; height: auto; display: block; margin: 0.2rem 0 0.4rem; font-family: var(--sans); overflow: visible; }
.duel .ground { stroke: var(--muted); stroke-width: 2; }
.duel .spaceline { stroke: var(--space); stroke-width: 2; stroke-dasharray: 6 6; }
.duel .up { stroke: var(--space); stroke-width: 6; stroke-linecap: round; }
.duel .side { stroke: var(--seaside); stroke-width: 6; stroke-linecap: round; }
.duel .seaend { fill: var(--seaside); }
.duel .you { fill: var(--you); stroke: var(--paper-2); stroke-width: 3; }
.duel text { font-size: 19px; font-weight: 600; }
@media (max-width: 560px) { .duel text { font-size: 28px; } .map .canvas-wrap { margin: 0 -1rem; } .curves .tick { font-size: 22px; } }
.duel .t-space { fill: var(--space-ink); }
.duel .t-sea { fill: var(--sea-ink); }
.duel .t-you { fill: var(--ink); }
.r-note { font: 400 0.9rem/1.45 var(--sans); color: var(--muted); margin: 0 0 0.6rem; }
.r-rows { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; font: 400 0.95rem/1.35 var(--sans); }
.r-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding: 0.45rem 0; border-top: 1px solid var(--rule); }
.r-rows .rl { color: var(--muted); }
.r-rows .rv { font-weight: 650; }

/* maps */
.map { margin: 1.4rem 0 1.8rem; }
.map-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.4rem; max-width: 52rem; margin: 0 auto 0.7rem; font: 500 0.95rem/1.3 var(--sans); }
.ctl { flex: 1 1 18rem; }
.ctl label { display: block; margin-bottom: 0.2rem; }
.ctl output { font-weight: 700; color: var(--space-ink); }
.ctl input[type=range] { width: 100%; min-height: 2.75rem; accent-color: var(--space); margin: 0; }
.ctl .segs { margin-top: 0.3rem; }
.segs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.seg { min-height: 2.75rem; padding: 0 1rem; border: 0; background: transparent; color: var(--ink); font: 600 0.92rem/1 var(--sans); cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.canvas-wrap { position: relative; }
.canvas-wrap img, .canvas-wrap canvas { display: block; width: 100%; height: auto; }
.map.world .canvas-wrap canvas { cursor: crosshair; touch-action: manipulation; }
.map.ro .canvas-wrap { max-width: 52rem; margin: 0 auto; }
.map.ro .canvas-wrap canvas { cursor: crosshair; }
.readout { font: 600 1rem/1.45 var(--sans); max-width: 38rem; margin: 0.8rem auto 0; }

/* charts */
.chart { max-width: 44rem; margin: 1.4rem auto 1.6rem; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.curves .grid { stroke: var(--rule); }
.curves .tick { fill: var(--muted); font-size: 15px; }
.curves .c-pop, .curves .c-land { fill: none; stroke-width: 3.5; }
.curves .c-pop { stroke: var(--seaside); }
.curves .c-land { stroke: var(--space); }
.curves .m-pop { fill: var(--seaside); }
.curves .m-land { fill: var(--space); }
.curves .lab-pop { fill: var(--sea-ink); font-size: 16px; font-weight: 650; }
.curves .lab-land { fill: var(--space-ink); font-size: 16px; font-weight: 650; }
.legend { list-style: none; padding: 0; margin: 0 0 0.5rem; font: 600 0.95rem/1.4 var(--sans); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.legend li::before { content: ""; width: 1.4rem; height: 0.3rem; border-radius: 2px; background: var(--seaside); flex: none; }
.legend .l-land::before { background: var(--space); }
.legend .l-pop { color: var(--sea-ink); }
.legend .l-land { color: var(--space-ink); }
.curves .thr { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pac { max-width: 20rem; }
.pac rect.pac { fill: var(--ocean); stroke: var(--sea-ink); stroke-width: 1.5; }
.pac rect.land { fill: var(--space); opacity: 0.9; }
.pac .pl { fill: var(--sea-ink); font-size: 15px; font-weight: 650; }
.pac .ll { fill: #fff; font-size: 15px; font-weight: 650; }
:root[data-theme="dark"] .pac .ll { fill: #0e1016; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pac .ll { fill: #0e1016; } }

/* tables and lists */
.ctab { width: 100%; border-collapse: collapse; font: 400 0.95rem/1.35 var(--sans); margin: 1.2rem 0 1.4rem; }
.ctab caption { text-align: left; font-weight: 650; margin-bottom: 0.5rem; }
.ctab th, .ctab td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--rule); text-align: left; }
.ctab td { text-align: right; }
.ctab thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.ctab thead th:not(:first-child) { text-align: right; }
.ctab tr.me th, .ctab tr.me td { font-weight: 700; color: var(--space-ink); }
.ctab tr.world th, .ctab tr.world td { font-style: italic; }
.uats { list-style: none; padding: 0; margin: 0.8rem 0; font: 400 0.95rem/1.35 var(--sans); columns: 2 17rem; column-gap: 2rem; }
.uats li { display: flex; gap: 0.4rem; align-items: baseline; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.uats .un { font-weight: 650; }
.uats .ut { color: var(--muted); font-size: 0.85rem; flex: 1; }
.uats .ud { white-space: nowrap; }
.more { margin: 0.4rem 0 1rem; }

/* share */
.share { padding-top: 2rem; }
.share-row { display: flex; flex-wrap: nowrap; gap: 0.35rem; align-items: center; }
.share-row .lab { font: 400 0.95rem/1 var(--sans); color: var(--muted); margin-right: 0.3rem; }
.share-row a, .share-row button { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.share-row a:hover, .share-row button:hover, .share-row a:focus-visible, .share-row button:focus-visible { color: var(--accent); border-color: var(--accent); }
.share-row [hidden] { display: none; }
@media (pointer: coarse) { .share-row a, .share-row button { width: 2.75rem; height: 2.75rem; } }
.share-status { font: 400 0.92rem/1.3 var(--sans); color: var(--muted); min-height: 1.2em; margin: 0.4rem 0 0; }

/* footer, sources */
.foot { max-width: 40rem; margin: 4rem auto 0; padding: 1.5rem 1rem 5rem; border-top: 1px solid var(--rule); font: 400 0.9rem/1.5 var(--sans); color: var(--muted); }
.sources .srcs { font: 400 0.92rem/1.5 var(--sans); padding-left: 1.1rem; }
.sources .srcs li { margin-bottom: 0.45rem; }
.sources .method { font-size: 1rem; }
.related { padding-left: 1.1rem; }
.stamp { font: 400 0.85rem/1.4 var(--sans); color: var(--muted); }
@media print { .topbar, .rail, .share, .ask { display: none; } }
