
html { font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: var(--modo-ink);
  background: var(--modo-paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="ja"] :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
body { min-width: 320px; margin: 0; }
a { color: inherit; }

.hero { min-height: 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: center; padding: 8vw 6vw; }
.hero > *, .section-head > * { min-width: 0; }
.eyebrow { margin: 0 0 18px; color: var(--modo-violet); font-size: .875rem; font-weight: 650; letter-spacing: .13em; }
h1, h2 { margin: 0; line-height: 1.05; letter-spacing: -.075em; }
h1 { font-size: clamp(4rem, 5.5vw, var(--modo-text-3xl)); }
h1 span { color: var(--modo-violet); }
.lead { max-width: 700px; margin: 38px 0 0; color: var(--modo-muted); font-size: clamp(1rem, 1.5vw, var(--modo-text-l)); font-weight: 500; line-height: 1.85; }
.truth-card { padding: 30px; border: 0; background: var(--modo-panel); box-shadow: none; transform: none; }
.truth-card > p:first-child, .truth-card small { font-size: .875rem; font-weight: 650; letter-spacing: .12em; }
.truth-card > strong { display: block; margin: 36px 0; font-size: clamp(2rem, 4vw, var(--modo-text-3xl)); line-height: var(--modo-leading-tight); letter-spacing: -.06em; }
.truth-card > strong { overflow-wrap: anywhere; }
.truth-card > p:last-child { margin: 24px 0 0; color: var(--modo-muted); font-size: 1rem; font-weight: 500; line-height: 1.7; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 0; background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.status-line span { font-weight: 650; }

.declaration { display: grid; grid-template-columns: 210px 1fr; align-items: center; border-block: 1px solid var(--modo-ink); background: var(--modo-coral); color: var(--modo-ink); }
.declaration strong { padding: 28px 4vw; border: 0; font-size: var(--modo-text-xl); }
.declaration p { max-width: 900px; margin: 0; padding: 28px 4vw; font-weight: 600; line-height: 1.55; }
.chapter-nav { padding: 28px 6vw; border-block: 1px solid var(--modo-ink); background: var(--modo-panel); }
.chapter-nav > p { margin: 0 0 14px; color: var(--modo-muted); font-size: .875rem; font-weight: 650; letter-spacing: .1em; }
.chapter-nav > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chapter-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; border: 0; background: var(--modo-paper); font-size: .875rem; font-weight: 650; text-decoration: none; }
.chapter-nav a:hover, .chapter-nav a:focus-visible { background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); outline: 0; }
.method-section { background: var(--modo-violet-pale); }
.method-proof { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: center; margin-top: 56px; padding: 24px; border: 0; background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); box-shadow: none; }
.method-proof strong { font-size: clamp(1.8rem, 4vw, var(--modo-text-3xl)); letter-spacing: -.055em; }
.method-proof span { font-weight: 650; }
.method-proof small { padding: 9px 11px; border: 0; background: var(--modo-panel); font-size: .875rem; font-weight: 650; letter-spacing: .06em; }
.method-principles { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 20px; border: 0; }
.method-principles article { min-width: 0; min-height: 0; padding: 20px; border: 0; background: var(--modo-panel); }
.method-principles article:last-child { border-right: 0; background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.method-principles small { display: block; min-height: 38px; overflow-wrap: anywhere; font-size: .875rem; font-weight: 650; letter-spacing: .07em; }
.method-principles span { display: inline-block; margin-top: 44px; padding: 5px 7px; border: 0; font-size: .875rem; font-weight: 650; }
.method-principles h3 { margin: 15px 0 9px; font-size: clamp(.78rem, 1vw, var(--modo-text-m)); line-height: 1.15; letter-spacing: -.04em; }
.method-principles p { margin: 0; color: var(--modo-muted); font-size: .875rem; font-weight: 500; line-height: 1.65; }

.section { display: grid; grid-template-columns: 1fr minmax(280px, 480px); column-gap: 6vw; padding: 9vw 6vw; border-bottom: 1px solid var(--modo-line); scroll-margin-top: calc(var(--site-header-h) + 12px); }
.section-head { display: contents; }
.section-head > div:first-child { position: sticky; top: calc(var(--site-header-h) + 8px); z-index: 5; align-self: start; padding: 12px 0; background: var(--modo-paper); }
.method-section .section-head > div:first-child { background: var(--modo-violet-pale); }
.evidence-section .section-head > div:first-child { background: var(--modo-ink); }
.data-section .section-head > div:first-child { background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.section > :not(.section-head), .section-head > * { min-width: 0; }
.section > :not(.section-head) { grid-column: 1 / -1; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, var(--modo-text-3xl)); }
.section-head > p { margin: 0; color: var(--modo-muted); font-weight: 500; line-height: 1.8; }
.metric-strip, .evidence-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 62px; border: 0; }
.metric-strip div, .evidence-totals div { min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 0; background: var(--modo-panel); }
.metric-strip div:last-child, .evidence-totals div:last-child { border-right: 0; background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.metric-strip strong, .evidence-totals strong { font-size: clamp(2rem, 4vw, var(--modo-text-3xl)); letter-spacing: -.06em; }
.metric-strip span, .evidence-totals span { font-size: .875rem; font-weight: 650; letter-spacing: .1em; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border: 0; }
.role-card { min-height: 0; padding: 25px; border: 0; border-bottom: 1px solid var(--modo-line); background: var(--modo-panel); }
.role-card:nth-child(3n) { border-right: 0; }
.role-card:nth-last-child(-n+3) { border-bottom: 0; }
.role-card small { font-size: .875rem; font-weight: 650; letter-spacing: .1em; }
.role-card h3 { margin: 52px 0 12px; font-size: var(--modo-text-xl); letter-spacing: -.04em; }
.role-card p { margin: 0; color: var(--modo-muted); font-size: 1rem; font-weight: 500; line-height: 1.7; }
.role-card code { display: block; margin-top: 18px; color: var(--modo-violet); font-size: .875rem; overflow-wrap: anywhere; }

.evidence-section { background: var(--modo-ink); color: white; }
.evidence-section .section-head > p { color: var(--modo-line); }
.evidence-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); border-color: white; }
.evidence-totals div { border-color: white; background: var(--modo-ink-soft); }
.evidence-totals div:last-child { background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); color: var(--modo-ink); }
.hash-line { margin: 22px 0; font-size: .875rem; font-weight: 650; letter-spacing: .08em; }
.hash-line code { display: block; margin-top: 8px; color: var(--modo-acid); font-size: .875rem; overflow-wrap: anywhere; }
.source-list { margin: 0; padding: 0; list-style: none; border: 0; }
.source-list li { display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; align-items: center; padding: 22px; border-bottom: 1px solid var(--modo-muted); }
.source-list li:last-child { border-bottom: 0; }
.source-list b { color: var(--modo-acid); font-size: .875rem; }
.source-list a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; line-height: 1.4; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.source-list small { color: var(--modo-line); font-family: ui-monospace, monospace; text-align: right; }


