/* SPDX-License-Identifier: GPL-3.0-only */
/* NOODLE's site: the landing page and the installer. One look, the instrument's own: its screen's night blue and the
 * four players' colours. (The page with the FM-1 to play has its own sheet, app.css.) */
@font-face { font-family: "DotGothic16"; src: url("fonts/DotGothic16-subset.woff") format("woff"); font-display: swap; }
:root { --bg: #090b16; --surf: #141829; --rule: #262c47; --fg: #f4f4ee; --dim: #9aa0bd;
        --lead: #ffce40; --chord: #46c8ff; --bass: #b07eff; --drum: #ff705c; --go: #50e08c; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--fg); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
main { max-width: 880px; margin: 0 auto; padding-block: 28px 56px; padding-inline: 20px; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; margin: 0; }
.kicker { font: 14px/1 "DotGothic16", ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding-block: 28px 44px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 16px; }
.hero h1 span:nth-child(4n+1) { color: var(--drum); } .hero h1 span:nth-child(4n+2) { color: var(--bass); }
.hero h1 span:nth-child(4n+3) { color: var(--chord); } .hero h1 span:nth-child(4n+4) { color: var(--lead); }
.hero p { font-size: 20px; color: var(--fg); max-width: 30em; margin: 0 0 22px; }
.hero img { width: 100%; max-width: 340px; height: auto; border-radius: 22px; border: 10px solid #000; image-rendering: pixelated; justify-self: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--fg); }
.btn.go { background: var(--go); border-color: var(--go); color: #06200f; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--lead); outline-offset: 3px; }
section { border-top: 1px solid var(--rule); padding-block: 34px; }
section > h2 { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.cards li { background: var(--surf); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.cards h3 { font-size: 17px; margin-bottom: 6px; }
.cards p { margin: 0; color: var(--dim); font-size: 15.5px; }
.cards li:nth-child(4n+1) h3 { color: var(--drum); } .cards li:nth-child(4n+2) h3 { color: var(--bass); }
.cards li:nth-child(4n+3) h3 { color: var(--chord); } .cards li:nth-child(4n+4) h3 { color: var(--lead); }
.styles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.styles li { font: 14px/1 "DotGothic16", ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 999px; }
.prose p, .prose li { max-width: 62ch; }
.prose ol, .prose ul { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.note { background: var(--surf); border-left: 4px solid var(--lead); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; max-width: 62ch; }
.note.warn { border-left-color: var(--drum); }
.small { color: var(--dim); font-size: 14.5px; }
footer { border-top: 1px solid var(--rule); padding-top: 22px; color: var(--dim); font-size: 14px; }
footer p { margin: 0 0 8px; max-width: 70ch; }
.top { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.top a { text-decoration: none; }
.top .name { font-weight: 800; font-size: 20px; }
/* the installer */
.install fieldset { border: 1px solid var(--rule); border-radius: 14px; padding: 18px; margin: 0 0 18px; min-width: 0; }
.install fieldset:disabled { opacity: .45; }
.install button { font: inherit; font-weight: 700; background: var(--fg); color: var(--bg); border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer; }
.install button#go { background: var(--go); color: #06200f; font-size: 19px; }
.install button:disabled { opacity: .35; cursor: default; }
.install button.lang { background: none; color: var(--dim); text-decoration: underline; padding: 0; font-weight: 400; font-size: 14px; }
.install label.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; max-width: 62ch; }
.install input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--go); }
.install progress { width: 100%; height: 8px; margin-top: 14px; accent-color: var(--go); }
.install #status { margin: 12px 0 0; min-height: 1.6em; font-weight: 700; }
.install pre { color: var(--dim); font-size: 12.5px; white-space: pre-wrap; margin: 10px 0 0; overflow-x: auto; }
.install details { margin: 0 0 18px; }
.install summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 680px) { .hero { grid-template-columns: 1fr; } .hero img { max-width: 260px; } main { padding-inline: 16px; } }
/* the installer's wizard */
.install h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 18px 0 18px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
.stepper li { counter-increment: step; font: 13px/1 "DotGothic16", ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase;
              padding: 9px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--dim); }
.stepper li::before { content: counter(step) " "; }
.stepper li.done { color: var(--go); border-color: var(--go); }
.stepper li.now { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.stage { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 26px; }
.fm1 { margin: 0; position: sticky; top: 16px; }
.bezel { background: #000; border-radius: 22px; padding: 10px; aspect-ratio: 1; max-width: 100%; }
.bezel img, .bezel .dark { display: block; width: 100%; height: 100%; border-radius: 12px; image-rendering: pixelated; }
.bezel .dark { background: #05060b; display: grid; place-items: center; font: 22px/1 "DotGothic16", ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--dim); }
.fm1 figcaption { color: var(--dim); font-size: 14.5px; margin-top: 10px; }
.panels section > h2 { font-size: 26px; font-weight: 800; margin: 0 0 14px; outline: none; }
.panels section { border: 0; padding: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "…"; position: absolute; left: 0; width: 22px; text-align: center; color: var(--dim); font-weight: 800; }
.checks li.ok::before { content: "✓"; color: var(--go); }
.checks li.bad::before { content: "✕"; color: var(--drum); }
.checks li.bad { color: var(--drum); }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.cells li { background: var(--surf); border-radius: 12px; padding: 12px 10px; margin: 0; min-width: 0; border: 2px solid transparent; }
.cells li span { display: block; font-size: 13px; color: var(--dim); }
.cells li b { display: block; font: 20px/1.2 "DotGothic16", ui-monospace, Menlo, monospace; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.cells li.now { border-color: var(--lead); }
.cells li.now b { color: var(--lead); }
.cells li.done b { color: var(--go); }
.inline-shot { width: 100%; max-width: 220px; height: auto; border-radius: 14px; border: 8px solid #000; image-rendering: pixelated; }
.install .help { border-top: 1px solid var(--rule); padding-top: 18px; }
.install code { font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 720px) { .stage { grid-template-columns: 1fr; } .fm1 { position: static; max-width: 240px; } .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
