/* JazzRadio — visual identity
   Inspired by mid-century jazz record sleeves: deep ink blue, warm brass,
   bold condensed display type, one disciplined accent. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink: #10182b;        /* deep club blue */
  --ink-2: #182238;
  --paper: #f2ecdd;      /* aged sleeve white */
  --brass: #d9a441;      /* the one accent */
  --muted: #8a93a8;
  --error: #e06d5a;
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Spectral', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3, .display {
  font-family: 'Archivo', sans-serif;
  font-stretch: 75%;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
a { color: var(--brass); }

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-stretch: 80%;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--brass);
  margin: 0 0 .8rem;
}
.lede { color: #cdd4e2; 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 #2c3852; 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: 'Archivo', sans-serif; font-stretch: 80%;
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
}
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: 'Archivo', sans-serif; font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; }
.masthead nav a { margin-left: 1.2rem; font-family: 'Archivo', sans-serif; font-size: .8rem; 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: 'Archivo', sans-serif; font-size: .7rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  background: var(--brass); padding: .3rem .9rem .25rem 1.15rem; border-radius: 3px; margin-bottom: 1.4rem;
}
#now-title { max-width: 18ch; 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;
}
.playbtn svg { width: 34px; height: 34px; }

/* signature: VU bars that dance while playing */
.vu { display: flex; gap: 5px; height: 42px; align-items: flex-end; justify-content: center; margin-top: 2rem; }
.vu span { width: 6px; background: var(--brass); opacity: .85; height: 12%; border-radius: 2px; }
.playing .vu span { animation: vu 1s ease-in-out infinite alternate; }
.vu span:nth-child(2n) { animation-duration: .7s; }
.vu span:nth-child(3n) { animation-duration: 1.3s; }
.vu span:nth-child(5n) { animation-duration: .9s; }
@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; }
