:root {
  color-scheme: dark;
  font-family: "Noto Sans SC", sans-serif;
  background: #07131b;
  color: #eef6f4;
  --ink: #eef6f4;
  --muted: #a8b9bd;
  --cyan: #8dd7dc;
  --amber: #f3ac59;
  --coral: #e96f5d;
  --panel: rgba(5, 14, 20, 0.84);
  --line: rgba(179, 214, 216, 0.24);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #07131b;
}

button, a { -webkit-tap-highlight-color: transparent; }

.sky {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background-image: url("assets/night-radio.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 10, 15, 0.42);
}

.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 72px);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0;
}

.masthead { border-bottom: 1px solid var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.signal-mark {
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(141, 215, 220, 0.14), 0 0 18px var(--cyan);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
  animation: pulse 2s ease-in-out infinite;
}

.receiver {
  align-self: center;
  width: min(680px, calc(100% - 44px));
  margin: 40px clamp(22px, 7vw, 112px);
  padding: clamp(24px, 4vw, 44px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  backdrop-filter: blur(18px);
}

.eyebrow, .meta-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
}

h1 {
  max-width: 560px;
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.tuner {
  margin: 30px 0 26px;
  padding: 18px 20px 14px;
  border-block: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
}

.frequency-line { display: flex; align-items: baseline; gap: 12px; }

.frequency {
  color: var(--amber);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 22px rgba(243, 172, 89, 0.34);
}

.unit { color: var(--muted); font-size: 14px; }

.dial {
  position: relative;
  height: 29px;
  margin-top: 15px;
  overflow: hidden;
}

.ticks {
  position: absolute;
  inset: 10px 0 0;
  border-top: 1px solid rgba(141, 215, 220, 0.45);
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(141, 215, 220, 0.42) 14px 15px);
}

.needle {
  position: absolute;
  top: 0;
  left: 29%;
  width: 2px;
  height: 28px;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  transition: left 650ms cubic-bezier(.2,.8,.2,1);
}

.scale { display: flex; justify-content: space-between; color: #7f969c; font-size: 10px; }

.broadcast {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) 1.2fr;
  gap: 10px 24px;
}

.broadcast h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: 0; }
.broadcast p { align-self: end; margin: 0; color: var(--cyan); font-size: 14px; }
.broadcast blockquote {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: #d7e4e2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.actions { display: flex; gap: 12px; margin-top: 28px; }

button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 14px "Noto Sans SC", sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

button svg { width: 17px; height: 17px; }
button:hover { transform: translateY(-2px); }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.primary { background: var(--amber); color: #1c1208; }
.primary:hover { background: #ffc475; }
.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.secondary:hover, .secondary[aria-pressed="true"] { border-color: var(--cyan); background: rgba(141, 215, 220, 0.11); }

footer {
  color: rgba(218, 231, 230, 0.72);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

@keyframes pulse { 50% { opacity: 0.35; } }

@media (max-width: 700px) {
  .sky { background-position: 63% center; }
  .masthead, footer { padding: 18px 20px; }
  .receiver { align-self: end; width: calc(100% - 24px); margin: 24px 12px; padding: 24px 20px; }
  .broadcast { grid-template-columns: 1fr; }
  .broadcast blockquote { grid-column: auto; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  footer span:first-child { display: none; }
  footer { justify-content: flex-end; }
}

@media (max-width: 440px) {
  .status { font-size: 0; }
  .broadcast p { margin-top: 5px; }
  .actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
