:root {
  --black: #000;
  --panel: #101010;
  --panel-soft: #161311;
  --cream: #f3eadf;
  --muted: #a9a29a;
  --orange: #dc6a41;
  --orange-dark: #a94426;
  --line: rgba(243, 234, 223, 0.14);
  --shadow: rgba(0, 0, 0, 0.42);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { overflow-x: clip; background: var(--black); color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body { min-height: 100vh; margin: 0; padding-bottom: calc(112px + var(--safe-bottom)); overflow-x: clip; background: radial-gradient(circle at 50% -20%, rgba(220, 106, 65, 0.22), transparent 36rem), var(--black); color: var(--cream); }

a { color: inherit; text-decoration: none; }

img, iframe { max-width: 100%; display: block; }

button, input { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: calc(18px + var(--safe-top)) 38px 18px; border-bottom: 1px solid rgba(243, 234, 223, 0.06); background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(18px); }

.brand { display: none; align-items: baseline; gap: 8px; min-width: max-content; text-transform: uppercase; }
.brand span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.16em; }
.brand strong { color: var(--cream); font-size: 1.3rem; letter-spacing: 0.06em; }

.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.site-nav a { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; color: var(--cream); line-height: 1.2; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); background: transparent; }

.menu-toggle { display: none; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: transparent; color: var(--cream); text-transform: uppercase; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }

.live-status { display: flex; justify-content: center; padding: 12px 18px; background: var(--orange); color: #000; font-size: 1rem; font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap; }

.hero { min-height: auto; display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.82fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(42px, 6.2vw, 82px) clamp(20px, 6vw, 82px) clamp(74px, 7vw, 104px); }
.hero-copy { min-width: 0; width: 100%; max-width: 680px; justify-self: end; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; }
h1, h2 { margin: 0; line-height: 0.92; text-transform: uppercase; }
h1 { font-size: clamp(4.2rem, 10vw, 8.4rem); max-width: 900px; }
.hero h1 { font-size: clamp(4.2rem, 8.2vw, 7.5rem); }
h2 { font-size: clamp(2.3rem, 6vw, 5.5rem); }
h3 { margin: 0; }
p { color: var(--muted); line-height: 1.7; }
.lede { max-width: 680px; color: rgba(243, 234, 223, 0.82); font-size: clamp(1.08rem, 2vw, 1.36rem); }

.text-logo { width: 100%; text-align: center; text-transform: uppercase; }
.text-logo span { display: block; }
.text-logo-main { color: var(--cream); font-size: clamp(2.2rem, 3.5vw, 4.4rem); font-weight: 400; line-height: 0.96; letter-spacing: 0.13em; white-space: nowrap; }
.text-logo-radio { margin-top: clamp(13px, 1.8vw, 22px); color: var(--cream); font-size: clamp(1rem, 1.5vw, 1.75rem); font-weight: 700; letter-spacing: 0.58em; text-indent: 0.58em; }
.text-logo-rule { width: min(78%, 500px); height: 1px; margin: clamp(16px, 2vw, 24px) auto clamp(14px, 1.8vw, 20px); background: linear-gradient(90deg, transparent, var(--orange-dark), var(--orange), transparent); }
.text-logo-tagline { color: var(--cream); font-size: clamp(0.88rem, 1.05vw, 1.15rem); font-weight: 400; letter-spacing: 0.3em; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.primary-action, .secondary-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; }
.primary-action { border: 0; background: var(--orange); color: #140805; box-shadow: 0 20px 42px rgba(220, 106, 65, 0.26); }
.primary-action:hover { background: #f07a4c; }
.secondary-action { border: 1px solid var(--line); color: var(--cream); background: rgba(243, 234, 223, 0.04); }

.event-carousel { width: min(100%, 640px); justify-self: start; }
.carousel-frame { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #000; overflow: hidden; box-shadow: 0 24px 78px rgba(0, 0, 0, 0.52); }
.carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 420ms ease; }
.carousel-slide.is-current { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide:first-child img { object-position: center top; }
.carousel-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.92)); text-transform: uppercase; }
.carousel-slide span, .carousel-slide strong, .carousel-slide em { display: block; }
.carousel-slide span { color: var(--orange); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.16em; }
.carousel-slide strong { color: var(--cream); margin-top: 6px; font-size: clamp(1rem, 2.2vw, 1.42rem); line-height: 1.1; letter-spacing: 0.06em; }
.carousel-slide em { color: var(--muted); margin-top: 6px; font-size: 0.74rem; font-style: normal; font-weight: 900; letter-spacing: 0.08em; }
.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.carousel-dot { width: 34px; height: 6px; border: 0; border-radius: 999px; background: rgba(243, 234, 223, 0.24); cursor: pointer; }
.carousel-dot.is-current { background: var(--orange); }

.split-section, .page-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.split-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 46px; padding: 86px 0; }
.station-notes { padding-top: 10px; }
.feature-grid, .contact-grid, .clock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card, .contact-card, .clock-card, .live-panel, .soundcloud-panel, .submit-panel, .resident-profile, .event-copy { border: 1px solid var(--line); border-radius: 8px; background: rgba(15, 15, 15, 0.82); box-shadow: 0 22px 70px var(--shadow); }
.feature-card { min-height: 206px; padding: 24px; }
.feature-card span, .contact-card span, .clock-card span { display: block; margin-bottom: 14px; color: var(--orange); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.16em; }
.feature-card strong, .contact-card strong, .clock-card strong { display: block; color: var(--cream); font-size: 1.25rem; }
.weather-feature strong { font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1; }

