/* ==========================================================================
   Dear Z. — site styles
   Palette: ink-wash greys, spider-lily red, lantern amber,
   and the nine threads of light (see --c1 … --c9).
   ========================================================================== */

:root {
  --bg: #0d0e10;
  --bg-alt: #121417;
  --surface: #171a1e;
  --surface-2: #1d2126;
  --line: rgba(233, 226, 212, 0.1);
  --line-strong: rgba(233, 226, 212, 0.2);

  --text: #d5d1c7;
  --text-dim: #9b978e;
  --paper: #f0eadd;

  --lily: #c8372d;
  --lily-soft: #e46a5c;
  --lantern: #e9b466;
  --pink: #f4a7b9;
  --blue: #86cdf0;

  /* nine threads of light */
  --c1: #e5484d; --c2: #f0892b; --c3: #f2cf3a;
  --c4: #5bb85b; --c5: #3f7fd9; --c6: #8b5cc7;
  --c7: #f4a7b9; --c8: #86cdf0; --c9: #8a5a36;

  --f-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --f-cn: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-body: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--paper); margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[lang="zh-CN"] { font-family: var(--f-cn); }
::selection { background: var(--lily); color: #fff; }

:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--paper); color: var(--bg); padding: 8px 14px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 740px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-media { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-dim); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lantern); margin: 0 0 14px;
}
.brand-dot { color: var(--lily); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(13, 14, 16, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.home .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-family: var(--f-display); font-size: 28px; font-weight: 600; letter-spacing: .01em;
  color: var(--paper); text-decoration: none; line-height: 1;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  font-size: 14px; color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.site-nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--lily); border-radius: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--paper);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 17px; }
.nav-toggle-bar:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(13, 14, 16, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .site-header.is-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lily); padding-left: 14px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--paper); color: var(--bg); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(240, 234, 221, .35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(240, 234, 221, .06); }
.btn-soon { border: 1px dashed rgba(240, 234, 221, .25); color: var(--text-dim); cursor: default; }
.btn-soon em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lantern); }
.text-link { color: var(--lantern); text-decoration: none; border-bottom: 1px solid rgba(233, 180, 102, .35); }
.text-link:hover { border-bottom-color: var(--lantern); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.06); border-color: var(--paper); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(72px, 12vh, 120px); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,14,16,.55) 0%, rgba(13,14,16,0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,14,16,.82) 22%, rgba(13,14,16,.2) 55%, rgba(13,14,16,0) 75%),
    radial-gradient(ellipse at 20% 90%, rgba(13,14,16,.6), transparent 60%);
}
.hero-content { position: relative; }
.hero-title {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(64px, 13vw, 168px);
  line-height: .9; letter-spacing: -.01em; margin: 0 0 18px; text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero-tagline {
  font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35; color: var(--paper); max-width: 34ch; margin-bottom: 32px; text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; width: 24px; height: 38px; margin-left: -12px;
  border: 1.5px solid rgba(240,234,221,.45); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--paper); border-radius: 1px; animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 620px) { .scroll-cue { display: none; } }

/* floating debris particles */
.debris-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.debris-field i {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: var(--c, #fff); box-shadow: 0 0 10px 2px var(--c, #fff);
  opacity: 0; animation: drift var(--dur, 14s) linear var(--delay, 0s) infinite;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: var(--o, .7); }
  85% { opacity: var(--o, .7); }
  100% { transform: translate3d(var(--dx, 20px), -90vh, 0); opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 136px) 0; position: relative; }
.section-tight { padding-top: 24px; }
.section-alt { background: var(--bg-alt); }
.section-alt::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head h2, .page-head h1 {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.005em;
}
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 17px; max-width: 60ch; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.mini-head { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }

.page-head { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(24px, 4vw, 40px); }

