/* Life in Dates. One font (Epilogue), deep teal night bands on paper, one amber signal colour. Mobile first.
   Layout: dark hero band, paper sections, a dark "space" band for planets, a dark closing band. */
/* Epilogue (SIL Open Font License), served from this site: no request to Google */
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/epilogue-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Epilogue'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/epilogue-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; }
:root {
  --paper: #f3f6f4;
  --card: #ffffff;
  --ink: #06525c;
  --text: #0c3a40;
  --muted: #3b6b72;
  --line: #d6e1de;
  --tint: #e6eeeb;
  --night: #042a2e;
  --night-2: #08373c;
  --night-ink: #eef5f3;
  --night-muted: #a3c6c8;
  --night-line: #1b4e54;
  --amber: #f0a43a;
  --amber-soft: #fcefd9;
  --amber-ink: #2b1a02;
  --grid-lived: var(--ink);
  --grid-left: #d3e0dc;
  --now: var(--amber);
  --font: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 20px;
  --r: 22px;
  --r-s: 14px;
  --nav: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gut: 40px; --nav: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw + 20px, 88px); letter-spacing: -0.05em; line-height: .98; }
h2 { font-size: clamp(30px, 2.2vw + 22px, 52px); letter-spacing: -0.045em; }
h3, .h3 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
p { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sub { color: var(--text); font-size: 17px; max-width: 36em; margin-top: 14px; }

/* dark bands: every colour below follows these */
.band { background: var(--night); color: var(--night-ink); --grid-lived: var(--night-ink); --grid-left: #15474d; position: relative; overflow: hidden; }
.band h1, .band h2, .band h3 { color: var(--night-ink); }
.band .sub, .band .hint, .band .lead { color: var(--night-muted); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--nav); background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--night-ink); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.top__nav > a:not(.btn) { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); padding-block: 12px; }
.top__nav > a:not(.btn):hover { background-size: 100% 1px; }
@media (max-width: 420px) { .top__nav > a:not(.btn) { display: none; } }
.skip-link { position: absolute; left: var(--gut); top: -60px; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip-link:focus { top: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; min-height: 44px; }
.logo__mark { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.logo__mark i { width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.logo__mark i:last-child { background: var(--amber); }

/* ---------------------------------------------------------------- buttons */
.btn { --bh: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 24px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgb(4 42 46 / .7); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--share:hover svg { transform: translateY(-2px); }
.btn--small { --bh: 44px; padding: 0 18px; font-size: 15px; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { box-shadow: 0 12px 28px -12px rgb(240 164 58 / .8); }
.btn--line { background: transparent; color: currentColor; border-color: color-mix(in srgb, currentColor 40%, transparent); --bh: 46px; font-size: 15px; padding: 0 18px; }
.btn--line:hover { border-color: currentColor; box-shadow: none; }
.top .btn { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.link { color: var(--muted); font-size: 15px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.link:hover { color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sec :focus-visible { outline-color: var(--ink); }

/* ---------------------------------------------------------------- forms */
.date-form, .couple-form { display: grid; gap: 10px; max-width: 560px; }
label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="date"] { flex: 1 1 210px; min-width: 0; min-height: 56px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); font: 500 18px var(--font); appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s; }
input[type="date"]:hover { border-color: var(--muted); }
input[type="date"]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgb(6 82 92 / .14); }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.date-form .btn { --bh: 56px; }
.date-form--dark label { color: var(--night-muted); }
.date-form--dark input[type="date"] { background: var(--night-2); border-color: var(--night-line); color: var(--night-ink); color-scheme: dark; }
.date-form--dark input[type="date"]:hover { border-color: var(--night-muted); }
.date-form--dark input[type="date"]:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgb(240 164 58 / .2); }
@media (max-width: 520px) { .field-row .btn { flex: 1 1 100%; } }
.field-error { color: #b23a26; font-size: 14px; }
.band .field-error { color: #ffb4a3; }
.hint { font-size: 14px; color: var(--text); }

/* ---------------------------------------------------------------- the one entrance on load */
.js [data-enter] .wrap > * > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ready [data-enter] .wrap > * > * { opacity: 1; transform: none; }
.ready [data-enter] .wrap > * > *:nth-child(2) { transition-delay: .08s; }
.ready [data-enter] .wrap > * > *:nth-child(3) { transition-delay: .16s; }
.ready [data-enter] .wrap > * > *:nth-child(n+4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js [data-enter] .wrap > * > * { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- home hero */
.hero { padding-block: 40px 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 30%, rgb(240 164 58 / .16), transparent 70%), radial-gradient(50% 60% at 10% 100%, rgb(64 160 168 / .18), transparent 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; gap: 48px; align-items: center; }
.hero__text { display: grid; gap: 24px; }
.hero h1 { max-width: 9.5em; }
.lead { font-size: 18px; line-height: 1.55; max-width: 32em; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); }
.band .eyebrow { color: var(--night-muted); }
.eyebrow--pill { justify-self: start; border: 1px solid var(--night-line); background: var(--night-2); border-radius: 99px; padding: 6px 14px; }
@media (min-width: 980px) {
  .hero { min-height: calc(100svh - var(--nav)); display: grid; align-items: center; padding-block: 56px 72px; }
  .hero__in { grid-template-columns: 1.05fr .95fr; gap: 72px; }
}
.hero__visual { position: relative; padding: 8px 0 0; }
.demo { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); padding: 22px; max-width: 440px; margin-inline: auto; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.demo__head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.demo__n { font-size: 64px; font-weight: 300; letter-spacing: -0.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.demo__l { color: var(--night-muted); font-size: 14px; line-height: 1.35; }
.chip { display: grid; gap: 2px; background: var(--card); color: var(--text); border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55); font-size: 13px; line-height: 1.25; }
.chip b { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.chip span { color: var(--muted); }
.chip--b { background: var(--amber); }
.chip--b b, .chip--b span { color: var(--amber-ink); }
@media (max-width: 979px) {
  .hero__visual { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
  .demo { grid-column: 1 / -1; width: 100%; }
  .chip--c { display: none; }
}
@media (min-width: 980px) {
  .chip { position: absolute; animation: float 6s ease-in-out infinite; }
  .chip--a { left: -20px; top: 18%; }
  .chip--b { right: -18px; top: 44%; animation-delay: -2s; }
  .chip--c { left: 2%; bottom: -14px; animation-delay: -4s; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* ---------------------------------------------------------------- sections */
.sec { padding-block: 64px; }
@media (min-width: 980px) { .sec { padding-block: 112px; } }

.bento { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.bento__item { background: var(--card); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; overflow: hidden; position: relative; box-shadow: 0 1px 0 var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.bento__item:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 24px 40px -30px rgb(4 42 46 / .5); }
.bento__item p { max-width: 26em; }
.bento__item--wide { grid-column: 1 / -1; }
@media (min-width: 980px) { .bento__item--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; } .bento__item--wide .bento__text { flex: 0 0 240px; } }
.bento__item--dark, .bento__item--space { background: var(--night); color: var(--night-ink); --grid-lived: var(--night-ink); --grid-left: #15474d; }
.bento__item--dark h3, .bento__item--space h3 { color: var(--night-ink); }
.bento__item--dark p, .bento__item--space p { color: var(--night-muted); }
.bento__item--amber { background: var(--amber); }
.bento__item--amber h3, .bento__item--amber p { color: var(--amber-ink); }
.weeks__canvas--mini { width: 100%; margin-top: 14px; }
.bento__orbit { margin: 8px auto -70px; width: min(330px, 100%); }
.bento__center { margin: auto; padding-top: 16px; }
.bento__year { font-size: 104px; font-weight: 300; letter-spacing: -0.07em; line-height: .9; margin-top: auto; color: var(--amber-ink); }
.bento__fact { font-weight: 500; }
.mini-tl { list-style: none; margin: auto 0 0; padding: 0; display: grid; font-size: 14px; }
.mini-tl li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0 11px 22px; border-top: 1px solid var(--line); position: relative; }
.mini-tl li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: var(--ink); }
.mini-tl .is-past { color: var(--muted); }
.mini-tl .is-past::before { background: var(--line); }
.mini-tl .is-next { color: var(--ink); font-weight: 600; }
.mini-tl .is-next::before { background: var(--amber); box-shadow: 0 0 0 4px rgb(240 164 58 / .25); }
.mini-cd { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-cd span { background: var(--tint); border-radius: 12px; padding: 14px 8px; text-align: center; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.mini-cd b { font-size: 32px; font-weight: 400; letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }

.ex-grid { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 768px) { .ex-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.ex { display: grid; gap: 6px; padding: 26px; background: var(--card); border-radius: var(--r); text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.ex:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 24px 40px -30px rgb(4 42 46 / .5); }
.ex__y { font-size: 72px; font-weight: 300; letter-spacing: -0.07em; line-height: .9; color: var(--ink); margin-bottom: 14px; }
.ex__date { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.ex__note { color: var(--muted); font-size: 15px; }
.ex__bar { height: 8px; border-radius: 99px; background: var(--tint); margin-top: 18px; overflow: hidden; }
.ex__bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.ex__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); font-weight: 500; }

.faq { max-width: 780px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 19px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; max-width: 40em; }

.band--close { padding-block: 72px; }
.band--close::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgb(240 164 58 / .14), transparent 70%); pointer-events: none; }
.close { position: relative; display: grid; gap: 8px; }
.close .date-form { margin-top: 24px; }
@media (min-width: 980px) { .band--close { padding-block: 112px; } }

/* ---------------------------------------------------------------- born page: hero */
.born-hero { padding-block: 36px 56px; }
.born-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 45% at 90% 15%, rgb(240 164 58 / .14), transparent 70%); pointer-events: none; }
.born-hero__in { position: relative; display: grid; gap: 40px; }
.born-hero__text { display: grid; gap: 18px; align-content: start; }
.born-hero h1 { font-size: clamp(30px, 2.4vw + 22px, 52px); letter-spacing: -0.045em; }
.mega { display: grid; gap: 10px; margin-top: 8px; }
.mega__n { font-size: clamp(96px, 13vw + 30px, 188px); font-weight: 300; letter-spacing: -0.075em; line-height: .82; font-variant-numeric: tabular-nums; margin-left: -.04em; }
.mega__u { font-size: 18px; color: var(--night-muted); max-width: 26em; line-height: 1.45; }
.hstats { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hstats > div { padding: 14px 0; border-top: 1px solid var(--night-line); display: grid; gap: 4px; }
.hstats dt { font-size: 13px; color: var(--night-muted); }
.hstats dd { margin: 0; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hstats small { font-size: 15px; color: var(--night-muted); margin-left: 1px; }
.born-hero__share { margin-top: 6px; }
@media (min-width: 980px) {
  .born-hero { padding-block: 64px 88px; }
  .born-hero__in { grid-template-columns: 1fr minmax(0, 520px); gap: 72px; align-items: start; }
  .hstats { grid-template-columns: repeat(4, auto); }
}
.weeks { margin: 0; display: grid; gap: 14px; }
.weeks__frame { position: relative; padding-left: 24px; }
.weeks__axis { position: absolute; left: 0; top: 0; bottom: 0; display: grid; grid-template-rows: repeat(9, 1fr) 0; font-size: 10px; color: var(--night-muted); line-height: 1; font-variant-numeric: tabular-nums; }
.weeks__canvas { width: 100%; }
.weeks__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--night-muted); padding-left: 24px; }
.weeks__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sw--lived { background: var(--grid-lived); } .sw--now { background: var(--now); } .sw--left { background: var(--grid-left); }

/* ---------------------------------------------------------------- milestones */
.split { display: grid; gap: 40px; }
.split__lead { display: grid; gap: 24px; align-content: start; justify-items: start; color: var(--ink); }
@media (min-width: 980px) { .split { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } .split__lead { position: sticky; top: calc(var(--nav) + 32px); } }
.next { display: grid; gap: 4px; background: var(--amber); color: var(--amber-ink); border-radius: var(--r); padding: 24px 26px; width: 100%; max-width: 440px; }
.next__k { font-size: 13px; font-weight: 600; }
.next__v { font-size: clamp(34px, 2vw + 26px, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin-block: 6px 8px; }
.next__d { font-size: 17px; }
.next__in { font-size: 15px; }

.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 91px; top: 26px; bottom: 26px; width: 2px; background: var(--line); }
.tl__item { display: grid; grid-template-columns: 64px 28px 1fr; gap: 0 14px; align-items: center; padding: 8px 0; position: relative; }
.tl__age { font-size: 22px; letter-spacing: -0.04em; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.tl__age small { font-size: 12px; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.tl__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); justify-self: center; position: relative; z-index: 1; }
.tl__body { display: grid; gap: 2px; background: var(--card); border-radius: var(--r-s); padding: 14px 18px; box-shadow: 0 1px 0 var(--line); min-width: 0; }
.tl__label { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.tl__date { font-size: 14px; color: var(--muted); }
.tl__item--past .tl__dot { background: var(--ink); }
.tl__item--past .tl__body { background: transparent; box-shadow: none; }
.tl__item--past .tl__label, .tl__item--past .tl__age { color: var(--muted); }
.tl__item--now .tl__dot { background: var(--night); border-color: var(--night); width: 18px; height: 18px; }
.tl__item--now .tl__body { background: var(--night); box-shadow: none; }
.tl__item--now .tl__label { color: var(--night-ink); }
.tl__item--now .tl__date { color: var(--night-muted); }
.tl__item--next .tl__dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgb(240 164 58 / .25); }
.tl__item--next .tl__body { box-shadow: 0 0 0 2px var(--amber); }
@media (max-width: 400px) { .tl__item { grid-template-columns: 52px 22px 1fr; gap: 0 10px; } .tl::before { left: 72px; } .tl__age { font-size: 19px; } }

/* ---------------------------------------------------------------- planets */
.band--space { padding-block: 64px; background: radial-gradient(70% 60% at 30% 40%, #0b4148 0%, var(--night) 70%); }
.band--space::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 88% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 34% 82%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 40%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 6% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 46% 6%, #fff 50%, transparent 51%); }
.orbit-grid { position: relative; display: grid; gap: 32px; }
.orbit-list { display: grid; justify-items: start; }
@media (min-width: 980px) {
  .band--space { padding-block: 112px; }
  .orbit-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "orbit head" "orbit list"; column-gap: 72px; row-gap: 28px; align-items: start; }
  .orbit-head { grid-area: head; align-self: end; } .orbit-wrap { grid-area: orbit; align-self: center; } .orbit-list { grid-area: list; }
}
.orbit-wrap { width: min(480px, 100%); margin-inline: auto; }
.orb__ring { fill: none; stroke: rgb(238 245 243 / .14); stroke-width: 1; }
.orb__arc { fill: none; stroke-width: 2.5; stroke-linecap: round; opacity: .65; }
.orb__sun { fill: var(--amber); }
.orb__glow { fill: var(--amber); opacity: .18; }
.orb__dot--mercury { fill: #b8c4c6; } .orb__arc--mercury { stroke: #b8c4c6; }
.orb__dot--venus { fill: #e8c47c; } .orb__arc--venus { stroke: #e8c47c; }
.orb__dot--earth { fill: #5fb3e0; } .orb__arc--earth { stroke: #5fb3e0; }
.orb__dot--mars { fill: #e0714a; } .orb__arc--mars { stroke: #e0714a; }
.orb__dot--jupiter { fill: #d9ab7e; } .orb__arc--jupiter { stroke: #d9ab7e; }
.orb__dot--saturn { fill: #e6cf98; } .orb__arc--saturn { stroke: #e6cf98; }
.orb__dot--uranus { fill: #8fd6da; } .orb__arc--uranus { stroke: #8fd6da; }
.orb__dot--neptune { fill: #6f8ee0; } .orb__arc--neptune { stroke: #6f8ee0; }
.pl-list { list-style: none; margin: 0 0 24px; padding: 0; width: 100%; }
.pl { display: grid; grid-template-columns: 12px 1fr auto; gap: 0 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--night-line); }
.pl__dot { width: 11px; height: 11px; border-radius: 50%; grid-row: span 2; }
.pl__dot--mercury { background: #b8c4c6; } .pl__dot--venus { background: #e8c47c; } .pl__dot--earth { background: #5fb3e0; } .pl__dot--mars { background: #e0714a; }
.pl__dot--jupiter { background: #d9ab7e; } .pl__dot--saturn { background: #e6cf98; } .pl__dot--uranus { background: #8fd6da; } .pl__dot--neptune { background: #6f8ee0; }
.pl__name { font-weight: 500; }
.pl__next { grid-column: 2; font-size: 13px; color: var(--night-muted); }
.pl__age { grid-column: 3; grid-row: 1 / span 2; font-size: 30px; font-weight: 300; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.pl--earth .pl__name::after { content: " · home"; color: var(--night-muted); font-weight: 400; }

/* ---------------------------------------------------------------- birthday and couples */
.duo { display: grid; gap: 16px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 20px; } }
.card { background: var(--card); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 1px 0 var(--line); min-width: 0; }
@media (min-width: 768px) { .card { padding: 36px; } }
.card .h3 { font-size: 30px; letter-spacing: -0.04em; }
.card__sub { color: var(--muted); margin-top: -12px; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; color: var(--ink); }
.ring { position: relative; width: var(--size); height: var(--size); max-width: 100%; margin-inline: auto; }
.ring svg { width: 100%; height: 100%; }
.ring__bg { fill: none; stroke: var(--tint); }
.ring__fg { fill: none; stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring--amber .ring__fg { stroke: var(--amber); }
.ring__in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.ring__n { font-size: 46px; font-weight: 300; letter-spacing: -0.06em; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring__l { font-size: 13px; color: var(--muted); }
.ring__heart { font-size: 34px; color: var(--amber); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown > div { background: var(--tint); border-radius: var(--r-s); padding: 14px 4px; text-align: center; display: grid; gap: 4px; }
.cd__n { font-size: clamp(26px, 2vw + 18px, 36px); letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.cd__l { font-size: 13px; color: var(--muted); }
.kv { margin: 0; display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- history */
#history h2 { margin-bottom: 32px; }
.hist { display: grid; gap: 28px; }
.hist__loading { color: var(--muted); padding: 24px 0; }
.hist__day { background: var(--night); color: var(--night-ink); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; }
.hist__kicker { font-size: 14px; font-weight: 500; color: var(--amber); }
.hist__day ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.hist__day li { font-size: clamp(19px, .8vw + 16px, 26px); letter-spacing: -0.02em; line-height: 1.3; }
.hist__day--quiet p:last-child { color: var(--night-muted); font-size: 17px; }
@media (min-width: 768px) { .hist__day { padding: 40px; } }
.hist h3 { font-size: 20px; margin-bottom: 14px; }
.hist__cols { display: grid; gap: 36px; }
@media (min-width: 980px) { .hist__cols { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.years { list-style: none; margin: 0; padding: 0; }
.years li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.years__y { font-size: 30px; font-weight: 300; letter-spacing: -0.06em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people b { font-weight: 600; color: var(--ink); }
.people li > span:not(.avatar):not(.people__y) { display: grid; gap: 2px; min-width: 0; }
.people li > span > span { color: var(--muted); font-size: 14px; }
.people--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.people--cards li { background: var(--amber-soft); border-radius: var(--r-s); padding: 12px 14px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.people--list { gap: 0; }
.people--list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.people__y { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: block; background: var(--tint); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .35s var(--ease); }
a.avatar:hover img { transform: scale(1.06); }
.avatar--letter { display: grid; place-items: center; font-size: 22px; font-weight: 500; color: var(--ink); }
.years li { grid-template-columns: 76px 1fr auto; align-items: start; }
.years__img { width: 76px; display: block; align-self: start; }
.years__img img { width: 100%; height: auto; max-height: 76px; object-fit: contain; object-position: top; border-radius: 8px; transition: transform .35s var(--ease); }
.years__img:hover img { transform: scale(1.06); }
.feature { margin: 0 0 8px; position: relative; border-radius: var(--r); overflow: hidden; background: var(--night); color: var(--night-ink); }
.feature__img { display: grid; place-items: center; background: #021a1d; overflow: hidden; }
.feature__img img { width: 100%; height: auto; max-height: 440px; object-fit: contain; transition: transform .6s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.03); }
.feature figcaption { padding: 18px 22px 22px; display: grid; gap: 8px; }
.feature__y { font-size: 56px; font-weight: 300; letter-spacing: -0.07em; line-height: .9; }
.feature__t { font-size: 16px; line-height: 1.4; color: var(--night-ink); }
.hist__day--photo { display: grid; gap: 20px; }
@media (min-width: 768px) { .hist__day--photo { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.hist__dayimg { display: grid; place-items: center; border-radius: var(--r-s); overflow: hidden; background: #021a1d; }
.hist__dayimg img { width: 100%; height: auto; max-height: 420px; object-fit: contain; transition: transform .6s var(--ease); }
.hist__dayimg:hover img { transform: scale(1.03); }
.hist__daytext { display: grid; gap: 14px; }
.credit { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- ad slots: fixed space, so nothing jumps */
.ad { display: grid; place-items: center; margin-block: 24px; border: 1px dashed #c3d3cf; border-radius: var(--r-s); font-size: 12px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(6 82 92 / .03) 10px 20px); }
.ad span { background: var(--paper); color: var(--muted); padding: 2px 8px; border-radius: 6px; }
.ad--banner { height: 100px; max-width: 728px; margin-inline: auto; }
@media (min-width: 768px) { .ad--banner { height: 90px; } }
.ad--rect { height: 250px; max-width: 336px; margin-inline: auto; }
@media (min-width: 900px) { .ad--rect { max-width: 728px; height: 90px; } }

/* ---------------------------------------------------------------- footer */
.foot { padding-block: 48px; background: var(--night-2); color: var(--night-ink); }
.foot__in { display: grid; gap: 14px; }
.foot p { color: var(--night-muted); font-size: 15px; max-width: 34em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
.foot__links a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- share modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgb(2 22 24 / .7); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__box { background: var(--paper); border-radius: var(--r); padding: 18px; width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; gap: 14px; animation: pop .25s var(--ease); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__x { width: 44px; height: 44px; border: 0; background: var(--tint); border-radius: 50%; font-size: 24px; color: var(--ink); cursor: pointer; }
.modal__img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-s); background: var(--tint); max-height: 58svh; object-fit: contain; }
.modal__actions { display: grid; gap: 8px; }
.modal__actions .btn--line { color: var(--ink); }
.modal__actions [hidden] { display: none; }
.loading { padding-block: 120px; color: var(--muted); }
@media (min-width: 980px) {
  .demo { max-width: 400px; }
  .chip--c { left: auto; right: 4%; bottom: 8%; }
  .bento__item--wide .weeks__canvas--mini { max-width: 420px; margin: 0 0 0 auto; }
}

/* ---------------------------------------------------------------- motion (each piece plays once in view; all rests under reduced motion) */
.orb__p { transform-box: view-box; transform-origin: 200px 200px; }
.orb__arc { stroke-dasharray: 1 1; }
.js [data-reveal] .orb__p { transform: rotate(calc(var(--a) * -1)); }
.js [data-reveal] .orb__arc { stroke-dashoffset: 1; }
.js [data-reveal].is-in .orb__p { transform: none; transition: transform 2.2s cubic-bezier(.22, .8, .2, 1) calc(var(--i) * 90ms); }
.js [data-reveal].is-in .orb__arc { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.22, .8, .2, 1) calc(var(--i) * 90ms); }
.orb__glow { animation: glow 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 50% { transform: scale(1.35); opacity: .08; } }
.orb--spin .orb__p { animation: spin var(--d) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.js [data-reveal] .ring__fg { stroke-dashoffset: var(--len); }
.js [data-reveal].is-in .ring__fg { stroke-dashoffset: var(--off); }
.js [data-reveal] .tl::before { transform: scaleY(0); transform-origin: top; }
.js [data-reveal].is-in .tl::before { transform: none; transition: transform 1.4s var(--ease); }
.js [data-reveal] .tl__dot { transform: scale(0); }
.js [data-reveal].is-in .tl__dot { transform: none; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.js [data-reveal].is-in .tl__item:nth-child(2) .tl__dot { transition-delay: .15s; }
.js [data-reveal].is-in .tl__item:nth-child(3) .tl__dot { transition-delay: .3s; }
.js [data-reveal].is-in .tl__item:nth-child(4) .tl__dot { transition-delay: .45s; }
.js [data-reveal].is-in .tl__item:nth-child(5) .tl__dot { transition-delay: .6s; }
.js [data-reveal].is-in .tl__item:nth-child(n+6) .tl__dot { transition-delay: .75s; }
.js [data-reveal] .ex__bar i { transform: scaleX(0); transform-origin: left; }
.js [data-reveal].is-in .ex__bar i { transform: none; transition: transform 1.4s var(--ease) .2s; }
.tl__item--next .tl__dot { animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgb(240 164 58 / .55); } 70%, 100% { box-shadow: 0 0 0 12px rgb(240 164 58 / 0); } }

.live { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--night-muted); font-variant-numeric: tabular-nums; }
.live span { color: var(--night-ink); font-weight: 500; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: beacon 2s ease-out infinite; }

.hero::before, .born-hero::before { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .orb__p, .js [data-reveal] .tl::before, .js [data-reveal] .tl__dot, .js [data-reveal] .ex__bar i { transform: none; transition: none; }
  .js [data-reveal] .orb__arc { stroke-dashoffset: 0; transition: none; }
  .js [data-reveal] .ring__fg { stroke-dashoffset: var(--off); }
  .orb--spin .orb__p, .orb__glow, .tl__item--next .tl__dot, .live i, .hero::before, .born-hero::before { animation: none; }
}
.ring__fg { stroke-dashoffset: var(--off); }

/* ---------------------------------------------------------------- about, privacy, terms, accessibility */
.doc-head { padding-block: 48px 56px; }
.doc-head h1 { font-size: clamp(36px, 3vw + 22px, 64px); }
.doc-head .lead { margin-top: 18px; }
.doc__body { max-width: calc(720px + 2 * var(--gut)); display: grid; gap: 14px; }
.doc__body h2 { font-size: 26px; margin-top: 22px; }
.doc__body p, .doc__body li { font-size: 17px; line-height: 1.65; }
.doc__body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc__body a { color: var(--ink); text-underline-offset: 3px; }
.doc__date { color: var(--muted); font-size: 14px !important; margin-top: 24px; }
.foot__links--small { font-size: 14px; color: var(--night-muted); }
.doc__body { grid-template-columns: minmax(0, 1fr); } .doc__body a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- on this day */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
#history .sec-head h2 { margin-bottom: 0; }
.more { color: var(--ink); font-weight: 500; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.otd-hero { padding-block: 40px 48px; }
.otd-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 90% 20%, rgb(240 164 58 / .15), transparent 70%); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.otd-hero .wrap > div { position: relative; display: grid; gap: 20px; }
.otd-hero h1 { max-width: 11em; }
.otd-hero__in { display: grid; gap: 28px; }
.otd-form { display: grid; gap: 10px; max-width: 520px; }
.otd-form label { color: var(--night-muted); font-size: 14px; font-weight: 500; }
.otd-form select { flex: 1 1 140px; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--night-line); background: var(--night-2); color: var(--night-ink); font: 500 18px var(--font); color-scheme: dark; }
.otd-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; font-weight: 500; position: relative; }
.otd-nav a { color: var(--night-ink); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.inline-link { color: var(--night-ink); text-underline-offset: 3px; }
.otd-cols { display: grid; gap: 32px; }
.otd-cols h2 { margin-bottom: 24px; }
@media (min-width: 980px) { .otd-cols:not(.otd-cols--ads) > div { max-width: 860px; } .otd-cols--ads { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } .otd-side { position: sticky; top: calc(var(--nav) + 24px); align-self: start; } }
.sec--tint { background: var(--tint); }
.sec--tint h2 { margin-bottom: 28px; }
.people--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.people--grid li { background: var(--card); border-radius: var(--r-s); box-shadow: 0 1px 0 var(--line); }
.people--grid li, .people__link { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.people--grid li:has(.people__link) { padding: 0; }
.people__link { text-decoration: none; color: inherit; border-radius: var(--r-s); transition: transform .2s var(--ease), box-shadow .2s; }
.people__link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgb(4 42 46 / .55); }
.decades { display: grid; gap: 10px; margin-top: 28px; }
.decade { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.decade__l { font-size: 15px; color: var(--muted); padding-top: 12px; }
.decade div { display: flex; flex-wrap: wrap; gap: 8px; }
.decade a { min-width: 64px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--card); box-shadow: 0 1px 0 var(--line); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.decade a:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }
#born-years .credit { margin-top: 32px; }
.months { display: grid; gap: 36px; }
@media (min-width: 768px) { .months { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }
@media (min-width: 1100px) { .months { grid-template-columns: repeat(3, 1fr); } }
.month h2 { margin-bottom: 14px; }
.month__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.month__days a { aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--card); box-shadow: 0 1px 0 var(--line); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.month__days a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.month__days a.is-today { background: var(--amber); color: var(--amber-ink); font-weight: 600; }
@media (min-width: 980px) { .otd-side .ad--rect { max-width: 300px; height: 250px; } }
.people--grid li:has(.people__link) { display: block; }
.people__link > span:not(.avatar):not(.people__y) { display: grid; gap: 2px; min-width: 0; } .people__link > span > span { color: var(--muted); font-size: 14px; }
