/*
 * Yellow Room: the « Courtside » identity of the club calendar (club black,
 * yellow #FFD24D, Urbanist), with a rounder display face (Bungee) for the
 * podcast's titles. Read on a phone first.
 */

@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Bungee;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/bungee-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --yellow: #ffd24d;
  --ink: #121212;
  --paper: #f4f3ef;
  --card: #fff;
  --muted: #6e6e68;
  --rule: #e3e1d9;
  --night-muted: #8d8d86;
  --night-text: #b9b9b1;
  /* Dark amber: the family of the club yellow, legible on white (7:1). */
  --link: #6d5400;
  /* The entry animation. */
  --ball: #e0701f;
  --seam: #3a1a05;
  --chalk: #ecebe6;
  --dim: #3a3a35;
  --floor: #2a2a27;
  --display: Bungee, Impact, "Arial Black", sans-serif;
  --body: Urbanist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a {
  color: var(--link);
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 2px;
}
a:hover { color: #000; text-decoration-color: #000; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Every band spans the width; its content keeps one column. */
.band {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.label {
  margin: 0 0 8px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ---- Header (black) ---- */
.header { background: #000; color: #fff; }
.header .band { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; }
.brand:hover { color: #fff; }
.logo { width: 32px; height: 32px; border-radius: 50%; }
.header-nav { margin-left: auto; font-size: 0.85rem; font-weight: 700; }
.header-nav a { color: #cfcfc8; text-decoration-color: color-mix(in srgb, #cfcfc8 45%, transparent); }
.header-nav a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

/* ---- Hero (black, the calendar's slanted yellow rule at the edge) ---- */
.hero { position: relative; overflow: hidden; background: #000; color: #fff; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 91%, var(--yellow) 91%, var(--yellow) 95%, transparent 95%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 16px; align-items: end;
  padding-block: 22px 26px;
  padding-right: max(44px, env(safe-area-inset-right, 0px));
}
.hero-inner > * { min-width: 0; }
.cover { grid-row: span 3; width: 104px; height: 104px; border-radius: 14px; box-shadow: 0 0 0 2px var(--yellow); }
.eyebrow {
  margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--night-muted);
}
.title { margin: 0; font: 400 clamp(1.45rem, 7vw, 2.6rem)/1.05 var(--display); color: var(--yellow); }
.subtitle { margin: 0; font-size: 0.85rem; color: var(--night-text); max-width: 32rem; }
@media (min-width: 640px) {
  .hero-inner { grid-template-columns: 150px minmax(0, 1fr); gap: 6px 24px; padding-block: 32px 36px; }
  .cover { width: 150px; height: 150px; border-radius: 18px; }
  .subtitle { font-size: 0.95rem; }
}

/* ---- Content (light) ---- */
.main { display: grid; gap: 24px; padding-block: 22px 36px; }

.latest {
  display: grid; gap: 2px;
  background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--yellow);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.latest .label { margin-bottom: 2px; }
.latest p { margin: 0; }
.latest-title { margin: 0; font-size: 1.35rem; font-weight: 900; line-height: 1.15; }
.meta { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.summary { font-size: 0.92rem; margin-top: 4px !important; }
.summary:empty { display: none; }
.fallback { margin-top: 8px !important; font-weight: 700; }

.player { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.play, .episode-play {
  flex: none; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 2px solid var(--yellow); background: #000; color: var(--yellow);
}
.play { width: 48px; height: 48px; }
.play svg { width: 18px; height: 18px; }
.play:hover, .episode-play:hover { background: var(--yellow); color: #000; }
.seek { flex: 1; min-width: 0; accent-color: var(--ink); height: 24px; }
.time { flex: none; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.platforms a {
  display: block; text-align: center; text-decoration: none;
  background: #000; color: var(--yellow); border: 2px solid var(--yellow); border-radius: 999px;
  padding: 9px 8px; font-weight: 800; font-size: 0.88rem;
}
.platforms a:hover { background: var(--yellow); color: #000; }

/* The bold block of the page: being told when the next episode is out. */
.signup { display: grid; gap: 10px; background: var(--yellow); color: var(--ink); border-radius: 16px; padding: 16px; scroll-margin-top: 16px; }
.signup p { margin: 0; }
.signup a { color: var(--ink); text-decoration-color: var(--ink); }
.signup-title { font: 400 1.05rem/1.15 var(--display); }
.signup-row { display: flex; gap: 8px; }
.signup-row input {
  flex: 1; min-width: 0; font: 600 1rem/1 var(--body); padding: 11px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
}
.signup-row button {
  flex: none; font: 800 0.9rem/1 var(--body); padding: 0 16px; cursor: pointer;
  background: var(--ink); color: var(--yellow); border: 2px solid var(--ink); border-radius: 999px;
}
.signup-row button:disabled { opacity: 0.6; cursor: progress; }
.signup-status { font-weight: 800; font-size: 0.92rem; }
.signup-status:empty { display: none; }
.signup-help, .signup-note { font-size: 0.8rem; }
.signup-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.episodes { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.episode { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.episode:last-child { border-bottom: none; }
.episode-number { flex: none; width: 2.4rem; font: 400 0.9rem/1 var(--display); }
.episode-text { flex: 1; min-width: 0; }
.episode-text a { display: block; font-weight: 800; color: var(--ink); text-decoration: none; }
.episode-text a:hover { text-decoration: underline; }
.episode-text span { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.episode-play { width: 38px; height: 38px; }
.episode-play svg { width: 14px; height: 14px; }
.episode-current { background: color-mix(in srgb, var(--yellow) 18%, var(--card)); }

.footer { border-top: 1px solid var(--rule); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding-block: 16px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  font-size: 0.82rem; font-weight: 700;
}
.footer-credit { flex-basis: 100%; margin: 10px 0 0; text-align: center; font-weight: 600; color: var(--muted); }

/* ---- Entry animation: « On Air » (assets/on-air.js) ----
 * Over the page from the first paint, at every visit. If the script never
 * runs, this safety net lifts it after 5 s; the script cancels it. */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: #000; cursor: pointer; overflow: hidden;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  animation: curtain-safety 0s linear 5s forwards;
}
@keyframes curtain-safety { to { visibility: hidden; } }
.curtain svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curtain-skip {
  position: absolute; z-index: 1;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font: 700 0.78rem/1 var(--body); letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  padding: 8px 14px; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}
