/* ==========================================================================
   Beach Club Radio — style.css
   Plain CSS, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted: no third-party requests) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colours, sampled from the logo */
  --midnight: #011b2c;
  --navy: #022c43;
  --navy-soft: #0b3a55;
  --lagoon: #02b0c2;
  --lagoon-light: #6fd8e0;
  --lagoon-deep: #00727f;
  --sunset: #f8843a;
  --sun: #fdb636;
  --shell: #fcf4df;
  --shell-deep: #f4e6c4;

  --ink-on-dark: var(--shell);
  --muted-on-dark: rgba(252, 244, 223, 0.72);
  --line-on-dark: rgba(252, 244, 223, 0.14);
  --muted-on-light: rgba(2, 44, 67, 0.72);
  --line-on-light: rgba(2, 44, 67, 0.16);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.07rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.38rem + 1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.8vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.7rem + 4vw, 5.2rem);
  --step-hero: clamp(3.4rem, min(1.4rem + 5.4vw, 10.5svh), 7rem);

  /* Layout */
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: min(1200px, 100% - 2 * var(--gutter));
  --section-pad: clamp(88px, 11vw, 168px);
  --header-h: 76px;
  --player-h: 76px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
}

/* ---------- Station-time sky (set by main.js from the schedule) ---------- */
body,
body[data-phase="night"] {
  --sky: linear-gradient(180deg, #010f1b 0%, #022540 55%, #0a4561 100%);
  --sea: linear-gradient(180deg, #0a3a54 0%, #03223a 30%, #011524 100%);
  --glow: rgba(2, 176, 194, 0.3);
  --reflect: rgba(111, 216, 224, 0.42);
  --hero-ink: var(--shell);
  --hero-ink-soft: rgba(252, 244, 223, 0.8);
}
body[data-phase="sunset"] {
  --sky: linear-gradient(180deg, #021f33 0%, #0d3a58 50%, #34506a 80%, #b8714f 93%, #f39a45 98%, #fdb636 100%);
  --sea: linear-gradient(180deg, #2b4157 0%, #0d2d45 28%, #031b2d 100%);
  --glow: rgba(253, 170, 70, 0.42);
  --reflect: rgba(253, 182, 54, 0.62);
  --hero-ink: var(--shell);
  --hero-ink-soft: rgba(252, 244, 223, 0.84);
}
body[data-phase="day"] {
  --sky: linear-gradient(180deg, #4cc3d2 0%, #93dfe3 45%, #d9f2ea 80%, #fcf4df 100%);
  --sea: linear-gradient(180deg, #0a97b2 0%, #11adc1 22%, #3fc4cf 100%);
  --glow: rgba(253, 214, 100, 0.62);
  --reflect: rgba(255, 252, 238, 0.7);
  --hero-ink: var(--navy);
  --hero-ink-soft: rgba(2, 44, 67, 0.84);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background: var(--midnight);
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: var(--wrap); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--shell); color: var(--navy);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; cursor: pointer; text-decoration: none;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--sunset); color: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(248, 132, 58, 0.7);
}
.btn-primary:hover { background: #ff9550; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-large {
  padding: 19px 30px 19px 22px;
  font-size: 0.92rem; letter-spacing: 0.14em; text-transform: uppercase;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.2s;
}
.text-link:hover { text-underline-offset: 9px; }

/* Play / pause glyph shared by every play control */
.play-glyph { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.play-glyph svg { width: 100%; height: 100%; fill: currentColor; grid-area: 1 / 1; }
.icon-pause { display: none; }
html[data-player="playing"] .icon-play,
html[data-player="loading"] .icon-play { display: none; }
html[data-player="playing"] .icon-pause { display: block; }
html[data-player="loading"] .play-glyph::after {
  content: ""; grid-area: 1 / 1;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.btn-large .play-glyph {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--shell); padding: 9px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--hero-ink);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(1, 27, 44, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--shell);
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.header-inner {
  width: var(--wrap); height: var(--header-h); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  margin-right: auto; text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; white-space: nowrap; }

.site-nav ul { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.site-nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  opacity: 0.82; transition: opacity 0.2s;
}
.site-nav a:hover, .site-nav a.is-active { opacity: 1; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0.16em; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.site-nav a.is-active::after { transform: scaleX(1); }

.listen-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sunset); color: var(--navy);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.listen-pill:hover { background: #ff9550; }
.listen-pill .play-glyph { width: 16px; height: 16px; }

.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
}
.menu-toggle-lines,
.menu-toggle-lines::before {
  position: absolute; left: 11px; width: 22px; height: 1.5px;
  background: currentColor; transition: transform 0.3s var(--ease-out), top 0.3s;
}
.menu-toggle-lines { top: 18px; }
.menu-toggle-lines::before { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px var(--gutter) calc(var(--player-h) + 40px + env(safe-area-inset-bottom, 0px));
  background: var(--midnight); color: var(--shell);
  animation: fade-in 0.25s ease-out;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu nav a {
  display: block; padding: 6px 0;
  font-family: var(--font-display); font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.1;
  text-decoration: none;
}
.mobile-menu-email { color: var(--muted-on-dark); text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero {
  --horizon: 72%;
  --logo: clamp(280px, min(36vw, 58svh), 520px);
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(640px, 100svh - var(--player-h), 980px);
  color: var(--hero-ink);
}
.hero-sky, .hero-sea {
  position: absolute; left: 0; right: 0; z-index: -2;
  transition: background 1.2s;
  animation: fade-in 1s ease-out 0.1s both;
}
.hero-sky { top: 0; height: var(--horizon); background: var(--sky); }
.hero-sea { top: var(--horizon); bottom: 0; background: var(--sea); }
.hero-sea::before {
  /* the horizon line */
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0.35) 70%, transparent);
}

.hero-logo {
  position: absolute; z-index: -1;
  width: var(--logo);
  top: calc(var(--horizon) - var(--logo) * 0.62);
  right: calc((100% - min(1200px, 100% - 2 * var(--gutter))) / 2);
  isolation: isolate;
  animation: rise 1.8s var(--ease-out) 0.2s both;
}
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(1, 21, 36, 0.35)); }
.hero-logo::before {
  /* the sun's glow behind the logo */
  content: ""; position: absolute; z-index: -1; inset: -42%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, var(--glow) 28%, transparent 62%);
  transition: background 1.2s;
}
.hero-logo::after {
  /* striped reflection on the water, echoing the sun stripes in the logo */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 92%; width: 46%; height: 70vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--reflect), transparent 70%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 11px);
  mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 11px);
  opacity: 0.8;
  animation: shimmer 7s ease-in-out 2s infinite;
}