.state-track { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; margin-top: 62px; border: 0; }
.state-track div { position: relative; min-height: 0; display: flex; align-items: flex-end; padding: 18px; border: 0; background: var(--modo-panel); font-weight: 650; text-transform: uppercase; }
.state-track div:last-child { border-right: 0; background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.state-track div:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 14px; right: -13px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--modo-paper); }
.guard-grid, .boundary-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 0; }
.guard-grid article, .boundary-grid article { min-height: 0; padding: 28px; border: 0; background: var(--modo-panel); }
.guard-grid article:last-child, .boundary-grid article:last-child { border-right: 0; }
.guard-grid span { font-size: .875rem; font-weight: 650; letter-spacing: .1em; }
.guard-grid strong { display: block; margin: 80px 0 12px; font-size: clamp(1.7rem, 3.5vw, var(--modo-text-3xl)); line-height: 1; letter-spacing: -.05em; }
.guard-grid p { color: var(--modo-muted); font-weight: 500; line-height: 1.7; }
.guard-grid .rollback { background: var(--modo-coral); }
.guard-grid .rollback p { color: var(--modo-ink); }

.data-section { background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.boundary-grid article { background: var(--modo-panel); }
.boundary-grid .never { background: var(--modo-ink); color: white; }
.boundary-grid h3 { margin: 0 0 42px; font-size: clamp(2rem, 4vw, var(--modo-text-3xl)); letter-spacing: -.06em; }
.boundary-grid ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.boundary-grid li { padding: 14px 0; border-top: 1px solid currentColor; font-weight: 600; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 35px 6vw; background: var(--modo-violet); color: white; }
footer p, footer a { margin: 0; font-size: .875rem; font-weight: 650; letter-spacing: .08em; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }







@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}




