:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1d1a22;
  --muted: #6d6875;
  --line: #e9e4ee;
  --shadow: 0 1px 2px rgb(30 20 40 / .05), 0 8px 24px -12px rgb(30 20 40 / .18);
  --L: 0.66;   /* accent lightness  */
  --C: 0.14;   /* accent chroma     */
  --tint: 0.96;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14121a;
    --surface: #1d1a25;
    --ink: #f1edf5;
    --muted: #a29cab;
    --line: #2e2a38;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .7);
    --L: 0.76;
    --C: 0.13;
    --tint: 0.26;
  }
}
:root[data-theme="dark"] {
  --bg: #14121a; --surface: #1d1a25; --ink: #f1edf5; --muted: #a29cab; --line: #2e2a38;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .7);
  --L: 0.76; --C: 0.13; --tint: 0.26;
}

* { box-sizing: border-box; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; background-color: var(--bg); }
body { min-height: 100vh; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--ground, none);
  background-repeat: repeat-y;
  background-position: top center;
  transition: background-color .4s;
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  overflow-x: hidden;
}

/* soft rainbow wash at the top of the page */
.aurora {
  position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 10%, oklch(var(--L) var(--C) 20  / .22), transparent 70%),
    radial-gradient(35% 55% at 40% 0%,  oklch(var(--L) var(--C) 85  / .18), transparent 70%),
    radial-gradient(35% 55% at 62% 5%,  oklch(var(--L) var(--C) 160 / .16), transparent 70%),
    radial-gradient(40% 60% at 88% 12%, oklch(var(--L) var(--C) 290 / .22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────────── */
.hero { text-align: center; padding: 72px 16px 28px; }
.eyebrow {
  margin: 0 0 6px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0; font: 600 clamp(40px, 8vw, 68px)/1.05 var(--serif); letter-spacing: -.02em;
  background: linear-gradient(90deg,
    oklch(var(--L) .16 20), oklch(var(--L) .15 70), oklch(var(--L) .14 150),
    oklch(var(--L) .14 230), oklch(var(--L) .15 300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 10px 0 0; color: var(--muted); font-size: 18px; font-weight: 300; }

.links { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.links a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  transition: border-color .2s, transform .2s;
}
.links a:hover { border-color: var(--muted); transform: translateY(-1px); }

.next {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 10px 18px; border-radius: 14px; font-size: 15px;
  background: var(--surface); box-shadow: var(--shadow);
}
.next .dot {
  width: 16px; height: 19px; flex: none;
  fill: oklch(var(--L) var(--C) var(--h)); color: oklch(var(--L) var(--C) var(--h));
}
.stats { margin: 6px 0 0; font-size: 14px; color: var(--muted); letter-spacing: .02em; }

.foot-paw { width: 14px; height: 17px; vertical-align: -2px; margin-right: 4px; fill: var(--muted); color: var(--muted); }
.next strong { font-weight: 600; }
.next .muted { color: var(--muted); }

/* ── Filters ──────────────────────────────────────────── */
main { max-width: 920px; margin: 0 auto; padding: 0 16px 40px; }
.filters {
  display: flex; justify-content: center; gap: 4px; margin: 18px auto 40px;
  padding: 4px; width: max-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
}
.filters button {
  font: 500 14px var(--sans); color: var(--muted); background: none; border: 0;
  padding: 7px 16px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s;
}
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* ── Timeline ─────────────────────────────────────────── */
.timeline {
  --spine: var(--line);
  position: relative; list-style: none; margin: 0; padding: 0;
}
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px;
  transform: translateX(-50%); border-radius: 2px; background: var(--spine); opacity: .75;
}

.year {
  position: relative; display: flex; justify-content: center; margin: 8px 0 28px;
}
.year span {
  position: relative; font: 600 15px var(--serif); letter-spacing: .04em;
  padding: 4px 14px; border-radius: 99px; background: var(--bg);
  border: 1px solid var(--line); color: var(--muted);
}

.event {
  --hue: oklch(var(--L) var(--C) var(--h));
  position: relative; width: 50%; padding: 0 36px 34px 0;
  opacity: 0; transform: translateY(12px);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 60ms);
}
.event:nth-child(even of .event) { margin-left: 50%; padding: 0 0 34px 36px; }

.node {                   /* wolf track on the spine, walking forward through time */
  position: absolute; top: 12px; right: -13px; width: 26px; height: 31px;
  fill: var(--hue); color: var(--hue);
  filter: drop-shadow(0 0 0 var(--bg)) drop-shadow(0 0 3px var(--bg));
}
.event:nth-child(even of .event) .node { right: auto; left: -13px; }

.card {
  position: relative; background: var(--surface); border-radius: 16px; padding: 18px 20px 16px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card::before {           /* accent stripe */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--hue);
}
.card:hover { transform: translateY(-2px); }

.when {
  display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 500;
  padding: 3px 10px; border-radius: 99px; letter-spacing: .02em;
  background: oklch(var(--tint) calc(var(--C) * .35) var(--h));
  color: oklch(from var(--hue) calc(l - .22) c h);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when { color: var(--hue); }
}
:root[data-theme="dark"] .when { color: var(--hue); }

.card h3 { margin: 10px 0 2px; font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--hue); text-underline-offset: 3px; }
.place { margin: 0; color: var(--muted); font-size: 15px; }
.note { margin: 8px 0 0; font-size: 14.5px; }

.meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.status { font-size: 12.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.suiting   { color: oklch(from var(--hue) calc(l - .12) c h); }
.status.staff     { color: var(--ink); }
.status.maybe::before { background: none; border: 1.5px dashed currentColor; width: 5px; height: 5px; }
.cal {
  font: 500 12.5px var(--sans); color: var(--muted); text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.cal:hover { color: var(--ink); border-color: var(--muted); }

.event.now .card { box-shadow: var(--shadow), 0 0 0 2px var(--hue); }
.event.past .card { opacity: .86; }
.event.past .card:hover { opacity: 1; }

.today { position: relative; display: flex; justify-content: center; margin: 4px 0 30px; }
.today::before {
  content: ""; position: absolute; top: 50%; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted), transparent); opacity: .5;
}
.today span {
  position: relative; font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; background: var(--ink); color: var(--bg);
}
.badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--hue);
}

