@font-face {
  font-family: "Signifier";
  src: url("fonts/signifier-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #090a0c;
  --ink: #f7f7f2;
  --muted: #9b9c9f;
  --primary: #6892f2;
  --panel: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .16);
  --margin: clamp(20px, 5.55vw, 80px);
  --pad-top: clamp(24px, 4vw, 40px);
  --pad-bottom: clamp(24px, 6vw, 64px);
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Signifier", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--bg); }

body {
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 42%),
    var(--bg);
  color: var(--ink);
  font: 500 14px/16px var(--font-ui);
  letter-spacing: -.025em;
  -webkit-font-smoothing: antialiased;
}

button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }

::selection { background: var(--primary); color: var(--bg); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }

.station {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad-top) var(--margin) var(--pad-bottom);
  overflow: hidden;
}

.masthead, .schedule {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand { position: relative; }
.brand::before { content: ""; position: absolute; inset: -12px -14px; }

.live { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.live span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 18px var(--primary); }

.air {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(280px, 42vw) 1fr;
  grid-template-rows: 1fr auto auto;
  column-gap: clamp(40px, 7vw, 112px);
  align-items: end;
}

.signal {
  grid-row: 1 / 4;
  aspect-ratio: 1;
  max-width: 600px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px var(--line), 0 32px 100px rgba(0,0,0,.5);
  backdrop-filter: blur(28px) saturate(130%);
}

.signal::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.5px);
  background-size: 12px 12px;
  mask-image: radial-gradient(circle, #000 0 52%, transparent 73%);
  opacity: .34;
  transform: scale(.96);
}

.signal::after {
  content: "";
  position: absolute;
  inset: 17%;
  z-index: -1;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(70px);
  opacity: .2;
}

.signal span {
  font-variant-numeric: tabular-nums;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -.05em;
  text-shadow: 0 2px 28px rgba(0,0,0,.7);
}

.is-playing .signal::before { animation: tune 2.4s cubic-bezier(.16, 1, .3, 1) infinite alternate; }
.is-playing .signal::after { animation: breathe 3.6s ease-in-out infinite; }

.mood { color: var(--primary); margin-bottom: 32px; }
.mood span + span { color: var(--muted); margin-left: 12px; }

h1 {
  max-width: 11ch;
  font: italic 400 clamp(52px, 6.6vw, 96px)/.9 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.artist { color: var(--muted); font-size: 16px; line-height: 20px; margin-top: 24px; }

.play {
  justify-self: start;
  margin-top: 48px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .2s ease;
}

.play:hover { transform: scale(1.035); }
.play:active { transform: scale(.97); }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .icon-pause, .is-playing .play .icon-play { display: none; }
.is-playing .play .icon-pause { display: block; }

.notice { align-self: end; justify-self: end; color: var(--muted); }

.schedule { margin-top: 48px; gap: 40px; color: var(--muted); }
.schedule ol { list-style: none; padding: 0; display: flex; gap: clamp(16px, 3vw, 40px); }
.schedule li { display: grid; gap: 8px; }
.schedule time { font-variant-numeric: tabular-nums; }
.schedule li.is-current time, .schedule li.is-current span { color: var(--ink); }
.schedule li.is-current time::before { content: "• "; color: var(--primary); }
.schedule > p { white-space: nowrap; font-variant-numeric: tabular-nums; }

@keyframes tune { to { transform: scale(1.04) rotate(1deg); opacity: .58; } }
@keyframes breathe { 50% { transform: scale(1.14); opacity: .32; } }

@media (max-width: 720px) {
  .station { overflow: visible; }
  .air { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; align-self: start; padding-top: 56px; }
  .signal { grid-row: auto; width: min(100%, 440px); justify-self: center; }
  .track { margin-top: 40px; }
  .mood { margin-bottom: 20px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .play { margin-top: 32px; }
  .notice { justify-self: start; margin-top: 20px; }
  .schedule { align-items: flex-end; margin-top: 72px; }
  .schedule ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 20px 28px; }
  .schedule ol li:not(.is-current) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

