/* SPDX-License-Identifier: Apache-2.0 */
:root {
  color-scheme: light;
  --ink: #101c25;
  --ink-muted: #52606a;
  --paper: #f5f4ef;
  --paper-light: #fbfaf6;
  --line: #d6d9d5;
  --accent: #f36c45;
  --accent-dark: #c44323;
  --cream: #eae8df;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button, input, textarea { font: inherit; }
::selection { color: var(--ink); background: #f6bc9c; }
.container { width: min(100% - 64px, 1200px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 20px; padding: 12px 16px; background: white; color: var(--ink); }
.skip-link:focus { top: 16px; }

.draft-banner { color: #dbe5e8; background: #0b151e; border-bottom: 1px solid #35424a; }
.banner-inner { min-height: 38px; display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgb(243 108 69 / 15%); }
.banner-divider { width: 1px; height: 10px; background: #51606b; }
.site-header { position: relative; z-index: 3; color: white; background: var(--ink); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 44px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; flex: none; text-decoration: none; font-size: 27px; font-weight: 820; letter-spacing: -.075em; }
.wordmark-period { color: var(--accent); }
.brand-mark { position: relative; display: inline-block; width: 26px; height: 24px; }
.brand-mark span { position: absolute; display: block; background: var(--accent); }
.brand-mark span:nth-child(1) { left: 0; top: 3px; width: 7px; height: 18px; }
.brand-mark span:nth-child(2) { left: 6px; top: 13px; width: 14px; height: 7px; }
.brand-mark span:nth-child(3) { right: 0; top: 3px; width: 7px; height: 18px; }
.primary-nav { display: flex; align-items: center; gap: 35px; margin-left: auto; }
.primary-nav a, .header-github { color: #e0e7e8; font-size: 13px; font-weight: 550; text-decoration: none; transition: color .2s ease; }
.primary-nav a:hover, .header-github:hover { color: white; }
.primary-nav a[aria-current="page"] { color: white; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.header-github { display: inline-flex; align-items: center; gap: 9px; margin-left: 14px; padding: 11px 14px; border: 1px solid #66717a; border-radius: 3px; white-space: nowrap; }
.header-github span { color: var(--accent); font-size: 16px; }

.hero { overflow: hidden; color: white; background: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: clamp(36px, 6vw, 90px); min-height: 630px; padding-block: 82px 100px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: #bfd0d5; }
.eyebrow-line { width: 26px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 710px; margin-bottom: 27px; font-size: clamp(48px, 5.35vw, 77px); line-height: 1.075; font-weight: 780; letter-spacing: -.065em; }
h1 em, h2 em { color: var(--accent); font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.hero-lede { max-width: 575px; color: #c7d1d3; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 37px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 21px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 720; text-decoration: none; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 18px; line-height: 1; }
.button-primary { color: #13212a; background: var(--accent); }
.button-primary:hover { background: #ff8a65; }
.button-secondary { color: white; border-color: #71808a; }
.button-secondary:hover { border-color: white; background: rgb(255 255 255 / 7%); }
.hero-example { min-width: 0; overflow: hidden; border: 1px solid #5c6871; border-radius: 8px; background: #192833; box-shadow: 0 22px 80px rgb(0 0 0 / 18%); }
.example-toolbar { min-height: 50px; display: flex; align-items: center; gap: 13px; padding: 0 20px; border-bottom: 1px solid #41505a; color: #dae5e6; font-family: var(--mono); font-size: 11px; }
.toolbar-dots { display: inline-flex; gap: 6px; margin-right: 5px; }
.toolbar-dots i { width: 7px; height: 7px; border-radius: 50%; background: #73828a; }
.toolbar-dots i:first-child { background: var(--accent); }
.toolbar-label { margin-left: auto; color: #94a5ae; font-size: 10px; }
.trace-root { display: grid; gap: 6px; padding: 23px 25px 20px; border-bottom: 1px solid #41505a; }
.trace-label { color: #8ed1c9; font: 700 10px var(--mono); letter-spacing: .1em; }
.trace-root strong { color: #fff; font: 700 clamp(19px, 2vw, 26px) var(--mono); letter-spacing: -.035em; }
.trace-summary { color: #b8c9ce; font-size: 13px; }
.trace-key-note { margin-top: 3px; color: #9db2b8; font-size: 11px; line-height: 1.45; }
.trace-entries { display: grid; gap: 8px; margin: 0; padding: 17px 19px 21px; list-style: none; }
.trace-entry { min-width: 0; display: grid; grid-template-columns: 49px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #3d515c; border-radius: 4px; background: #20323d; }
.trace-entry > span:last-child { min-width: 0; }
.trace-kind { color: #f9b093; font: 700 10px var(--mono); letter-spacing: .04em; }
.trace-entry small { display: block; margin-bottom: 5px; color: #9db2b8; font: 11px var(--sans); }
.trace-entry strong { display: block; color: #edf2f1; font: 700 11px/1.45 var(--mono); overflow-wrap: anywhere; }
.trace-entry a { color: inherit; text-underline-offset: 3px; }
.example-footer { display: flex; align-items: center; gap: 9px; padding: 15px 19px; border-top: 1px solid #41505a; color: #aabcc2; font-size: 11px; line-height: 1.4; }
.example-footer-icon { color: var(--accent); font-size: 18px; }
.example-footer a { color: #f9b093; font-size: 12px; font-weight: 700; text-underline-offset: 3px; }

.section { padding-block: 110px; }
.section-intro { display: grid; grid-template-columns: 1fr minmax(300px, 440px); align-items: end; gap: 50px; margin-bottom: 43px; }
.section-kicker { margin-bottom: 22px; color: var(--accent-dark); }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.1; font-weight: 740; letter-spacing: -.06em; }
.section-intro > p { max-width: 440px; margin-bottom: 5px; color: var(--ink-muted); font-size: 16px; line-height: 1.72; }
.section-intro a { text-underline-offset: 3px; }
.graph-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-light); box-shadow: 0 19px 48px rgb(16 28 37 / 4%); }
.graph-heading { display: flex; justify-content: space-between; gap: 20px; padding: 17px 24px; border-bottom: 1px solid var(--line); color: #4e5c63; font: 11px var(--mono); font-weight: 700; letter-spacing: .07em; }
.graph-body { min-height: 300px; display: grid; grid-template-columns: minmax(215px, 1fr) minmax(150px, .7fr) minmax(220px, 1fr); align-items: center; gap: 10px; padding: 34px clamp(28px, 5vw, 75px); }
.anchor-stack, .edge-stack { display: grid; gap: 22px; }
.graph-node { min-height: 84px; display: flex; align-items: center; gap: 16px; padding: 17px 20px; border: 1px solid #d4d9d8; border-radius: 5px; background: white; box-shadow: 4px 5px 0 rgb(16 28 37 / 5%); }
.node-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: none; border-radius: 4px; font: 700 14px var(--mono); }
.code-icon { color: #217b76; background: #e4f2ee; }
.test-icon { color: #a55033; background: #fbebe5; font-size: 20px; }
.graph-node small { display: block; margin-bottom: 5px; color: #5c6b72; font: 700 10px var(--mono); letter-spacing: .08em; }
.graph-node strong { display: block; font: 700 clamp(11px, 1.15vw, 14px) var(--mono); overflow-wrap: anywhere; }
.node-relation { display: block; margin-top: 7px; color: #a34c2e; font: 700 11px var(--mono); }
.edge-stack > div { display: flex; align-items: center; gap: 7px; min-width: 0; color: #9d624d; font: 700 10px var(--mono); }
.edge-line { min-width: 12px; height: 1px; flex: 1; background: var(--accent); }
.edge-arrow { color: var(--accent-dark); font-size: 19px; line-height: 1; }
.requirement-node { min-height: 142px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; padding: 26px 31px; border-color: #e7ac93; background: #fff2e9; box-shadow: 7px 8px 0 #f3d3c5; }
.requirement-tag { color: #a75232; font: 700 10px var(--mono); letter-spacing: .1em; }
.requirement-node strong { font: 750 31px var(--sans); letter-spacing: -.04em; }
.requirement-node > span:last-child { color: #525d63; font-size: 14px; }
.graph-caption { padding: 15px 24px; border-top: 1px solid var(--line); color: #657177; font-size: 12px; line-height: 1.5; }
.tag-note { max-width: 820px; margin: 22px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.tag-note code { color: var(--ink); }
.tag-note a { text-underline-offset: 3px; }
.workflow-figure { max-width: 1000px; overflow: hidden; margin: 50px auto 0; border: 1px solid #43535b; border-radius: 8px; color: #d6e2e2; background: #142630; box-shadow: 0 19px 48px rgb(16 28 37 / 10%); }
.workflow-figure picture { display: block; aspect-ratio: 1000 / 380; }
.workflow-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.workflow-figure figcaption { padding: 17px 24px; border-top: 1px solid #49606a; color: #c0d0d3; font-size: 13px; line-height: 1.6; }
.workflow-figure a { color: #f9b093; text-underline-offset: 3px; }
.lock-excerpt { margin-top: 21px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-light); }
.lock-excerpt summary { padding: 15px 20px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.lock-excerpt summary:hover { color: var(--accent-dark); }
.lock-excerpt pre { overflow-x: auto; margin: 0; padding: 17px 20px; border-block: 1px solid var(--line); color: #e5eceb; background: #192833; font: 12px/1.7 var(--mono); }
.lock-excerpt p { margin: 0; padding: 13px 20px; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.lock-excerpt a { color: var(--ink); text-underline-offset: 3px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 75px; border-top: 1px solid var(--line); }
.step { padding: 29px 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-number { color: var(--accent-dark); font: 700 11px var(--mono); }
.step h3 { margin: 20px 0 9px; font-size: 24px; letter-spacing: -.04em; }
.step p { max-width: 315px; margin-bottom: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.step code { color: var(--ink); font-size: .9em; }

.impact-section { background: #edece5; }
.impact-section .section-intro code { color: var(--ink); font-size: .9em; }
.impact-chain { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr); align-items: center; gap: 13px; }
.impact-node { min-height: 174px; padding: 24px; border: 1px solid #cbd5d2; border-radius: 6px; background: var(--paper-light); }
.impact-node-changed { border-color: #e0a18d; background: #fff0e8; }
.impact-node > span { display: block; margin-bottom: 18px; color: var(--accent-dark); font: 700 11px var(--mono); letter-spacing: .09em; }
.impact-node strong { display: block; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.045em; }
.impact-node p { margin: 10px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.impact-node code { font-size: .9em; }
.impact-arrow { color: var(--accent-dark); font-size: 38px; text-align: center; }
.impact-boundaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.impact-boundaries > div { padding: 21px 24px; border-top: 3px solid #2b7b77; background: #f9faf7; }
.impact-boundaries > div + div { border-top-color: var(--accent); }
.boundary-label { color: #2b6664; font: 700 11px var(--mono); letter-spacing: .09em; }
.impact-boundaries > div + div .boundary-label { color: var(--accent-dark); }
.impact-boundaries p { margin: 10px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.impact-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 25px; }
.impact-links a { color: var(--ink); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.impact-links a span { color: var(--accent-dark); }

.meaning-section { padding-block: 62px; color: #eaf1f0; background: #20343d; }
.meaning-grid { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 35px; }
.meaning-icon { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid #698087; border-radius: 50%; color: var(--accent); font: 62px var(--serif); line-height: 1; }
.light-kicker { margin-bottom: 12px; color: #f5a180; }
.meaning-section h2 { font-size: clamp(28px, 3vw, 42px); }
.meaning-section p:not(.section-kicker) { max-width: 710px; margin: 12px 0 0; color: #bacbce; font-size: 14px; line-height: 1.7; }
.meaning-section a { align-self: end; margin-bottom: 7px; color: #fff; font-size: 13px; font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 5px; white-space: nowrap; }
.meaning-section a span { margin-left: 4px; color: var(--accent); }

.reading-section { background: #eaece7; }
.reading-intro { margin-bottom: 40px; }
.reading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reading-card { min-height: 260px; position: relative; display: flex; flex-direction: column; padding: 23px 22px; border: 1px solid #d2d8d3; border-radius: 5px; background: var(--paper-light); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.reading-card:hover { transform: translateY(-4px); border-color: #b6c2bc; box-shadow: 0 12px 24px rgb(16 28 37 / 8%); }
.card-index { color: var(--accent-dark); font: 700 10px var(--mono); letter-spacing: .08em; }
.reading-card h3 { margin: 34px 0 12px; font-size: clamp(18px, 1.65vw, 23px); letter-spacing: -.04em; }
.reading-card p { margin-bottom: 22px; color: var(--ink-muted); font-size: 13px; line-height: 1.65; }
.card-arrow { margin-top: auto; color: var(--accent-dark); font-size: 21px; }
.support-note { margin: 26px 0 0; color: #4c5962; font-size: 14px; line-height: 1.6; }
.support-note a { color: var(--ink); text-underline-offset: 3px; }
.draft-callout { display: flex; align-items: flex-start; gap: 12px; margin-top: 27px; color: #4c5962; font-size: 13px; line-height: 1.6; }
.draft-callout p { margin: 0; }
.callout-mark { width: 19px; height: 19px; display: grid; place-items: center; flex: none; margin-top: 1px; border-radius: 50%; color: white; background: #697a7c; font: 700 12px var(--mono); }

.participate-section { padding-block: 110px; background: var(--paper); }
.participate-grid { display: grid; grid-template-columns: 1fr minmax(270px, 350px); align-items: center; gap: 90px; }
.participate-section h2 { margin-bottom: 23px; }
.participate-section p:not(.section-kicker) { max-width: 610px; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }
.participate-actions { border-top: 1px solid var(--line); }
.participate-actions a { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 67px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 680; text-decoration: none; }
.participate-actions a:hover { color: var(--accent-dark); }
.participate-actions span { color: var(--accent-dark); font-size: 19px; }

.site-footer { color: #e4eaeb; background: var(--ink); }

.case-hero { color: white; background: var(--ink); }
.case-hero-inner { max-width: 1050px; padding-block: 83px 91px; }
.case-hero .eyebrow { margin-bottom: 24px; }
.case-hero h1 { max-width: 940px; }
.case-hero p:not(.eyebrow) { max-width: 790px; color: #c7d1d3; font-size: 18px; line-height: 1.7; }
.case-actions { margin-top: 27px; }
.case-status { display: inline-block; margin-top: 21px; padding: 11px 14px; border: 1px solid #6f8289; color: #f6bc9c; font: 700 11px/1.5 var(--mono); letter-spacing: .04em; }
.case-intro { max-width: 850px; }
.case-intro > p:not(.section-kicker) { margin: 23px 0 0; color: var(--ink-muted); font-size: 17px; line-height: 1.7; }
.case-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 42px; }
.case-ledger > div { padding: 25px 28px; border: 1px solid var(--line); background: var(--paper-light); }
.case-ledger strong { display: block; margin-bottom: 12px; font: 700 11px var(--mono); letter-spacing: .09em; }
.case-ledger p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.pr-map { margin-top: 28px; padding: 28px 30px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--paper-light); }
.pr-map .section-kicker { margin-bottom: 12px; }
.pr-map h3 { margin: 0 0 14px; font-size: 25px; letter-spacing: -.04em; }
.pr-map p { max-width: 850px; margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.pr-map ol { display: grid; gap: 10px; margin: 18px 0; padding-left: 22px; font-size: 13px; line-height: 1.6; }
.pr-map li { padding-left: 4px; overflow-wrap: anywhere; }
.pr-map p.pr-map-multilink { margin-bottom: 14px; color: var(--ink); }
.pr-map code { color: var(--ink); }
.pr-map a { text-underline-offset: 3px; }
.case-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 46px 0 0; padding: 0; list-style: none; scroll-margin-top: 24px; }
.case-step { min-height: 260px; padding: 27px 30px 30px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-light); }
.case-step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-step-number { color: var(--accent-dark); font: 700 12px var(--mono); }
.case-step-status { padding: 5px 7px; border: 1px solid #bdd6d0; color: #286e68; font: 700 10px var(--mono); text-align: right; }
.case-step-status.proposed { border-color: #e7c1ae; color: #ac4f31; }
.case-step h3 { margin: 30px 0 12px; font-size: 27px; letter-spacing: -.045em; }
.case-step p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.case-step a { text-underline-offset: 3px; }
.case-epilogue { background: #eaece7; }
.case-epilogue p:not(.section-kicker) { max-width: 820px; margin: 22px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }
.case-epilogue a { text-underline-offset: 3px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 30px; padding-block: 58px 61px; }
.footer-top p { margin: 4px 0 0; color: #a9b9be; font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 20px; margin-top: 5px; }
.footer-links a, .footer-bottom a { color: inherit; text-decoration-color: #73868b; text-underline-offset: 4px; }
.footer-links a { font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 22px 27px; border-top: 1px solid #3b4c54; color: #a2b2b7; font-size: 11px; line-height: 1.5; }

@media (max-width: 1000px) {
  .header-inner { gap: 25px; }
  .primary-nav { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-block: 70px; }
  .hero-copy { max-width: 700px; }
  .hero-example { max-width: 700px; }
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .section-intro > p { max-width: 700px; }
  .meaning-grid { grid-template-columns: 70px 1fr; }
  .meaning-icon { width: 64px; height: 64px; font-size: 47px; }
  .meaning-section a { grid-column: 2; justify-self: start; }
  .reading-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-card { min-height: 220px; }
  .reading-card h3 { margin-top: 23px; }
}

@media (max-width: 900px) {
  .graph-body { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 30px; }
  .edge-stack { display: none; }
  .requirement-node { min-height: 110px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 36px, 1200px); }
  .header-inner { min-height: 74px; flex-wrap: wrap; gap: 4px 16px; padding-block: 13px; }
  .wordmark { font-size: 25px; }
  .primary-nav { order: 3; width: 100%; justify-content: space-between; margin: 8px 0 0; padding-top: 13px; border-top: 1px solid #40505a; }
  .primary-nav a { font-size: 12px; }
  .header-github { margin-left: auto; font-size: 12px; }
  .hero-grid { display: block; min-height: 0; padding-block: 67px 62px; }
  .hero-copy { max-width: 620px; }
  h1 { font-size: clamp(45px, 10.5vw, 67px); }
  .hero-example { max-width: 570px; margin: 55px 8px 0 0; }
  .section { padding-block: 75px; }
  .section-intro { display: block; margin-bottom: 32px; }
  .section-intro > p { margin-top: 20px; }
  .graph-node { padding: 12px; gap: 8px; }
  .requirement-node { padding: 18px; }
  .requirement-node strong { font-size: 26px; }
  .step-grid { margin-top: 50px; }
  .step { padding-right: 14px; }
  .step + .step { padding-left: 14px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 12px; }
  .participate-grid { grid-template-columns: 1fr; gap: 25px; }
  .impact-chain { grid-template-columns: 1fr; gap: 10px; }
  .impact-node { min-height: 0; }
  .impact-arrow { transform: rotate(90deg); font-size: 28px; line-height: 1; }
  .impact-boundaries, .case-ledger, .case-steps { grid-template-columns: 1fr; }
  .case-hero-inner { padding-block: 68px 72px; }
}

@media (max-width: 540px) {
  .workflow-figure picture { aspect-ratio: 390 / 640; }
  .banner-inner { gap: 7px; font-size: 10px; letter-spacing: .01em; }
  .banner-divider { height: 8px; }
  .header-github { padding: 8px 10px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { justify-content: space-between; }
  .trace-root { padding-inline: 18px; }
  .trace-entries { padding-inline: 14px; }
  .graph-heading { font-size: 9px; padding-inline: 13px; }
  .graph-body { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 25px 19px; }
  .anchor-stack { gap: 10px; }
  .graph-node { min-height: 66px; }
  .graph-node strong { font-size: 12px; }
  .edge-stack { display: none; }
  .requirement-node { min-height: 105px; }
  .graph-caption { padding-inline: 16px; }
  .pr-map { padding: 22px 18px; }
  .step-grid { display: block; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step h3 { margin: 10px 0 6px; }
  .step p { max-width: 100%; font-size: 14px; }
  .meaning-grid { display: block; }
  .meaning-icon { margin-bottom: 24px; }
  .meaning-section a { display: inline-block; margin-top: 20px; white-space: normal; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-card { min-height: 180px; }
  .reading-card h3 { margin-block: 20px 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 21px; padding-block: 42px; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 10px; }
}

@media (max-width: 340px) {
  .trace-entry { grid-template-columns: 41px minmax(0, 1fr); gap: 8px; padding-inline: 9px; }
  .primary-nav a { font-size: 11px; }
}

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