/* ---------- world ---------- */
.world-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.lede { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; color: var(--paper); }
.prose strong { color: var(--paper); font-weight: 600; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.facts dd { margin: 0; color: var(--paper); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.dot-done { background: var(--c4); box-shadow: 0 0 8px var(--c4); }
.dot-doing { background: var(--lantern); box-shadow: 0 0 8px var(--lantern); }
.dot-planned { background: transparent; border: 1.5px solid var(--text-dim); }

.epigraph {
  margin: clamp(64px, 9vw, 112px) auto; max-width: 780px; text-align: center; position: relative; padding: 0 var(--gutter);
}
.epigraph::before {
  content: ""; display: block; width: 1px; height: 56px; margin: 0 auto 28px;
  background: linear-gradient(180deg, transparent, var(--lily));
}
.epigraph p { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; color: var(--paper); }
.epigraph .epigraph-cn { font-style: normal; font-size: 16px; color: var(--text-dim); margin-top: 18px; letter-spacing: .06em; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px; transition: border-color .3s, transform .3s var(--ease);
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pillar h3 { font-family: var(--f-display); font-size: 26px; margin: 18px 0 10px; }
.pillar p { font-size: 15px; color: var(--text-dim); }
.pillar-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--lantern); stroke-width: 1.4; }
.pillar-icon circle { fill: rgba(233,180,102,.18); }
.pillar-icon .fill-pink { fill: rgba(244,167,185,.35); stroke: var(--pink); }
.pillar-icon .fill-blue { fill: rgba(134,205,240,.3); stroke: var(--blue); }
.pillar-icon .fill-red { fill: var(--lily); stroke: var(--lily); }
.hl-pink { color: var(--pink); }
.hl-blue { color: var(--blue); }

.inspirations { margin-top: 56px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; }
.inspirations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.inspirations li {
  display: flex; flex-direction: column; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.inspirations strong { font-family: var(--f-display); font-size: 19px; font-weight: 500; font-style: italic; color: var(--paper); }
.inspirations span { font-size: 13px; color: var(--text-dim); }

/* ---------- chapters (handscroll) ---------- */
.scroller-controls { display: flex; gap: 8px; flex-shrink: 0; }
.chapter-scroll {
  list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-padding: 0 max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.chapter-scroll:focus-visible { outline-offset: -2px; }
.chapter-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.chapter-card.has-art { grid-column: span 2; }
.chapter-art { height: 240px; position: relative; overflow: hidden; background: var(--surface-2); }
.chapter-art a { position: absolute; inset: 0; }
.chapter-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.chapter-art a:hover img { transform: scale(1.03); }

.chapter-ph { position: absolute; inset: 0; }
.chapter-ph, .g-ph {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(233,226,212,.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #1b1e22, #141619);
}
.ph-glyph {
  font-family: var(--f-cn); font-size: 34px; font-weight: 600; color: rgba(240,234,221,.2);
  writing-mode: vertical-rl; letter-spacing: .3em;
}
.ph-note {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
}
.chapter-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.chapter-num { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lantern); margin-bottom: 8px; }
.chapter-num span { color: var(--text-dim); font-weight: 500; letter-spacing: .08em; }
.chapter-card h3 { font-family: var(--f-display); font-size: 27px; line-height: 1.15; margin-bottom: 10px; }
.chapter-card h3 .cn { font-size: 17px; color: var(--text-dim); font-weight: 400; margin-left: 4px; white-space: nowrap; }
.chapter-hook { font-size: 15px; color: var(--text-dim); flex: 1; }

.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(233,180,102,.35); color: var(--lantern);
}
.chips .chip-quiet { border-color: var(--line); color: var(--text-dim); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g-item {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
a.g-item:hover img { transform: scale(1.03); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: linear-gradient(0deg, rgba(10,11,13,.88), transparent);
  font-size: 13px; color: var(--text-dim);
}
.g-cap strong { font-family: var(--f-display); font-size: 21px; font-weight: 500; color: var(--paper); }
.g-item.g-ph { display: flex; align-items: center; justify-content: center; }
.g-ph .g-cap { background: none; }
.g-ph .ph-glyph { font-size: 30px; margin-bottom: 28px; }

/* ---------- music ---------- */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 880px; }
.track {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 22px; row-gap: 14px;
  align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s;
}
.track.is-playing { border-color: rgba(233,180,102,.5); }
.track-cover { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; grid-row: span 2; }
.track-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lantern); margin-bottom: 4px; }
.track h3 { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.track-cn { font-size: 14px; color: var(--text-dim); margin: 2px 0 0; }
.track-dur { font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: 14px; align-self: start; }
.track-audio { grid-column: 2 / -1; width: 100%; height: 40px; }
audio { color-scheme: dark; }

/* ---------- progress ---------- */
.meter { margin-bottom: 36px; max-width: 640px; }
.meter-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 12px; }
.meter-bar span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7), var(--c8));
}
.meter p { color: var(--text-dim); font-size: 15px; }
.meter strong { color: var(--paper); }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.board-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 10px; }
.board-col h3 {
  display: flex; align-items: center; gap: 6px; font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-bottom: 10px;
}
.board-col .count { margin-left: auto; color: var(--text-dim); font-weight: 500; }
.board-col ul { list-style: none; margin: 0; padding: 0; }
.board-col li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.board-col li a { text-decoration: none; color: var(--text); border-bottom: 1px dotted var(--line-strong); }
.board-col li a:hover { color: var(--paper); border-bottom-color: var(--lantern); }
.board-col li small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.board-planned li > span { color: var(--text-dim); }

.latest { margin-top: 64px; }
.latest-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 16px; }

