:root {
  color-scheme: dark;
  --bg: #151210;
  --surface: #211a17;
  --surface-2: #2b211d;
  --surface-3: #352823;
  --ink: #fff7ef;
  --muted: #c8b5a7;
  --accent: #ef9a55;
  --accent-soft: #f7b47d;
  --accent-strong: #e9782f;
  --rose: #dc8390;
  --lavender: #b49bd2;
  --sage: #9dbb92;
  --sand: #dfae6d;
  --line: rgba(255, 247, 239, 0.16);
  --line-strong: rgba(255, 247, 239, 0.28);
  --accent-ink: #2d170c;
  --header-bg: rgba(21, 18, 16, 0.88);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  --glow-1: 180 155 210;
  --glow-2: 220 131 144;
  --glow-3: 239 154 85;
  --max: 1180px;
  --radius: 22px;
}


html[data-theme="light"] {
  color-scheme: light;
  /* Solarized-Light-inspired base with a stronger orange accent. */
  --bg: #fdf6e3;
  --surface: #fffaf0;
  --surface-2: #eee8d5;
  --surface-3: #e3dcc8;
  --ink: #073642;
  --muted: #586e75;
  --accent: #d65f14;
  --accent-soft: #e98232;
  --accent-strong: #b94a08;
  --rose: #b85f70;
  --lavender: #806ca8;
  --sage: #668b68;
  --sand: #ad7c32;
  --line: rgba(7, 54, 66, 0.16);
  --line-strong: rgba(7, 54, 66, 0.30);
  --accent-ink: #2d170c;
  --header-bg: rgba(253, 246, 227, 0.92);
  --shadow: 0 22px 65px rgba(88, 110, 117, 0.16);
  --glow-1: 128 108 168;
  --glow-2: 184 95 112;
  --glow-3: 214 95 20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgb(var(--glow-1) / 0.19), transparent 34rem),
    radial-gradient(circle at 8% 35%, rgb(var(--glow-2) / 0.14), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: background-color 180ms ease, color 180ms ease;
}

