/* Lumen's public site: a dark gallery with one glowing window of light. Phone first. */
:root {
  --bg: #08080b;
  --bg-2: #0e0d12;
  --panel: #131218;
  --line: #24222b;
  --line-2: #34313d;
  --text: #f1ebe1;
  --soft: #d9d1c4;
  --muted: #9a9389;
  --faint: #6c665e;
  --warm: #ffb54a;
  --warm-2: #ffcf6b;
  --glow: #ffb54a;            /* set per piece from its palette */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  min-height: 100vh;
  background:
    radial-gradient(900px 620px at 50% -140px, color-mix(in srgb, var(--glow) 13%, transparent), transparent 70%),
    radial-gradient(1400px 900px at 50% 120%, #120f0b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--text-serif);
  transition: background-color 1.2s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--warm-2); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--panel); padding: 10px 14px; border-radius: 10px; z-index: 10; font-family: var(--sans); font-size: 14px; }
.skip:focus { top: 12px; }

/* --- Header --- */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
  font-family: var(--sans);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 21px/1 var(--serif); letter-spacing: .01em; }
.mark {
  width: 14px; height: 14px; border-radius: 3px;
  background:
    radial-gradient(circle at 25% 25%, var(--warm-2) 0 1.6px, transparent 2px),
    radial-gradient(circle at 75% 25%, var(--warm) 0 1.6px, transparent 2px),
    radial-gradient(circle at 25% 75%, var(--warm) 0 1.6px, transparent 2px),
    radial-gradient(circle at 75% 75%, #fff1c9 0 1.6px, transparent 2px);
  filter: drop-shadow(0 0 5px var(--warm));
}
.top nav { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.top nav a, .top nav .link { padding: 8px 10px; text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.top nav a:hover, .top nav .link:hover { color: var(--text); background: #ffffff0a; }

.link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.top nav .link { text-decoration: none; }

main { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* --- The hero: the wall --- */
.hero { display: grid; justify-items: center; padding: 18px 0 40px; }
.live {
  display: inline-flex; align-items: center; gap: 9px; margin: 6px 0 22px;
  font: 13.5px/1.3 var(--sans); color: var(--muted); letter-spacing: .01em;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: #ffffff07; border: 1px solid #ffffff0d;
  min-height: 32px; text-align: center;
}
.live .stage { color: var(--warm-2); }
.breath { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.live.working .breath { background: var(--warm); box-shadow: 0 0 10px var(--warm); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.wall { position: relative; display: grid; place-items: center; isolation: isolate; }
.wall .spill {
  position: absolute; inset: -14%; width: 128% !important; height: 128% !important; z-index: -1;
  filter: blur(44px) saturate(1.5); opacity: .55; transform: translateZ(0);
  pointer-events: none; transition: opacity 1.2s var(--ease);
}
.window {
  position: relative; padding: 12px; border-radius: 22px;
  background: linear-gradient(160deg, #18171d, #0a0a0d 60%);
  box-shadow: 0 1px 0 #ffffff12 inset, 0 0 0 1px #000, 0 40px 90px -20px #000c, 0 0 0 7px #0d0c11 inset;
}
.window canvas { display: block; border-radius: 10px; background: #07080b; }
.window::after { /* a faint glass sheen */
  content: ""; position: absolute; inset: 12px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(155deg, #ffffff0d, transparent 35%);
}
.motion-toggle {
  margin-top: 14px; background: #ffffff0a; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 14px; font: 13px var(--sans); color: var(--soft); cursor: pointer;
}

/* The new piece fades in when it lands. */
.wall, .plaque { transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.is-changing .wall, .is-changing .plaque { opacity: 0; filter: blur(6px); transform: scale(.985); }

/* --- The plaque: title, story, dream --- */
.plaque { max-width: 36rem; width: 100%; text-align: center; margin-top: 30px; }
.eyebrow {
  margin: 0 0 10px; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--glow) 55%, var(--warm-2));
}
.title {
  margin: 0 0 16px; font-family: var(--serif); font-weight: 420; font-optical-sizing: auto;
  font-size: clamp(32px, 8vw, 52px); line-height: 1.06; letter-spacing: -.012em; text-wrap: balance;
}
.story { margin: 0 auto 8px; font-size: 19px; line-height: 1.7; color: var(--soft); text-wrap: pretty; max-width: 34rem; }
.dream { margin: 30px auto 6px; max-width: 30rem; position: relative; padding: 6px 8px 0; }
.dream::before {
  content: "“"; display: block; font: 300 64px/0.6 var(--serif); color: color-mix(in srgb, var(--glow) 60%, #fff);
  opacity: .55; margin-bottom: 4px;
}
.dream blockquote { margin: 0; }
.dream p { margin: 0; font: italic 300 20px/1.6 var(--serif); color: #e9e0d2; text-wrap: pretty; }
.dream figcaption { margin-top: 12px; font: 12.5px var(--sans); color: var(--faint); letter-spacing: .04em; }
.dream figcaption::before { content: "— "; }
.borrowed { margin: 22px 0 0; font: 13.5px/1.5 var(--sans); color: var(--muted); }
.borrowed em { font: italic 15px var(--serif); color: var(--soft); }

/* --- Actions: smile and share --- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.smile, .ghost, .smile-like, .more {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border-radius: 999px; padding: 10px 18px; font: 500 14.5px/1.2 var(--sans);
  transition: background .25s, border-color .25s, color .25s, transform .2s var(--ease), box-shadow .3s;
}
.smile svg, .ghost svg { width: 16px; height: 16px; flex: none; }
.smile {
  position: relative; background: color-mix(in srgb, var(--warm) 10%, transparent); color: var(--warm-2);
  border: 1px solid color-mix(in srgb, var(--warm) 30%, transparent);
}
.smile:hover { background: color-mix(in srgb, var(--warm) 17%, transparent); transform: translateY(-1px); }
.smile:active { transform: scale(.97); }
.smile[aria-pressed="true"] { background: color-mix(in srgb, var(--warm) 22%, transparent); border-color: color-mix(in srgb, var(--warm) 55%, transparent); color: #fff1c9; box-shadow: 0 0 24px -6px var(--warm); }
.smile-count { font-variant-numeric: tabular-nums; padding-left: 9px; border-left: 1px solid color-mix(in srgb, var(--warm) 30%, transparent); color: var(--soft); }
.ghost, .more { background: #ffffff08; border: 1px solid var(--line-2); color: var(--soft); }
.ghost:hover, .more:hover { background: #ffffff12; border-color: #4a4655; color: var(--text); }
.smile-like { background: var(--warm); color: #1a1206; border: 1px solid var(--warm); }
.smile-like:hover { background: var(--warm-2); }

/* Little pixels of light float up when you smile. */
.spark {
  position: absolute; width: 4px; height: 4px; border-radius: 1px; background: var(--warm-2);
  box-shadow: 0 0 6px var(--warm); pointer-events: none; left: 50%; top: 40%;
  animation: rise 1.1s var(--ease) forwards;
}
@keyframes rise { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), -46px) scale(.5); } }

.play-invite { margin: 34px 0 0; font: 14.5px var(--sans); color: var(--muted); }
.play-invite .link { color: var(--soft); }
.play-invite .link:hover { color: var(--warm-2); }

/* --- Follow --- */
.follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 22px 0 8px; margin: 0 auto; font-family: var(--sans);
}
.follow-label { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.follow-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.follow-links a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--soft); transition: border-color .2s, color .2s, background .2s;
}
.follow-links a:hover { border-color: color-mix(in srgb, var(--warm) 50%, transparent); color: var(--warm-2); background: #ffffff06; }

/* --- Sections --- */
.section-title { margin: 0 0 18px; font: 400 clamp(28px, 6vw, 40px)/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.about, .gallery { padding: 56px 0 24px; border-top: 1px solid var(--line); margin-top: 40px; }
.about .eyebrow, .gallery .eyebrow { color: var(--warm); }

.about-intro { max-width: 40rem; }
.about-intro p { margin: 0 0 14px; font-size: 19px; color: var(--soft); }
.about-intro strong { color: var(--text); font-weight: 500; }
.hour-title { margin: 36px 0 18px; font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hour { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; position: relative; }
.hour li {
  position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: start;
  padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, #14131a, #0f0e13); border: 1px solid var(--line);
  counter-increment: step;
}
.step-art { grid-row: span 2; width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(0 0 8px #ffb54a33); }
.step-name { font: 450 20px/1.25 var(--serif); }
.step-name::before { content: counter(step) ". "; color: var(--faint); font-size: 15px; font-family: var(--sans); }
.step-text { color: var(--muted); font-size: 16px; line-height: 1.55; }
.about-honest { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); max-width: 46rem; }
.about-honest p { margin: 0; color: var(--soft); font-size: 17px; }
.about-honest strong { color: var(--text); font-weight: 500; }

/* --- Gallery --- */
.day { margin-top: 30px; }
.day-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 500 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  --c: var(--warm);
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 12px; border-radius: var(--radius);
  background: linear-gradient(180deg, #15141a, #0f0e13); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  opacity: 0; animation: arrive .7s var(--ease) forwards; animation-delay: var(--delay, 0ms);
}
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; background: #07080b; overflow: hidden;
  box-shadow: 0 0 0 1px #000 inset, 0 10px 30px -12px color-mix(in srgb, var(--c) 45%, transparent);
  transition: box-shadow .35s;
}
.thumb canvas { display: block; width: 100% !important; height: 100% !important; }
.card:hover, .card:focus-visible {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, var(--line));
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 55%, transparent);
}
.card:hover .thumb, .card:focus-visible .thumb { box-shadow: 0 0 0 1px #000 inset, 0 0 34px -4px color-mix(in srgb, var(--c) 70%, transparent); }
.card:focus-visible { outline: 2px solid var(--warm-2); outline-offset: 3px; }
.card-title { font: 430 16.5px/1.25 var(--serif); padding: 0 4px; text-wrap: balance; }
.card-time { font: 12.5px var(--sans); color: var(--faint); padding: 0 4px; margin-top: -6px; display: flex; gap: 8px; align-items: center; }
.card-time .moving { color: color-mix(in srgb, var(--c) 70%, #fff); }
.card-time .smiles { margin-left: auto; color: var(--muted); }
.more { margin: 36px auto 0; }
.more[aria-busy="true"] { opacity: .6; cursor: progress; }
.gallery-empty { color: var(--muted); font-style: italic; }

/* --- Sheets: a piece, and the game --- */
.sheet {
  padding: 0; border: 0; color: var(--text); background: transparent;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: #050507e6; backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sheet-inner {
  position: relative; min-height: 100%; padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 18px 48px;
  background:
    radial-gradient(700px 500px at 50% 0, color-mix(in srgb, var(--glow) 12%, transparent), transparent 70%),
    var(--bg);
}
.close {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #ffffff0c; border: 1px solid var(--line-2); color: var(--soft); transition: background .2s, color .2s;
}
.close:hover { background: #ffffff18; color: var(--text); }
.close svg { width: 16px; height: 16px; }
.sheet-body { display: grid; justify-items: center; gap: 8px; max-width: 1000px; margin: 0 auto; }
.sheet-missing { text-align: center; max-width: 30rem; margin: 10vh auto 0; }
.neighbours { display: flex; justify-content: space-between; margin-top: 34px; font: 14px var(--sans); color: var(--muted); min-height: 1.5em; }
.neighbours .link { text-decoration: none; padding: 6px 2px; }
.neighbours .link:hover { color: var(--text); }
#piece-older { margin-left: auto; }

/* --- The game --- */
.game { max-width: 34rem; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.game .title { font-size: clamp(28px, 7vw, 40px); }
.game-hint { margin: -4px 0 26px; color: var(--muted); font-size: 16.5px; max-width: 28rem; }
#game-score { color: var(--faint); letter-spacing: .06em; }
.choices { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; margin-top: 28px; }
.choices button {
  cursor: pointer; padding: 13px 16px; border-radius: 14px; font: 450 18px/1.3 var(--serif);
  background: #ffffff07; border: 1px solid var(--line-2); color: var(--text); transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.choices button:hover { background: #ffffff10; border-color: color-mix(in srgb, var(--glow) 45%, var(--line-2)); transform: translateY(-1px); }
.choices button::first-letter { text-transform: uppercase; }
.guess-form { display: flex; gap: 8px; width: 100%; margin-top: 14px; }
.guess-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #0b0b0f;
  color: var(--text); font: 16px var(--sans);
}
.guess-form input::placeholder { color: var(--faint); }
.guess-form input:focus-visible { outline: 2px solid var(--warm-2); outline-offset: 1px; }
.reveal { margin-top: 26px; width: 100%; }
.reveal-verdict { margin: 0 0 14px; font: 500 15px/1.5 var(--sans); color: var(--warm-2); }
.reveal-title { font-size: clamp(26px, 6vw, 36px); }
.reveal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* --- Footer and toast --- */
.foot { margin-top: 64px; padding: 34px 18px max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font: 14px/1.6 var(--sans); color: var(--muted); }
.foot p { margin: 4px 0; }
.foot-line { font: italic 17px var(--serif); color: var(--soft); }
.foot-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; background: #1d1b22f2; border: 1px solid var(--line-2);
  font: 14.5px var(--sans); color: var(--text); box-shadow: 0 14px 40px #000a; max-width: calc(100vw - 32px); text-align: center;
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- Larger screens --- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
  .choices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; column-gap: 64px; padding-top: 40px; }
  .hero .live { grid-column: 1 / -1; }
  .hero .plaque { text-align: left; margin-top: 0; }
  .hero .story, .hero .dream { margin-left: 0; }
  .hero .actions { justify-content: flex-start; }
  .hero .play-invite { grid-column: 1 / -1; }
  .hour { grid-template-columns: repeat(5, 1fr); }
  .hour li { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 8px; padding: 20px 18px; }
  .step-art { grid-row: auto; width: 64px; height: 64px; margin-bottom: 6px; }
  .hour li:not(:last-child)::after { /* a thread of light from one step to the next */
    content: ""; position: absolute; top: 52px; right: -13px; width: 14px; height: 2px;
    background: linear-gradient(90deg, var(--line-2), color-mix(in srgb, var(--warm) 50%, transparent));
  }
  .sheet-inner { padding-top: 80px; }
  .sheet-body { grid-template-columns: auto minmax(0, 30rem); gap: 64px; align-items: center; justify-content: center; }
  .sheet-body .plaque { text-align: left; margin-top: 0; }
  .sheet-body .story, .sheet-body .dream { margin-left: 0; }
  .sheet-body .actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card { opacity: 1; }
  .spark { display: none; }
}

/* --- Nav on narrow screens --- */
@media (max-width: 480px) { .top nav .wide { display: none; } .top nav { gap: 0; font-size: 13.5px; } .top nav a { padding: 8px 7px; } }

.how-link { margin: 18px 0 0; font: 14.5px var(--sans); }
.how-link a { color: var(--warm-2); }

/* --- The street: the last pictures as lit windows --- */
.street { padding: 40px 0 8px; }
.street .eyebrow { text-align: left; margin-bottom: 16px; }
.street-row {
  display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; padding: 24px 6px 0; scroll-snap-type: x proximity;
  border-bottom: 2px solid #1c1a22; scrollbar-width: thin;
}
.house {
  position: relative; flex: none; width: 96px; padding: 12px 12px 8px; margin-top: var(--h, 0);
  display: grid; justify-items: center; gap: 8px; text-decoration: none; scroll-snap-align: start;
  background: linear-gradient(#17151d, #111016); border: 1px solid #23202b; border-bottom: 0; border-radius: 4px 4px 0 0;
}
.house .roof {
  position: absolute; left: -6px; right: -6px; top: -16px; height: 18px;
  background: #1b1922; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.house .pane {
  display: block; width: 64px; height: 64px; border-radius: 4px; background: #07080b; overflow: hidden;
  box-shadow: 0 0 0 3px #0b0a0f, 0 0 26px -2px color-mix(in srgb, var(--c) 55%, transparent);
}
.house .pane canvas { display: block; width: 64px !important; height: 64px !important; }
.house-time { font: 11.5px var(--sans); color: var(--faint); }
.house:hover .pane, .house:focus-visible .pane { box-shadow: 0 0 0 3px #0b0a0f, 0 0 40px 2px color-mix(in srgb, var(--c) 70%, transparent); }
.street-more { margin: 14px 0 0; font: 14.5px var(--sans); color: var(--muted); }
.street-more a { color: var(--soft); }

/* --- Gallery: a calendar of light --- */
.cal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-head .section-title { margin-bottom: 4px; }
.cal-count { margin: 0; font: 14px var(--sans); color: var(--muted); }
.cal-nav { display: flex; align-items: center; gap: 10px; font: 15px var(--sans); color: var(--soft); }
.cal-month { min-width: 9.5em; text-align: center; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #ffffff06; cursor: pointer; font-size: 18px; }
.round:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week { margin-bottom: 6px; font: 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cal-day {
  min-height: 74px; padding: 7px; border-radius: 10px; border: 1px solid var(--line); background: #0d0c11;
  display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--soft); font: 12px var(--sans);
}
button.cal-day { cursor: pointer; transition: border-color .2s, background .2s; }
button.cal-day:hover { border-color: var(--line-2); background: #121117; }
.cal-day.blank { border: 0; background: none; }
.cal-day.empty { opacity: .45; }
.cal-day.today .cal-num { color: var(--warm-2); }
.cal-day[aria-pressed="true"] { border-color: color-mix(in srgb, var(--warm) 70%, transparent); background: #16131a; }
.cal-num { font-weight: 600; }
.dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; max-width: 96px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: #1a1922; }
.dots i[style] { background: var(--c); box-shadow: 0 0 5px var(--c); }
@media (min-width: 720px) { .cal-day { min-height: 112px; padding: 10px; font-size: 13px; } .dots { gap: 5px; } .cal-week, .cal-grid { gap: 10px; } }
.day-open { margin-top: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .dots i[style] { animation: dot-on .5s var(--ease) both; }
  .dots i:nth-child(6n+2) { animation-delay: .04s; } .dots i:nth-child(6n+3) { animation-delay: .08s; }
  .dots i:nth-child(6n+4) { animation-delay: .12s; } .dots i:nth-child(6n+5) { animation-delay: .16s; } .dots i:nth-child(6n) { animation-delay: .2s; }
}
@keyframes dot-on { from { opacity: 0; transform: scale(.3); } }

/* --- How it was made --- */
.making { max-width: 44rem; margin: 40px auto 0; padding: 32px 4px 8px; border-top: 1px solid var(--line); text-align: left; }
.making .section-title { font-size: clamp(24px, 5vw, 32px); }
.stations { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line-2); display: grid; gap: 28px; }
.station { position: relative; }
.station::before { content: ""; position: absolute; left: -28px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.station-title { margin: 0 0 10px; font: 450 21px/1.3 var(--serif); }
.station p { margin: 0; color: var(--soft); font-size: 17px; }
.station .why { font-style: italic; color: #e9e0d2; }
.seeds, .ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seeds li, .ideas li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.5; }
.seeds li.chosen, .ideas li.chosen { border-color: color-mix(in srgb, var(--warm) 60%, transparent); color: var(--soft); background: #ffb54a0a; }
.ideas strong { display: block; color: var(--text); font-weight: 500; font-family: var(--serif); }
.drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.draft { margin: 0; display: grid; gap: 6px; align-content: start; }
.draft canvas { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 8px; background: #07080b; }
.draft figcaption { font: 12.5px/1.4 var(--sans); color: var(--faint); }
.draft.ok figcaption { color: var(--soft); }
.tick { color: var(--warm-2); }
.drafts-note { margin-top: 8px !important; font: 12.5px var(--sans) !important; color: var(--faint) !important; }
.more-seeds { margin-top: 10px; }
.more-seeds summary { cursor: pointer; font: 14px var(--sans); color: var(--muted); margin-bottom: 8px; }

/* --- Inside --- */
.inside { padding-top: 32px; }
.inside-top .section-title { max-width: 30rem; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 6px 0 30px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font: 13px var(--sans); color: var(--muted); }
.stats dd { margin: 0; font: 400 34px/1.1 var(--serif); color: var(--warm-2); }
.inside-cols { display: grid; gap: 28px; }
@media (min-width: 900px) { .inside-cols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.paper { padding: 26px 26px 22px; border-radius: var(--radius); background: #f1ebe1; color: #2a241c; box-shadow: 0 20px 60px -30px #000; }
.paper-when { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8a7a62; }
.paper-entry, .paper-intent { margin: 0; font: 18px/1.7 var(--text-serif); text-wrap: pretty; }
.paper-intent { font-style: italic; }
.paper hr { border: 0; border-top: 1px dashed #c9bca6; margin: 22px 0 16px; }
.inside-h { margin: 40px 0 16px; font: 450 24px/1.25 var(--serif); }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lesson-list li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.lesson { margin: 0; color: var(--text); font-size: 17px; }
.evidence { margin: 6px 0 0; color: var(--muted); font: 14px/1.5 var(--sans); }
.inside-side { display: grid; gap: 16px; }
.note-card { padding: 18px 18px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.note-head { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--warm); }
.note-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--soft); font-size: 16px; }
.note-list.plain { list-style: none; padding: 0; }
.note-list.plain li { font-style: italic; }
.tuning-reason { margin: 0 0 10px; color: var(--soft); font-style: italic; }
#tuning .note-list.plain li { font-style: normal; }

.becoming { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.becoming .section-title { max-width: 34rem; }
.lifeline { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 36px; }
.lifeline i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .15; }
.lifeline.lit i { opacity: 1; box-shadow: 0 0 4px var(--c); }
@media (prefers-reduced-motion: no-preference) { .lifeline.lit i { transition: opacity .4s var(--d), box-shadow .4s var(--d); } }
.milestones { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line-2); display: grid; gap: 30px; }
.milestone { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; opacity: .35; transition: opacity .6s; }
.milestone.lit { opacity: 1; }
.milestone::before { content: ""; position: absolute; left: -28px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); transition: background .6s, box-shadow .6s; }
.milestone.lit::before { background: var(--warm); box-shadow: 0 0 12px var(--warm); }
.milestone > :not(.ms-piece) { grid-column: 2; }
.ms-piece { grid-row: span 3; align-self: start; }
.ms-piece canvas { display: block; width: 72px !important; height: 72px !important; border-radius: 8px; background: #07080b; }
.ms-day { margin: 0; font: 12.5px var(--sans); color: var(--faint); letter-spacing: .06em; }
.ms-title { margin: 2px 0 4px; font: 450 21px/1.3 var(--serif); }
.ms-body { margin: 0; color: var(--soft); font-size: 16.5px; }
.charts { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 820px) { .charts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chart { margin: 0; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.chart figcaption { font: 14px var(--sans); color: var(--soft); margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; overflow: hidden; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; height: var(--h); border-radius: 2px 2px 0 0; background: var(--warm); opacity: .85; }
.bar.none i { height: 2px; background: var(--line-2); }
.chart-ends { display: flex; justify-content: space-between; margin: 8px 0 0; font: 12px var(--sans); color: var(--muted); }
.becoming-end { margin: 36px 0 0; color: var(--muted); font: 15px var(--sans); }
.becoming-end a { color: var(--warm-2); }
