@font-face { font-family: Cormorant; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-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: Cormorant; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-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: Cormorant; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/cormorant-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: Cormorant; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/cormorant-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: Newsreader; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/newsreader-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: Newsreader; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/newsreader-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: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/IBMPlexSans-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: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/IBMPlexSans-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; }

:root {
  --bg: #060912; --bg2: #0b1020; --ink: #e6e9f2; --ink2: #aab2c8; --mute: #7a849c; --rule: rgba(200, 210, 235, .14);
  --year: #ffce8c; --gold: #ffc45c; --red: #ff9d7a; --field: rgba(255, 255, 255, .06); --fieldb: rgba(255, 255, 255, .18);
  --serif: Newsreader, Georgia, serif; --display: Cormorant, 'Cormorant Garamond', Georgia, serif; --sans: 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #eef1f5; --bg2: #e3e8ef; --ink: #182033; --ink2: #3c465e; --mute: #5d677f; --rule: rgba(24, 32, 51, .16);
  --year: #801820; --gold: #8a5a06; --red: #801820; --field: rgba(255, 255, 255, .7); --fieldb: rgba(24, 32, 51, .25);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.62 var(--serif); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--year); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
b, strong { font-weight: 600; }

/* top bar */
.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: calc(10px + var(--inset-top, 0px)) 16px 10px; font: 500 13px var(--sans); color: var(--ink2); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar { transition: background .3s; }
body.past-hero .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.topbar .home { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.topbar .spacer { flex: 1; }
.topbar .lang { text-decoration: none; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--ink); cursor: pointer; }

/* hero sky */
.hero { position: relative; }
.sky-wrap { position: relative; height: 100vh; height: var(--stable-vh, 100svh); min-height: 560px; overflow: hidden; background: #05070e; }
:root[data-theme='light'] .sky-wrap { background: #eef1f5; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#sky:active { cursor: grabbing; }
.sky-wrap::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; width: min(900px, 100%); height: 70%; pointer-events: none; background: radial-gradient(ellipse 70% 75% at 18% 30%, rgba(4, 6, 14, .62), rgba(4, 6, 14, 0) 72%); }
:root[data-theme='light'] .sky-wrap::before { background: radial-gradient(ellipse 70% 75% at 18% 30%, rgba(238, 241, 245, .75), rgba(238, 241, 245, 0) 72%); }
.intro { z-index: 2; position: absolute; left: max(16px, 4vw); top: calc(72px + var(--inset-top, 0px)); max-width: min(620px, 92vw); pointer-events: none; }
.kicker { font: 500 12.5px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin: 0 0 12px; }
h1 { text-wrap: balance; font: italic 500 clamp(46px, 7.4vw, 104px)/.92 var(--display); margin: 0 0 18px; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
:root[data-theme='light'] h1 { text-shadow: 0 1px 18px rgba(238, 241, 245, .9); }
.deck { font: 400 clamp(17px, 1.6vw, 21px)/1.5 var(--serif); margin: 0; color: var(--ink); max-width: 33em; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
:root[data-theme='light'] .deck { text-shadow: 0 0 12px rgba(238, 241, 245, 1), 0 0 4px rgba(238, 241, 245, 1); }
.deck .yr-btn { pointer-events: auto; cursor: pointer; border-bottom: 1px dotted currentColor; }
.deck .yr-btn:hover { text-shadow: 0 0 12px var(--year); }
.deck [data-yr], .note [data-yr], .body p [data-yr] { font: italic 500 1.22em/1 var(--display); color: var(--year); }
.front { z-index: 2; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(150px + var(--inset-bottom, 0px)); margin: 0; font: italic 500 clamp(22px, 2.6vw, 32px)/1.2 var(--display); color: var(--year); text-align: center; pointer-events: none; text-shadow: 0 1px 14px rgba(0, 0, 0, .9); white-space: nowrap; transition: opacity 1.2s; }
:root[data-theme='light'] .front { text-shadow: 0 0 10px #eef1f5; }
.front.done { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink2); opacity: .9; white-space: normal; width: min(92vw, 640px); }
.tools { z-index: 3; position: absolute; left: 0; right: 0; bottom: 0; padding: 14px max(16px, 4vw) calc(16px + var(--inset-bottom, 0px)); display: grid; grid-template-columns: auto 1fr auto; gap: 6px 22px; align-items: center; font: 400 13px/1.4 var(--sans); color: var(--ink2); background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent), transparent); }
.find { display: flex; align-items: center; gap: 8px; }
.find label { font-weight: 500; color: var(--ink); }
.find input, .bday input { font: 400 15px var(--sans); color: var(--ink); background: var(--field); border: 1px solid var(--fieldb); border-radius: 8px; padding: 8px 10px; width: 210px; min-height: 40px; }
button { font: 500 14px var(--sans); color: var(--bg); background: var(--gold); border: 0; border-radius: 8px; padding: 9px 14px; min-height: 40px; cursor: pointer; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--fieldb); }
button.link { background: none; color: var(--ink2); padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; font-size: inherit; }
.when { margin: 0; }
.hint { margin: 0; text-align: right; }
.msg { grid-column: 1 / -1; margin: 0; color: var(--year); min-height: 0; }
.msg:empty { display: none; }
.nocanvas { display: none; position: absolute; inset: 40% 16px auto; text-align: center; }
.nosky .nocanvas { display: block; }
.nosky #sky, .nosky .tools, .nosky .front { display: none; }

/* star card */
.card { z-index: 4; position: absolute; right: max(16px, 3vw); top: calc(70px + var(--inset-top, 0px)); width: min(340px, calc(100vw - 32px)); padding: 18px 20px 16px; border-radius: 14px; background: color-mix(in srgb, var(--bg2) 90%, transparent); border: 1px solid var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 400 15px/1.5 var(--serif); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.card h3 { font: italic 500 32px/1 var(--display); margin: 2px 0 6px; }
.card p { margin: 6px 0; }
.card .c-k { font: 500 12.5px var(--sans); letter-spacing: .02em; color: var(--ink2); margin: 0; }
.card .c-y { margin: 2px 0 8px; }
.card .yr { font: italic 500 40px/1 var(--display); color: var(--year); }
.card .pm { font: 400 13px var(--sans); color: var(--ink2); white-space: nowrap; }
.card .c-ev { padding: 8px 0 8px 12px; border-left: 2px solid var(--year); }
.card .c-ev span { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--year); }
.card .c-ev time { display: block; font: 400 12.5px var(--sans); color: var(--ink2); }
.card .c-f, .card .c-n { font-size: 14px; color: var(--ink2); }
.card .c-b { color: var(--gold); }
.card .x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; min-height: 0; padding: 0; background: none; color: var(--ink2); font-size: 22px; line-height: 1; }