.page-main { padding: 64px 0 96px; }
.page-title { max-width: 820px; margin-bottom: 44px; }
.page-title h1 { font-size: clamp(3.4rem, 9vw, 8.2rem); }
.listen-layout, .event-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 18px; align-items: stretch; }
.live-panel, .soundcloud-panel, .event-copy, .submit-panel { padding: clamp(22px, 4vw, 38px); }
.live-panel { display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; overflow: hidden; }
.live-art { display: flex; align-items: end; gap: 9px; height: 180px; margin-bottom: auto; }
.live-art span { width: 12%; min-width: 28px; background: linear-gradient(var(--orange), transparent); border-radius: 999px 999px 0 0; animation: bars 1s ease-in-out infinite alternate; }
.live-art span:nth-child(2) { height: 74%; animation-delay: 0.12s; }
.live-art span:nth-child(3) { height: 46%; animation-delay: 0.24s; }
.live-art span:nth-child(4) { height: 88%; animation-delay: 0.36s; }
.live-art span:nth-child(1) { height: 58%; }
@keyframes bars { from { transform: scaleY(0.52); opacity: 0.58; } to { transform: scaleY(1); opacity: 1; } }
.soundcloud-panel iframe { width: 100%; border: 0; border-radius: 8px; background: #000; }

.event-stack { margin-top: 18px; }
.event-poster { width: 100%; min-height: 460px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.event-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

.clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clock-card { min-height: 168px; padding: 26px; }
.clock-time { margin-top: 18px; color: var(--cream); font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 900; line-height: 1; }
.weather-band { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr); align-items: center; gap: 24px; margin-top: 18px; padding: 30px; border-block: 1px solid var(--line); }
.weather-band p { max-width: 540px; }
.weather-live { display: grid; gap: 10px; justify-items: end; text-align: right; }
.weather-live strong { color: var(--cream); font-size: clamp(3rem, 8vw, 6.8rem); line-height: 0.9; }
.weather-live span { color: var(--orange); font-size: 0.9rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.weather-live small { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.resident-profile { display: grid; grid-template-columns: minmax(260px, 0.72fr) 1fr; gap: 28px; align-items: center; padding: 20px; }
.resident-profile + .resident-profile { margin-top: 18px; }
.resident-profile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--panel); }
.resident-profile div { padding: 20px; }

.submit-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.submit-panel p { max-width: 650px; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card { min-height: 158px; padding: 26px; }

.player-shell { position: fixed; right: clamp(14px, 3vw, 34px); bottom: calc(clamp(14px, 3vw, 28px) + var(--safe-bottom)); z-index: 50; width: min(580px, calc(100% - 28px)); opacity: 0; transform: translateY(18px) scale(0.98); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.player-shell.is-open { opacity: 1; transform: translateY(0) scale(1); }
.player-status { width: max-content; max-width: 100%; margin: 0 0 10px auto; padding: 10px 14px; border: 1px solid rgba(220, 106, 65, 0.44); border-radius: 8px; background: rgba(0, 0, 0, 0.9); color: var(--cream); box-shadow: 0 18px 44px var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.player-shell.is-active .player-status { opacity: 1; transform: translateY(0); }
.player-bar { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 10, 10, 0.94); box-shadow: 0 24px 78px rgba(0, 0, 0, 0.52); pointer-events: auto; }
.player-button { width: 70px; height: 48px; border: 0; border-radius: 6px; background: var(--orange); color: #120604; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.player-meta { min-width: 0; flex: 1; }
.player-meta strong, .player-meta em, .player-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta em { color: var(--cream); font-size: 0.82rem; font-style: normal; font-weight: 700; }
.player-meta span { color: var(--muted); font-size: 0.9rem; }
.volume { width: 104px; accent-color: var(--orange); }

@media (min-width: 901px) {
  .hero-copy { transform: translateY(-44px); }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(136px + var(--safe-bottom)); }
  .site-header { align-items: center; justify-content: center; padding: calc(12px + var(--safe-top)) 14px 12px; overflow: hidden; }
  .brand, .menu-toggle { display: none; }
  .site-nav { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 10px 16px; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .site-nav a { flex: 0 0 auto; }
  .site-header.nav-open .site-nav { display: flex; }
  .hero, .split-section, .listen-layout, .event-layout, .resident-profile, .submit-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 34px 18px 58px; gap: 28px; }
  .hero-copy { justify-self: center; max-width: 560px; }
  .event-carousel { width: min(100%, 560px); max-width: 560px; justify-self: center; }
  .feature-grid, .clock-grid, .contact-grid { grid-template-columns: 1fr; }
  .weather-band { grid-template-columns: 1fr; }
  .weather-live { justify-items: start; text-align: left; }
  .volume { display: none; }
}

@media (max-width: 560px) {
  body { padding-bottom: calc(124px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(220, 106, 65, 0.13), transparent 260px), var(--black); }
  .site-header { padding: calc(10px + var(--safe-top)) 12px 10px; }
  .site-nav { gap: 9px 13px; font-size: 10px; letter-spacing: 0.07em; line-height: 1.1; }
  .site-nav a { color: var(--cream); text-align: center; }
  .live-status { display: block; overflow: hidden; padding: 9px 12px; font-size: 0.62rem; letter-spacing: 0.07em; text-overflow: ellipsis; }
  .hero { gap: 18px; padding: 22px 12px 38px; }
  .text-logo { padding: 10px 0 0; }
  .text-logo-main { font-size: clamp(1.72rem, 8.75vw, 2.42rem); letter-spacing: 0.09em; }
  .text-logo-radio { margin-top: 13px; font-size: clamp(0.86rem, 4.1vw, 1.12rem); letter-spacing: 0.4em; text-indent: 0.4em; }
  .text-logo-rule { width: 86%; margin: 17px auto 15px; opacity: 0.78; }
  .text-logo-tagline { font-size: 0.72rem; letter-spacing: 0.15em; }
  .event-carousel { width: 100%; }
  .carousel-frame { aspect-ratio: 4 / 5; border-color: rgba(243, 234, 223, 0.2); border-radius: 8px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46); }
  .carousel-slide img { object-position: center top; }
  .carousel-slide figcaption { padding: 12px; background: linear-gradient(transparent 8%, rgba(0, 0, 0, 0.88)); }
  .carousel-slide span { font-size: 0.58rem; letter-spacing: 0.14em; }
  .carousel-slide strong { font-size: 0.9rem; letter-spacing: 0.04em; }
  .carousel-slide em { font-size: 0.58rem; letter-spacing: 0.06em; }
  .carousel-controls { gap: 6px; margin-top: 9px; }
  .carousel-dot { width: 20px; height: 5px; }
  h1 { font-size: clamp(2.45rem, 14vw, 3.45rem); }
  .hero h1, .page-title h1 { font-size: clamp(2.45rem, 14vw, 3.45rem); }
  h2 { font-size: clamp(1.9rem, 9.2vw, 2.65rem); }
  .lede { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 34px; }
  .primary-action, .secondary-action { width: 100%; min-height: 46px; padding: 0 10px; font-size: 0.68rem; letter-spacing: 0.07em; }
  .page-main { padding-top: 28px; }
  .page-main, .split-section { width: min(100% - 24px, 1180px); }
  .split-section { gap: 22px; padding: 42px 0; }
  .station-notes { padding-top: 0; }
  .feature-card, .contact-card, .clock-card, .live-panel, .soundcloud-panel, .submit-panel, .resident-profile, .event-copy { box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34); }
  .live-panel { min-height: 420px; }
  .event-layout { gap: 12px; }
  .event-stack { margin-top: 14px; }
  .event-poster { min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
  .event-copy { min-height: 0; padding: 20px; }
  .event-copy h2 { font-size: clamp(2.35rem, 13vw, 3.25rem); }
  .resident-profile { padding: 12px; gap: 10px; }
  .resident-profile div { padding: 10px; }
  .contact-card, .feature-card, .clock-card { min-height: 132px; padding: 20px; }
  .feature-card p, .contact-card p, .event-copy p, .resident-profile p { line-height: 1.55; }
  .clock-time { font-size: clamp(2.35rem, 14vw, 3.4rem); }
  .player-shell { left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); width: auto; }
  .player-status { margin-right: 0; font-size: 0.82rem; }
  .player-bar { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border-radius: 10px; }
  .player-button { width: 66px; min-height: 54px; }
  .player-meta strong { font-size: 0.92rem; }
  .player-meta span { font-size: 0.78rem; }
}