/* Every viewport uses the same narrow reading layout. */
body { font-size: 17px; line-height: 1.8; }
h1 { font-size: 2.2rem; line-height: 1.4; letter-spacing: -.045em; }
h2 { line-height: 1.45; }
h3, p, strong, code { overflow-wrap: anywhere; }
.hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 20px; }
.lead { margin-top: 24px; font-size: 1.0625rem; }
.truth-card { padding: 24px 0 0; border-top: 2px solid var(--modo-line); background: transparent; }
.truth-card > strong { margin: 20px 0; font-size: 2rem; line-height: 1.4; }
.truth-card > p:last-child { font-size: 1rem; }
.status-line { flex-wrap: wrap; border-radius: 22px; }
.declaration { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 20px; border: 0; }
.declaration strong, .declaration p { padding: 0; line-height: 1.8; }
.chapter-nav { padding: 28px 20px; border: 0; background: transparent; }
.chapter-nav > div { display: grid; grid-template-columns: minmax(0, 1fr); }
.chapter-nav a { min-height: 48px; border-radius: 999px; background: var(--modo-violet-pale); font-size: 1rem; }
a:focus-visible { outline: 3px solid var(--modo-violet); outline-offset: 3px; }
.chapter-nav a:focus-visible { outline: 3px solid var(--modo-violet); }
.section { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 48px 20px; }
.section-head { display: block; }
.section-head > div:first-child { position: static; padding: 0; background: transparent; }
.section-head h2 { font-size: 1.8rem; }
.section-head > p { margin-top: 20px; }
.method-section, .data-section { background: transparent; }
.method-proof { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 8px; padding: 20px 0; background: transparent; }
.method-proof strong { font-size: 1.9rem; }
.method-proof small { width: fit-content; border-radius: 999px; background: color-mix(in srgb, var(--modo-good) 12%, var(--modo-paper)); }
.method-principles, .role-grid, .guard-grid, .boundary-grid { grid-template-columns: minmax(0, 1fr); }
.method-principles article, .role-card, .guard-grid article, .boundary-grid article { padding: 24px 0; border: 0; border-bottom: 1px solid var(--modo-line); background: transparent; }
.method-principles article:last-child { background: transparent; }
.method-principles small { min-height: 0; }
.method-principles span { margin-top: 16px; border-radius: 999px; background: var(--modo-violet-pale); }
.method-principles h3, .role-card h3 { margin-top: 16px; font-size: 1.4rem; line-height: 1.5; }
.method-principles p, .role-card p, .guard-grid p { font-size: 1rem; line-height: 1.85; }
.metric-strip, .evidence-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 8px; border: 0; }
.metric-strip div, .evidence-totals div { min-width: 0; gap: 10px; padding: 16px 0; border: 0; border-top: 1px solid var(--modo-line); background: transparent; }
.metric-strip div:last-child, .evidence-totals div:last-child { background: transparent; }
.metric-strip strong, .evidence-totals strong { font-size: 1.8rem; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.evidence-totals div:last-child { grid-column: 1 / -1; color: white; }
.source-list li { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; }
.source-list small { grid-column: 2; text-align: left; overflow-wrap: anywhere; }
.state-track { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; margin-top: 8px; }
.state-track div { display: block; padding: 16px 0; background: transparent; border-bottom: 1px solid var(--modo-line); }
.state-track div:last-child { background: transparent; }
.state-track div:not(:last-child)::after { content: "↓"; position: static; margin-top: 12px; border: 0; color: var(--modo-violet); }
.guard-grid strong { margin-top: 20px; font-size: 1.8rem; line-height: 1.45; }
.guard-grid .rollback, .boundary-grid .never { background: transparent; color: var(--modo-ink); }
.guard-grid .rollback strong, .boundary-grid .never h3 { color: var(--modo-danger); }
.boundary-grid h3 { margin-bottom: 20px; font-size: 1.8rem; line-height: 1.45; }
.boundary-grid li { border-color: var(--modo-line); }
footer { flex-direction: column; gap: 16px; padding: 28px 20px; }
.evidence-section a:focus-visible, footer a:focus-visible { outline-color: var(--modo-acid); }

/* Comfortable text at 320px; Japanese headings break at natural boundaries. */
body { font-size:17px; font-weight:450; }
html[lang="ja"] :is(h1,h2,h3),html[lang="ja"] .boundary strong { word-break:normal; line-break:strict; overflow-wrap:anywhere; }
h1 { font-size:clamp(28px,8.75vw,32px); font-weight:650; line-height:1.45; letter-spacing:-.025em; }
.hero { padding-top:32px; padding-bottom:32px; }
.lead { margin-top:18px; font-size:17px; font-weight:450; line-height:1.8; }
.truth-card > strong { margin:16px 0; font-size:24px; font-weight:600; line-height:1.5; }
.truth-card > p:last-child,.declaration p,.section-head > p,.method-principles p,.role-card p,.guard-grid p { font-size:17px; font-weight:450; line-height:1.8; }
.declaration strong { font-size:22px; font-weight:600; }
.boundary-grid li { font-size:17px; font-weight:450; }
