/* deep catalogue - home page.
   Brand rules (brand/README.md): Helvetica Bold only, letter spacing -0.045em on all text,
   solid shapes only (no thin lines), lowercase, the round red dot means "now". */

:root {
  --bg: #0f0e0d;
  --ink: #ece7de;
  --accent: #e0442f;
  --soft: #a39e96;
  --faint: rgba(236, 231, 222, 0.22);
  --panel: #1c1a18;
}
* {
  box-sizing: border-box;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 14px; flex-wrap: wrap; }
.wm { display: block; width: 187px; height: 28px; background: url("wm-on-dark.svg") left center / contain no-repeat; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 17px; }
.nav a:hover { background: var(--panel); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
button { cursor: pointer; border: 0; color: inherit; background: none; font-size: inherit; padding: 0; }

/* stage */
.stage { display: grid; gap: 26px; grid-template-areas: "hud" "player" "now" "list"; padding: 18px 0 40px; }
.hud { grid-area: hud; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.player { grid-area: player; }
.now { grid-area: now; }
.list { grid-area: list; }

/* the six dots, the label, the clock */
.dots { position: relative; display: flex; margin-left: -8px; }
.dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.dot::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--faint); }
.dot.done::before { background: var(--ink); }
.dot.on::before { background: var(--accent); }
.dot:hover::before { transform: scale(1.14); }
.wait { position: absolute; top: 16px; left: calc(var(--i, 1) * 44px - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.wait[hidden] { display: none; }
.label { font-size: 30px; line-height: 1.1; margin: 10px 0 0; }
.cue { font-size: 18px; color: var(--soft); margin: 6px 0 0; min-height: 1.3em; }
.clock { font-size: clamp(92px, 19vw, 230px); line-height: 0.82; font-variant-numeric: tabular-nums; margin: 0 0 0 auto; padding-bottom: 0.04em; }

/* the player */
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--panel); border-radius: 14px; overflow: hidden; }
.screen iframe, .screen .frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; text-align: center; }
.start { background: var(--ink); color: var(--bg); font-size: clamp(26px, 4vw, 40px); line-height: 1; padding: 0.55em 1.3em 0.6em; border-radius: 999px; }
.start:hover { transform: scale(1.03); }
.gate p { margin: 0; max-width: 34em; font-size: 16px; color: var(--soft); }
.gate .big { font-size: 26px; color: var(--ink); }

/* what is playing */
.now { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.now .phrase { font-size: clamp(30px, 4.2vw, 52px); line-height: 1; margin: 0; }
.now .meta { margin: 8px 0 0; color: var(--soft); }
.pill { display: inline-block; background: var(--panel); color: var(--ink); text-decoration: none; padding: 11px 18px; border-radius: 999px; font-size: 17px; }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill[hidden] { display: none; }

/* the catalogue */
.list h2, .text h2 { font-size: 18px; color: var(--soft); margin: 14px 0 10px; }
.rows { list-style: none; margin: 0 -14px; padding: 0; display: grid; gap: 4px; }
.row { width: 100%; text-align: left; display: grid; grid-template-columns: 4.6em 1fr; gap: 2px 12px; padding: 13px 14px; border-radius: 12px; }
.row .no { color: var(--soft); grid-row: span 2; padding-top: 0.28em; }
.row .phrase { font-size: 24px; line-height: 1.1; }
.row .for { color: var(--soft); }
.row:hover { background: var(--panel); }
.row[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.row[aria-pressed="true"] .no, .row[aria-pressed="true"] .for { color: inherit; opacity: 0.62; }
.about { max-width: 38em; color: var(--soft); margin: 26px 0 0; }
.about b { color: var(--ink); }

/* text pages */
.text { max-width: 760px; padding: 34px 0 56px; }
.text h1 { font-size: clamp(44px, 8vw, 92px); line-height: 0.92; margin: 0 0 28px; }
.text p, .text li { font-size: 24px; line-height: 1.22; margin: 0 0 14px; }
.text ul { padding-left: 1.1em; margin: 0 0 14px; }
.text .small p, .text .small li { font-size: 18px; line-height: 1.3; color: var(--soft); }
.text .small a { color: var(--ink); }
.credit { background: var(--panel); border-radius: 14px; padding: 18px 20px; margin: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.credit p { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.copy { background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 17px; }

/* footer */
.foot { padding: 26px 0 44px; color: var(--soft); font-size: 16px; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--ink); }

/* YouTube asks for a player of at least 200 x 200 px. Under 396 px wide, 16:9 would be lower than that */
@media (max-width: 396px) {
  .screen { aspect-ratio: auto; height: 200px; }
}
@media (max-width: 560px) {
  .label { font-size: 26px; }
  .clock { margin-left: 0; }
  .text p, .text li { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot:hover::before, .start:hover { transform: none; }
}
