:root {
  color-scheme: dark;
  --ink: #f4f0e6;
  --muted: #aeb8c7;
  --paper: #0c1422;
  --paper-2: #131d2f;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #f5c45e;
  --blue: #89b7ff;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgba(76, 125, 204, 0.25), transparent 32rem),
    radial-gradient(circle at 5% 40%, rgba(245, 196, 94, 0.08), transparent 28rem),
    var(--paper);
}

button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { width: calc(100% - 40px); max-width: 1120px; margin: 0 auto; }
main, .hero-copy, .player, .episode-notes, .library { min-width: 0; max-width: 100%; }

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(245, 196, 94, 0.55);
  border-radius: 50%;
}

.brand-mark i { display: block; width: 2px; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }
.brand-mark i:nth-child(4) { height: 6px; }

.edition, .eyebrow, .section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  padding: clamp(64px, 10vw, 120px) 0 58px;
}

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--accent); }
h1, h2, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.6vw, 6.9rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.93;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.dek {
  max-width: 660px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: #cbd4df; font-size: 0.73rem; }
.now-card { perspective: 900px; }

.cover {
  aspect-ratio: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 40%), #eeb74c;
  color: #111b2c;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.cover-kicker { font-size: 0.58rem; letter-spacing: 0.16em; font-weight: 800; }
.cover strong { font-family: Georgia, serif; font-size: 3.2rem; font-weight: 400; line-height: 0.83; letter-spacing: -0.06em; }
.cover-wave { letter-spacing: 0.16em; font-size: 0.8rem; }

.player {
  position: sticky;
  z-index: 5;
  bottom: max(12px, env(safe-area-inset-bottom));
  margin-bottom: 92px;
  padding: 24px clamp(20px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(19, 29, 47, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.timeline-row { display: grid; grid-template-columns: 46px 1fr 46px; gap: 14px; align-items: center; }
.time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.72rem; }
.time:last-child { text-align: right; }
.timeline { width: 100%; height: 4px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.transport { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 18px 0 10px; }
.icon-button, .play-button { border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.icon-button { position: relative; width: 44px; height: 44px; font-size: 2rem; }
.icon-button small { position: absolute; inset: 17px 0 auto; font-size: 0.55rem; font-weight: 800; }

.play-button {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111b2c;
  box-shadow: 0 10px 28px rgba(245, 196, 94, 0.22);
  font-size: 1.25rem;
}

.play-button:hover { background: #ffd67e; transform: translateY(-1px); }
.play-button:active { transform: translateY(1px); }
.player-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 0.76rem; }
.player-meta p { margin: 0; }
.speed-control { display: flex; align-items: center; gap: 8px; }
.speed-control select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; color: var(--ink); background: #18243a; }
.episode-notes, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.episode-notes { padding: 0 0 92px; border-bottom: 1px solid var(--line); }
.section-label { margin-bottom: 12px; color: var(--accent); }
h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.episode-notes h2 { max-width: 650px; }
.text-link { flex: 0 0 auto; color: var(--blue); text-underline-offset: 5px; }
.library { padding: 92px 0 110px; }
.section-heading { margin-bottom: 38px; }
.episode-list { border-top: 1px solid var(--line); }
.episode-row { border-bottom: 1px solid var(--line); }

.episode-select {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 72px 36px;
  align-items: center;
  gap: 20px;
  padding: 25px 8px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.episode-select:hover { background: rgba(255, 255, 255, 0.035); }
.episode-select[aria-current="true"] { background: rgba(245, 196, 94, 0.07); }
.episode-index, .episode-row-duration { color: var(--muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.episode-copy { display: grid; gap: 7px; }
.episode-row-title { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.episode-row-summary { overflow: hidden; color: var(--muted); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.row-play { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 0.68rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

footer p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 28px); }
  .site-header { min-height: 70px; }
  .edition { display: none; }
  .hero { grid-template-columns: 1fr; padding: 60px 0 38px; }
  .now-card { display: none; }
  h1 { font-size: clamp(3rem, 13.5vw, 4.5rem); }
  .player { margin-bottom: 70px; padding: 18px 16px; border-radius: 18px; }
  .player-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .player-meta p { min-width: 0; }
  .episode-notes { display: grid; padding-bottom: 70px; }
  .library { padding: 70px 0 80px; }
  .episode-select { grid-template-columns: 38px minmax(0, 1fr) 32px; gap: 12px; }
  .episode-row-duration { display: none; }
  footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