.empty { text-align: center; color: var(--muted); }

footer { text-align: center; padding: 20px 16px 48px; color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
.seasons {
  display: inline-flex; gap: 2px; margin-top: 14px !important; padding: 3px;
  border-radius: 99px; background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
}
.seasons button {
  font: 500 12px var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 4px 10px; border-radius: 99px;
}
.seasons button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* keep text readable where it sits straight on the ground */
.eyebrow, .tagline, .stats, footer > p:first-child {
  text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg);
}

@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .event { animation: none; opacity: 1; transform: none; }
}

/* ── Phone: spine on the left ─────────────────────────── */
@media (max-width: 700px) {
  .hero { padding-top: 52px; }
  .timeline::before { left: 7px; transform: none; }
  .year { justify-content: flex-start; padding-left: 26px; }
  .event, .event:nth-child(even of .event) { width: 100%; margin-left: 0; padding: 0 0 24px 30px; }
  .event .node, .event:nth-child(even of .event) .node { left: -5px; right: auto; }
  .today { justify-content: flex-start; padding-left: 26px; }
  .today::before { left: 0; right: 30%; }
  .card h3 { font-size: 20px; }
}

/* darker grounds (mud): deepen the rainbow title and lift it off the ground */
:root[data-dim-ground] h1 {
  background-image: linear-gradient(90deg,
    oklch(.52 .16 20), oklch(.55 .15 70), oklch(.52 .14 150),
    oklch(.5 .14 230), oklch(.5 .15 300));
  filter: drop-shadow(0 0 14px rgb(255 246 232 / .55)) drop-shadow(0 0 2px rgb(255 246 232 / .5));
}
:root[data-dim-ground] .links a { background: color-mix(in oklab, var(--surface) 85%, transparent); }

/* ── December lights ──────────────────────────────────── */
.lights { position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.lights svg { display: block; overflow: visible; }
.lights .lit  { animation: bulb ease-in-out infinite; }
.lights .glow { animation: glow ease-in-out infinite; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lights .lit, .lights .glow { animation: none; } }
:root[data-lights] .hero { padding-top: 116px; }
@media (max-width: 700px) { :root[data-lights] .hero { padding-top: 92px; } }
