/* Now Playing: record-label catalogue world. Three flat colours, no gradients, no radius, no shadows. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #fa2d48;
  --red-ink: #d6102f;   /* red used as text on paper, 5:1 */
  --ink: #121110;
  --paper: #f3f2ef;
  --mute: #4a4845;      /* secondary text on paper, 7.9:1 */
  --mute-dk: #b5b2ad;   /* secondary text on ink, 9:1 */
  --rule-dk: #34322f;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 1.0625rem/1.55 var(--display); font-stretch: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--red); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
code, pre { font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; }
code { font-size: .92em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* type */
h1, h2, h3 { margin: 0; font-weight: 850; font-stretch: 62%; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 9vw, 9.5rem); line-height: .86; letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: .9; letter-spacing: -.005em; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: .98; }
p { margin: 0; text-wrap: pretty; }
.cat { font-size: .8125rem; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 20px; }

/* header: on the red field */
.top { background: var(--red); color: var(--ink); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-stretch: 62%; font-size: 1.6rem; text-transform: uppercase; line-height: 1; margin-right: auto; }
.brand svg { display: block; }
.navlinks { display: flex; gap: 28px; }
.navlinks a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.navlinks a:hover, .gh:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.lang { display: flex; }
.lang a { padding: 6px 9px; font-size: .8125rem; font-weight: 800; text-decoration: none; border: 2px solid transparent; }
.lang a[aria-current] { border-color: var(--ink); }
.lang a:hover { background: var(--ink); color: var(--red); }
.gh { font-weight: 700; font-size: .95rem; text-decoration: none; padding: 8px 14px; border: 2px solid var(--ink); }
.gh:hover { background: var(--ink); color: var(--red); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); font: 800 1.0625rem/1 var(--display); font-stretch: 75%; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background 120ms, color 120ms; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn--red:hover { background: transparent; color: var(--red); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--paper:hover { background: transparent; color: var(--paper); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lnk { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.lnk:hover { text-decoration-thickness: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* HERO: the red field */
.hero { background: var(--red); color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 64px); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; max-width: 40ch; margin: 30px 0 34px; font-weight: 500; }
.sleeve { margin: 0; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.sleeve > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #2a2927; }
.slab { padding: 16px 18px 18px; }
.slab b { display: block; font-size: 1.2rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slab span { display: block; color: var(--mute-dk); font-size: .95rem; margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { height: 4px; background: var(--rule-dk); }
.track > i { display: block; height: 100%; width: 0; background: var(--red); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.facts li { padding: 14px 16px 16px 0; font-weight: 700; font-size: .95rem; }
.facts li + li { padding-left: 16px; border-left: 2px solid var(--ink); }

/* generic section */
.sec { padding-block: clamp(64px, 9vw, 136px); }
.paper { background: var(--paper); }
.dark { background: var(--ink); color: var(--paper); }
.red { background: var(--red); }
.sec-h { margin-bottom: clamp(36px, 5vw, 72px); }
.sec-h h2 { max-width: 14ch; }
.sec-h--wide h2 { max-width: 20ch; }
.sec-lead { max-width: 56ch; margin-top: 24px; font-size: 1.1rem; }
.sec-lead--w { max-width: 62ch; }

/* tracklist */
.tracks { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.tracks li { display: grid; grid-template-columns: clamp(64px, 9vw, 130px) minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 clamp(16px, 3vw, 48px); padding: 28px 0 32px; border-top: 2px solid var(--ink); align-items: start; }
.tracks li:nth-child(4) { border-top-width: 8px; }
.tracks .no { font-weight: 850; font-stretch: 62%; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: .9; color: var(--red-ink); }
.tracks p { color: var(--mute); max-width: 52ch; }
.tracks code { color: var(--ink); background: #e3e1dc; padding: 1px 5px; }

/* hardware */
.hw-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hw-copy p { color: var(--mute-dk); max-width: 46ch; }
.hw-copy p + p { margin-top: 20px; }
.hw-copy strong { color: var(--paper); }
.hw-copy .lnk { display: inline-block; margin-top: 24px; color: var(--paper); }
.panel { margin: 0; background: #1d1c1a; border: 2px solid var(--rule-dk); padding: clamp(14px, 2vw, 22px); }
.knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.knob { width: 36px; height: 36px; border-radius: 50%; margin-inline: auto; background: #3a3835; border: 2px solid #6b6863; position: relative; }
.knob::after { content: ''; position: absolute; top: 4px; left: 50%; width: 3px; height: 9px; margin-left: -1.5px; background: var(--paper); }
.screen { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #000; margin-bottom: 12px; border: 4px solid #000; }
.zone { min-height: 82px; padding: 9px 10px; background: #141312; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--paper); font-size: 11px; }
.zone--np { flex-direction: row; align-items: center; gap: 8px; }
.zone--np img { width: 34%; height: auto; aspect-ratio: 1; object-fit: cover; flex-shrink: 0; background: #2a2927; }
.zone--np div { min-width: 0; flex-grow: 1; }
.zone--np b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone--np span { display: block; color: var(--mute-dk); font-size: 11px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone--np .track { height: 3px; }
.zone .big { font-size: 26px; font-weight: 850; font-stretch: 62%; line-height: 1; }
.zone .sm { color: var(--mute-dk); font-size: 11px; }
.zone--w { background: #2a2927; }
.zone--c { align-items: center; text-align: center; }
.meter { height: 3px; background: var(--rule-dk); }
.meter i { display: block; height: 100%; background: var(--paper); }
.zone .row { display: flex; justify-content: space-between; font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.key { aspect-ratio: 1; background: #2a2927; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.key img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.key svg { display: block; }
.key .pl { position: absolute; right: 4px; bottom: 4px; }
.panel figcaption { margin-top: 14px; color: var(--mute-dk); font-size: .8125rem; text-align: center; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.steps li { padding: 24px clamp(16px, 2.4vw, 36px) 12px 0; }
.steps li + li { padding-left: clamp(16px, 2.4vw, 36px); border-left: 2px solid var(--ink); }
.steps .num { font-weight: 850; font-stretch: 62%; font-size: clamp(4.5rem, 9vw, 8.5rem); line-height: .8; color: var(--red-ink); margin-bottom: 22px; }
.steps .tag { font-size: .8125rem; font-weight: 700; font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.steps h3 { margin-bottom: 14px; overflow-wrap: anywhere; }
.steps p { color: var(--mute); max-width: 36ch; }
.steps code { color: var(--ink); }

/* install: red field again */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.card { min-width: 0; padding: clamp(24px, 3vw, 40px); border: 2px solid var(--ink); }
.card--solid { background: var(--ink); color: var(--paper); }
.card h3 { margin-bottom: 22px; font-size: clamp(2rem, 3.4vw, 3rem); }
.card ol { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.card ol li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
.card ol .n { font-weight: 850; font-stretch: 62%; font-size: 1.8rem; line-height: 1; color: var(--red); }
.card ol code { color: var(--paper); }
.code { position: relative; margin: 0 0 22px; }
pre { margin: 0; padding: 52px 20px 18px; background: var(--ink); color: var(--paper); font-size: .85rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { position: absolute; top: 10px; right: 10px; padding: 7px 12px; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); font: 800 .75rem/1 var(--display); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background 120ms, color 120ms; }
.copy:hover { background: transparent; color: var(--paper); }
.copy[data-ok] { background: var(--red); border-color: var(--red); color: var(--ink); }
.card p.note { max-width: 46ch; font-weight: 500; }
.req { margin-top: clamp(32px, 4vw, 56px); }
.req ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.req li { padding: 14px 20px 16px 0; font-weight: 700; }
.req li + li { padding-left: 20px; border-left: 2px solid var(--ink); }

/* worth knowing */
.know { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.know h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.know p { color: var(--mute); max-width: 56ch; }
.know p + p { margin-top: 16px; }

/* closing */
.cta h2 { font-size: clamp(3rem, 8.5vw, 8.5rem); line-height: .86; max-width: 14ch; }
.cta p { color: var(--mute-dk); margin: 28px 0 36px; font-size: 1.15rem; }
footer { background: var(--ink); color: var(--mute-dk); padding-block: 0 44px; font-size: .875rem; }
footer .wrap { border-top: 2px solid var(--rule-dk); padding-top: 32px; display: grid; gap: 22px; }
footer p { max-width: 90ch; }
footer nav, footer .meta { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { color: var(--paper); font-weight: 600; text-underline-offset: 4px; }
footer a:hover { color: var(--red); }

@media (max-width: 900px) {
  .navlinks { display: none; }
  .hero-grid, .hw-grid, .install-grid, .know { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .sleeve { max-width: 460px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .tracks li { grid-template-columns: 56px 1fr; }
  .tracks li p { grid-column: 2; margin-top: 12px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 24px; border-left: 0; }
  .steps li + li { border-top: 2px solid var(--ink); }
  .req ul { grid-template-columns: 1fr; }
  .req li, .req li + li { padding: 12px 0; border-left: 0; }
  .req li + li { border-top: 2px solid var(--ink); }
}
@media (max-width: 560px) {
  .top .wrap { gap: 10px; }
  .gh { display: none; }
  .brand { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* CSP-friendly helpers (no inline style attributes) */
.hw-copy h2 { margin-bottom: 28px; }

.sec-h--how h2 { max-width: 26ch; }
.w34 { width: 34%; }
.w51 { width: 51%; }
.sr-copy { position: fixed; left: -9999px; top: 0; }

/* 404 */
.nf { background: var(--red); min-height: calc(100vh - 66px); display: flex; align-items: center; padding-block: clamp(32px, 6vw, 80px); }
.nf h1 { font-size: clamp(9rem, 34vw, 28rem); line-height: .78; margin-bottom: clamp(28px, 4vw, 56px); }
.nf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.nf-list li { padding: 24px 20px 0 0; }
.nf-list li + li { padding-left: 20px; border-left: 2px solid var(--ink); }
.nf-t { font-weight: 850; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 20px; }
@media (max-width: 700px) {
  .nf-list { grid-template-columns: 1fr; }
  .nf-list li, .nf-list li + li { padding: 20px 0 22px; border-left: 0; }
  .nf-list li + li { border-top: 2px solid var(--ink); }
}
