/* Eagle Waves Radio — visual identity
   "The funk brief": soul-horn energy meets a crisp business read. Deep petrol
   teal, off-white, one hot coral. Poster-condensed display, civic body face.
   Signature: a broadcast level-meter stripe across the very top of the page. */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Public+Sans:wght@400;600&display=swap');

:root {
  --ink: #0e3134;        /* petrol teal */
  --ink-2: #14464a;      /* panel teal */
  --paper: #f2f5ef;      /* studio white */
  --brass: #ff7a59;      /* hot coral — the one accent */
  --muted: #7fa5a3;
  --error: #ff8f6e;
  --radius: 3px;
  --line: #205b60;       /* input borders / rules */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Public Sans', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  border-top: 4px solid;                                   /* signature stripe */
  border-image: linear-gradient(90deg, var(--brass) 0 35%, #ffb59d 35% 55%, transparent 55%) 1;
}
h1, h2, h3, .display {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.3rem, 6.5vw, 3.8rem); }
a { color: var(--brass); }

.eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .7rem;
  color: var(--brass);
  margin: 0 0 .8rem;
}
.lede { color: #d3e0dc; 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: 'Anton', sans-serif;
  font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 1rem;
}
button:hover { filter: brightness(1.08); }

/* ===== player ===== */
.station {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto;
}
.masthead { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2rem 1.6rem; }
.masthead .brand { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .05em; }
.masthead nav a { margin-left: 1.2rem; font-family: 'Public Sans', sans-serif; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }

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

.playbtn {
  width: 96px; height: 96px; border-radius: 18px;          /* squared — console button */
  margin: 2rem auto 0; display: grid; place-items: center;
  background: var(--brass); color: var(--ink); border: 0; cursor: pointer; padding: 0;
}
.playbtn svg { width: 34px; height: 34px; }

/* VU bars — level-meter coral over teal */
.vu { display: flex; gap: 5px; height: 42px; align-items: flex-end; justify-content: center; margin-top: 2rem; }
.vu span { width: 7px; background: var(--brass); opacity: .9; height: 12%; border-radius: 1px; }
.playing .vu span { animation: vu .8s ease-in-out infinite alternate; }
.vu span:nth-child(2n) { animation-duration: .55s; }
.vu span:nth-child(3n) { animation-duration: 1.05s; }
.vu span:nth-child(5n) { animation-duration: .75s; }
@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; }