a { color: inherit; }
a:hover { color: var(--accent-soft); }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, select { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
}

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  width: 205px;
  color: var(--accent-soft);
  text-decoration: none;
  flex: 0 0 auto;
}
.nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}
.nav a:hover { color: var(--ink); }
.nav .listen-link {
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
}
.nav .listen-link:hover {
  color: var(--accent-ink);
  background: var(--accent);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.theme-toggle,
.language-switch {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}
.theme-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--accent-soft);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
.language-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
}
.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.58rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.hero {
  min-height: min(790px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 3rem;
  align-items: end;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1 {
  max-width: 980px;
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.072em;
  text-transform: lowercase;
}
.hero-subtitle {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}
.hero-art {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(130deg, rgb(var(--glow-3) / 0.24), transparent 40%),
    repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--ink) 4%, transparent) 18px 19px),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-art::before {
  width: 300px;
  height: 300px;
  right: -70px;
  top: -35px;
  border: 44px solid var(--rose);
  opacity: 0.84;
}
.hero-art::after {
  width: 190px;
  height: 190px;
  left: -25px;
  bottom: -45px;
  border: 32px solid var(--lavender);
  opacity: 0.82;
}
.frequency {
  position: absolute;
  inset: auto 1.5rem 1.3rem;
  color: var(--accent-soft);
  font: 850 clamp(2.1rem, 5vw, 4rem) / 1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -0.065em;
  text-transform: lowercase;
}
.frequency > span {
  display: block;
}
.frequency small {
  display: block;
  margin-top: 0.8rem;
  color: var(--ink);
  font: 750 0.75rem / 1.2 ui-sans-serif, system-ui;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
}
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.section-intro {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.upcoming-list {
  display: grid;
  gap: 1.5rem;
}
.upcoming-card {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.date-panel {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem;
  color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
}
.date-panel .day {
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 0.8;
  font-weight: 880;
  letter-spacing: -0.08em;
}
.date-panel .month {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.date-panel .year { opacity: 0.66; font-weight: 800; }
.upcoming-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.2rem);
}
.upcoming-copy h3 {
  max-width: 690px;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.upcoming-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.3rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 780;
}
.button:hover { border-color: var(--accent); }
.button-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.button-primary:hover { color: var(--bg); filter: brightness(0.94); }

.upcoming-empty {
  margin: 0;
  padding: 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

html[data-theme="light"] .date-panel {
  color: var(--accent-ink);
  background: linear-gradient(145deg, #ed914d, var(--accent));
}
html[data-theme="light"] .date-panel .year { opacity: 0.82; }
html[data-theme="light"] .nav .listen-link,
html[data-theme="light"] .language-switch button[aria-pressed="true"] {
  color: var(--accent-ink);
}
html[data-theme="light"] .text-link,
html[data-theme="light"] .recording-link,
html[data-theme="light"] .episode-date,
html[data-theme="light"] .mix-duration,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .brand,
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .frequency {
  color: var(--accent-strong);
}
html[data-theme="light"] a:hover { color: var(--accent-strong); }

.listen-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem;
  align-items: start;
}
.mix-browser {
  display: grid;
  gap: 0.75rem;
}
.mix-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 7px);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.mix-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.mix-item[aria-pressed="true"] {
  border-color: var(--accent);
  background:
    linear-gradient(120deg, rgb(var(--glow-3) / 0.2), transparent 55%),
    var(--surface-2);
  box-shadow: inset 4px 0 0 var(--accent);
}
.mix-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.mix-copy strong {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.mix-copy > span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
.mix-duration {
  align-self: start;
  color: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.player-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.2rem;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.player-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}
.player-heading h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.player-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.text-link,
.recording-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 760;
  white-space: nowrap;
}
.player-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.player-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  background: var(--surface-2);
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: var(--surface-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.about-copy {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.34;
  letter-spacing: -0.025em;
}
.about-copy strong { color: var(--accent-soft); }
.about-secondary { color: var(--muted); }
.team { display: grid; gap: 0.7rem; margin-top: 2rem; }
.team-member {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.team-member > :last-child {
  color: var(--rose);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.artist-link {
  text-decoration: none;
}
.artist-link:hover {
  color: var(--accent-soft);
}

.archive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.archive-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.archive-tools {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.search-label { width: min(100%, 520px); }
.search {
  width: 100%;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}
.search::placeholder { color: var(--muted); opacity: 0.85; }
.search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(var(--glow-3) / 0.22);
}
.episode-list { display: grid; }
.episode {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.episode[hidden],
.archive-empty[hidden] { display: none !important; }
.episode:last-child { border-bottom: 1px solid var(--line); }
.episode-date {
  color: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.episode h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.episode p { margin: 0; color: var(--muted); }
.episode-link { color: var(--ink); text-decoration: none; font-weight: 760; }
.episode-link[aria-disabled="true"] { color: var(--muted); opacity: 0.55; pointer-events: none; }

.archive-empty {
  margin: 1.5rem 0 0;
  padding: 1.2rem;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius) - 8px);
  color: var(--muted);
  background: var(--surface);
}

.footer { padding: 4rem 0; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.5rem 2rem;
  align-items: end;
}
.footer-logo { width: min(470px, 85vw); color: var(--accent-soft); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  align-self: center;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-partner {
  justify-self: end;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.012));
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.18);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.footer-partner:hover {
  color: var(--muted);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-partner-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-partner-logo {
  display: flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
}
.footer-partner-logo img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}
.footer-partner-url {
  color: var(--muted);
  font-size: 0.72rem;
}
html[data-theme="light"] .footer-partner {
  background: rgb(255 250 240 / 0.88);
  box-shadow: 0 12px 28px rgb(88 110 117 / 0.12);
}
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  color: var(--muted);
  opacity: 0.72;
  font-size: 0.8rem;
}

@media (max-width: 1120px) {
  .nav a:not(.listen-link) { display: none; }
}

@media (max-width: 900px) {
  .hero-grid,
  .upcoming-card,
  .listen-layout,
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .hero-art { min-height: 280px; }
  .date-panel { min-height: 250px; }
  .section-header { display: block; }
  .section-intro { margin-top: 1rem; }
  .player-panel { position: static; }
  .player-frame iframe { height: 260px; }
  .episode { grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; }
  .episode-link { grid-column: 2; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; padding-block: 0.65rem; }
  .brand { width: 148px; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: flex-start; }
  .nav .listen-link { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .hero { min-height: auto; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 1.2rem), var(--max)); }
  h1 { font-size: clamp(3.4rem, 18vw, 5.8rem); }
  .section { padding: 4.5rem 0; }
  .mix-item { grid-template-columns: 1fr; }
  .mix-duration { align-self: auto; }
  .player-heading { display: block; }
  .player-actions { align-items: flex-start; margin-top: 1rem; }
  .archive-meta { display: block; }
  .archive-meta .text-link { margin-top: 0.6rem; }
  .text-link { display: inline-block; margin-top: 0.8rem; white-space: normal; }
  .player-frame iframe { height: 230px; }
  .episode { grid-template-columns: 1fr; }
  .episode-link { grid-column: auto; }
  .footer-grid,
  .footer-meta { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 2rem; }
  .footer-partner {
    width: fit-content;
    margin-top: 1.5rem;
    align-items: flex-start;
  }
  .footer-partner-logo { min-width: 0; }
  .footer-partner-logo img { width: 175px; }
  .footer-meta span { display: block; margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Legal pages */
.legal-main { min-height: calc(100vh - 76px); }
.legal-section { padding-top: clamp(4rem, 8vw, 7rem); }
.legal-shell { max-width: 900px; }
.legal-title {
  max-width: 100%;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: none;
}
.legal-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}
.legal-card h2 {
  margin: 2.4rem 0 0.8rem;
  color: var(--accent-soft);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  line-height: 1.2;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-address {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-style: normal;
  line-height: 1.75;
}
.legal-prose a {
  color: var(--accent-strong);
  font-weight: 750;
}
.legal-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
[data-language-panel][hidden] { display: none !important; }

@media (max-width: 620px) {
  .legal-title { font-size: clamp(2.8rem, 15vw, 4.8rem); }
  .legal-card { padding: 1.25rem; }
}
