/* Static Radio - visual spec from the approved "A - Horizon" mockups.
   Tokens: bg #000, text #f2f2f2, muted #8a8a8a, log #d6d6d6,
   hairline #262626, accent #FF6A00 (transmission semantics only). */

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/syne-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-300.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}

:root {
  --bg: #000;
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --log: #d6d6d6;
  --hairline: #262626;
  --accent: #FF6A00; /* orange means transmission. Nowhere else. */
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 64px 36px;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: none;
}

.station {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text);
}

.byline {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .08em;
}

.mute {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.mute:hover { border-color: var(--text); }
.mute:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

/* ---------- waveform ---------- */

.stage {
  margin: 0 -64px; /* full bleed */
  flex: none;
}

#wave {
  display: block;
  width: 100%;
  height: 300px;
}

/* ---------- instrument panel ---------- */

.panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
  flex: none;
}

.label {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--muted);
  margin-bottom: 12px;
  white-space: nowrap;
}

.value {
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.value.accent { color: var(--accent); margin-top: 4px; }

.value.log {
  color: var(--log);
  line-height: 1.75;
}

/* ---------- footer ---------- */

.baseline {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  flex: none;
}

/* ---------- mobile ---------- */

@media (max-width: 700px) {
  body { padding: 44px 24px 28px; }

  .station { font-size: 22px; letter-spacing: .3em; }
  .byline { margin-top: 10px; font-size: 12px; letter-spacing: .06em; }

  .stage { margin: 0 -24px; }
  #wave { height: 150px; }

  .panel {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 0;
  }
  .value { font-size: 14px; }

  .baseline {
    margin-top: 40px;
    padding-top: 14px;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    line-height: 1.7;
  }
  .baseline span:last-child { color: var(--text); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  /* app.js draws a single static waveform frame and skips the rAF loop */
}
