/* Radio 901 — visual identity
   "The dusk dial": late-evening easy listening. Deep plum sky, lavender-white
   text, one sunset-coral glow. Soft serif display like hotel-lounge signage. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600&display=swap');

:root {
  --ink: #231b33;        /* dusk plum */
  --ink-2: #2f2547;      /* panel plum */
  --paper: #f1ecf7;      /* lavender white */
  --brass: #ff9d7b;      /* sunset coral — the one accent */
  --muted: #9b90ba;
  --error: #e06d7c;
  --radius: 10px;
  --line: #40355e;       /* input borders / rules */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
a { color: var(--brass); }

.eyebrow {
  font-family: 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .7rem;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 .8rem;
}
.lede { color: #d6cde6; max-width: 46ch; }
.fine { font-size: .8rem; color: var(--muted); }
.error { color: var(--error); border-left: 3px solid var(--error); padding-left: .8rem; }

/* forms */
.page { display: grid; place-items: center; padding: 4vh 1rem; }
.card { width: min(560px, 100%); background: var(--ink-2); padding: 2.2rem; border-radius: var(--radius); }
form label { display: block; margin: 1rem 0 0; font-size: .9rem; }
input, textarea, select {
  width: 100%; margin-top: .35rem; padding: .65rem .75rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit;
}
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 1px;
}
button {
  margin-top: 1.4rem; width: 100%;
  background: var(--brass); color: var(--ink);
  border: 0; border-radius: var(--radius);
  padding: .85rem 1rem; cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem;
}
button:hover { filter: brightness(1.08); }

/* ===== player ===== */
.station {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(120% 90% at 50% 115%, #3c2a52 0%, var(--ink) 60%);
}
.masthead { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2rem 1.6rem; }
.masthead .brand { font-family: 'Fraunces', serif; font-weight: 650; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .06em; }
.masthead nav a { margin-left: 1.2rem; font-family: 'Nunito Sans', sans-serif; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }

.deck { display: grid; place-items: center; text-align: center; padding: 2rem 1rem; }
.onair {
  display: inline-block; font-family: 'Nunito Sans', sans-serif; font-weight: 700; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  background: var(--brass); padding: .32rem .9rem .27rem 1.15rem; border-radius: 99px; margin-bottom: 1.4rem;
}
#now-title { max-width: 20ch; margin-inline: auto; }
#now-type { color: var(--muted); font-style: italic; margin-top: .4rem; }

.playbtn {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 2rem auto 0; display: grid; place-items: center;
  background: var(--brass); color: var(--ink); border: 0; cursor: pointer; padding: 0;
  box-shadow: 0 0 42px rgba(255, 157, 123, .35);   /* dusk glow */
}
.playbtn svg { width: 34px; height: 34px; }

/* signature: sunset-gradient VU bars */
.vu { display: flex; gap: 5px; height: 42px; align-items: flex-end; justify-content: center; margin-top: 2rem; }
.vu span {
  width: 6px; height: 12%; border-radius: 3px; opacity: .9;
  background: linear-gradient(to top, #8e6bc4, var(--brass));
}
.playing .vu span { animation: vu 1.1s ease-in-out infinite alternate; }
.vu span:nth-child(2n) { animation-duration: .8s; }
.vu span:nth-child(3n) { animation-duration: 1.4s; }
.vu span:nth-child(5n) { animation-duration: 1s; }
@keyframes vu { from { height: 8%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .playing .vu span { animation: none; height: 55%; } }

.upnext { padding: 1.2rem 1.6rem; color: var(--muted); font-size: .85rem; }
.upnext strong { color: var(--paper); font-weight: 600; }
