@font-face { font-family: "ISerif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "ISerif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "ISans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "JBMono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Layout: a fixed 3D world fills the screen; the page is one evening.
   Each chapter's words hold on the left while time passes behind them. */
:root {
  --night: #14152a;      /* the page behind the world */
  --ink: #f3efe8;        /* warm paper white */
  --muted: rgba(243, 239, 232, 0.72);
  --ember: #ffb36b;      /* the last of the sun, the one accent */
  --ice: #c9d8ff;
  --line: rgba(243, 239, 232, 0.16);
  --glass: rgba(14, 15, 31, 0.6);
  --serif: "ISerif", "Iowan Old Style", Georgia, serif;
  --sans: "ISans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: max(28px, 5vw, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
a { color: var(--ink); text-decoration-color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 50; background: var(--ember); color: #1a1208; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ------------------------------------------------------------ the world */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; background: linear-gradient(180deg, #2b3a66, #c98a6a); }
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 9, 20, 0.62) 0%, rgba(8, 9, 20, 0.32) 34%, rgba(8, 9, 20, 0) 58%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.starlabel { position: absolute; left: 0; top: 0; white-space: nowrap; font: 400 11px var(--mono); letter-spacing: 0.08em; color: var(--ink); opacity: 0; padding-top: 10px; border-top: 1px solid rgba(243, 239, 232, 0.35); }

/* ------------------------------------------------------------ chapters */
main { position: relative; z-index: 4; }
.chapter { position: relative; padding-left: var(--gutter); padding-right: max(28px, 5vw, env(safe-area-inset-right, 0px)); }
#hour { min-height: 165vh; }
.chapter + .chapter { padding-top: 30vh; }
#about { min-height: 200vh; }
#latest { padding-top: 40vh; padding-bottom: 40vh; }
#listen { min-height: 180vh; }
#dawn { min-height: 200vh; }
.stick { position: sticky; top: max(18vh, 90px); max-width: 34rem; display: flex; flex-direction: column; gap: 16px; }
.stick > * { margin: 0; min-width: 0; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--ember); }
h1 { font: italic 400 clamp(4.6rem, 12.5vw, 11.5rem)/0.86 var(--serif); margin: 0 0 0 -0.04em; padding-right: 0.12em; letter-spacing: -0.015em; text-shadow: 0 0 60px rgba(255, 179, 107, 0.18); }
.hero { top: max(30vh, 150px); max-width: 44rem; }
.def { color: var(--muted); max-width: 30rem; font-size: 1.08rem; }
.def .mono { color: var(--ink); }
.etym { display: block; margin-top: 6px; font-size: 0.72rem; color: rgba(243, 239, 232, 0.5); }
h2 { font: italic 400 clamp(2.3rem, 4.6vw, 3.8rem)/1.02 var(--serif); margin: 0; text-wrap: balance; }
.prose p { color: var(--ink); font-size: 1.12rem; max-width: 31rem; }
.prose p + p { margin-top: -2px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: baseline; gap: 8px; padding: 0.78em 1.25em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.btn:hover { color: #fff; border-color: rgba(255, 179, 107, 0.6); transform: translateY(-1px); }
.btn.primary { background: var(--ember); color: #1d1408; border-color: transparent; }
.btn.primary:hover { background: #ffc78f; color: #000; }
.btn small { font-weight: 400; opacity: 0.7; font-size: 0.8em; }

/* ------------------------------------------------------------ the release */
.release { max-width: 1040px; margin: 0 auto 0 0; padding: clamp(20px, 3vw, 36px); background: var(--glass); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); display: grid; gap: clamp(20px, 3vw, 32px); }
.rel-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.cover { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }
.rel-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rel-copy > * { margin: 0; }
.lede { font-size: 1.12rem; }
.status { font-size: 0.78rem; color: var(--muted); }
.bc { display: block; width: 100%; max-width: 460px; height: 42px; border: 0; border-radius: 8px; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; max-width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; transition: transform 0.6s ease, opacity 0.3s ease; }
.yt:hover img { transform: scale(1.02); opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: rgba(20, 18, 34, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.7); backdrop-filter: blur(6px); }
.yt .play::after { content: ""; position: absolute; left: 32px; top: 25px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.yt-label { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 0.75rem; background: rgba(0, 0, 0, 0.5); padding: 4px 10px; border-radius: 999px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lyrics { border-top: 1px solid var(--line); }
.lyrics summary { list-style: none; cursor: pointer; padding: 18px 0 4px; display: flex; justify-content: space-between; align-items: center; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary h3 { margin: 0; font: italic 400 1.7rem/1 var(--serif); }
.lyrics summary::after { content: "+"; font: 300 2rem/1 var(--sans); color: var(--ember); transition: transform 0.25s ease; }
.lyrics[open] summary::after { transform: rotate(45deg); }
.lyric-text { columns: 2 20rem; column-gap: 48px; padding-top: 18px; }
.lyric-text p { break-inside: avoid; margin: 0 0 1.3em; }
.lyric-text p.chorus { font: italic 400 1.2rem/1.5 var(--serif); color: #fff1df; }

/* ------------------------------------------------------------ find us */
.links { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 2px; text-decoration: none; font-weight: 550; flex-wrap: wrap; }
.links a .mono { font-weight: 400; font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; }
.links a:hover .mono { color: var(--ember); }

/* ------------------------------------------------------------ dawn */
.closing { top: max(34vh, 160px); max-width: 40rem; }
.last { font: italic 400 clamp(2rem, 4.4vw, 3.4rem)/1.12 var(--serif); text-wrap: balance; text-shadow: 0 2px 30px rgba(10, 10, 25, 0.5); }

footer { position: relative; z-index: 4; padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(10, 11, 22, 0), rgba(10, 11, 22, 0.85) 40%); color: var(--muted); font-size: 0.88rem; }
footer p { margin: 0 0 8px; max-width: 46rem; }
footer .label { font-size: 0.74rem; }

/* ------------------------------------------------------------ phones */
@media (max-width: 820px) {
  .scrim { background: linear-gradient(0deg, rgba(8, 9, 20, 0.75) 0%, rgba(8, 9, 20, 0.35) 45%, rgba(8, 9, 20, 0) 70%); }
  .stick { position: relative; top: auto; }
  .chapter + .chapter { padding-top: 0; }
  .hero { padding-top: 54vh; }
  #hour { min-height: 0; padding-bottom: 30vh; }
  #about, #listen { min-height: 0; padding-top: 50vh; padding-bottom: 20vh; }
  #about .stick, #listen .stick { background: var(--glass); padding: 22px; border-radius: 14px; border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  #latest { padding-top: 30vh; padding-bottom: 30vh; }
  .rel-head { grid-template-columns: 1fr; }
  #dawn { min-height: 0; padding-top: 70vh; padding-bottom: 30vh; }
  .closing { top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .yt img, .lyrics summary::after { transition: none; }
}
html.no-webgl .scrim { background: rgba(8, 9, 20, 0.3); }

/* 404 */
body.nf { min-height: 100svh; display: grid; place-items: center; background: linear-gradient(180deg, #0d0f22 0%, #23224a 70%, #6b4256 100%); }
.nf-main { text-align: center; padding: 24px; display: grid; gap: 14px; justify-items: center; }
.nf-main > * { margin: 0; }
.nf-h { font: italic 400 clamp(3.2rem, 10vw, 6rem)/1 var(--serif); }
