/* Copyright (c) 2026 Daito Manabe */
:root {
  color-scheme:dark;
  --bg:#000;--text:rgba(255,255,255,.91);--bright:#fff;--muted:rgba(255,255,255,.64);
  --rule:rgba(255,255,255,.22);--faint:rgba(255,255,255,.09);--blue:#6594ff;--warm:#edb167;
  --font:"Helvetica Neue","Hiragino Sans","Yu Gothic",Arial,sans-serif;
  --mono:"SF Mono",Menlo,Consolas,monospace;
  --body:1.075rem;--caption:.79rem;--small:.7rem;--measure:43rem;--wide:82rem;
  --gutter:clamp(1.2rem,4vw,4rem);--section-gap:7rem;--block-gap:2rem;
}
* { box-sizing:border-box }
[hidden] { display:none!important }
html { background:var(--bg);scroll-behavior:smooth;scroll-padding-top:6rem }
body { margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-weight:300;line-height:1.9;overflow-wrap:anywhere }
::selection { color:var(--bg);background:var(--bright) }
a { color:inherit;text-decoration-thickness:1px;text-underline-offset:.3em }
a:hover { color:var(--bright) }
button,select { font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--rule);border-radius:0;padding:.45rem .9rem;cursor:pointer }
button:hover,select:hover { border-color:var(--bright) }
button[aria-pressed="true"] { color:var(--bg);background:var(--bright) }
:focus-visible { outline:2px solid var(--blue);outline-offset:5px }
.skip { position:fixed;top:-10rem;left:var(--gutter);z-index:20000;background:var(--bg);padding:1rem }
.skip:focus { top:1rem }
.topbar { position:relative;margin:0 auto;padding:1.3rem var(--gutter);max-width:var(--wide);display:flex;justify-content:space-between;padding-right:8rem;border-bottom:1px solid var(--rule);font-size:var(--caption);letter-spacing:.04em }
.topbar a { text-decoration:none }
.reading-progress { position:fixed;top:0;left:0;width:0;height:2px;background:var(--bright);z-index:20001 }
.hero { display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:4rem;align-items:center;max-width:var(--wide);padding:5rem var(--gutter) 6rem;margin:auto }
.eyebrow { font-family:var(--mono);font-size:var(--small);color:var(--muted);line-height:1.8;letter-spacing:.06em;margin-bottom:2rem }
h1,h2,h3,p,figure { margin:0 }
h1 { font-weight:300;letter-spacing:-.025em;font-size:clamp(2.2rem,4.6vw,4.3rem);line-height:1.35;text-wrap:balance }
.hero-subtitle { font-size:1.06rem;color:var(--muted);margin-top:1.5rem;max-width:35rem;line-height:1.8 }
.byline { display:flex;gap:2rem;margin:2.5rem 0 1.7rem;font-size:var(--caption) }
.talk-date { margin:2rem 0 0 }
.talk-date time { display:block;font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.3;letter-spacing:-.045em;color:var(--bright) }
.talk-date > span { font-size:var(--small);color:var(--muted) }
.talk-date + .byline { flex-wrap:wrap;gap:.5rem 1.1rem;margin-top:1rem }
.publication-context { max-width:var(--wide);padding:0 var(--gutter) 5rem;margin:0 auto }
.publication-context > h2 { border-top:1px solid var(--rule);padding-top:1.5rem }
.publication-note { max-width:var(--measure);font-size:.98rem;line-height:1.95;margin:1.5rem 0 2rem }
.publication-columns { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:3.5rem;border-top:1px solid var(--rule);padding-top:1.5rem }
.publication-columns h3 { font-size:.86rem;font-weight:400;margin-bottom:1rem }
.publication-columns p { font-size:.93rem;line-height:1.95;max-width:var(--measure) }
.exhibition-context p { margin-bottom:.5rem }
.exhibition-context time { display:block;font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.03em;margin-top:1rem }
time { font-family:var(--mono) }
.hero .prose { font-size:.95rem;line-height:2;max-width:37rem;margin:1.3rem 0 }
.statement-summary { max-width:var(--wide);padding:0 var(--gutter) 5rem;margin:0 auto;display:grid;grid-template-columns:14rem minmax(0,1fr);gap:4rem;scroll-margin-top:3rem }
.statement-summary > header,.summary-copy { border-top:1px solid var(--rule);padding-top:1.5rem }
.statement-summary .eyebrow { margin-bottom:1rem }
.statement-summary h2 { font-size:1.25rem;line-height:1.8 }
.summary-copy .prose { margin:0 0 1.5rem;font-size:1rem;line-height:2 }
.summary-copy .text-link { margin-bottom:0 }
.statement-header { max-width:var(--wide);margin:auto;padding:5rem var(--gutter) 4.5rem }
.statement-header h1 { max-width:56rem }
.statement-work-title { font-size:clamp(1.5rem,2.6vw,2.6rem);line-height:1.3;letter-spacing:-.025em;margin-bottom:.8rem }
.statement-dates { display:flex;flex-wrap:wrap;gap:0 3rem }
.statement-header .hero-subtitle { max-width:var(--measure) }
.statement-header .byline { margin:1.5rem 0 .6rem }
.statement-note { font-size:var(--caption);line-height:1.8;color:var(--muted);max-width:var(--measure) }
.statement-lead { margin:2.5rem 0 0;max-width:var(--measure) }
.statement-return { margin-top:3rem }
.hero-work { margin:0;align-self:center }
img { display:block;max-width:100%;height:auto }
.hero-work img { width:100%;aspect-ratio:1;object-fit:contain }
figcaption { font-size:var(--caption);color:var(--muted);line-height:1.8;margin-top:1rem;max-width:var(--measure) }
.hero-work figcaption { font-size:var(--small);letter-spacing:.02em }
.reading-layout { max-width:var(--wide);padding:0 var(--gutter);margin:0 auto;display:grid;grid-template-columns:14rem minmax(0,1fr);gap:4rem;align-items:start }
.contents { position:sticky;top:5rem;max-height:calc(100vh - 7rem);overflow:auto;padding-right:.5rem }
.contents summary { font-size:var(--small);letter-spacing:.05em;color:var(--muted);margin-bottom:1.5rem;cursor:pointer }
.contents a { display:grid;grid-template-columns:1.65rem 1fr;gap:.4rem;text-decoration:none;font-size:.7rem;line-height:1.7;padding:.5rem 0;color:var(--muted);border-left:1px solid transparent }
.contents a > span:first-child { font-family:var(--mono);color:var(--muted) }
.contents a[aria-current="true"] { color:var(--bright) }
.contents a:hover { color:var(--bright) }
main { min-width:0 }
.chapter { margin-bottom:var(--section-gap);padding-top:1.5rem;border-top:1px solid var(--rule);scroll-margin-top:5rem }
.chapter-heading { display:flex;gap:1.3rem;align-items:baseline;margin-bottom:2.8rem }
.chapter-number { color:var(--muted);font-family:var(--mono);font-size:var(--caption) }
h2 { font-size:clamp(1.45rem,2.1vw,2rem);font-weight:300;line-height:1.55;text-wrap:balance;letter-spacing:-.02em }
.prose { max-width:var(--measure);font-size:var(--body);line-height:2.05;margin:var(--block-gap) 0 }
html[lang="en"] .prose { line-height:1.85 }
.citation { font-family:var(--mono);font-size:.68rem;letter-spacing:0;display:inline-block;margin-right:.5rem;color:var(--muted);text-decoration:none;line-height:1.4 }
.citation:hover { text-decoration:underline }
.chapter figure { margin:3rem 0 }
.figure-content { min-width:0 }
.figure-date { display:block;font-family:var(--mono);color:var(--bright);margin-bottom:.3rem }
.subheading { font-size:1.3rem;font-weight:400;line-height:1.8;margin:3.6rem 0 1.5rem;max-width:var(--measure) }
.artwork-gallery { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.2rem;margin:2.2rem 0 3.5rem }
.chapter .artwork-card { margin:0;min-width:0 }
.artwork-image { display:grid;place-items:center;background:#f3f1eb;padding:.7rem;text-decoration:none }
.artwork-image img { width:100%;height:auto;object-fit:contain }
.artwork-card figcaption { max-width:none;margin-top:1.3rem }
.artwork-card time,.reference-card time { display:block;font-size:clamp(1.55rem,2.7vw,2.5rem);line-height:1.25;letter-spacing:-.055em;color:var(--bright);margin-bottom:.8rem }
.artwork-card h4,.reference-card h4 { margin:0 0 .4rem;font-size:1rem;line-height:1.65;font-weight:400;color:var(--bright) }
.artwork-medium,.reference-author { color:var(--muted);font-size:var(--caption);line-height:1.7 }
.artwork-card p { margin:1rem 0;font-size:.86rem;line-height:1.85;color:var(--text) }
.artwork-links { display:flex;flex-wrap:wrap;gap:.55rem 1.15rem;font-size:var(--caption);align-items:baseline }
.artwork-credit { display:block;margin-top:1rem;font-size:.65rem;line-height:1.8;color:var(--muted) }
.reference-gallery { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem 2.2rem;margin:2.5rem 0 3rem;scroll-margin-top:6rem }
.reference-card { border-top:1px solid var(--rule);padding-top:1.3rem;min-width:0 }
.reference-card .reference-kind { font-size:var(--small);color:var(--muted);line-height:1.6;margin:0 0 1rem }
.reference-card > p:last-of-type { font-size:.9rem;line-height:1.95;margin:1rem 0 .5rem }
.timeline { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 2.5rem;margin:3rem 0 }
.timeline > div { border-top:1px solid var(--rule);padding-top:1rem }
.timeline time { font-size:clamp(1.7rem,3.5vw,3.2rem);font-weight:300;line-height:1.2;letter-spacing:-.06em;display:block;color:var(--bright) }
.timeline p { font-size:.88rem;line-height:1.7;margin-top:.8rem;max-width:28rem }
.math-block { margin:2.7rem 0;padding:1rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule) }
.equation { overflow-x:auto;overflow-y:hidden;padding:.7rem .2rem;max-width:100%;font-size:1.02rem }
.katex-display { margin:.5em 0;text-align:left }
.katex-display>.katex { text-align:left }
.math-note { font-size:var(--caption);line-height:1.9;color:var(--muted);max-width:var(--measure);margin:.6rem 0 .5rem }
.formula-credit { display:flex;flex-wrap:wrap;align-items:baseline;gap:.6rem 1rem;font-size:var(--caption);margin:.5rem 0 }
.formula-credit b { font-family:var(--mono);font-weight:400 }
.formula-credit > span:last-child { color:var(--muted);font-size:var(--small) }
.deep-reading { border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin:2.5rem 0 }
.deep-reading summary { padding:1.2rem 0;cursor:pointer;font-size:.94rem;line-height:1.8 }
.details-body { padding-top:.5rem }
.details-body .prose { font-size:1rem }
.details-body figure { margin-top:2rem }
.animation canvas { display:block;width:100%;height:auto;aspect-ratio:16/9 }
.animation[data-animation="fractal4d"] canvas { aspect-ratio:8/5 }
.fractal-pipeline { display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.7rem 1rem;font-size:var(--caption);padding:1rem;border-bottom:1px solid var(--rule) }
.fractal-pipeline b { color:var(--muted) }
.animation-controls { display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:.8rem 0;border-top:1px solid var(--rule);font-size:var(--caption) }
.animation-controls button { flex-shrink:0;font-size:var(--caption) }
.play-note { color:var(--muted);font-size:var(--small);line-height:1.6;text-align:right }
.ratio-controls { display:flex;justify-content:center;gap:.6rem;padding:1rem }
.ratio-controls button { min-width:4rem;font-family:var(--mono);font-size:var(--caption) }
.curve-equation .equation { text-align:center }
.curve-equation .katex-display { text-align:center }
.curve-equation .katex-display>.katex { text-align:center }
.diagram { width:100%;height:auto;display:block;fill:none;stroke:var(--text);stroke-width:2 }
.diagram text { fill:var(--text);stroke:none;font-family:var(--mono);font-size:28px }
.diagram text.small { font-size:20px }
.diagram .axis { stroke:var(--rule);stroke-width:1.5 }
.diagram .grid,.diagram .guide,.path-preview .guide { fill:none;stroke:var(--rule);stroke-width:1 }
.diagram .grid-dot { fill:var(--rule);stroke:none }
.diagram .fine { stroke:var(--muted);stroke-width:1.2 }
.diagram circle:not(.grid):not(.guide):not(.grid-dot) { fill:var(--bright);stroke:none }
.diagram .accent { fill:var(--blue)!important }
.diagram .accent-line { stroke:var(--blue);stroke-width:3 }
.diagram .warm-line { stroke:var(--warm);stroke-width:3 }
.topology-explanation { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem }
.topology-panel { min-width:0;border-top:1px solid var(--rule);padding-top:1rem }
.topology-step { display:block;font:var(--small) var(--mono);color:var(--muted);margin-bottom:.75rem }
.topology-panel h4 { font-size:.85rem;line-height:1.7;font-weight:400;min-height:3em;margin:0 }
.topology-panel p { font-size:var(--caption);line-height:1.9;color:var(--muted) }
.topology-svg { display:block;width:100%;height:auto;margin:.8rem 0 }
.topology-svg text { font:26px var(--mono);fill:var(--text);stroke:none }
.topology-svg .topology-cut { stroke:#fff;stroke-width:2;stroke-dasharray:6 7 }
.topology-svg .topology-tick { font-size:22px }
.tiling-proof-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem }
.tiling-proof-grid.tiling-regular-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
.tiling-proof-panel { min-width:0;border-top:1px solid var(--rule);padding-top:1rem }
.tiling-proof-panel h4 { font-size:.85rem;line-height:1.7;font-weight:400;min-height:3em;margin:0 }
.tiling-proof-panel p { font-size:var(--caption);line-height:1.9;color:var(--muted) }
.tiling-proof-svg { display:block;width:100%;height:auto;margin:.8rem 0;fill:none;stroke:var(--text);stroke-width:2 }
.tiling-proof-svg text { font:25px var(--mono);fill:var(--text);stroke:none }
.tiling-proof-svg .tiling-proof-count { font-size:23px }
@media(max-width:680px) {
  .tiling-proof-grid,.tiling-proof-grid.tiling-regular-grid { grid-template-columns:1fr }
  .tiling-proof-panel h4 { min-height:0 }
}
.diagram .dashed { stroke:var(--muted);stroke-dasharray:6 7 }
.diagram .torus-grid { stroke:var(--rule);stroke-width:1 }
.diagram .tile { fill:var(--faint);stroke:var(--rule) }
.diagram .critical-strip { stroke:var(--rule);fill:var(--faint) }
.diagram .zero-free { fill:rgba(101,148,255,.3);stroke:none }
.svg-label { font:23px var(--font);line-height:1.7;color:var(--text) }
.diagram .impossible-back { fill:none;stroke:var(--rule);stroke-width:2 }
.diagram .impossible-one { fill:#333;stroke:#999 }
.diagram .impossible-two { fill:#666;stroke:#aaa }
.diagram .impossible-three { fill:#bbb;stroke:#ddd }
.field-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem }
.field-grid:has(.field:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)) }
.field { min-width:0 }
.field img { width:100%;aspect-ratio:1;object-fit:contain }
.field-title { display:flex;gap:.6rem;flex-direction:column;font-size:var(--caption);line-height:1.6;margin-bottom:.8rem }
.field-title b { font-family:var(--mono);font-weight:400 }
.field small { display:block;color:var(--muted);font-size:var(--small);line-height:1.6;margin-top:.5rem }
.field img.legend { width:100%;height:6px;aspect-ratio:auto;object-fit:fill;margin-top:.75rem }
.legend.viridis { background:linear-gradient(90deg,#440154,#414487,#2a788e,#22a884,#7ad151,#fde725) }
.legend.inferno { background:linear-gradient(90deg,#000004,#4a0c6b,#a52c60,#ed6925,#fb9b06,#fcffa4) }
.legend.phase { background:linear-gradient(90deg,#00c0c0,#c000c0,#c0c000,#00c0c0) }
.legend-label { font-family:var(--mono);font-size:.63rem;margin-top:.4rem;color:var(--muted) }
.delta-reveal .field img { clip-path:inset(0) }
.partitions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem .8rem }
.partition { display:flex;gap:.75rem;align-items:flex-start;padding:.75rem 0;border-top:1px solid var(--rule);min-width:0 }
.partition-index { font-family:var(--mono);font-size:var(--small);color:var(--muted);padding-top:.1rem }
.partition-cells { display:flex;gap:3px;align-items:center }
.part { display:flex;gap:1px }
.part i { display:block;width:clamp(10px,1vw,16px);height:clamp(10px,1vw,16px);background:var(--bright) }
.part-1 i { background:var(--blue) }
.part-2 i { background:var(--warm) }
.partition-sum { font-family:var(--mono);font-size:.62rem;margin-top:.5rem;line-height:1.8;color:var(--muted) }
.digit-table > div { display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.6rem 1rem;border-top:1px solid var(--rule);padding:1.25rem 0;font-family:var(--mono) }
.digit-table code { font-size:clamp(.8rem,1.6vw,1.2rem);color:var(--muted);white-space:normal;overflow-wrap:anywhere }
.digit-table strong { color:var(--blue);font-weight:400 }
.digit-table small { grid-column:2;font-size:var(--caption);color:var(--muted) }
.sum-sequence { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem }
.sum-sequence > div { border-top:1px solid var(--rule);padding:1rem 0 }
.sum-sequence small { display:block;font-family:var(--mono);color:var(--muted);font-size:var(--small) }
.sum-sequence code { font-size:clamp(.9rem,1.7vw,1.5rem);color:var(--blue) }
.proof-flow { text-align:center;font-size:1rem;line-height:1.8 }
.proof-flow > div { padding:1rem;border:1px solid var(--rule) }
.proof-flow > b { display:block;font-weight:300;padding:.4rem }
.proof-fork { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:0!important;padding:0!important }
.proof-fork > div { border:1px solid var(--rule);padding:1.2rem .8rem }
.proof-fork b { font:var(--small) var(--mono);color:var(--muted) }
.proof-fork p { margin-top:.7rem }
.flow { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.25rem;position:relative }
.flow > div { border-top:1px solid var(--rule);padding-top:1rem }
.flow small { display:block;font-family:var(--mono);font-size:var(--small);color:var(--muted);margin-bottom:.8rem }
.flow span { font-size:.95rem;line-height:1.7;display:block }
.flow.cycle { border-bottom:1px solid var(--rule);padding-bottom:2rem }
.math20-examples { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;margin-top:1.5rem;font-size:var(--caption);color:var(--muted) }
.completion { display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:1rem;align-items:center;text-align:center;font-size:.9rem }
.completion div { border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:2rem .6rem }
.composition-tree { text-align:center }
.composition-tree > div:not(.ingredients) { font-size:var(--caption);color:var(--muted);padding:1.2rem }
.ingredients { display:flex;justify-content:center;gap:2rem }
.ingredients span { border:1px solid var(--rule);padding:1rem 1.8rem;font-family:var(--mono);font-size:1.1rem }
.composition-tree p { font-size:var(--caption);margin-top:1.5rem }
.path-preview { display:block;width:min(100%,42rem);height:auto;margin:auto;aspect-ratio:1 }
.plate-frame { width:min(100%,39rem);margin:auto }
.plate-frame img { aspect-ratio:1;object-fit:contain }
.compare-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem }
.compare-grid b { font:var(--caption) var(--mono);display:block;margin-bottom:.8rem }
.compare-grid img { width:100%;aspect-ratio:1;object-fit:contain }
.download-panel { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:2.5rem;align-items:center }
.download-panel img { width:100%;aspect-ratio:1 }
.big-number { font-family:var(--mono);font-size:clamp(2.2rem,4vw,3.5rem);font-weight:300;line-height:1.5;letter-spacing:-.05em }
.download-panel p { font-size:var(--caption);color:var(--muted);margin:.7rem 0 }
.text-link { display:block;width:fit-content;margin:1rem 0;font-size:.9rem }
.resolution-calc { margin:3rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:1.5rem 0 }
.resolution-calc label { display:inline-block;font-size:var(--caption);margin:0 1rem 1rem 0 }
.resolution-calc select { font-family:var(--mono);font-size:var(--caption) }
.calc-values { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem;margin:1.5rem 0 }
.calc-values strong { display:block;font-family:var(--mono);font-size:clamp(1.15rem,2.2vw,1.75rem);font-weight:300;letter-spacing:-.04em }
.calc-values small { display:block;font-size:var(--small);color:var(--muted) }
.resolution-calc p { font-size:var(--caption);color:var(--muted) }
.source-feature { margin:2.5rem 0;padding:1.5rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule) }
.source-feature time { display:block;font-size:clamp(2.5rem,4vw,4rem);letter-spacing:-.05em;line-height:1.4 }
.source-feature a { display:block;font-size:1.2rem;margin:.5rem 0 }
.source-feature p { color:var(--muted);font-size:var(--caption) }
.release-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;padding:1rem 0 }
.release-metrics > div { border-top:1px solid var(--rule);padding-top:1rem }
.release-metrics strong { display:block;font-family:var(--mono);font-size:clamp(2.5rem,4vw,3.5rem);font-weight:300;line-height:1.4;letter-spacing:-.05em;color:var(--bright) }
.release-metrics span { display:block;font-size:var(--small);line-height:1.7;margin-top:.5rem }
.reactions > div { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:2rem;padding:1.6rem 0;border-top:1px solid var(--rule) }
.reactions time { color:var(--muted);font-size:var(--caption) }
.reactions h3 { font-size:1.2rem;font-weight:300 }
.reactions p { font-size:.98rem;line-height:1.9 }
.reading-list { list-style:none;padding:0;margin:1rem 0 2rem }
.reading-list li { margin:1.3rem 0 }
.reading-list time { display:block;font-size:var(--caption);color:var(--muted) }
.reading-list a { font-size:.9rem;line-height:1.9 }
.xor-table { display:grid;grid-template-columns:1fr 1fr 2fr;max-width:33rem;margin:auto;font-family:var(--mono);font-size:1.3rem;text-align:center }
.xor-table div { padding:.7rem;border-bottom:1px solid var(--rule) }
.xor-table div:nth-child(3n) { color:var(--blue) }
.sources { margin-bottom:5rem;padding-top:3rem;border-top:1px solid var(--rule);scroll-margin-top:5rem }
.sources > p { font-size:.92rem;line-height:1.9;max-width:var(--measure);color:var(--muted);margin:1.5rem 0 2.5rem }
.sources ol { list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem }
.sources li { min-width:0;border-top:1px solid var(--rule);padding-top:.85rem;font-size:var(--caption);scroll-margin-top:5rem }
.sources li > div { display:flex;justify-content:space-between;gap:1rem;font-family:var(--mono);color:var(--muted);font-size:var(--small);margin-bottom:.5rem }
.sources li p { font-size:var(--small);color:var(--muted);margin:.65rem 0 }
footer { border-top:1px solid var(--rule);max-width:var(--wide);margin:auto;padding:2rem var(--gutter);display:flex;flex-wrap:wrap;gap:1rem 2rem;font:var(--small) var(--mono);line-height:1.9;color:var(--muted) }
.hires-page { max-width:var(--wide);padding:3rem var(--gutter);margin:auto }
.hires-page h1 { font-size:clamp(1.7rem,3vw,2.8rem);margin:2rem 0 }
.hires-page > p { max-width:var(--measure);margin:1rem 0 2rem;font-size:var(--body) }
.hires-page label { font-size:.9rem }
.hires-viewport { height:65vh;overflow:auto;border:1px solid var(--rule);margin:1.8rem 0;overscroll-behavior:contain;position:relative }
.hires-extent { width:16384px;height:16384px;position:relative }
.hires-tiles { display:grid;grid-template-columns:repeat(8,2048px);grid-template-rows:repeat(8,2048px);width:16384px;height:16384px;transform-origin:0 0;position:absolute;inset:0 }
.hires-slot { width:2048px;height:2048px }
.hires-tiles img { display:block;width:2048px;height:2048px;max-width:none;image-rendering:auto }
.hires-tiles img:not([src]) { visibility:hidden }
.hires-overview { width:100%;height:100%;max-width:none;position:absolute;inset:0 }
@media(max-width:1100px) {
  .reading-layout { grid-template-columns:11rem minmax(0,1fr);gap:2rem }
  .hero { gap:2rem }
  .statement-summary { grid-template-columns:11rem minmax(0,1fr);gap:2rem }
  .field-grid { gap:.6rem }
}
@media(max-width:780px) {
  :root { --body:1rem;--section-gap:4.5rem;--block-gap:1.6rem }
  .topbar { padding-top:1rem;padding-bottom:1rem;padding-right:8rem;font-size:.65rem }
  .hero { grid-template-columns:1fr;padding-top:3rem;padding-bottom:3.5rem;gap:2rem }
  .hero-copy h1 { max-width:33rem }
  .publication-columns { grid-template-columns:1fr;gap:1.7rem }
  .publication-context { padding-bottom:3.5rem }
  .hero-work { width:min(80%,25rem);justify-self:center }
  .hero .prose { font-size:.94rem }
  .statement-summary { display:block;padding-bottom:3.5rem }
  .statement-summary > header { margin-bottom:1.5rem }
  .summary-copy { border-top:0;padding-top:0 }
  .summary-copy .prose { font-size:.94rem }
  .statement-header { padding-top:3rem;padding-bottom:3.5rem }
  .statement-header h1 { font-size:clamp(2rem,8vw,3.2rem) }
  .statement-lead { margin-top:2rem }
  .reading-layout { display:block }
  .contents { position:static;max-height:none;margin-bottom:3.5rem;padding:1rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule) }
  .contents details:not([open]) summary { margin-bottom:0 }
  .contents a { font-size:.78rem;padding:.55rem 0 }
  .chapter-heading { gap:.9rem;margin-bottom:1.7rem }
  .timeline { gap:1.5rem 1.2rem }
  .timeline time { font-size:clamp(1.35rem,4.5vw,2rem) }
  .timeline p { font-size:.78rem }
  .prose { line-height:2 }
  .chapter figure { margin:2rem 0 }
  .artwork-gallery,.reference-gallery { grid-template-columns:1fr;gap:2.6rem }
  .topology-explanation { grid-template-columns:1fr;gap:2rem }
  .topology-panel h4 { min-height:0;font-size:1rem }
  .topology-panel p { font-size:.85rem }
  .chapter .artwork-card { margin:0 }
  .artwork-card time,.reference-card time { font-size:2rem }
  .math-block { margin:2rem 0 }
  .equation { font-size:.9rem }
  .animation-controls { gap:.75rem }
  .animation-controls button { padding:.4rem .65rem }
  .field-grid { grid-template-columns:1fr;gap:1.8rem }
  .field-grid:has(.field:nth-child(2):last-child) { grid-template-columns:1fr }
  .field { width:min(100%,25rem);margin:auto }
  .field-title { flex-direction:row;justify-content:space-between }
  .legend-label { font-size:.69rem }
  .field small { font-size:.73rem }
  .partitions { grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem .7rem }
  .partition { gap:.5rem }
  .partition-cells { gap:2px }
  .part i { width:11px;height:11px }
  .partition-sum { font-size:.58rem }
  .flow { grid-template-columns:1fr;gap:0 }
  .flow > div { display:flex;gap:1rem;padding:.8rem 0 }
  .flow small { margin:0 }
  .math20-examples { grid-template-columns:1fr;gap:.75rem }
  .flow span { font-size:.9rem }
  .completion { grid-template-columns:1fr;gap:0 }
  .completion div { padding:.8rem .5rem }
  .ingredients { gap:.7rem }
  .ingredients span { padding:.7rem .65rem;font-size:.83rem }
  .proof-fork { gap:.7rem;font-size:.83rem }
  .proof-fork b { font-size:.6rem }
  .compare-grid { gap:.7rem }
  .compare-grid b { font-size:.68rem }
  .download-panel { grid-template-columns:1fr;gap:1.5rem }
  .download-panel img { max-width:23rem;justify-self:center }
  .calc-values { grid-template-columns:1fr;gap:1rem }
  .calc-values > div { display:flex;align-items:baseline;justify-content:space-between;gap:1rem }
  .calc-values strong { font-size:1.4rem }
  .reactions > div { grid-template-columns:1fr;gap:.5rem }
  .release-metrics { grid-template-columns:1fr;gap:1rem }
  .sources ol { grid-template-columns:1fr }
  .sources li { font-size:.85rem }
  .sources li p { font-size:.76rem }
  .hires-page > p { font-size:.94rem }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto } }
@media print {
  :root { --bg:#fff;--text:#111;--bright:#000;--muted:#555;--rule:#bbb;--body:10pt }
  .topbar,.contents,.animation-controls,.ratio-controls,#lang-toggle,.site-lang-toggle,.reading-progress { display:none!important }
  .reading-layout { display:block }
  .hero { display:block }
  .hero-work { width:40%;margin-top:1rem }
  figure,.math-block { break-inside:avoid }
  .chapter { margin-bottom:2rem }
  .timeline time { font-size:20pt }
}
