/* Hills Radio — visual identity
   "The timber hall": community radio from the Adelaide Hills. Bark olive,
   wheat paper, one gum-leaf green. Friendly chunky display in sentence case
   (the only station that doesn't shout), warm serif body like a local paper.
   Signature: notice-board cards with a pinned dashed edge. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink: #252a1c;        /* bark olive */
  --ink-2: #323924;      /* panel olive */
  --paper: #f2edda;      /* wheat */
  --brass: #a9cf7f;      /* gum-leaf green — the one accent */
  --muted: #99a184;
  --error: #e0876a;
  --radius: 12px;
  --line: #465032;       /* input borders / rules */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;                    /* sentence case — friendly, not shouty */
  line-height: 1.06;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
a { color: var(--brass); }

.eyebrow {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .7rem;
  color: var(--brass);
  margin: 0 0 .8rem;
}
.lede { color: #ddd8c2; 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);
  border: 1px dashed #5a6540;              /* signature: pinned notice */
}
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: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: none; letter-spacing: .01em; 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: 'Bricolage Grotesque', sans-serif; font-weight: 800; text-transform: none; font-size: 1.2rem; letter-spacing: 0; }
.masthead nav a { margin-left: 1.2rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: .82rem; text-transform: none; letter-spacing: .03em; text-decoration: none; }

.deck { display: grid; place-items: center; text-align: center; padding: 2rem 1rem; }
.onair {
  display: inline-block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: .68rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
  background: var(--brass); padding: .3rem .9rem .25rem 1.1rem; 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;
}
.playbtn svg { width: 34px; height: 34px; }

/* VU bars — leaf green, gentler tempo */
.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: 3px; }
.playing .vu span { animation: vu 1.3s ease-in-out infinite alternate; }
.vu span:nth-child(2n) { animation-duration: 1s; }
.vu span:nth-child(3n) { animation-duration: 1.6s; }
.vu span:nth-child(5n) { animation-duration: 1.15s; }
@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; }
