/* F*CK LINUX. One typeface (Fraunces, soft) everywhere; Geist Mono only inside real code. Tempo-style paper, a technical
   drawing beside the guide, full-bleed dark bands between the 4 parts. No inline styles anywhere (CSP).
   Fraunces stands in for the reference's Gelica (a paid font): swap the file here if a Gelica license is bought. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #efefeb;
  --tone: #e4e4de;
  --white: #fcfcfc;
  --sheet: #f7f7f6;
  --ink: #141413;
  --i2: #3d3d38;
  --i3: #5f5f58;
  --red: #c4291e;
  --dark: #151514;
  --dark2: #24241f;
  --on-dark: #d6d6cf;
  --on-dark2: #a9a9a1;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  /* the type scale: small, body, lead, title, heading, band, display */
  --t-s: 14px;
  --t-b: 17px;
  --t-l: 20px;
  --t-3: 25px;
  --t-2: clamp(36px, 3.4vw, 48px);
  --t-band: clamp(44px, 5vw, 72px);
  --t-1: clamp(72px, 9vw, 132px);
  --m: clamp(18px, 3.4vw, 48px);
  --head: 60px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-b)/1.6 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 0; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3 { font-family: var(--serif); font-weight: 450; margin: 0; text-wrap: balance; font-variation-settings: 'SOFT' 100, 'WONK' 0; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.86em; background: rgba(20, 20, 19, 0.07); padding: 0.12em 0.36em; border-radius: 3px; overflow-wrap: anywhere; }