.hero-content {
  position: relative;
  width: var(--wrap); height: var(--horizon); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(28px, 5svh, 60px);
}
.hero-content > * {
  max-width: min(620px, 100% - var(--logo) - 48px);
  animation: lift 1s var(--ease-out) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  animation-delay: 0.65s;
}
.hero-lede {
  margin-top: clamp(16px, 2.2svh, 26px);
  max-width: min(36ch, 100% - var(--logo) - 48px);
  font-size: var(--step-1); line-height: 1.5;
  color: var(--hero-ink-soft);
  animation-delay: 0.8s;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  margin-top: clamp(22px, 3.4svh, 36px);
  animation-delay: 0.95s;
}
.hero-onair {
  margin-top: clamp(18px, 2.6svh, 26px);
  font-size: var(--step--1); color: var(--hero-ink-soft);
  animation-delay: 1.1s;
}
.hero-onair strong { font-weight: 600; color: var(--hero-ink); }
.hero-onair .onair-dot { display: inline-block; margin-right: 10px; vertical-align: 0.05em; }

.onair-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--sunset);
  box-shadow: 0 0 0 0 rgba(248, 132, 58, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

/* ---------- Through the day ---------- */
.day {
  background: var(--shell);
  color: var(--navy);
  padding-block: var(--section-pad);
}
.day .section-title { max-width: 14ch; }

.day-line {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
}
.day-line::before {
  /* one line, coloured like the day it describes */
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sun), var(--sunset) 38%, var(--navy) 68%, var(--lagoon));
}
.day-stop { position: relative; padding: 44px 28px 0 0; }
.day-stop[data-stop="day"] { --stop: var(--sun); }
.day-stop[data-stop="sunset"] { --stop: var(--sunset); }
.day-stop[data-stop="night"] { --stop: var(--navy); }
.day-stop[data-stop="weekend"] { --stop: var(--lagoon); }
.day-dot {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--stop);
  box-shadow: 0 0 0 5px var(--shell);
  transition: box-shadow 0.4s;
}
.day-stop.is-now .day-dot { box-shadow: 0 0 0 5px var(--shell), 0 0 0 11px color-mix(in srgb, var(--stop) 28%, transparent); }
.day-when { font-size: var(--step--1); color: var(--muted-on-light); font-variant-numeric: tabular-nums; }
.day-name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin-top: 6px;
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05;
}
.day-now {
  display: none;
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  background: var(--navy); color: var(--shell);
}
.day-stop.is-now .day-now { display: inline-block; }
.day-desc { margin-top: 10px; max-width: 24ch; color: var(--muted-on-light); }

/* ---------- Schedule ---------- */
.schedule {
  background: var(--navy);
  color: var(--ink-on-dark);
  padding-block: var(--section-pad);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
}
.section-note { color: var(--muted-on-dark); font-size: var(--step--1); }

