/* Night Room — style */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #07090d;
  --bg-2: #0c0f15;
  --card: rgba(255, 255, 255, .028);
  --card-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .075);
  --text: #ece9e3;
  --soft: #c9c6c0;
  --muted: #8d9099;
  --warm: #e7b46a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad-x: clamp(18px, 3.4vw, 40px);
  --side: 340px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 30% 20%, rgba(40, 52, 78, .18), transparent 70%),
    var(--bg);
  color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgba(231, 180, 106, .85); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1360px; margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) var(--pad-x) 20px;
}
.wordmark { font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: .005em; text-decoration: none; color: #f1eee8; }
.nav { display: flex; gap: clamp(18px, 3.6vw, 48px); }
.nav a { text-decoration: none; font-size: 14.5px; color: #cfcdc8; letter-spacing: .01em; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: rgba(255, 255, 255, .35); }

/* ---------- tonight ---------- */
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 30px;
  max-width: 1360px; margin: 0 auto; padding: 0 var(--pad-x) 40px;
  align-items: start;
}
.hero {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 1.36 / 1; min-height: 420px; max-height: calc(100vh - 110px);
  background: #05070a; isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%);
  transition: opacity 1.1s ease; z-index: -2;
}
.hero-art.fading { opacity: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 8, 12, .97) 0%, rgba(6, 8, 12, .86) 22%, rgba(6, 8, 12, .45) 44%, rgba(6, 8, 12, 0) 62%),
    linear-gradient(to right, rgba(6, 8, 12, .45), rgba(6, 8, 12, 0) 22%, rgba(6, 8, 12, 0) 80%, rgba(6, 8, 12, .35));
}
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 34px); }
.night-title {
  font-family: var(--serif); font-weight: 400; margin: 0 0 14px;
  font-size: clamp(30px, 3.05vw, 46px); line-height: 1.1; letter-spacing: -.003em;
  color: #f4f1ea; text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  text-wrap: balance;
}
.fragment { margin: 0 0 24px; color: var(--soft); font-size: clamp(14.5px, 1.1vw, 16px); line-height: 1.6; max-width: 34em; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* ---------- player ---------- */
.player { display: flex; align-items: center; gap: clamp(16px, 2vw, 24px); max-width: 460px; }
.play {
  flex: none; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 26px rgba(0, 0, 0, .35);
  transition: background .25s, transform .15s;
}
.play:hover { background: rgba(255, 255, 255, .22); }
.play:active { transform: scale(.96); }
.play svg, .mini-play svg { width: 24px; height: 24px; fill: #fff; }
.play .i-play { transform: translateX(1px); }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.play.is-loading { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { background: rgba(255, 255, 255, .24); } }

.seek-wrap { flex: 1; display: flex; align-items: center; height: 28px; }
.seek {
  --p: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
.seek::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, .92) var(--p), rgba(255, 255, 255, .22) var(--p));
}
.seek::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.seek::-moz-range-progress { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .92); }
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; margin-top: -5.5px; border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 1px 6px rgba(0, 0, 0, .5);
}
.seek::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.seek:focus-visible { outline: none; }
.seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(231, 180, 106, .5); }
.time { flex: none; font-size: 13.5px; color: #d9d6d0; font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }
.time .now { color: var(--muted); }

/* ---------- earlier nights ---------- */
.earlier h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 2px 0 14px; color: #ebe8e2; }
.night-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.night-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 13px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 7px 14px 7px 7px; border-radius: 4px;
  background: var(--card); border: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.night-row:hover, .night-row[aria-current="true"] { background: var(--card-hi); border-color: rgba(255, 255, 255, .12); }
.night-row img { width: 52px; height: 48px; object-fit: cover; border-radius: 2px; filter: saturate(.9); }
.row-title { display: block; font-family: var(--serif); font-size: 15.5px; color: #ece9e3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub svg, .row-lock svg { flex: none; }
.lock-s { width: 11px; height: 11px; fill: currentColor; opacity: .85; }
.row-lock { color: #8e9198; }
.row-lock svg { width: 14px; height: 14px; fill: currentColor; }
.row-eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.row-eq i { width: 2px; background: var(--warm); border-radius: 1px; animation: eq 1.2s ease-in-out infinite; }
.row-eq i:nth-child(2) { animation-delay: -.4s; } .row-eq i:nth-child(3) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.night-row.playing .row-eq { display: flex; }

/* ---------- pages ---------- */
.page { max-width: 1060px; margin: 0 auto; padding: 8px var(--pad-x) 60px; }
.page-head h1, .member-body h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); margin: 10px 0 10px; }
.page-head p { color: var(--soft); max-width: 36em; margin: 0 0 34px; font-size: 16px; }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.arch {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  width: 100%; text-align: left; cursor: pointer; padding: 12px 22px 12px 12px; border-radius: 4px;
  background: var(--card); border: 1px solid var(--line); transition: background .3s, border-color .3s;
}
.arch:hover { background: var(--card-hi); border-color: rgba(255, 255, 255, .12); }
.arch img { width: 200px; height: 120px; object-fit: cover; border-radius: 2px; }
.arch-no { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.arch-title { font-family: var(--serif); font-size: 24px; margin: 2px 0 6px; color: #f1eee8; }
.arch-frag { color: var(--soft); margin: 0; font-size: 14.5px; line-height: 1.55; }
.arch-meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.arch-meta svg { width: 13px; height: 13px; fill: currentColor; }
.arch.locked img { filter: saturate(.7) brightness(.8); }

.member { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.member-art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; object-position: 62% 50%; filter: brightness(.9); }
.member-body p { color: var(--soft); font-size: 16px; line-height: 1.7; max-width: 32em; }
.member-body .lede { font-family: var(--serif); font-style: italic; font-size: 22px; color: #ece9e3; line-height: 1.4; }
.perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.perks li { padding-left: 22px; position: relative; color: #dedbd5; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 12px rgba(231, 180, 106, .7); }
.member-body .soon { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 17px; }

.quiet-btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: #f0ede7; font-size: 14px; transition: background .25s;
}
.quiet-btn:hover { background: rgba(255, 255, 255, .12); }
.text-link { color: var(--soft); font-size: 14px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .25); }

/* ---------- the gentle members prompt ---------- */
.hush {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px;
  background: #0b0e14; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.hush::backdrop { background: rgba(3, 4, 7, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hush[open] { animation: hush-in .5s ease; }
@keyframes hush-in { from { opacity: 0; transform: translateY(8px); } }
.hush form { padding: 0 0 24px; }
.hush-art { width: 100%; height: 170px; object-fit: cover; border-radius: 6px 6px 0 0; filter: brightness(.85); }
.hush-kicker, .hush h2, .hush-frag, .hush-note, .hush-actions { margin-left: 26px; margin-right: 26px; }
.hush-kicker { margin-top: 20px; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--warm); opacity: .9; }
.hush h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin-top: 0; margin-bottom: 10px; line-height: 1.2; }
.hush-frag { font-family: var(--serif); font-style: italic; color: var(--soft); font-size: 16.5px; line-height: 1.5; margin-top: 0; }
.hush-note { color: var(--muted); font-size: 14px; }
.hush-actions { display: flex; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- mini player ---------- */
.mini {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(560px, calc(100vw - 24px)); z-index: 20;
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px; overflow: hidden;
  background: rgba(14, 17, 24, .86); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.mini-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); display: grid; place-items: center; cursor: pointer; }
.mini-play svg { width: 19px; height: 19px; }
.mini-title { font-family: var(--serif); font-size: 15.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.mini-bar span { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .55); }

.foot { max-width: 1360px; margin: 0 auto; padding: 8px var(--pad-x) 34px; color: #5f636b; font-size: 12.5px; }
body[data-route="tonight"] .foot { display: none; }
body.has-mini { padding-bottom: 90px; }

/* ---------- phone ---------- */
@media (max-width: 880px) {
  .top { padding: max(16px, env(safe-area-inset-top)) 18px 14px; }
  .wordmark { font-size: 23px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .stage { grid-template-columns: 1fr; gap: 30px; padding: 0 0 40px; }
  .hero { aspect-ratio: auto; height: min(150vw, calc(100svh - 70px)); min-height: 520px; max-height: none; border-radius: 0; }
  .hero-art { object-position: var(--focus-m, 44% 50%); }
  .hero-shade {
    background:
      linear-gradient(to top, rgba(6, 8, 12, 1) 0%, rgba(6, 8, 12, .9) 24%, rgba(6, 8, 12, .5) 44%, rgba(6, 8, 12, 0) 62%),
      linear-gradient(to bottom, rgba(6, 8, 12, .5), rgba(6, 8, 12, 0) 14%);
  }
  .hero-body { padding: 0 20px 24px; }
  .night-title { font-size: clamp(30px, 8.6vw, 40px); margin-bottom: 12px; }
  .fragment { font-size: 15.5px; margin-bottom: 22px; }
  .player { max-width: none; }
  .play { width: 64px; height: 64px; }
  .play svg { width: 26px; height: 26px; }
  .earlier { padding: 0 18px; }
  .night-row { padding: 8px 14px 8px 8px; }
  .night-row img { width: 56px; height: 52px; }
  .row-title { font-size: 16px; }
  .arch { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 10px 14px 10px 10px; }
  .arch img { width: 96px; height: 96px; }
  .arch-title { font-size: 20px; }
  .arch-frag { font-size: 14px; }
  .arch-meta { grid-column: 2; }
  .member { grid-template-columns: 1fr; gap: 26px; }
  .member-art { aspect-ratio: 16 / 10; }
  .page { padding-top: 0; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 20px; }
  .nav { gap: 12px; }
  .nav a { font-size: 12.5px; }
  .top { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