/* article */
.body { max-width: 1120px; margin: 0 auto; padding: 72px 16px 40px; }
.body > section { margin: 0 auto 96px; }
.body > section > h2, .body > section > p, .body > section > .bday, .body > section > details, .method > *, .sources > * { max-width: 700px; margin-left: auto; margin-right: auto; }
h2 { font: italic 500 clamp(36px, 4.6vw, 58px)/1 var(--display); margin: 0 auto 18px; letter-spacing: -.005em; }
h3 { font: 600 15px/1.3 var(--sans); margin: 32px auto 6px; letter-spacing: .01em; }
.lede { font-size: 20px; }
.note { color: var(--ink2); }
.bday { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font: 500 14px var(--sans); }
.bday input { width: auto; font-size: 17px; }
.bday .priv { font-weight: 400; font-size: 12.5px; color: var(--mute); flex-basis: 100%; }
#you { max-width: 980px; margin: 26px auto 0; }
#you > p { max-width: 700px; margin-left: auto; margin-right: auto; }
.big { font: 400 23px/1.45 var(--serif); }
.big b { font: italic 600 1.35em/1 var(--display); color: var(--gold); }
#you-next b { color: var(--gold); font-weight: 600; }
.life { display: block; margin: 18px 0 8px; overflow: visible; font: 500 12px var(--sans); }
.life .axis { stroke: var(--rule); stroke-width: 2; }
.life .lived { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.life .tick { fill: var(--mute); font-size: 11px; text-anchor: middle; }
.life .tick.u { text-anchor: end; }
.life .ls line { stroke: var(--rule); }
.life .ls circle { fill: var(--ink2); }
.life .ls text { fill: var(--ink2); }
.life .ls.pass line { stroke: color-mix(in srgb, var(--gold) 55%, transparent); }
.life .ls.pass circle { fill: var(--gold); }
.life .ls.pass text { fill: var(--ink); }
.life .nowmark line { stroke: var(--gold); stroke-dasharray: 3 3; }
.life .nowmark text { fill: var(--gold); font-weight: 600; }
.share { max-width: 700px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--field); }
.share-line { flex-basis: 100%; margin: 0 0 6px; font: italic 500 24px/1.25 var(--display); color: var(--gold); }
#share-status { font: 400 13px var(--sans); color: var(--ink2); }
.strip-wrap { margin: 28px 0 0; position: relative; }
#strip { display: block; width: 100%; }
.pick { max-width: 700px; margin: 12px auto 0; font: 400 15px/1.5 var(--sans); color: var(--ink2); min-height: 1.5em; position: sticky; bottom: 12px; }
.pick:not(:empty) { background: color-mix(in srgb, var(--bg2) 94%, transparent); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; color: var(--ink); }
.far { display: block; margin: 26px 0 0; font: 500 12px var(--sans); }
.far .grid { stroke: var(--rule); }
.far .tick { fill: var(--mute); text-anchor: middle; font-size: 11px; }
.far .ev { stroke: var(--year); stroke-opacity: .35; stroke-dasharray: 2 3; }
.far .evt { fill: var(--year); font: italic 500 15px var(--display); }
.far .nm { fill: var(--ink); font-size: 12.5px; }
.far .fr { cursor: pointer; }
.far stop { stop-color: var(--year); }
.far .hit { fill: transparent; }
.far .fr:hover .hit, .far .fr:focus .hit { fill: var(--field); }
.far .fr circle { fill: var(--ink); }
.far .fr:hover .nm { fill: var(--year); }
details { margin-top: 18px; }
summary { cursor: pointer; font: 500 15px var(--sans); color: var(--ink); padding: 10px 0; }
.tbl { max-height: 70vh; overflow: auto; border: 1px solid var(--rule); border-radius: 10px; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font: 400 13.5px/1.35 var(--sans); }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--rule); }
th { position: sticky; top: 0; background: var(--bg2); font-weight: 600; }
td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .nr { color: var(--mute); }
.method p, .sources li { font-size: 16.5px; }
.sources ul { padding-left: 18px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.sources .evs li { font-size: 14px; }

/* rail and footer */
.rail { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .4s; }
body.past-hero .rail { opacity: 1; }
.rail a { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink2); opacity: .45; position: relative; }
.rail a span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 12px var(--sans); opacity: 0; pointer-events: none; background: var(--bg2); padding: 3px 8px; border-radius: 6px; }
.rail a:hover span, .rail a:focus span { opacity: 1; }
footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 30px 16px calc(40px + var(--inset-bottom, 0px)); font: 400 13px var(--sans); color: var(--mute); border-top: 1px solid var(--rule); }
.nf main { max-width: 640px; margin: 20vh auto; padding: 0 16px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .sky-wrap { min-height: 600px; }
  .intro { top: calc(58px + var(--inset-top, 0px)); }
  .kicker { font-size: 11px; margin-bottom: 8px; }
  h1 { margin-bottom: 12px; }
  .deck { font-size: 16px; }
  .front { bottom: calc(176px + var(--inset-bottom, 0px)); font-size: 21px; }
  .tools { grid-template-columns: 1fr; gap: 8px; padding-top: 30px; }
  .find input { flex: 1; width: auto; min-width: 0; }
  .find label { display: none; }
  .hint { text-align: left; display: none; }
  .card { top: auto; bottom: calc(10px + var(--inset-bottom, 0px)); right: 8px; left: 8px; width: auto; max-height: 58%; overflow: auto; z-index: 5; }
  .rail { display: none; }
  .big { font-size: 20px; }
  .share-line { font-size: 21px; }
  .body > section { margin-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