.schedule-tabs {
  display: flex; gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line-on-dark);
  overflow-x: auto; scrollbar-width: none;
}
.schedule-tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 0 18px;
  border: 0; background: none; cursor: pointer;
  font-size: var(--step-0); font-weight: 500;
  color: var(--muted-on-dark);
  transition: color 0.2s;
}
.tab:hover { color: var(--shell); }
.tab[aria-selected="true"] { color: var(--shell); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sunset);
}
.tab-now { width: 6px; height: 6px; border-radius: 50%; background: var(--sunset); }

.schedule-panel[hidden] { display: none; }
.schedule-panel:not([hidden]) { animation: fade-in 0.35s ease-out; }

.slot {
  position: relative;
  display: grid; grid-template-columns: 10.5rem 1fr auto; gap: 6px 32px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.slot-time {
  font-size: var(--step--1); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  color: var(--muted-on-dark);
}
.slot-title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.08; }
.slot-host { margin-top: 2px; font-size: var(--step--1); color: var(--lagoon-light); }
.slot-desc { margin-top: 6px; max-width: 58ch; color: var(--muted-on-dark); }
.slot-tags { display: flex; gap: 8px; justify-content: flex-end; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid rgba(111, 216, 224, 0.55); color: var(--lagoon-light);
}
.tag-onair { border-color: transparent; background: var(--sunset); color: var(--navy); }
.tag-onair .onair-dot { width: 6px; height: 6px; background: var(--navy); animation: none; }

.slot.is-on-air::before {
  content: ""; position: absolute; z-index: 0; inset: -1px calc(-1 * min(24px, var(--gutter) - 4px));
  background: linear-gradient(90deg, rgba(252, 244, 223, 0.07), rgba(252, 244, 223, 0) 80%);
  border-left: 2px solid var(--sunset);
}
.slot > * { position: relative; z-index: 1; }
.slot.is-on-air .slot-time { color: var(--sun); }

