/* WJAM: the front page. A clean white room, a big wordmark over a tuning scale, and a card
   per station: its player stands lit on a little stage and leans toward your cursor. */
:root {
  --text: #141416;
  --muted: #6e6e76;
  --faint: #a3a3ab;
  --line: rgba(20, 20, 30, 0.07);
  --red: #e0362b;
  --tall: "Antonio", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --hand: "Nanum Pen Script", "Bradley Hand", cursive;
  --lift: 0 1px 1px rgba(16, 16, 24, 0.03), 0 3px 6px rgba(16, 16, 24, 0.04), 0 12px 24px rgba(16, 16, 24, 0.06), 0 32px 64px rgba(16, 16, 24, 0.07);
  --lift-hi: 0 1px 1px rgba(16, 16, 24, 0.04), 0 6px 12px rgba(16, 16, 24, 0.06), 0 22px 44px rgba(16, 16, 24, 0.1), 0 48px 96px rgba(16, 16, 24, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--text); font-family: var(--sans); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ---- Masthead ---------------------------------------------------------------------- */

.masthead { max-width: 1080px; margin: 0 auto; padding: 44px 24px 8px; }
.masthead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.masthead-row > div { min-width: 0; }
.masthead-row .onair { flex: none; white-space: nowrap; }
.onair {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(16, 16, 24, 0.06);
}
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(224, 54, 43, 0.15); animation: onair 2.4s ease-in-out infinite; }
.wordmark {
  margin: 0; font-family: "Unbounded", var(--tall); font-weight: 800; font-size: clamp(34px, 4.6vw, 48px); line-height: 0.95; letter-spacing: -0.03em;
}
/* WJAM in near-black. */
.wj-w, .wj-jam { color: #111114; }
.tagline { margin: 8px 0 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }

.scale { position: relative; height: 56px; margin-top: 30px; }
.scale-ticks {
  position: absolute; left: 0; right: 0; top: 0; height: 14px; border-top: 1px solid #e3e3e8;
  background:
    repeating-linear-gradient(90deg, #b9b9c1 0 1px, transparent 1px 10%) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #dcdce2 0 1px, transparent 1px 2%) 0 0 / 100% 8px no-repeat;
}
.scale-marks span {
  position: absolute; top: 24px; transform: translateX(-50%);
  font-family: var(--tall); font-size: 15px; letter-spacing: 0.08em; color: var(--faint); white-space: nowrap; transition: color 0.3s;
}
.scale-marks span.on { color: var(--text); }
.needle {
  position: absolute; top: -16px; width: 2px; height: 36px; margin-left: -1px; left: 18.5%;
  background: var(--red); border-radius: 2px; box-shadow: 0 0 10px rgba(224, 54, 43, 0.55), 0 0 2px rgba(224, 54, 43, 0.8);
  transition: left 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* ---- Stations ----------------------------------------------------------------------- */

main { max-width: 1080px; margin: 0 auto; padding: 18px 24px 72px; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; }
/* On hover a trace runs round the card's edge in its station's colours (trace.css). */
.card {
  display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; overflow: hidden;
  border-radius: 22px; --trace-fill: linear-gradient(#fff, #fff);
  box-shadow: 0 0 0 1px var(--line), var(--lift);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, --trace-on 0.4s ease;
}
.card:hover, .card:focus-visible { --trace-on: 1; animation: trace 2.2s linear infinite; }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--lift-hi); }
.card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* The stage: a lit backdrop, a floor shadow, and the player leaning toward the pointer. */
.art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 24px;
  container-type: inline-size; perspective: 900px; overflow: hidden;
}
.art::before { /* a soft key light from above */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 18%, rgba(255, 255, 255, 0.75), transparent 70%);
}
.art .floor {
  position: absolute; left: 50%; bottom: 13%; width: 62%; height: 9%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(10, 10, 20, 0.28), transparent 100%); filter: blur(6px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Each player's base sits at a different height on the stage. */
.skin-cassette .art .floor { bottom: 14%; }
.skin-reel .art .floor { bottom: 11%; width: 56%; }
.skin-streamer .art .floor, .skin-p2p .art .floor { bottom: 23%; width: 58%; }
.skin-egg .art .floor { bottom: 9%; width: 34%; }
.card:hover .art .floor { transform: translateX(-50%) scale(0.9); opacity: 0.75; }
.skin-cassette .art { background: linear-gradient(160deg, #f1efea, #d8d4ca); }
.skin-reel .art { background: linear-gradient(160deg, #f5ede0, #dcc8a8); }
.skin-streamer .art, .skin-p2p .art { background: linear-gradient(160deg, #eef0f4, #c9ccd4); }
.skin-egg .art { background: linear-gradient(160deg, #fff6e8, #f5d9a8); }
.finish-wood .art { background: linear-gradient(160deg, #f4ece0, #d9c4a5); }

.info { display: grid; align-content: start; gap: 0; padding: 22px 26px 22px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.call { font-family: var(--tall); font-weight: 700; font-size: 34px; line-height: 0.95; letter-spacing: 0.01em; }
.call .tld, .wordmark .tld {
  margin-left: 0.1em; font-family: "Inter", system-ui, -apple-system, sans-serif; font-weight: 500; font-style: normal;
  font-size: 0.36em; letter-spacing: 0.02em; color: #8e8e97; vertical-align: baseline;
}
.band { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq b { width: 2px; height: 100%; background: var(--red); border-radius: 1px; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.eq b:nth-child(2) { animation-delay: -0.4s; }
.eq b:nth-child(3) { animation-delay: -0.8s; }
@keyframes eq { 0% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.55); } }
.song { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show { margin-top: 3px; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: onair 2.4s ease-in-out infinite; }
@keyframes onair { 50% { opacity: 0.35; } }
.go {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff; background: #141416;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s, gap 0.2s;
}
.card:hover .go { background: #000; gap: 12px; }

/* ---- The players, drawn small ------------------------------------------------------- */

.art > div {
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 2px rgba(10, 10, 20, 0.16)) drop-shadow(0 14px 18px rgba(10, 10, 20, 0.2));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .art > div { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition-duration: 0.15s; }
.art > div > * { position: absolute; }
@keyframes spin { to { transform: rotate(-360deg); } }

/* Cassette: a gray XLII, laid out on the real shell's proportions. */
.m-cassette { width: min(62cqw, 300px); aspect-ratio: 100.4 / 63.8; background: #5c5d62; border-radius: 4% / 6%; }
.m-panel {
  left: 29%; width: 42%; top: 0; height: 52%; padding-top: 7%; background: #4a4b50; text-align: center;
  font-family: var(--tall); font-size: min(5.2cqw, 24px); line-height: 1; color: #cdb67e;
}
.m-window { left: 37%; width: 26%; top: 39%; height: 11%; background: linear-gradient(90deg, #5b2ec9, #d42ad6, #ee2a2a, #ff8a1c, #f2c80f, #36c23a); border-radius: 1px; }
.m-hub { top: 34%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #47484c; }
.m-hub::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: #e3e0d9; border-top: 3px solid #9a958b; }
.m-hub.l { left: 21.6%; }
.m-hub.r { left: 64.8%; }
.card:hover .m-hub::after { animation: spin 2.4s linear infinite; }
.m-label {
  left: 7.4%; width: 85.2%; top: 60%; height: 13%; padding: 0 4%; display: flex; align-items: center;
  background: #ecebe7; border-radius: 2px; overflow: hidden; white-space: nowrap;
  font-family: var(--hand); font-size: min(4.6cqw, 22px); line-height: 1; color: #26388c;
}
.m-head { left: 11%; width: 78%; top: 80%; bottom: 0; background: #4a4b50; clip-path: polygon(7.6% 0, 92.4% 0, 100% 100%, 0 100%); }

/* Reel-to-reel: aluminium face between walnut cheeks, two reels, the head block, meters. */
.m-reel {
  width: min(56cqw, 280px); aspect-ratio: 432 / 330; border-radius: 5px;
  background: linear-gradient(180deg, #d9d8d3, #bdbcb6 60%, #cbcac4);
  border-left: max(6px, 2.4cqw) solid #5a331d; border-right: max(6px, 2.4cqw) solid #5a331d;
}
.m-r { top: 6%; width: 41%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #22449a 0 40%, #a8261f 40.5% 58%, #a9a8a3 58.5%); }
.m-r.r { background: radial-gradient(circle, #a8261f 0 30%, #a9a8a3 30.5%); }
.m-r.l { left: 2.5%; }
.m-r.r { right: 2.5%; }
.m-r::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(#d4d3ce 0 38deg, transparent 38deg 120deg);
  -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 18.5% 90%, transparent 90.5%);
  mask: radial-gradient(circle, transparent 0 18%, #000 18.5% 90%, transparent 90.5%);
}
.m-r::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #3a3936 0 6%, #d3d2cd 6.5% 17%, transparent 17.5% 89%, #c9c8c3 90%);
}
.card:hover .m-r::before { animation: spin 3.2s linear infinite; }
.m-tape { left: 4%; right: 4%; top: 66%; height: 1.5px; background: #b8322a; }
.m-heads { left: 37%; width: 26%; top: 64%; height: 9%; background: #3a3936; border-radius: 2px; }
.m-meters { left: 6%; right: 6%; top: 77%; bottom: 6%; display: flex; justify-content: flex-end; gap: 4%; padding: 2%; background: #2b2a28; border-radius: 3px; }
.m-meters i { width: 22%; background: linear-gradient(180deg, #f3e2ad, #e9dfbf); border-radius: 1px; }

/* Streamer: a dark (or white) box, the glass screen, the knob. */
.m-streamer {
  width: min(64cqw, 320px); aspect-ratio: 2.3 / 1; border-radius: 8% / 18%;
  background: linear-gradient(180deg, #34353a, #1f2023);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.finish-wood .m-streamer { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 7px), linear-gradient(180deg, #7a4a2a, #5e361c 55%, #4b2a15); box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.25); }
.m-screen { left: 5%; top: 9%; width: 66%; height: 82%; background: #08090b; border-radius: 4px; box-shadow: 0 0 0 2px #2f3035; }
.finish-wood .m-screen { background: #120d09; box-shadow: 0 0 0 2px #1a120b, 0 0 0 3px #b8935a; }
.finish-wood .m-art { filter: saturate(0.75) sepia(0.18); color: #ff9a3c; font-family: ui-monospace, monospace; font-weight: 400; font-size: min(2.2cqw, 10px); white-space: nowrap; padding: 3%; display: flex; align-items: flex-end; justify-content: flex-end; text-shadow: 0 0 4px rgba(255, 120, 30, 0.8); }
.finish-wood .m-lines i { background: #f1e6cf; }
.finish-wood .m-lines i + i { background: #85765d; }
.finish-wood .m-bar { background: linear-gradient(90deg, #f1e6cf 0 60%, #2e241a 60%); }
.m-screen > * { position: absolute; }
.m-art {
  left: 7%; top: 12%; height: 52%; aspect-ratio: 1; border-radius: 3px; padding: 4%;
  font: 700 min(3.4cqw, 16px)/1 system-ui, sans-serif; color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(120% 90% at 20% 10%, hsl(var(--hue) 55% 62%), transparent 60%),
    radial-gradient(100% 100% at 90% 100%, hsl(calc(var(--hue) + 40) 60% 40%), transparent 65%),
    hsl(calc(var(--hue) + 200) 30% 18%);
}
.m-lines { left: 46%; right: 8%; top: 22%; display: grid; gap: 9px; }
.m-lines i { height: 5px; border-radius: 2px; background: #f2f2f4; }
.m-lines i + i { width: 70%; background: #6f7079; }
.m-bar { left: 7%; right: 8%; top: 78%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #f2f2f4 0 60%, #2a2b31 60%); }
.m-knob {
  right: 4.5%; top: 50%; width: 20%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, #4b4c52 0 74%, transparent 75%), repeating-conic-gradient(#4a4b51 0 4deg, #1f2023 4deg 8deg);
}
.finish-wood .m-knob { background: radial-gradient(circle, #dddcd7 0 74%, transparent 75%), repeating-conic-gradient(#d9d8d3 0 4deg, #8f8d87 4deg 8deg); }
.finish-wood .m-knob::after { background: #2a2420; }
.m-knob::after { content: ""; position: absolute; left: 50%; top: 14%; width: 9%; aspect-ratio: 1; margin-left: -4.5%; border-radius: 50%; background: #fff; }
.card:hover .m-knob { animation: knob 1.6s ease-in-out infinite alternate; }
@keyframes knob { from { transform: translateY(-50%) rotate(-25deg); } to { transform: translateY(-50%) rotate(25deg); } }

/* Egg: a glossy white egg-shaped speaker, its yolk the screen. */
.m-egg {
  width: min(30cqw, 160px); aspect-ratio: 0.78; overflow: hidden;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(120% 90% at 34% 24%, #fff 0%, #fbfaf7 32%, #efebe3 68%, #ddd7cb 100%);
  box-shadow: inset -8px -10px 18px rgba(90, 70, 40, 0.1), inset 6px 7px 12px rgba(255, 255, 255, 0.95);
}
.m-yolk {
  left: 50%; top: 47%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; align-content: center; justify-items: center; gap: 7%;
  background: radial-gradient(circle at 38% 32%, #ffe08a, #ffbf3c 42%, #f39c17 78%, #e0820c);
  box-shadow: 0 0 0 4px #0d0d0f, 0 0 0 5px #e9e4d8, 0 0 14px 4px rgba(255, 170, 30, 0.35);
}
.m-yolk i { width: 52%; height: 5%; border-radius: 2px; background: rgba(61, 33, 0, 0.75); }
.m-yolk i + i { width: 34%; background: rgba(61, 33, 0, 0.4); }
.card:hover .m-yolk { animation: m-breathe 2.2s ease-in-out infinite; }
@keyframes m-breathe { 50% { box-shadow: 0 0 0 4px #0d0d0f, 0 0 0 5px #e9e4d8, 0 0 24px 8px rgba(255, 170, 30, 0.6); } }
.m-grille { left: 0; right: 0; bottom: 0; height: 15%; background: radial-gradient(circle, rgba(90, 70, 40, 0.22) 0.7px, transparent 1px) 0 0 / 4px 4px; }

@media (prefers-reduced-motion: reduce) {
  .card *, .live i, .onair i { animation: none !important; }
  .card, .card:hover, .art > div, .card:hover .art > div { transform: none !important; transition: none; }
  .card:hover, .card:focus-visible { animation: none; --trace: 45deg; }
  .needle { transition: none; }
}

/* ---- Footer ---------------------------------------------------------------------------- */

footer {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 56px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
footer p { margin: 0; }
.credits a { color: var(--text); text-decoration: none; border-bottom: 1px solid #cfcfd6; }
.credits a:hover { border-color: var(--text); }

/* ---- Phones ---------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .masthead { padding: 26px 18px 4px; }
  .masthead-row { align-items: flex-start; gap: 10px; }
  .masthead-row .onair { padding: 5px 10px 5px 8px; font-size: 10px; letter-spacing: 0.12em; }
  .wordmark { font-size: 34px; }
  .tagline { font-size: 15px; margin-top: 8px; }
  .scale { margin-top: 22px; height: 48px; }
  .scale-marks span { font-size: 12px; }
  main { padding: 12px 18px 48px; }
  .stations { gap: 22px; }
  .card { border-radius: 18px; }
  .info { padding: 18px 20px; }
  .call { font-size: 30px; }
  .song { font-size: 18px; }
  footer { padding: 22px 18px 40px; }
}

/* ---- Dark mode: follows the system setting ---------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark; --text: #f0efeb; --muted: #9d9da5; --faint: #6d6d75; --line: rgba(255, 255, 255, 0.08);
    --lift: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 24px rgba(0, 0, 0, 0.35), 0 32px 64px rgba(0, 0, 0, 0.35);
    --lift-hi: 0 1px 1px rgba(0, 0, 0, 0.35), 0 22px 44px rgba(0, 0, 0, 0.45), 0 48px 96px rgba(0, 0, 0, 0.45);
  }
  body { background: #0f1012; }
  .wj-w, .wj-jam { color: #f3f2ee; }
  .onair { background: #1b1c1f; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.3); }
  .scale-ticks {
    border-top-color: #2a2b30;
    background:
      repeating-linear-gradient(90deg, #4a4b52 0 1px, transparent 1px 10%) 0 0 / 100% 14px no-repeat,
      repeating-linear-gradient(90deg, #2e2f35 0 1px, transparent 1px 2%) 0 0 / 100% 8px no-repeat;
  }
  .card { --trace-fill: linear-gradient(#18191c, #18191c); }
  .art::before { background: radial-gradient(70% 60% at 50% 18%, rgba(255, 240, 220, 0.1), transparent 70%); }
  .art .floor { background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 100%); }
  .skin-cassette .art { background: linear-gradient(160deg, #2c2b28, #191816); }
  .skin-reel .art { background: linear-gradient(160deg, #30291f, #1a1611); }
  .skin-streamer .art, .skin-p2p .art { background: linear-gradient(160deg, #272930, #16171b); }
  .skin-egg .art { background: linear-gradient(160deg, #30281a, #19150d); }
  .finish-wood .art { background: linear-gradient(160deg, #2e261c, #17120e); }
  .go { background: #f0efeb; color: #111114; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
  .card:hover .go { background: #fff; }
  .credits a { border-bottom-color: #44454c; }
}