.f { color: var(--red); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: 500 var(--t-s)/1 var(--serif); text-decoration: none; cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.btn:hover { background: #2c2c29; }
.btn:active { transform: scale(0.97); }
.btn.sm { min-height: 40px; padding: 0 15px; }
.btn.light { background: #fff; color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: var(--head); padding: 0 var(--m); background: var(--paper); transition: transform 260ms var(--ease-out); }
.top.away { transform: translateY(-100%); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.logo { font: 600 var(--t-l)/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.menu { display: flex; gap: 24px; margin: 0 auto; }
.menu a { color: var(--i2); font-size: var(--t-s); text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.menu a:hover, .menu a[aria-current='true'] { color: var(--ink); }
.menu a[aria-current='true'] { text-decoration: underline 2px var(--red); text-underline-offset: 7px; }
.music { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 6px; background: var(--tone); color: var(--ink); font: 500 var(--t-s)/1 var(--serif); cursor: pointer; transition: background-color 160ms ease; }
.music:hover { background: #d9d9d2; }
.music[aria-pressed='true'] { background: var(--ink); color: #fff; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { display: block; width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.music[aria-pressed='true'] .eq i { animation: eq 900ms ease-in-out infinite alternate; }
.music[aria-pressed='true'] .eq i:nth-child(2) { animation-delay: -300ms; }
.music[aria-pressed='true'] .eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

/* ---------- a part: the guide on the left, the drawing on the right, a handle between them ---------- */
.wrap { display: grid; grid-template-columns: minmax(0, var(--gl, 46fr)) 18px minmax(0, var(--gr, 54fr)); }
.guide { padding: 0 clamp(28px, 4vw, 64px) 104px var(--m); min-width: 0; }
.guide > .sec { max-width: 640px; }
.aside { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); padding: 18px var(--m) 22px 4px; }
.figbox { height: 100%; }
.split { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); display: flex; align-items: center; justify-content: center; cursor: col-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.grip { position: relative; width: 16px; height: 72px; border-radius: 8px; background: var(--tone); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.grip::before, .grip::after { content: ''; position: absolute; top: 22px; bottom: 22px; width: 2px; border-radius: 1px; background: var(--i3); }
.grip::before { left: 5px; }
.grip::after { right: 5px; }
.split:hover .grip, .split:focus-visible .grip { background: #d4d4cd; }
.split.drag .grip { background: var(--ink); transform: scaleY(1.08); }
.split.drag .grip::before, .split.drag .grip::after { background: #fff; }
.split:focus-visible { outline: none; }
body.resizing { cursor: col-resize; user-select: none; -webkit-user-select: none; }

/* ---------- the drawing ---------- */
.fig { position: relative; display: flex; flex-direction: column; background-color: var(--sheet); background-image: radial-gradient(rgba(20, 20, 19, 0.09) 1px, transparent 1.2px); background-size: 22px 22px; border-radius: 8px; overflow: hidden; }
.fig-d { height: 100%; }
.fig-top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px 0; font-size: var(--t-s); color: var(--i3); }
.fig-name { color: var(--ink); font-weight: 500; }
.fig-svg { flex: 1; min-height: 240px; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fig-svg.turning { cursor: grabbing; }
.fig-svg:focus { outline: none; }
.fig-svg:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.fig-svg polygon { stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fig-svg .part { cursor: pointer; }
.fig-svg .axis { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.45; vector-effect: non-scaling-stroke; }
.fig-svg .wire path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.7; vector-effect: non-scaling-stroke; }
.fig-svg .wire.on path { stroke-width: 2; stroke-dasharray: none; opacity: 1; }
.fig-svg .face { font-family: var(--serif); font-weight: 600; pointer-events: none; }
.fig-svg .lbl { cursor: pointer; }
.fig-svg .lbl:focus { outline: none; }
.fig-svg .lbl line { stroke: #8d8d86; stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig-svg .lbl circle { fill: var(--ink); }
.fig-svg .lbl text { font-family: var(--serif); font-weight: 500; fill: var(--i2); }
.fig-svg .lbl text .l2 { fill: var(--i3); font-weight: 400; }
.fig-svg .lbl:hover text, .fig-svg .lbl:focus-visible text { fill: var(--ink); text-decoration: underline; }
.fig-svg .lbl.on rect { fill: var(--ink); }
.fig-svg .lbl.on text, .fig-svg .lbl.on text .l2 { fill: #fff; }
.fig-svg .lbl.on line { stroke: var(--ink); }
.fig-svg .mk { cursor: pointer; }
.fig-svg .mk line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig-svg .mk circle { fill: var(--ink); }
.fig-svg .mk.on circle { fill: var(--red); }
.fig-svg .mk text { fill: #fff; font-family: var(--serif); font-weight: 600; }
.fig-panel { min-height: 104px; padding: 14px 18px 16px; background: #ebebe6; }
.fig-d .fig-panel { max-height: 42%; overflow: auto; }
.fig-panel p { margin: 6px 0 0; font-size: var(--t-b); line-height: 1.5; color: var(--i2); max-width: 62ch; }
.fp-now { color: var(--ink) !important; margin-top: 0 !important; }
.fp-now b { color: var(--red); font-weight: 600; }
.fp-hint { font-size: var(--t-s) !important; color: var(--i3) !important; }
.fp-keys { color: var(--i3); }
.fp-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.fp-h b { font-size: var(--t-l); font-weight: 600; }
.fp-back { margin-left: auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--tone); color: var(--ink); font: 500 var(--t-s)/1 var(--serif); cursor: pointer; }
.fp-back:hover { background: #d4d4cd; }
.fp-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.fp-specs dt { font-size: var(--t-s); color: var(--i3); }
.fp-specs dd { margin: 2px 0 0; font-size: var(--t-b); font-weight: 600; }
.fig-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.fig-legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 6px; background: var(--white); color: var(--ink); font: 500 var(--t-s)/1.2 var(--serif); cursor: pointer; }
.fig-legend button b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--t-s); font-weight: 600; }
.fig-legend button[aria-pressed='true'] b { background: var(--red); }

/* ---------- sections ---------- */
.sec { padding-top: 96px; scroll-margin-top: calc(var(--head) + 8px); }
.sec h2 { font-size: var(--t-2); line-height: 1.05; letter-spacing: -0.02em; max-width: 14em; margin-bottom: 18px; }
.sec h3 { font-size: var(--t-3); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
.sec h3.sub { margin: 56px 0 14px; font-weight: 450; }
.lede { font-size: var(--t-l); line-height: 1.5; color: var(--i2); max-width: 34em; }
.sec p, .sec li { color: var(--i2); }
.sec p { max-width: 62ch; }
.sec b { color: var(--ink); font-weight: 600; }

/* the first screen */
.hero { padding-top: clamp(48px, 8vh, 96px); }
.hero h1 { font-size: var(--t-1); line-height: 0.9; letter-spacing: -0.03em; font-weight: 430; }
.hero h1 .f { display: block; }
.hero .sub { margin-top: 28px; font-size: var(--t-l); line-height: 1.45; color: var(--ink); max-width: 30em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.stats b { display: block; font-size: var(--t-2); font-weight: 450; line-height: 1; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.stats span { display: block; margin-top: 8px; font-size: var(--t-s); line-height: 1.4; color: var(--i2); }
.route { margin: 34px 0 0; }
.route-t { font-size: var(--t-3); margin-bottom: 14px; }
.route ol { margin: 0; padding: 0 0 0 1.5em; display: grid; gap: 8px; }
.route li { padding-left: 4px; }
.route li::marker { font: 500 var(--t-3)/1 var(--serif); color: var(--red); }
.route a { display: block; padding: 14px 18px 15px; border-radius: 8px; background: var(--white); text-decoration: none; transition: background-color 160ms ease, transform 200ms var(--ease-out); }
.route a b { display: block; font-size: var(--t-3); font-weight: 500; line-height: 1.2; }
.route a span { display: block; margin-top: 3px; font-size: var(--t-b); color: var(--i2); }
@media (hover: hover) { .route a:hover { background: #fff; transform: translateX(4px); } }
.credit { margin-top: 28px; font-size: var(--t-b); color: var(--i2); max-width: 40em; }
.hero-media { margin-top: 24px; }

/* steps and lists */
.items { margin: 22px 0 0; padding: 0 0 0 1.4em; display: grid; gap: 6px; }
.item { padding: 14px 16px 14px 10px; border-radius: 8px; transition: opacity 260ms ease, background-color 260ms ease; }
.item::marker { font: 500 var(--t-l)/1 var(--serif); color: var(--i3); }
.item h3 + p, .item h3 + ol, .item h3 + .steps { margin-top: 6px; }
.item p { margin: 0; font-size: var(--t-b); line-height: 1.6; }
.item p + p { margin-top: 10px; }
.items:has(> .item.on) > .item:not(.on) { opacity: 0.45; }
.item.on { background: var(--white); }
.item.on::marker { color: var(--red); }
.steps { margin: 10px 0 12px; padding-left: 22px; }
.steps li { margin: 6px 0; padding-left: 4px; }
.steps li::marker { color: var(--i3); }
.ticks { margin: 12px 0 0; padding-left: 1.2em; }
.ticks li { margin: 0 0 10px; padding-left: 4px; }
.ticks li::marker { color: var(--ink); }
.note { margin: 24px 0 0; padding: 16px 20px; background: var(--tone); border-radius: 8px; color: var(--ink) !important; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.duo > div { padding: 20px 22px 8px; border-radius: 8px; background: var(--white); }
.duo > div:last-child { background: var(--tone); }
.duo h3 { margin-bottom: 10px; }

/* pictures and videos */
.media, .shot { margin: 28px 0 0; }
.media video { width: 100%; height: auto; background: #dcdcd6; border-radius: 8px; }
.shot img { width: 100%; height: auto; border-radius: 8px; background: #dcdcd6; }
figcaption { margin-top: 10px; font-size: var(--t-s); line-height: 1.5; color: var(--i2); max-width: 62ch; }
figcaption a { color: var(--ink); }
.tiles { display: grid; gap: 18px; margin-top: 28px; }
.tiles .tile { margin: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vwrap { position: relative; cursor: zoom-in; }
.fs { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: rgba(20, 20, 19, 0.86); color: #fff; font: 500 var(--t-s)/1 var(--serif); cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.fs:hover { background: var(--ink); }
.fs:active { transform: scale(0.96); }

/* prompts and commands */
.howto { margin-top: 56px; padding: 26px 26px 24px; background: var(--white); border-radius: 10px; }
.howto h3 { margin-bottom: 8px; }
.howto p { margin: 0; }
.howto-steps { list-style: none; counter-reset: h; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.howto-steps li { counter-increment: h; padding: 14px 16px; background: var(--tone); border-radius: 8px; font-size: var(--t-b); line-height: 1.45; }
.howto-steps li::before { content: counter(h); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--t-s); font-weight: 600; }
.howto-steps b { display: block; color: var(--ink); }
.jump { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 12px; padding: 0 14px; border-radius: 6px; background: var(--tone); font-size: var(--t-s); font-weight: 600; text-decoration: none; color: var(--ink); }
.jump:hover { background: var(--ink); color: #fff; }
.prompt, .cmd { background: var(--dark); color: #e8e8e3; border-radius: 10px; margin: 14px 0 0; }
.prompt { scroll-margin-top: calc(var(--head) + 16px); }
.prompt .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 4px 20px; }
.prompt .bar b { color: #fff; font-size: var(--t-l); font-weight: 600; line-height: 1.3; }
.prompt .for { margin: 0; padding: 0 20px 4px; font-size: var(--t-b); color: var(--on-dark) !important; }
.prompt pre, .cmd pre { margin: 0; font: 400 14px/1.62 var(--mono); }
.prompt pre { margin: 10px 12px 0; padding: 14px 16px 18px; border-radius: 6px; background: #0c0c0b; white-space: pre-wrap; overflow-wrap: anywhere; }
.js .prompt:not(.open) pre { max-height: 170px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.prompt .more { display: block; width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--on-dark); font: 500 var(--t-s)/1 var(--serif); cursor: pointer; }
.prompt .more:hover { color: #fff; }
.cmd { position: relative; }
.cmd pre { padding: 16px 100px 16px 20px; overflow-x: auto; white-space: pre; }
.cmd .copy { position: absolute; top: 9px; right: 9px; }
.prompt code, .cmd code { background: none; padding: 0; font-size: inherit; color: inherit; border-radius: 0; overflow-wrap: normal; }
.copy { min-height: 40px; min-width: 78px; padding: 0 16px; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font: 600 var(--t-s)/1 var(--serif); cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.copy:hover { background: #e7e7e1; }
.copy:active { transform: scale(0.96); }
.copy.done { background: var(--red); color: #fff; }

/* projects */
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: baseline; gap: 12px; }
.badge { display: inline-block; flex: none; padding: 5px 9px; border-radius: 4px; background: var(--tone); font-size: var(--t-s); font-weight: 600; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.badge.b-no { background: var(--red); color: #fff; }
.badge.b-under, .badge.b-in { background: var(--ink); color: #fff; }
.cards { margin-top: 26px; display: grid; gap: 6px; }
.card { padding: 18px 18px 16px; border-radius: 8px; transition: opacity 260ms ease, background-color 260ms ease; }
.cards:has(> .card.on) > .card:not(.on) { opacity: 0.45; }
.card.on { background: var(--white); }
.card-top { margin-bottom: 8px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 8px; }
.card .note { margin-top: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px !important; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-b); font-weight: 500; color: var(--ink); }

/* the long install guide */
.step { padding: 48px 18px 14px; margin-inline: -18px; border-radius: 8px; scroll-margin-top: calc(var(--head) + 8px); transition: background-color 260ms ease; }
.step.on { background: var(--white); }
.step > h3 { margin-bottom: 12px; }
.step ul, .step ol { padding-left: 22px; }
.step li { margin: 6px 0; }
.table { margin: 22px 0 0; overflow-x: auto; }
.table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--t-s); }
.table th, .table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(20, 20, 19, 0.14); color: var(--i2); }
.table th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.table td:first-child { color: var(--ink); font-weight: 500; }

/* quote, resources, questions */
.quote { margin: 24px 0 0; padding: 26px 28px; border-radius: 10px; background: var(--white); }
.quote p { font-size: var(--t-l); line-height: 1.45; color: var(--ink) !important; margin: 0; }
.quote footer { margin-top: 16px; font-size: var(--t-s); color: var(--i3); }
.res { margin-top: 8px; }
.res-g { margin-top: 34px; }
.res-g h3 { margin-bottom: 6px; }
.res ul { list-style: none; margin: 0; padding: 0; }
.res li a { position: relative; display: block; padding: 10px 34px 10px 0; text-decoration: none; }
.res li a::after { content: '↗'; position: absolute; right: 4px; top: 12px; color: var(--i3); transition: color 160ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) { .res li a:hover .t { text-decoration: underline; } .res li a:hover::after { color: var(--red); transform: translate(2px, -2px); } }
.res .t { display: block; color: var(--ink); font-weight: 600; }
.res .d { display: block; color: var(--i2); }
.res .u { display: block; font-size: var(--t-s); color: var(--i3); overflow-wrap: anywhere; }
.faq { margin-top: 22px; display: grid; gap: 8px; }
.faq details { border-radius: 8px; background: var(--white); }
.faq summary { position: relative; display: block; padding: 16px 50px 16px 20px; font-size: var(--t-l); font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 14px; font-size: 24px; line-height: 1; color: var(--i3); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq details p { margin: 0; padding: 0 20px 18px; }
.foot-note { margin-top: 56px; font-size: var(--t-s); color: var(--i3) !important; }

/* ---------- the band between parts: full width, dark ---------- */
/* a soft fade from the paper into the dark and back out again, as asked, instead of a hard edge */
.band { background: linear-gradient(to bottom, var(--paper) 0, var(--dark) 240px, var(--dark) calc(100% - 240px), var(--paper) 100%); color: #fff; padding: clamp(220px, 20vw, 280px) var(--m); scroll-margin-top: calc(var(--head) - 150px); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1440px; margin: 0 auto; }
.track { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.track a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 6px; background: var(--dark2); color: var(--on-dark2); font-size: var(--t-s); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.track a:hover { color: #fff; }
.track .done a { color: var(--on-dark); }
.track .on a { background: var(--red); color: #fff; font-weight: 600; }
.band h2 { font-size: var(--t-band); line-height: 1; letter-spacing: -0.025em; color: #fff; max-width: 11em; }
.band-d { margin: 20px 0 0; font-size: var(--t-l); line-height: 1.5; color: var(--on-dark); max-width: 30em; }
.band-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.band-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: var(--t-l); color: #fff; text-decoration: none; }
.band-list a::before { content: '→'; color: var(--red); }
.band-list a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.band-v { margin: 0; }
.band-v img { width: 100%; height: auto; border-radius: 10px; }
.band-v figcaption { color: var(--on-dark2); }
.term { border-radius: 10px; background: #0b0b0a; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--dark2); color: var(--on-dark2); font-size: var(--t-s); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a35; }
.term pre { margin: 0; padding: 20px 22px 24px; font: 400 14px/1.7 var(--mono); color: #e8e8e3; white-space: pre-wrap; overflow-wrap: anywhere; }
.term pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.term .dim { color: #8b8b83; }

/* ---------- the end ---------- */
.end { background: linear-gradient(to bottom, var(--paper) 0, var(--dark) 240px); color: #e8e8e3; padding: 260px var(--m) 40px; }
.end-big { margin: 0; font: 430 clamp(60px, 14.5vw, 240px)/0.88 var(--serif); letter-spacing: -0.04em; color: #fff; white-space: nowrap; }
.end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; }
.end-row p { margin: 0; font-size: var(--t-l); }
.end-small { margin: 26px 0 0; font-size: var(--t-s); color: var(--on-dark2); }

/* ---------- follow card and video viewer ---------- */
.fpop { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 12px; width: min(380px, calc(100vw - 24px)); padding: 12px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -18px rgba(20, 20, 19, 0.45); visibility: hidden; transform: translateY(calc(100% + 24px)); transition: transform 600ms var(--ease-out), visibility 0s linear 600ms; }
.fpop.open { visibility: visible; transform: none; transition: transform 600ms var(--ease-out), visibility 0s; }
.fpop img { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.fpop-t { flex: 1; min-width: 0; }
.fpop-t b { display: block; font-weight: 600; font-size: var(--t-b); line-height: 1.2; }
.fpop-t span { color: var(--i2); font-size: var(--t-s); }
.fpop .btn { flex: none; }
.fpop-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--tone); color: var(--ink); font-size: 20px; cursor: pointer; }
.lb { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb::backdrop { background: rgba(12, 12, 11, 0.94); }
.lb-v { width: auto; max-width: 96vw; max-height: 84vh; border-radius: 6px; background: #000; }
.lb-x { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-c { max-width: 70ch; margin: 14px 16px 0; text-align: center; font-size: var(--t-b); line-height: 1.5; color: var(--on-dark); }

/* ---------- the drawing inside sections (phone and tablet) ---------- */
.figm { margin: 6px calc(var(--m) * -1) 26px; }
.figm .fig { border-radius: 0; }
.figm .fig-svg { height: clamp(250px, 70vw, 380px); flex: none; }
.figm .fig-panel { min-height: 0; }
.figm .fig-panel[hidden] { display: none; }

/* gentle reveals: a band's words and picture, and every section title, rise in once as they come into view */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .band-v.rv { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .fpop, .fpop.open { transition: none; }
  .music[aria-pressed='true'] .eq i { animation: none; height: 9px; }
}
@media (max-width: 1180px) { .menu { gap: 16px; } }
@media (max-width: 959px) {
  :root { --head: 58px; }
  .wrap { display: block; }
  .aside, .split, .menu { display: none; }
  .guide { padding: 0 var(--m) 72px; }
  .guide > .sec { max-width: none; }
  .top { gap: 10px; }
  .music { margin-left: auto; padding: 0 12px; }
  .top .hh { display: none; }
  html { scroll-padding-top: 20px; }
  .sec, .step { scroll-margin-top: 20px; }
  .sec { padding-top: 72px; }
  .hero { padding-top: 32px; }
  .hero .sub { font-size: var(--t-l); margin-top: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .duo, .pair, .howto-steps, .band-in { grid-template-columns: 1fr; }
  .howto { padding: 20px 18px; }
  .band { padding: 170px var(--m); background: linear-gradient(to bottom, var(--paper) 0, var(--dark) 150px, var(--dark) calc(100% - 150px), var(--paper) 100%); scroll-margin-top: -100px; }
  .end { padding-top: 180px; background: linear-gradient(to bottom, var(--paper) 0, var(--dark) 160px); }
  .band-d { font-size: var(--t-b); }
  .item { padding-right: 12px; }
  .step { padding-inline: 12px; margin-inline: -12px; }
  .fpop { display: none; }
  .table table { min-width: 0; }
  .fp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
