/* SPDX-License-Identifier: GPL-3.0-only */
/* A street poster at night: giant condensed capitals, a pixel street whose windows follow the beat, dark panels with a
 * neon edge in each track's colour, the FM-1's keys drawn as caps. Barlow is the FM-1's own screen font. */
:root {
  --night: #1a1533; --deep: #120e27; --panel: #17122f; --line: #463c7c; --ink: #f6f1e6; --soft: #c9c1e6;
  --drums: #ff5e00; --bass: #c964ff; --chops: #00e5ff; --keys: #ffd600;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 18px/1.55 "Barlow", system-ui, sans-serif; }
section, .top, footer { padding-inline: clamp(16px, 7.5vw, 120px); }
section { padding-block: 56px; border-bottom: 1px solid var(--line); }
.top { position: sticky; top: 0; z-index: 5; background: var(--deep); display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 4px 24px; padding-block: 12px; }
.name { font: 700 26px/1 "Barlow Semi Condensed", sans-serif; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.top nav a { font-weight: 600; text-decoration: none; padding: 6px 0; }
.top nav a:hover { color: var(--chops); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: var(--night); padding: 8px; }
h1, h2, h3 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; line-height: 1; margin: 0 0 18px; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(64px, 14vw, 190px); letter-spacing: -.01em; margin: 0; text-shadow: .035em .035em 0 var(--drums), .07em .07em 0 var(--deep); }
h2 { font-size: clamp(34px, 4.6vw, 60px); text-shadow: 3px 3px 0 var(--deep); }
h2 em { font-style: normal; color: var(--c, var(--drums)); }
h3 { font-size: 25px; margin: 22px 0 6px; color: var(--c, var(--chops)); }
p { max-width: 62ch; margin: 0 0 14px; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--chops); outline-offset: 3px; }
.lead, .small { color: var(--soft); }
.small { font-size: 15px; }
kbd { font: 600 .84em/1 "Barlow", sans-serif; background: var(--ink); color: var(--night); border-radius: 4px; padding: 3px 7px 4px;
  box-shadow: 0 2px 0 #8f86b8; white-space: nowrap; }

/* ---- the poster */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 7vh, 90px) clamp(120px, 24vh, 240px); background: linear-gradient(#0f0b22, #2a1f57); }
#street { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.words { position: relative; }
.sub { font: 700 clamp(24px, 3.4vw, 44px)/1.1 "Barlow Semi Condensed", sans-serif; text-transform: uppercase; color: var(--keys); max-width: none; margin: 18px 0 20px; }
.what { font-size: 21px; font-weight: 600; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; max-width: none; }
.cta a, .cta button { border: 0; color: inherit; cursor: pointer; font: 700 22px/1 "Barlow Semi Condensed", sans-serif; text-transform: uppercase; text-decoration: none; padding: 16px 20px; border-radius: 4px;
  background: var(--deep); box-shadow: inset 0 0 0 3px var(--chops); }
.cta a.go { background: var(--drums); color: #1b0d00; box-shadow: none; }
.cta a:hover, .cta button:hover, .cta button[aria-pressed="true"] { background: var(--chops); color: #06222a; }
.state { display: inline-block; background: var(--deep); padding: 6px 12px; color: var(--keys); }

/* ---- panels */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 22px; }
.panel { background: var(--panel); border: 2px solid var(--line); border-top: 8px solid var(--c); border-radius: 6px; padding: 26px clamp(16px, 2.4vw, 32px); }
.panel ul, .panel ol { padding-left: 22px; margin: 0; }
.panel li { margin-bottom: 12px; padding-left: 4px; }
.panel li::marker { color: var(--c); font-weight: 600; }
.keys div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.keys dt { flex: 0 0 200px; }
.keys dd { flex: 1 1 150px; }
.keys, .faq, dd { margin: 0; }
.logo { image-rendering: pixelated; border: 4px solid #000; border-radius: 6px; }
.chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #2b2258; border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; font-weight: 600; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px 48px; }
.faq dt { font-weight: 600; color: var(--chops); }
.warn { margin-top: 20px; border-left: 8px solid var(--keys); padding-left: 14px; font-weight: 600; }

/* ---- the boombox: a ghetto blaster of the mid 80s, all ours */
.box { width: 100%; max-width: 1120px; margin: 26px auto 0; position: relative; padding-top: 64px; }
.handle { position: absolute; top: 0; left: 15%; right: 15%; height: 84px; border: 18px solid; border-bottom: 0; border-radius: 26px 26px 0 0;
  border-color: #cfd2d9 #8b8f9a #6b6f7a #e6e8ec; box-shadow: inset 0 3px 0 #5b5f69, 0 -2px 0 #f6f7f9; }
.handle::before { content: ""; position: absolute; inset: -18px 30% auto; height: 18px; border-radius: 9px;
  background: repeating-linear-gradient(90deg, #17161c 0 5px, #2b2a33 5px 8px); }
.aerial { position: absolute; top: 60px; right: 4%; width: 34%; height: 6px; transform-origin: right center; transform: rotate(14deg); border-radius: 3px;
  background: linear-gradient(90deg, #f5f6f8 0 4%, #9ea2ad 4% 30%, #c9ccd4 30% 32%, #8d919c 32% 62%, #c9ccd4 62% 64%, #767a85 64%); }
.aerial::before { content: ""; position: absolute; left: -7px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8d919c); }
.body { position: relative; border-radius: 22px; padding: clamp(12px, 2vw, 26px); display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(10px, 1.8vw, 22px);
  align-items: stretch; color: #17161c; border: 3px solid #55596400;
  background: linear-gradient(180deg, #f2f3f5 0, #c6c9d0 5%, #aeb2bb 48%, #8e929d 52%, #a9adb7 92%, #6b6f7a 100%);
  box-shadow: inset 0 0 0 3px #e9ebee, inset 0 0 0 7px #7b7f8a, 0 26px 50px rgba(0, 0, 0, .55), 0 6px 0 #4b4e58; }
.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(10px, 2vw, 26px); align-items: center; }
.badge { margin: 0; font: 700 clamp(20px, 2.6vw, 34px)/1 "Barlow Semi Condensed", sans-serif; letter-spacing: .01em; color: #17161c; text-shadow: 0 1px 0 #fff; }
.badge span { font-size: .55em; color: #c03a00; }
.dial { position: relative; min-width: 0; height: 58px; border-radius: 6px; background: linear-gradient(#0f1410, #1b241c); box-shadow: inset 0 2px 8px #000, 0 1px 0 #fff; overflow: hidden; }
.dial ol { position: absolute; inset: 8px 22px auto; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; font: 600 14px/1 "Barlow", sans-serif; color: #e6ffb8; }
.dial ol li { width: 0; display: flex; justify-content: center; }
.dial::before { content: ""; position: absolute; inset: 30px 22px 10px; background: repeating-linear-gradient(90deg, #9fbf6a 0 1px, transparent 1px 10%); border-bottom: 1px solid #9fbf6a; }
.dial b { position: absolute; right: 8px; bottom: 5px; font: 600 11px/1 "Barlow", sans-serif; color: #9fbf6a; }
#needle { position: absolute; top: 26px; bottom: 4px; left: calc(22px + (100% - 44px) * var(--at, .3)); width: 3px; background: #ff4a1c; box-shadow: 0 0 8px #ff4a1c; transition: left .5s cubic-bezier(.3, 1.4, .5, 1); }
.vol { font: 600 14px/1 "Barlow", sans-serif; display: grid; gap: 6px; justify-items: center; }
.vol input { width: clamp(90px, 12vw, 150px); height: 28px; margin: 0; appearance: none; -webkit-appearance: none; background: linear-gradient(#24232b, #24232b) center / 100% 6px no-repeat; cursor: pointer; }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 28px; border-radius: 3px; border: 1px solid #3a3d46; background: linear-gradient(90deg, #f4f5f7, #9a9ea9 46%, #17161c 46% 54%, #9a9ea9 54%, #e3e5e9); }
.vol input::-moz-range-thumb { width: 18px; height: 28px; border-radius: 3px; border: 1px solid #3a3d46; background: linear-gradient(90deg, #f4f5f7, #9a9ea9 46%, #17161c 46% 54%, #9a9ea9 54%, #e3e5e9); }
.spk { position: relative; border-radius: 14px; padding: 8% 6% 6%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6%;
  background: radial-gradient(circle at 2.5px 2.5px, #050507 1.5px, transparent 1.9px) 0 0 / 6px 6px, linear-gradient(160deg, #35353d, #191920); box-shadow: inset 0 0 0 3px #0c0c10, inset 0 0 26px #000, 0 1px 0 #fff; }
.spk::before, .spk::after { content: ""; position: absolute; top: 9px; width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(45deg, transparent 45%, #3a3d46 45% 55%, transparent 55%), radial-gradient(circle at 35% 30%, #f5f6f8, #7b7f8a); }
.spk::before { left: 9px; }
.spk::after { right: 9px; }
.tw { width: 30%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px #0a0a0d;
  background: radial-gradient(circle, #f4f5f7 0 3%, #55596a 10%, #16161b 22%, #8b8f9a 23% 26%, #1d1d24 27% 62%, #c9ccd4 63% 72%, #6b6f7a 80%); }
.wf { width: 92%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .7);
  background: conic-gradient(from 20deg, #f2f3f5, #7b7f8a, #e6e8ec, #6b6f7a, #f5f6f8, #868a95, #e0e2e7, #6b6f7a, #f2f3f5); }
.wf i { width: 88%; aspect-ratio: 1; border-radius: 50%; transform: scale(calc(1 + var(--lvl, 0) * .09));
  background: radial-gradient(circle at 50% 50%, transparent 19%, #3a3a43 19.5% 21%, transparent 21.5%), radial-gradient(circle at 50% 50%, transparent 0 20%, #0b0b0e 20.5% 22%, transparent 22.5%), radial-gradient(circle at 46% 43%, #62626e 0, #2a2a32 12%, #121216 19%, transparent 20%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, .05) 0 1px, transparent 1px 7px),
    radial-gradient(closest-side, transparent 76%, #ff5e00 77% 81%, #101014 82% 88%, #34343d 93%, #08080a 99%),
    radial-gradient(circle at 42% 36%, #5a5a64 0, #2a2a32 34%, #141418 62%); }
.deck { display: grid; gap: 12px; align-content: space-between; }
.meters { display: flex; gap: 4px; align-items: stretch; height: 46px; padding: 6px 8px; border-radius: 6px; background: #0d0d11; box-shadow: inset 0 2px 8px #000, 0 1px 0 #fff; }
.meters i { flex: 1; position: relative; overflow: hidden; border-radius: 2px;
  background: repeating-linear-gradient(0deg, transparent 0 4px, #0d0d11 4px 6px), linear-gradient(0deg, #17301d 0 60%, #33300f 60% 82%, #3a1410 82%); }
.meters i::before { content: ""; position: absolute; inset: 0; clip-path: inset(calc(100% - var(--m, 0) * 100%) 0 0 0);
  background: repeating-linear-gradient(0deg, transparent 0 4px, #0d0d11 4px 6px), linear-gradient(0deg, #37e36a 0 60%, #ffd600 60% 82%, #ff3b22 82%); }
.door { position: relative; border-radius: 10px; padding: 12px; background: linear-gradient(#3b3b45, #17171c); box-shadow: inset 0 0 0 3px #0c0c10, inset 0 4px 18px #000, 0 1px 0 #fff; }
.door::after { content: ""; position: absolute; inset: 3px; border-radius: 8px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .20) 0 14%, transparent 14% 22%, rgba(255, 255, 255, .10) 22% 28%, transparent 28%); }
.cassette { border-radius: 8px; padding: 9px 10px 12px; background: linear-gradient(#2c2b34, #1c1b22); box-shadow: inset 0 0 0 2px #45444f; transition: background .3s; }
.cassette .label { border-radius: 4px; padding: 7px 10px 8px; background: linear-gradient(var(--c, #ffd600) 0 8px, #f6f1e6 8px); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cassette .label b { font: 700 clamp(18px, 2vw, 27px)/1 "Barlow Semi Condensed", sans-serif; padding-top: 6px; }
.cassette .label span { font: 600 15px/1 "Barlow", sans-serif; color: #55515f; white-space: nowrap; }
.window { margin: 9px auto 0; width: 82%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 99px; background: #0c0c10; box-shadow: inset 0 0 0 2px #5b5a66; }
.tapepack { height: 60%; border-radius: 4px; background: linear-gradient(90deg, #4a2a18, #6b4026 40%, transparent 62%, #3a2012); opacity: .9; }
.reel { width: clamp(34px, 4.4vw, 56px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 5px #4a2a18;
  background: radial-gradient(circle, #0c0c10 0 17%, transparent 18%), conic-gradient(#f6f1e6 0 8%, #17161c 8% 16%, #f6f1e6 16% 25%, #17161c 25% 33%, #f6f1e6 33% 41%, #17161c 41% 50%, #f6f1e6 50% 58%, #17161c 58% 66%, #f6f1e6 66% 75%, #17161c 75% 83%, #f6f1e6 83% 91%, #17161c 91%); }
.box.on .reel { animation: spin 1.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.keysrow { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 5px; }
.keysrow button { font: 700 20px/1 "Barlow Semi Condensed", sans-serif; text-transform: uppercase; color: #17161c; border: 0; border-radius: 4px 4px 8px 8px; min-height: 52px; cursor: pointer;
  background: linear-gradient(#f7f8fa, #c3c6ce 60%, #8e929d); box-shadow: 0 5px 0 #4b4e58, inset 0 1px 0 #fff; }
.keysrow button:active, .keysrow button[aria-pressed="true"] { transform: translateY(4px); box-shadow: 0 1px 0 #4b4e58, inset 0 2px 5px #7b7f8a; }
#tape { background: linear-gradient(#ff8a42, #ff5e00 60%, #c94600); }
.rack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding: 8px; border-radius: 8px; background: #17161c; box-shadow: inset 0 3px 10px #000, 0 1px 0 #fff; scroll-margin-top: 120px; }
.rack button { border: 0; border-radius: 3px; padding: 16px 4px 9px; min-height: 64px; cursor: pointer; color: #17161c; font: 700 clamp(13px, 1.35vw, 18px)/1.1 "Barlow Semi Condensed", sans-serif;
  background: linear-gradient(var(--c) 0 10px, #f6f1e6 10px); box-shadow: 0 2px 0 #000; }
.rack button small { display: block; font: 600 13px/1 "Barlow", sans-serif; color: #55515f; margin-top: 4px; }
.rack button:hover { background: linear-gradient(var(--c) 0 16px, #fff 16px); }
.rack button[aria-pressed="true"] { background: var(--c); transform: translateY(3px); box-shadow: none; }
.rack button[aria-pressed="true"] small { color: #17161c; }
.kits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.kits button { font: 700 18px "Barlow Semi Condensed", sans-serif; color: #17161c; border: 0; border-radius: 4px; padding: 9px 18px; cursor: pointer; background: linear-gradient(#f7f8fa, #b9bdc6); box-shadow: 0 3px 0 #4b4e58, inset 0 1px 0 #fff; }
.kits button[aria-pressed="true"] { background: linear-gradient(#ffe45c, #ffd600); transform: translateY(2px); box-shadow: 0 1px 0 #4b4e58, 0 0 14px rgba(255, 214, 0, .55); }
.pads { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(5px, .8vw, 10px); padding: clamp(8px, 1vw, 12px); border-radius: 10px; background: #17161c; box-shadow: inset 0 3px 12px #000, 0 1px 0 #fff; }
.pads button { font: 700 clamp(12px, 1.35vw, 17px)/1.1 "Barlow Semi Condensed", sans-serif; min-height: 64px; border: 0; border-radius: 7px; color: #f6f1e6; cursor: pointer; touch-action: manipulation; padding: 2px;
  background: radial-gradient(circle at 50% 22%, #6d6b78, #42414b 60%, #33323b); box-shadow: 0 4px 0 #060608, inset 0 1px 0 #8f8d9b; }
.pads button.hit { background: radial-gradient(circle at 50% 35%, #ffd09a, #ff5e00 70%); color: #1b0d00; transform: translateY(3px); box-shadow: 0 1px 0 #060608, 0 0 22px #ff5e00; }

/* ---- the cassettes */
.tapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 22px; margin-top: 24px; }
.tapes .panel { display: grid; grid-template-columns: 168px 1fr; gap: 22px; padding: 20px; }
.tapes img { width: 168px; height: 168px; image-rendering: pixelated; border: 4px solid #000; border-radius: 6px; }
.tapes h3 { margin-top: 0; font-size: 34px; }
.tapes p { font-size: 17px; line-height: 1.45; }
.tapes button { font: 700 18px "Barlow Semi Condensed", sans-serif; text-transform: uppercase; background: var(--c); color: #140c22; border: 0; border-radius: 4px; padding: 10px 16px; cursor: pointer; }
footer { padding-block: 34px 56px; color: var(--soft); font-size: 16px; }
@media (max-width: 640px) {
  .pads { grid-template-columns: repeat(4, 1fr); }
  .body { grid-template-columns: 1fr 1fr; }
  .deck { grid-column: 1 / -1; grid-row: 2; }
  .topbar { grid-template-columns: 1fr auto; }
  .dial { grid-column: 1 / -1; }
  .rack { grid-template-columns: repeat(3, 1fr); }
  .tapes .panel { grid-template-columns: 1fr; }
  .keys dt { flex-basis: 100%; }
  .top { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spk i { transform: none; }
  .box.on .reel { animation: none; }
  #needle { transition: none; }
}
