:root {
  --ink: #291821;
  --wine: #8e234d;
  --rose: #e86f86;
  --blush: #fff0f2;
  --pearl: #fffaf6;
  --sage: #6d8f77;
  --muted: #75626a;
  --line: rgba(41, 24, 33, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 6.5rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 6%, rgba(232,111,134,.24), transparent 28rem),
    linear-gradient(180deg, var(--pearl), var(--blush) 55%, #fff);
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,250,246,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand, nav, .hero-actions, footer { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 700; text-decoration: none; }
nav a { color: var(--muted); font-weight: 800; text-decoration: none; }
nav a:focus-visible, .button:focus-visible, audio:focus-visible, .direct:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 34rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 5rem);
}

.hero-copy { max-width: 52rem; }
.hero-copy {
  padding-top: 1rem;
  border-top: 1px solid rgba(142,35,77,.24);
}
.hero-art { width: min(100%, 34rem); filter: drop-shadow(0 26px 36px rgba(142,35,77,.2)); }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--wine);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: .8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 { margin-bottom: .45rem; color: var(--wine); font-size: 1.1rem; }
.lede, .live p, article p, .contact p { color: var(--muted); font-size: 1.07rem; line-height: 1.7; }
.lede { max-width: 42rem; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .86rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary { color: white; background: var(--wine); }
.secondary { border: 1px solid var(--line); background: white; }
.dark { color: white; background: var(--ink); }

.live {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem);
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.player-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff0f2);
  box-shadow: 0 24px 46px rgba(142,35,77,.12);
}

.hero-player {
  width: min(100%, 34rem);
  margin-top: 1.4rem;
}

.player-dock {
  position: fixed;
  right: clamp(.75rem, 3vw, 1.5rem);
  bottom: clamp(.75rem, 3vw, 1.5rem);
  left: clamp(.75rem, 3vw, 1.5rem);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(10rem, .42fr) minmax(14rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid rgba(142,35,77,.24);
  border-radius: 999px;
  background: rgba(255,250,246,.95);
  box-shadow: 0 16px 38px rgba(142,35,77,.2);
  backdrop-filter: blur(18px);
}

.player-dock strong,
.player-dock span {
  display: block;
}

.player-dock strong {
  font-family: Georgia, "Times New Roman", serif;
}

.player-dock span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.stream-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-player {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr) minmax(8rem, .7fr);
  align-items: center;
  gap: .9rem;
  width: 100%;
}

.play-toggle {
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  border: 1px solid rgba(142,35,77,.2);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--wine), var(--rose));
  box-shadow: 0 12px 26px rgba(142,35,77,.22);
  cursor: pointer;
}

.play-toggle span {
  width: 0;
  height: 0;
  margin-left: .24rem;
  border-top: .58rem solid transparent;
  border-bottom: .58rem solid transparent;
  border-left: .88rem solid currentColor;
}

.play-toggle.is-playing span {
  width: .9rem;
  height: 1.08rem;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%);
}

.player-meta strong,
.player-meta small,
.volume-control span {
  display: block;
}

.player-meta strong {
  font-family: Georgia, "Times New Roman", serif;
}

.player-meta small {
  color: var(--muted);
  font-weight: 800;
}

.live-dot {
  display: inline-block;
  width: .62rem;
  height: .62rem;
  margin-right: .35rem;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 .22rem rgba(109,143,119,.16);
}

.volume-control span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.volume-control input {
  width: 100%;
  accent-color: var(--wine);
}

.play-toggle:focus-visible,
.volume-control input:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
}

.status { margin: .85rem 0; color: var(--muted); font-weight: 800; }
.direct { color: var(--wine); font-weight: 900; }

.programs, .contact { padding: clamp(2rem, 6vw, 5rem); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

article {
  min-height: 13rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
}

.contact {
  color: white;
  background: linear-gradient(135deg, #291821, #8e234d 62%, #6d8f77);
}

.contact .eyebrow { color: #ffdfe5; }
.contact p { max-width: 46rem; color: rgba(255,255,255,.82); }
footer {
  justify-content: space-between;
  padding: 1.3rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .live { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { order: -1; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .player-dock {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 18px;
  }
  .custom-player { grid-template-columns: auto minmax(0, 1fr); }
  .volume-control { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .program-grid { grid-template-columns: 1fr; }
}