/* ---------- About ---------- */
.about {
  background: var(--shell);
  color: var(--navy);
  padding-block: var(--section-pad);
}
.about-intro {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px clamp(40px, 6vw, 96px); align-items: end;
}
.about .section-title { max-width: 13ch; }
.about-lede { max-width: 44ch; font-size: var(--step-1); line-height: 1.55; color: var(--muted-on-light); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px clamp(24px, 3vw, 44px);
  margin-top: clamp(64px, 8vw, 112px);
}
.facts li { padding-top: 22px; border-top: 1px solid var(--line-on-light); }
.facts h3 { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.facts p { margin-top: 10px; color: var(--muted-on-light); }
.facts a {
  display: block; width: fit-content; margin-top: 12px;
  font-weight: 600; color: var(--lagoon-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--ink-on-dark);
  padding-block: var(--section-pad);
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(48px, 8vw, 128px);
}
.contact-intro > p { margin-top: 20px; max-width: 36ch; color: var(--muted-on-dark); }
.contact-email {
  display: inline-block; margin-top: 32px;
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
  text-decoration-color: rgba(252, 244, 223, 0.4);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s;
}
.contact-email:hover { text-decoration-color: var(--sunset); }

.socials { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }
.socials a, .footer-links a {
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.socials a:hover, .footer-links a:hover { border-bottom-color: currentColor; }

.contact-form { display: grid; gap: 22px; }
.enquiry { margin: 0; padding: 0; border: 0; }
.enquiry legend, .field label {
  display: block; margin-bottom: 10px; padding: 0;
  font-size: var(--step--1); font-weight: 500; color: var(--muted-on-dark);
}
.enquiry-options { display: flex; flex-wrap: wrap; gap: 10px; }
.enquiry-options label { position: relative; cursor: pointer; }
.enquiry-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.enquiry-options span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(252, 244, 223, 0.28);
  font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.enquiry-options label:hover span { border-color: rgba(252, 244, 223, 0.6); }
.enquiry-options input:checked + span { background: var(--shell); border-color: var(--shell); color: var(--navy); }
.enquiry-options input:focus-visible + span { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(252, 244, 223, 0.22); border-radius: 12px;
  background: rgba(252, 244, 223, 0.05);
  color: var(--shell); font: inherit;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field textarea:hover { border-color: rgba(252, 244, 223, 0.42); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--lagoon); background: rgba(252, 244, 223, 0.08);
  box-shadow: 0 0 0 3px rgba(2, 176, 194, 0.28);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--sunset); }
.field-hint { margin-top: 10px; font-size: var(--step--1); color: var(--lagoon-light); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-status { font-size: var(--step--1); }
.form-status[data-state="success"] { color: var(--lagoon-light); }
.form-status[data-state="error"] { color: #ffb48a; }

.privacy { font-size: var(--step--1); color: var(--muted-on-dark); }
.privacy summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 4px; }
.privacy p { margin-top: 10px; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: var(--ink-on-dark);
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line-on-dark);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.footer-brand img { width: 96px; height: 96px; }
.footer-brand span { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; max-width: 9ch; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted-on-dark); }
.footer-links a:hover { color: var(--shell); }
.footer-small { display: grid; gap: 10px; font-size: var(--step--1); color: var(--muted-on-dark); }
.footer-small a { text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ---------- Live player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(1, 27, 44, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: var(--shell);
  border-top: 1px solid var(--line-on-dark);
}
.player-inner {
  position: relative;
  width: var(--wrap); height: var(--player-h); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
}
.player-btn {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sunset); color: var(--navy);
  transition: background-color 0.2s, transform 0.2s;
}
.player-btn:hover { background: #ff9550; }
.player-btn:active { transform: scale(0.96); }
.player-info { flex: 1; min-width: 0; }
.player-show {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-show span:last-child { overflow: hidden; text-overflow: ellipsis; }
.player-track {
  margin-top: 2px;
  font-size: 0.88rem; color: var(--muted-on-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-label { color: var(--lagoon-light); font-weight: 500; margin-right: 4px; }

.player-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; opacity: 0; transition: opacity 0.3s; }
.player-eq span { width: 3px; height: 30%; border-radius: 2px; background: var(--lagoon-light); }
html[data-player="playing"] .player-eq { opacity: 1; }
html[data-player="playing"] .player-eq span { animation: eq 1.1s ease-in-out infinite; }
.player-eq span:nth-child(2) { animation-delay: -0.4s !important; }
.player-eq span:nth-child(3) { animation-delay: -0.75s !important; }
.player-eq span:nth-child(4) { animation-delay: -0.2s !important; }

.player-volume { display: flex; align-items: center; gap: 10px; color: var(--muted-on-dark); }
.player-volume svg { width: 20px; height: 20px; fill: currentColor; }
.player-volume input { width: 110px; accent-color: var(--lagoon); cursor: pointer; }

.player-status {
  position: absolute; left: 0; bottom: calc(100% + 12px);
  max-width: min(520px, 100%);
  padding: 12px 16px; border-radius: 12px;
  background: var(--shell); color: var(--navy);
  font-size: 0.9rem; line-height: 1.45;
  box-shadow: 0 16px 40px -16px rgba(1, 21, 36, 0.6);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.player-status.is-visible { opacity: 1; transform: none; }

/* ---------- Motion ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16%); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 132, 58, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(248, 132, 58, 0); }
}
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

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

/* ---------- Short desktop windows (laptops with toolbars) ---------- */
@media (min-width: 861px) and (max-height: 760px) {
  .hero {
    --horizon: 76%;
    --logo: clamp(240px, min(34vw, 50svh), 460px);
    height: max(500px, 100svh - var(--player-h));
  }
  .hero-content { padding-top: calc(var(--header-h) + 8px); padding-bottom: 22px; }
  .hero-title { font-size: clamp(2.8rem, 9.5svh, 5rem); }
  .hero-lede { margin-top: 12px; font-size: 1.1rem; }
  .hero-actions { margin-top: 18px; }
  .btn-large { padding: 14px 24px 14px 16px; }
  .hero-onair { margin-top: 14px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --header-h: 64px; --player-h: 70px; }

  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.25rem; }
  .listen-pill { padding: 9px 14px 9px 12px; font-size: 0.72rem; }

  .hero {
    --logo: min(64vw, 320px);
    --horizon: calc(var(--header-h) + 24px + var(--logo) * 0.62);
    height: auto;
    min-height: 100svh;
  }
  .hero-logo { right: auto; left: 50%; translate: -50% 0; }
  .hero-logo::after { height: 44px; opacity: 0.6; }
  .hero-content {
    height: auto; min-height: 100svh;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 24px + var(--logo) + 40px);
    padding-bottom: 56px;
  }
  .hero-content > *, .hero-lede { max-width: 100%; }
  .hero-title { font-size: clamp(3.2rem, 15vw, 4.6rem); }

  .day-line { grid-template-columns: 1fr; gap: 40px; margin-left: 4px; }
  .day-line::before {
    top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--sun), var(--sunset) 38%, var(--navy) 68%, var(--lagoon));
  }
  .day-stop { padding: 0 0 0 44px; }
  .day-desc { max-width: none; }

  .slot { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 0; }
  .slot-time { grid-column: 1; grid-row: 1; }
  .slot-tags { grid-column: 2; grid-row: 1; }
  .slot-main { grid-column: 1 / -1; }

  .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .player-volume { display: none; }
  .player-btn { width: 46px; height: 46px; }
  .player-show { font-size: 1.18rem; }
  .player-status { right: 0; }
}

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

@media (max-width: 420px) {
  .brand-name { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Touch devices control volume with hardware buttons */
@media (hover: none) {
  .player-volume { display: none; }
}
