@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Pixel"; src: url("fonts/GeistPixel-Square.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0A0A0B;
  --panel: #161617;
  --raised: #2B2B2B;
  --white: #FFFFFF;
  --g40: #B8B8B8;
  --g50: #828282;
  --g60: #545454;
  --orange: #EF4A24;
  --orange-hover: #FF603A;
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --pixel: "Geist Pixel", var(--mono);
  --ease: cubic-bezier(0.44, 0, 0.13, 0.96);
  --input: #000000;
  --hair: rgba(255, 255, 255, .1);
  --radius: 16px;
  --side: 200px;
  --gap: 72px;
  --main: 1056px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--ink); color: var(--g40); font: 400 16px/1.55 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--white); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-hover); }
p, h1, h2, h3, h4, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
strong { color: var(--white); font-weight: 500; }
code { font: 400 13px/1.5 var(--mono); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: 12px; z-index: 50; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: 8px; transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; }

.grad {
  background: linear-gradient(0deg, rgb(166, 166, 166) 0%, rgb(255, 255, 255) 35%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- frame ---------- */

.book { display: grid; grid-template-columns: var(--side) minmax(0, var(--main)); column-gap: var(--gap); max-width: calc(var(--side) + var(--gap) + var(--main) + 96px); margin: 0 auto; padding: 0 48px; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 40px 0 32px; z-index: 20; }
.side-logo { display: block; margin-bottom: 44px; }
.menu { display: none; }
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 0; color: var(--g50); font-size: 14px; text-decoration: none; transition: color .2s; }
.toc a:hover { color: var(--white); }
.toc a.on { color: var(--white); font-weight: 500; }
.theme { margin-top: auto; align-self: flex-start; min-height: 32px; color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.theme:hover { color: var(--orange-hover); }
.side-back { margin-top: 8px; color: var(--g50); font-size: 13px; text-decoration: none; }

main { min-width: 0; padding-bottom: 48px; }
.intro { padding: 72px 0 0; outline: none; }
h1 { font-size: clamp(44px, 5.6vw, 72px); font-weight: 600; line-height: 1.02; padding-bottom: .06em; }
.lead { max-width: 620px; margin-top: 20px; font-size: 20px; line-height: 1.45; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 56px; margin-top: 32px; font-size: 14px; }
.facts dt { color: var(--white); font-weight: 500; }
.facts dd { color: var(--g50); }
.facts a { color: var(--g50); }

.hero { position: relative; height: clamp(380px, 46vw, 560px); margin-top: 40px; border-radius: var(--radius); overflow: hidden; background: #000; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: radial-gradient(60% 100% at 50% 100%, rgba(239, 74, 36, .28), transparent 70%); pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-note { position: absolute; top: 24px; right: 28px; z-index: 2; font-size: 13px; color: var(--g50); }
.hero-foot { position: absolute; left: 28px; bottom: 24px; z-index: 2; pointer-events: none; }
.hero-foot p { margin-top: 10px; font-size: 14px; }
.hero-controls { position: absolute; right: 24px; bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 18px; }

.seg { display: flex; flex-wrap: wrap; gap: 16px; }
.seg button, .seg-solo { min-height: 32px; font-size: 14px; color: var(--g50); transition: color .2s; }
.seg button:hover, .seg-solo:hover { color: var(--white); }
.seg button[aria-pressed="true"] { color: var(--white); font-weight: 500; }
.seg-solo { color: var(--white); font-weight: 500; }

/* ---------- chapters ---------- */

.chapter { padding-top: 136px; }
.chapter-head h2 { font-size: clamp(38px, 4.4vw, 56px); font-weight: 600; line-height: 1.05; padding-bottom: .06em; }
.chapter-head p { max-width: 620px; margin-top: 16px; font-size: 19px; line-height: 1.45; }
.block { padding-top: 80px; }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; margin-bottom: 28px; }
.block-head h3 { color: var(--white); font-size: 24px; font-weight: 600; line-height: 1.25; }
.block-head p { max-width: 520px; }
h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.note { margin-top: 20px; font-size: 14px; color: var(--g50); }

.cols { display: grid; gap: 20px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.cols.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card { padding: 24px; background: var(--panel); border-radius: var(--radius); }
.cols.three .card { padding: 24px; }
.big { color: var(--white); font-size: 26px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.statement { padding: 48px 40px; margin-bottom: 28px; border-radius: var(--radius); background: #000 radial-gradient(60% 90% at 50% 120%, rgba(239, 74, 36, .32), transparent 70%); }
.statement-line { font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; line-height: 1.05; padding-bottom: .06em; text-wrap: balance; }
.statement-sub { margin-top: 12px; font-size: 18px; }
.plain-list { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--white); font-size: 22px; font-weight: 500; }
.plain-list.muted { color: var(--g40); font-size: 18px; font-weight: 400; }

/* ---------- playgrounds ---------- */

.play { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.play-stage, .pair-stage, .post-stage { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; transition: background-color .3s; }
.play-stage { display: grid; place-items: center; background: #000; padding: 48px 24px; }
.play-panel { display: flex; flex-direction: column; gap: 22px; padding: 24px; background: var(--panel); border-radius: var(--radius); }
.play-cap { position: absolute; bottom: 14px; font-size: 13px; color: var(--g50); }
.play-cap.left { left: 18px; } .play-cap.right { right: 18px; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--white); font-size: 14px; font-weight: 500; }
.field-label span { color: var(--g50); font-weight: 400; }
.dots { display: flex; flex-wrap: wrap; gap: 10px; }
.dot { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .2s var(--ease); }
.dot:hover { transform: scale(1.1); }
.dot[aria-pressed="true"] { outline: 2px solid var(--white); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--orange); }
.switch { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--g40); font-size: 14px; cursor: pointer; }
.switch input { appearance: none; flex: 0 0 auto; position: relative; width: 34px; height: 20px; margin: 0; border-radius: 20px; background: var(--raised); cursor: pointer; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--orange); }
.switch input:checked::after { transform: translateX(14px); }
.verdict { margin-top: auto; font-size: 14px; }
.verdict strong { display: block; margin-bottom: 2px; }
.text-btn { min-height: 32px; color: var(--white); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-btn:hover { color: var(--orange-hover); }
.text-in { width: 100%; padding: 12px 14px; color: var(--white); background: var(--input); border: 0; border-radius: 8px; font: 400 16px/1.45 var(--sans); resize: vertical; }

.lockup-holder { position: relative; display: inline-flex; max-width: 100%; }
.lockup-holder svg { display: block; max-width: 100%; height: auto; }
.lockup-clear { position: absolute; background: rgba(239, 74, 36, .22); pointer-events: none; }

/* anatomy */
.anatomy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.anatomy-art { display: grid; place-items: center; padding: 48px; background: #000; border-radius: var(--radius); }
.anatomy-art svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.anatomy-art .gridline { stroke: rgba(255, 255, 255, .13); stroke-width: 1; opacity: 0; transition: opacity .25s; vector-effect: non-scaling-stroke; }
.anatomy-art [data-show="grid"] .gridline { opacity: 1; }
.anatomy-art .band { transition: opacity .25s; }
.anatomy-art [data-show="shoulders"] .band > :not(polygon) { opacity: .16; }
.anatomy-art [data-show="orange"] .band:not(:last-of-type) { opacity: .16; }
.anatomy-art [data-show="bands"] .band { stroke: #000; stroke-width: 4; }
.anatomy-art [data-show="crisp"] { filter: contrast(1.25); }
.anatomy-list { display: flex; flex-direction: column; gap: 4px; }
.anatomy-list li { padding: 14px 18px; border-radius: 12px; cursor: default; transition: background-color .2s; }
.anatomy-list li:hover, .anatomy-list li:focus-visible { background: var(--panel); }
.anatomy-list strong { display: block; font-weight: 600; }
.anatomy-list span { font-size: 14px; }

.stage-sm { display: grid; place-items: center; min-height: 260px; padding: 28px; background: #000; border-radius: var(--radius); }
.sizes { grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; }
.sizes img { margin: 0 auto 14px; }
.sizes p { font-size: 13px; color: var(--g50); }
.accent-demo.wrong { background: var(--orange); color: #000; font-weight: 500; }
.btn-orange { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 22px; border-radius: 24px; background: var(--orange); color: #fff; font-weight: 600; text-decoration: none; box-shadow: inset 0 2px 4px rgba(255, 255, 255, .35), 0 8px 20px -6px rgba(239, 74, 36, .45); transition: background-color .25s, transform .25s var(--ease); }
.btn-orange:hover { background: var(--orange-hover); color: #fff; transform: translateY(-2px); }

/* break the logo */
.break { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.break-stage { position: relative; display: grid; place-items: center; min-height: 340px; padding: 40px 24px 64px; background: #000; border-radius: var(--radius); overflow: hidden; transition: background-color .3s; }
.break-stage.on-orange { background: var(--orange); }
.break-logo { display: inline-flex; align-items: center; gap: 2.2%; width: min(86%, 520px); transition: transform .4s var(--ease), filter .3s; }
.break-logo .bm { flex: 0 0 auto; width: 16%; transition: filter .3s, order 0s; }
.break-logo .bw { flex: 1 1 auto; min-width: 0; transition: filter .3s; }
.break-logo svg { display: block; width: 100%; height: auto; }
.break-logo.stretch { transform: scale(1.14, .62); }
.break-logo.tilt { transform: rotate(-11deg); }
.break-logo.stretch.tilt { transform: rotate(-11deg) scale(1.14, .62); }
.break-logo.recolour .bm { filter: hue-rotate(150deg) saturate(1.5); }
.break-logo.flat .bm svg * { fill: #fff; }
.break-logo.glow { filter: drop-shadow(0 0 14px #EF4A24) drop-shadow(0 0 3px #fff); }
.break-logo.swap .bm { order: 2; }
.break-logo .bt { display: none; color: #fff; font: italic 700 44px/1 Georgia, "Times New Roman", serif; white-space: nowrap; }
.break-logo.type .bw svg { display: none; }
.break-logo.type .bt { display: block; }
.break-status { position: absolute; left: 20px; bottom: 16px; right: 20px; font-size: 14px; color: var(--g40); }
.break-stage.on-orange .break-status { color: #000; }
.break-status strong { display: block; }
.break-stage.on-orange .break-status strong { color: #000; }
.break-panel { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--panel); border-radius: var(--radius); }
.switches { display: grid; gap: 8px; }
.frames figure, .gallery figure { min-width: 0; }
.frames img, .gallery img { width: 100%; border-radius: 12px; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--g50); }
.avatars { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px; padding: 32px; background: #000; border-radius: var(--radius); }
.avatars img { border-radius: 18%; image-rendering: pixelated; }

/* ---------- colour ---------- */

.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.swatches.small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.swatch { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: transform .25s var(--ease); }
.swatch:hover { transform: translateY(-2px); }
.swatch-chip { display: block; height: 128px; box-shadow: inset 0 0 0 1px var(--hair); border-radius: var(--radius) var(--radius) 0 0; }
.swatches.small .swatch-chip { height: 88px; }
.swatch-text { display: block; padding: 14px 16px 16px; font-size: 13px; }
.swatch-name { display: block; color: var(--white); font-size: 15px; font-weight: 600; }
.swatch-use { display: block; margin-bottom: 8px; color: var(--g50); }
.swatch-hex, .swatch-rgb { display: block; font-family: var(--mono); font-size: 12px; }
.bands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; }
.bands .swatch { border-radius: 0; background: var(--panel); }
.bands .swatch-chip { height: 150px; border-radius: 0; box-shadow: none; }
.bands .swatch-use { display: none; }
.bands .swatch-rgb { display: none; }

.pair-stage { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px; }
.pair-head { font-size: clamp(30px, 3.8vw, 48px); font-weight: 600; line-height: 1.08; text-wrap: balance; }
.pair-body { max-width: 480px; font-size: 16px; }
.ratio { color: var(--white); font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

.gradient-demo, .entrance { padding: 32px; background: #000; border-radius: var(--radius); }
.gradient-sample { font-size: clamp(44px, 7vw, 92px); font-weight: 600; line-height: 1.02; padding-bottom: .08em; }
.code-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 20px; }
.code-line code { color: var(--g40); }

/* ---------- type ---------- */

.face-aa { color: var(--white); font-size: 88px; line-height: 1.1; margin-bottom: 18px; }
.face-aa.w600 { font-weight: 600; } .face-aa.w400 { font-weight: 400; }
.face-aa.mono { font-family: var(--mono); } .face-aa.pixel { font-family: var(--pixel); }
.scale { display: flex; flex-direction: column; gap: 22px; }
.scale-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.scale-spec { color: var(--white); font-size: 14px; font-weight: 500; }
.scale-spec span { display: block; color: var(--g50); font-size: 13px; font-weight: 400; }
.scale-row p:last-child { color: var(--white); }
.s-display { font-size: clamp(38px, 5vw, 65px); font-weight: 600; line-height: .95; }
.s-h1 { font-size: clamp(32px, 3.7vw, 48px); font-weight: 600; line-height: 1.1; }
.s-h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; }
.s-h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.s-intro { font-size: 22px; font-weight: 500; line-height: 1.4; }
.s-body { font-size: 16px; line-height: 1.5; }
.s-small { font-size: 14px; line-height: 1.6; }

.tester { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.tester-stage { display: grid; align-items: center; min-height: 300px; padding: 36px; background: #000; border-radius: var(--radius); }
.tester-out { font-size: clamp(34px, 4.8vw, 64px); font-weight: 600; line-height: 1.05; text-wrap: balance; padding-bottom: .06em; overflow-wrap: anywhere; }
.tester-panel { padding: 24px; background: var(--panel); border-radius: var(--radius); }
.tester-panel.wide { grid-column: 1 / -1; }
.checks { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; }
.checks li { position: relative; padding-left: 20px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--g60); }
.checks li.ok::before { background: #21B30B; }
.checks li.bad { color: var(--white); }
.checks li.bad::before { background: var(--orange); }
.dodont { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dodont > div { padding: 20px; background: var(--panel); border-radius: var(--radius); }
.dodont h4 { margin-bottom: 14px; }
.dodont p { font-size: 18px; line-height: 1.3; color: var(--white); padding-left: 22px; position: relative; }
.dodont p + p { margin-top: 10px; }
.dodont .no { color: var(--g50); }
.dodont .no::before, .dodont .yes::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; border-radius: 50%; }
.dodont .no::before { background: var(--orange); }
.dodont .yes::before { background: #21B30B; }
.dodont .mono { font-family: var(--mono); }
.dodont .pixel { font-family: var(--pixel); }
.mono-ok code { font-size: 15px; }
.swaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; font-size: 18px; line-height: 1.35; }
.swap-no { color: var(--g50); }
.swap-yes { color: var(--white); }

/* ---------- graphic ---------- */

.elements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.el { aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: #000; overflow: hidden; }
.el-dots { background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.el-ember { background: #000 radial-gradient(70% 70% at 50% 110%, rgba(239, 74, 36, .75), rgba(239, 74, 36, .14) 55%, transparent 75%); }
.el-pixels { display: grid; }
.el-pixels svg { width: 100%; height: 100%; }
.elements strong { display: block; font-weight: 600; font-size: 15px; }
.elements figcaption { font-size: 14px; color: var(--g40); margin-top: 12px; }

.portrait { max-width: 340px; }
.portrait img { border-radius: var(--radius); }

/* ---------- social ---------- */

.post-stage { display: grid; place-items: center; background: var(--panel); padding: 24px; }
.post { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1200 / 630; container-type: inline-size; background-color: #000; overflow: hidden; transition: max-width .3s var(--ease); }
.post[data-ratio="portrait"] { max-width: 360px; aspect-ratio: 4 / 5; }
.post.dots { background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 14px 14px; }
.post.ember::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 108%, rgba(239, 74, 36, .6), transparent 75%); pointer-events: none; }
.post > * { position: absolute; }
.post-mark { top: 6.5cqw; left: 6.5cqw; width: 8cqw; height: auto; }
.post-url { top: 6.5cqw; right: 6.5cqw; font-size: 2.6cqw; color: #fff; }
.post-foot { bottom: 5cqw; left: 6.5cqw; font-size: 2.6cqw; color: var(--g40); }
.post-year { bottom: 5cqw; right: 6.5cqw; font-size: 2.6cqw; color: var(--g40); }
.post-head { left: 6.5cqw; right: 6.5cqw; top: 50%; transform: translateY(-58%); font-size: 6.6cqw; font-weight: 600; line-height: 1.05; text-wrap: balance; padding-bottom: .08em; }
.post[data-ratio="portrait"] .post-head { font-size: 11cqw; }
.post-sub { left: 6.5cqw; right: 6.5cqw; top: 70%; font-size: 3cqw; color: var(--g40); }
.post[data-ratio="portrait"] .post-sub { top: 66%; font-size: 4.2cqw; }

/* ---------- motion ---------- */

.film { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.film video { width: 100%; }
.film-btn { position: absolute; right: 20px; bottom: 14px; }
.entrance-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.e-card { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--raised); }
.entrance-stage.run .e-card { animation: rise .55s var(--ease) both; }
.entrance-stage.run .e-card:nth-child(2) { animation-delay: .07s; }
.entrance-stage.run .e-card:nth-child(3) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.stack { display: grid; gap: 20px; }
.signature { padding: 28px; background: #fff; border-radius: var(--radius); }
.signature img { width: min(100%, 480px); height: auto; }

/* ---------- downloads ---------- */

.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.file { display: block; padding: 0 0 18px; background: var(--panel); border-radius: var(--radius); color: var(--g40); font-size: 14px; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease); }
.file:hover { color: var(--g40); transform: translateY(-2px); }
.file strong { display: block; padding: 0 18px; font-weight: 600; font-size: 15px; }
.file > span:not(.file-art) { display: block; padding: 0 18px; }
.file-art { display: grid; place-items: center; height: 150px; margin-bottom: 14px; background: #000; }
.file-chips { display: flex; align-items: center; justify-content: center; gap: 6px; }
.file-chips i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.kit { margin-top: 28px; }

.end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 120px; font-size: 14px; color: var(--g50); }
.end a { color: var(--g50); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; transform: translate(-50%, 140%); opacity: 0; transition: transform .3s var(--ease), opacity .2s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- type roles, as set on jeremymura.com ---------- */

h1, h2, h3, .statement-line, .gradient-sample, .pair-head, .tester-out, .post-head, .big, .swatch-name,
.s-display, .s-h1, .s-h2, .s-h3 { letter-spacing: -.03em; }

.toc a, .theme, .side-back, .menu { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.field-label, figcaption, .play-cap, .scale-spec, .swatch-use, .facts, .note, .hero-note, .hero-foot p, .seg button, .seg-solo,
.text-btn, .switch, .end, .checks, .verdict, .break-status, .file > span:not(.file-art), .sizes p, .anatomy-list span, .s-small,
.swatch-rgb, .swatch-hex { font-family: var(--mono); font-size: 13px; letter-spacing: -.01em; }
.scale-spec span { font-size: 12px; }
.toc a.on { font-weight: 600; }
.ratio { font-family: var(--pixel); font-weight: 400; letter-spacing: -.03em; }
.s-pixel { font-family: var(--pixel); font-size: 38px; line-height: 1.1; letter-spacing: -.03em; }
.s-label { font-family: var(--mono); font-size: 12px; font-weight: 500; }

/* ---------- light theme ---------- */

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #FFFFFF;
  --panel: #F0F0F0;
  --raised: #DEDEDE;
  --white: #000000;
  --g40: #545454;
  --g50: #545454;
  --g60: #828282;
  --input: #FFFFFF;
  --hair: rgba(0, 0, 0, .14);
}
:root[data-theme="light"] .grad { background: none; color: #000; }

/* The logo cannot sit on white, so anything showing it stays on black in both themes. */
:root[data-theme="light"] :is(.hero, .statement, .play-stage, .anatomy-art, .stage-sm, .break-stage, .avatars, .tester-stage, .gradient-demo, .entrance, .el, .file-art, .film, .post) {
  --ink: #0A0A0B;
  --panel: #161617;
  --raised: #2B2B2B;
  --white: #FFFFFF;
  --g40: #B8B8B8;
  --g50: #828282;
  --g60: #545454;
  --hair: rgba(255, 255, 255, .1);
  color: var(--g40);
}
:root[data-theme="light"] :is(.hero, .statement, .tester-stage, .gradient-demo, .post) .grad {
  background: linear-gradient(0deg, rgb(166, 166, 166) 0%, rgb(255, 255, 255) 35%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .side-logo { align-self: flex-start; padding: 10px 12px; border-radius: 8px; background: #0A0A0B; }
:root[data-theme="light"] .accent-demo.wrong { color: #000; }
:root[data-theme="light"] .signature { background: var(--panel); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  :root { --side: 170px; --gap: 40px; }
  .book { padding: 0 28px; }
  .play, .tester, .break, .anatomy { grid-template-columns: minmax(0, 1fr); }
  .dodont { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .play-stage, .pair-stage, .post-stage { min-height: 340px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .book { display: block; padding: 0 20px; }
  .side { position: sticky; top: 0; height: 60px; flex-direction: row; align-items: center; justify-content: space-between; margin: 0 -20px; padding: 0 20px; background: var(--ink); }
  .side-logo { margin: 0 auto 0 0; }
  .side-logo img { width: 120px; height: auto; }
  .menu { margin-right: 18px; }
  .theme { margin: 0; align-self: center; min-height: 44px; }
  .theme-word { display: none; }
  :root[data-theme="light"] .side-logo { align-self: center; padding: 6px 8px; }
  .side-back { display: none; }
  .menu { display: block; min-height: 44px; color: var(--white); font-size: 14px; font-weight: 500; }
  .toc { position: absolute; top: 60px; left: 0; right: 0; display: none; padding: 8px 20px 20px; background: var(--ink); box-shadow: 0 24px 32px -16px #000; }
  .side[data-open] .toc { display: flex; }
  .toc a { min-height: 44px; padding: 10px 0; font-size: 16px; }
  .intro { padding-top: 32px; }
  .hero { height: 440px; }
  .hero-note { display: none; }
  .hero-foot { left: 20px; bottom: 64px; }
  .hero-controls { left: 20px; right: 20px; bottom: 14px; justify-content: space-between; }
  .chapter { padding-top: 88px; }
  .block { padding-top: 56px; }
  .block-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
  .cols.two, .cols.three { grid-template-columns: minmax(0, 1fr); }
  .cols.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elements { grid-template-columns: minmax(0, 1fr); }
  .gallery.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery figcaption { font-size: 12px; }
  .faces.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .face-aa { font-size: 60px; margin-bottom: 10px; }
  .card { padding: 18px; }
  .statement { padding: 32px 20px; }
  .dodont { grid-template-columns: minmax(0, 1fr); }
  .swaps { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .swap-yes { margin-bottom: 14px; }
  .bands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bands .swatch-chip { height: 90px; }
  .swatches, .swatches.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .swatch-chip { height: 88px; }
  .files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .file-art { height: 110px; }
  .file-art img { max-width: 80%; }
  .play-stage { min-height: 280px; padding: 40px 16px; }
  .pair-stage { min-height: 280px; padding: 24px; }
  .anatomy-art { padding: 28px; }
  .tester-stage { min-height: 200px; padding: 24px; }
  .end { margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