/* ---------- devlog cards ---------- */
.log-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.log-grid-wide { margin-bottom: 56px; }
.log-card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.log-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.log-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.log-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,55,45,.14), transparent 65%), linear-gradient(180deg, #1c1f23, #141619);
}
.thumb-ph span { font-family: var(--f-display); font-size: 48px; color: rgba(240,234,221,.18); }
.play-badge {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; padding-left: 2px;
  background: rgba(13,14,16,.75); color: var(--paper); border: 1px solid var(--line-strong);
}
.log-body { padding: 16px 18px 20px; }
.log-body time { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lantern); }
.log-body h3 { font-family: var(--f-display); font-size: 23px; line-height: 1.2; margin: 6px 0 8px; }
.log-body p { font-size: 14px; color: var(--text-dim); }

.year-head { font-family: var(--f-display); font-size: 28px; color: var(--text-dim); margin: 0 0 16px; font-weight: 400; }

/* ---------- post ---------- */
.post { padding-bottom: clamp(56px, 8vw, 96px); }
.post-head { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 80px)); margin-bottom: 36px; }
.back-link { display: inline-block; font-size: 14px; color: var(--text-dim); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--paper); }
.post-head h1 { font-family: var(--f-display); font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin-bottom: 18px; }
.post-head .eyebrow span { color: var(--text-dim); }

.media-video, .post-cover { margin: 0 0 40px; }
.media-video video, .post-cover img {
  width: 100%; border-radius: var(--radius); background: #000; border: 1px solid var(--line);
}
.media-video figcaption { font-size: 13px; color: var(--text-dim); margin-top: 10px; text-align: center; }

.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-family: var(--f-display); font-size: 32px; margin: 44px 0 14px; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose a { color: var(--lantern); text-decoration-color: rgba(233,180,102,.4); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--lily-soft); }
.prose code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--paper);
}
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--lily); font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--paper); }
.prose img { border-radius: var(--radius); }
.prose audio { width: 100%; margin: 8px 0 4px; }
.prose em { color: var(--text-dim); }
.prose p > em:only-child { font-size: 14px; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
}
.post-nav a { text-decoration: none; color: var(--paper); font-family: var(--f-display); font-size: 20px; line-height: 1.25; }
.post-nav a span { display: block; font-family: var(--f-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.post-nav a:hover { color: var(--lantern); }
.post-nav .next { text-align: right; grid-column: 2; }

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .btn { margin-top: 28px; }

/* ---------- footer ---------- */
.spectrum { display: grid; grid-template-columns: repeat(9, 1fr); height: 3px; opacity: .85; }
.spectrum i:nth-child(1) { background: var(--c1); } .spectrum i:nth-child(2) { background: var(--c2); }
.spectrum i:nth-child(3) { background: var(--c3); } .spectrum i:nth-child(4) { background: var(--c4); }
.spectrum i:nth-child(5) { background: var(--c5); } .spectrum i:nth-child(6) { background: var(--c6); }
.spectrum i:nth-child(7) { background: var(--c7); } .spectrum i:nth-child(8) { background: var(--c8); }
.spectrum i:nth-child(9) { background: var(--c9); }

.site-footer { background: #0a0b0c; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-family: var(--f-display); font-style: italic; font-size: 19px; line-height: 1.4; margin-top: 14px; max-width: 32ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 20px; align-content: start; }
.footer-links a, .footer-links span { font-size: 14px; text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--paper); }
.is-soon { color: var(--text-dim); }
.is-soon em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--lantern); opacity: .8; margin-left: 4px; }
.footer-meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-dim);
}
.to-top { text-decoration: none; }
.to-top:hover { color: var(--paper); }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 9, 10, .94); color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; padding: 56px 72px 24px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { margin-top: 14px; font-size: 14px; color: var(--text-dim); text-align: center; max-width: 70ch; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: none; border: 0; color: var(--paper); cursor: pointer; line-height: 1;
  width: 48px; height: 48px; font-size: 32px; opacity: .75; transition: opacity .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 10px; right: 12px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
.lightbox-nav[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .world-grid { grid-template-columns: 1fr; }
  .inspirations { grid-template-columns: 1fr; gap: 14px; }
  .board { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .scroller-controls { display: none; }
  .chapter-card.has-art { grid-column: span 1; }
}
@media (max-width: 560px) {
  .hero-media img { object-position: 18% 40%; }
  .pillars, .log-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .chapter-scroll { grid-auto-columns: 82vw; }
  .track { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .track-cover { width: 64px; height: 64px; grid-row: span 1; }
  .track-dur { display: none; }
  .track-audio { grid-column: 1 / -1; }
  .track h3 { font-size: 22px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .lightbox figure { padding: 56px 12px 24px; }
  .lightbox-nav { top: auto; bottom: 8px; transform: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; text-align: left; }
}

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