/*
Theme Name: showniqo
Version: 1.0.0
Text Domain: showniqo
*/
:root {
    --paper: #f4f4e8;
    --ink: #101818;
    --lime: #d7ff44;
    --sage: #91b9ae;
    --teal: #416e65;
    --rule: #c8cdbd;
    --dark-rule: #314443;
    --display: 'Unbounded', sans-serif;
    --body: 'Fira Sans', sans-serif;
    --reading: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
button, input, textarea, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { border-radius: 0; }
button:disabled { cursor: default; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.masthead :focus-visible, .code-poster :focus-visible, .syntax-desk :focus-visible, .colophon :focus-visible, .perspective-register :focus-visible, .privacy-dock :focus-visible { outline-color: var(--lime); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
.lucide { width: 22px; height: 22px; stroke-width: 1.7; flex: 0 0 auto; vertical-align: middle; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.18; letter-spacing: -.055em; text-wrap: balance; margin: 0 0 28px; }
h1 { font-size: clamp(38px, 5.4vw, 76px); }
h2 { font-size: clamp(29px, 3.4vw, 48px); }
h3 { font-size: 22px; line-height: 1.35; margin: 0 0 12px; font-weight: 700; }
h4 { font-size: 19px; margin: 0 0 4px; }
p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }
pre, code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
code { font-size: .86em; }
pre { font-size: 16px; line-height: 1.8; overflow: auto; tab-size: 4; }
pre code { font-size: inherit; }
.reading-width, .poster-width { width: min(100% - 112px, var(--reading)); margin-inline: auto; }
.chapter-label { color: var(--teal); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.large-copy { font-size: clamp(22px, 2.1vw, 29px); line-height: 1.4; }
.measure { max-width: 760px; }
.opening-note { max-width: 760px; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; }
.step-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--lime); color: var(--ink); padding: 14px 24px; border: 1px solid var(--lime); font-weight: 700; text-decoration: none; line-height: 1.4; min-height: 52px; }
.step-action:hover { background: var(--ink); color: var(--lime); text-decoration: none; }
.step-action:disabled { opacity: .65; }
.text-direction { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.skip-reading { position: absolute; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--lime); color: var(--ink); transform: translateY(-150%); }
.skip-reading:focus { transform: none; }
/* Masthead */
.masthead { background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--dark-rule); }
.masthead-line { width: min(100% - 112px, var(--reading)); min-height: 88px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.wordmark { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; flex-shrink: 0; }
.wordmark img { width: 48px; height: 40px; object-fit: contain; }
.wordmark span { font: 600 27px/1 var(--display); letter-spacing: -.06em; }
.desktop-reading-nav ul { display: flex; gap: 30px; align-items: center; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.desktop-reading-nav a { font-size: 16px; text-decoration: none; display: block; padding: 12px 0; }
.desktop-reading-nav a:hover, .desktop-reading-nav .current-menu-item > a { color: var(--lime); }
.desktop-reading-nav li { position: relative; }
.desktop-reading-nav .sub-menu { display: none; position: absolute; top: 100%; right: 0; padding: 16px 24px; background: var(--ink); z-index: 10; border: 1px solid var(--dark-rule); }
.desktop-reading-nav li:hover > .sub-menu, .desktop-reading-nav li:focus-within > .sub-menu { display: block; }
.mobile-index-toggle { display: none; align-items: center; gap: 8px; background: none; color: var(--paper); border: 1px solid var(--dark-rule); padding: 10px 12px; }
.mobile-index-toggle:hover { border-color: var(--lime); }
.mobile-reading-nav { padding: 0 32px 24px; }
.mobile-reading-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-reading-nav a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--dark-rule); }
/* The typographic poster */
.code-poster { background: var(--ink); color: var(--paper); padding: 60px 0 48px; }
.code-poster h1 { font-size: clamp(64px, 8.2vw, 128px); font-weight: 700; letter-spacing: -.065em; line-height: 1.13; margin: 0; text-wrap: nowrap; }
.code-poster h1 span { display: table; padding: 0 22px 8px; color: var(--ink); background: var(--lime); }
.code-poster .poster-indent { margin-left: 13%; }
.poster-caption { margin: 25px 0 0 13%; }
.poster-caption p { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.4; margin-bottom: 22px; }
.code-poster .step-action:hover { border-color: var(--lime); }
.learning-stair { padding: 48px 0 68px; }
.learning-stair h2 { max-width: 1050px; }
.path-stops { display: grid; grid-template-columns: repeat(5,1fr); gap: 36px; padding: 0; margin: 40px 0 0; list-style: none; }
.path-stops li { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--sage); font-size: 25px; font-weight: 600; margin-bottom: 16px; }
.path-stops h3 { font-size: 18px; }
.path-stops p { font-size: 16px; line-height: 1.55; }
.path-stops code { background: #e0e7da; color: #325c55; font-size: 12px; padding: 5px 8px; margin-top: auto; max-width: 100%; overflow-wrap: anywhere; }
.syntax-desk { background: var(--ink); color: var(--paper); padding: 64px 0 72px; }
.syntax-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; }
.syntax-desk .chapter-label, .syntax-notes > h3 { color: var(--sage); }
.code-window { background: #172a2d; border: 1px solid #30494a; padding: 24px; color: #e3efed; margin: 24px 0 0; }
.code-window code { font-size: clamp(12px,1.3vw,17px); }
.code-muted { color: #a6bcaf; }
.code-value { color: #91ddda; }
.code-string { color: var(--lime); }
.code-keyword { color: #b6b8ff; }
.code-footnote { color: var(--sage); font-size: 14px; margin-top: 16px; }
.syntax-notes { padding-top: 30px; }
.syntax-notes ol { padding: 0; margin: 28px 0 0; list-style: none; counter-reset: syntax; }
.syntax-notes li { position: relative; padding-left: 62px; margin-bottom: 32px; counter-increment: syntax; }
.syntax-notes li::before { content: counter(syntax); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; background: var(--sage); color: var(--ink); font-size: 24px; }
.syntax-notes p { font-size: 17px; }
/* Editorial treatments */
.editorial-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.concept-spread, .practice-bench, .stuck-points, .learning-pause, .entry-questions, .reading-shelf, .exchange-principles, .question-invitation,
.editorial-statement, .principle-ledger, .editorial-workflow, .example-anatomy, .accessibility-position, .scope-note, .topic-compass, .starting-map, .concept-route,
.perspective-register, .practice-method, .language-context, .misconception-notes, .contact-preface, .contact-writing, .message-guide, .address-window, .contact-directory,
.archive-preface, .article-catalog, .archive-topics, .featured-reading, .reading-order { padding-block: 72px; }
.concept-spread h2 { max-width: 560px; }
.concept-register { margin: 32px 0 0; }
.concept-register > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; border-top: 1px solid var(--rule); padding: 20px 0; }
dt { font-weight: 700; }
dd { margin: 0; }
.language-table { background: #e3e8da; padding-block: 64px; }
.table-scroll { overflow-x: auto; margin-top: 32px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { vertical-align: top; padding: 20px 28px 20px 0; border-bottom: 1px solid #adb8a6; }
thead { font-size: 15px; }
tbody th { min-width: 160px; font-size: 21px; }
td { width: 38%; font-size: 17px; }
.practice-bench { border-bottom: 1px solid var(--rule); }
.practice-bench .code-window { margin-top: 0; margin-bottom: 24px; }
.solution-note { border-block: 1px solid var(--rule); padding: 16px 0; margin-block: 24px; }
.solution-note summary { font-weight: 700; }
.solution-note p { padding-top: 16px; }
.exercise-next { color: var(--teal); }
.diagnosis-lines { margin-top: 40px; }
.diagnosis-lines article { display: grid; grid-template-columns: 64px 1fr 1.3fr; gap: 30px; border-top: 1px solid var(--rule); padding: 28px 0; }
.diagnosis-lines article > span { font-family: var(--display); color: var(--teal); font-size: 27px; line-height: 1.2; }
.diagnosis-lines h3 { font-size: 23px; }
.learning-pause, .starting-map, .accessibility-position, .language-context { background: #e0e7da; }
.question-index { max-width: 1000px; margin-top: 40px; }
.question-item { border-top: 1px solid var(--rule); }
.question-item:last-child { border-bottom: 1px solid var(--rule); }
.question-item h3 { margin: 0; }
.question-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 0; color: var(--ink); background: none; border: 0; text-align: left; font-size: 22px; font-weight: 600; }
.question-toggle:hover { color: var(--teal); }
.question-toggle[aria-expanded=true] .lucide { transform: rotate(45deg); }
.question-answer { padding: 0 60px 24px 0; max-width: 850px; }
.reading-shelf { background: #e9ecdf; }
.shelf-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.shelf-heading h2 { margin-bottom: 0; }
.reading-index { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.reading-entry { border-top: 2px solid var(--ink); padding-top: 20px; }
.reading-entry h3 { font-size: 26px; }
.reading-entry h2 { font: 700 27px/1.3 var(--body); letter-spacing: -.02em; }
.reading-entry h3 a, .reading-entry h2 a { text-decoration: none; }
.reading-entry h3 a:hover, .reading-entry h2 a:hover { text-decoration: underline; }
.reading-entry p { font-size: 17px; }
.article-topic { color: var(--teal); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.article-topic a { text-decoration: none; }
.article-topic a:hover { text-decoration: underline; }
.exchange-principles { border-bottom: 1px solid var(--rule); }
.exchange-principles h2 { font-size: 35px; }
.question-invitation { background: var(--lime); }
/* Forms */
.question-sheet { width: 100%; max-width: 850px; }
.question-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.question-sheet label, .catalog-search > label, .global-search > label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.question-sheet input:not([type=checkbox]), .question-sheet textarea, .catalog-query, .catalog-search select { width: 100%; border: 1px solid #768578; border-radius: 0; background: var(--paper); color: var(--ink); padding: 12px 14px; margin-bottom: 22px; min-height: 50px; }
.question-sheet textarea { resize: vertical; }
.question-sheet input:hover, .question-sheet textarea:hover { border-color: var(--ink); }
.question-sheet .consent-line { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; margin: 0 0 24px; }
input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; accent-color: var(--teal); }
.question-invitation .question-sheet .step-action { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.question-invitation .question-sheet .step-action:hover { background: var(--paper); color: var(--ink); }
.submission-state { font-size: 16px; margin-top: 18px; }
.submission-state:empty { display: none; }
.submission-state[data-state=error] { border-left: 3px solid #a63123; padding-left: 14px; }
.submission-state[data-state=success] { border-left: 3px solid var(--teal); padding-left: 14px; font-weight: 600; }
/* Chapter pages */
.chapter-opening { background: var(--ink); color: var(--paper); padding-block: 72px; }
.chapter-opening .chapter-label { color: var(--sage); }
.chapter-opening h1 { max-width: 1100px; }
.chapter-opening .opening-note { margin-left: 14%; max-width: 780px; }
.principle-ledger, .scope-note, .concept-route, .misconception-notes { border-top: 1px solid var(--rule); }
.editorial-workflow, .practice-method, .reading-order { background: #e4e9dc; }
.method-sequence { list-style: none; counter-reset: method; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.method-sequence li { counter-increment: method; border-top: 1px solid #a6b5a2; padding-top: 18px; }
.method-sequence li::before { content: '0' counter(method); display: block; font: 500 34px/1 var(--display); color: var(--teal); margin-bottom: 24px; }
.anatomy-explanation h3 { margin-top: 26px; }
.anatomy-explanation h3:first-child { margin-top: 0; }
.scope-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 48px; margin-top: 36px; }
.next-chapter { background: var(--lime); padding-block: 64px; }
.next-chapter h2 { max-width: 1000px; }
.next-chapter p { max-width: 750px; }
.next-chapter .step-action { background: var(--ink); color: var(--lime); }
.next-chapter .step-action:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.topic-jumps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 32px; }
.topic-jumps a { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rule); padding: 18px 0; text-decoration: none; font-weight: 600; }
.topic-jumps a:hover { color: var(--teal); }
.route-chapters { max-width: 1000px; margin: 48px 0 0 auto; }
.route-chapters article { display: grid; grid-template-columns: 80px 1fr; gap: 36px; border-top: 1px solid var(--rule); padding: 36px 0; scroll-margin-top: 24px; }
.route-chapters article > span { font: 500 34px/1.3 var(--display); color: var(--teal); }
.route-chapters h3 { font-size: 30px; }
.route-chapters code { display: inline-block; background: #e0e7da; padding: 12px 16px; }
.route-chapters .route-goal { margin-top: 24px; }
.route-goal code { padding: 1px 5px; }
.perspective-register { background: var(--ink); color: var(--paper); }
.perspective-register .chapter-label { color: var(--sage); }
.perspective-tabs { display: flex; border-bottom: 1px solid var(--sage); margin-top: 40px; }
.perspective-tabs button { background: transparent; color: var(--paper); font-weight: 600; padding: 18px 32px; border: 1px solid var(--dark-rule); border-bottom: 0; }
.perspective-tabs button:hover { background: #263a33; }
.perspective-tabs button[aria-selected=true] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.perspective-panel { max-width: 900px; padding: 36px 0 0; }
.perspective-panel h3 { font-size: 29px; }
.perspective-panel pre { border-left: 3px solid var(--sage); padding: 16px 24px; margin: 28px 0; background: #172a2d; }
.contact-writing { padding-top: 24px; }
.message-guide { background: #e0e7da; }
.address-window iframe { width: 100%; height: 400px; border: 1px solid var(--rule); margin-top: 24px; }
.contact-directory { padding-top: 0; }
.contact-register { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; margin: 32px 0; }
.contact-register dt { color: var(--teal); font-size: 14px; margin-bottom: 8px; }
.contact-register dd { overflow-wrap: anywhere; }
.privacy-footnote { border-top: 1px solid var(--rule); padding-block: 40px; }
.privacy-footnote > div { display: flex; gap: 24px; }
.privacy-footnote h2 { font: 700 24px/1.3 var(--body); letter-spacing: 0; margin-bottom: 8px; }
.privacy-footnote p { max-width: 850px; font-size: 16px; }
.privacy-footnote .lucide { margin-top: 4px; }
/* Editorial archive */
.article-catalog { border-top: 1px solid var(--rule); }
.catalog-search { max-width: 860px; }
.catalog-query { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.catalog-query input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 14px 0; background: transparent; color: var(--ink); }
.catalog-query button { border: 0; border-left: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 15px; padding: 9px 12px; }
.catalog-query button:hover { color: var(--teal); }
.catalog-search select { max-width: 300px; }
.catalog-status { color: var(--teal); font-size: 15px; margin-top: 16px; }
.catalog-entries { margin-top: 32px; }
.catalog-entry { display: grid; grid-template-columns: 1fr 1.65fr; gap: 48px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: center; }
.catalog-cover { background: #e0e7da; }
.catalog-cover img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.catalog-entry h3 { font: 500 clamp(22px,2.2vw,31px)/1.35 var(--display); letter-spacing: -.045em; }
.catalog-entry h3 a { text-decoration: none; }
.catalog-entry h3 a:hover { text-decoration: underline; }
.catalog-entry p { font-size: 17px; }
.archive-topics { background: #e0e7da; }
.featured-reading { border-bottom: 1px solid var(--rule); }
.archive-results { padding-block: 64px; }
.search-refine { padding-top: 32px; }
.global-search { max-width: 700px; margin-bottom: 36px; }
.recovery-path { padding-block: 64px; }
.nav-links { display: flex; gap: 20px; margin-top: 40px; }
/* Long-form reading */
.article-opening { padding-top: 72px; }
.article-opening h1 { font-size: clamp(35px,4.5vw,65px); max-width: 1100px; }
.article-opening .opening-note { max-width: 860px; }
.byline { display: flex; flex-wrap: wrap; gap: 12px; font-size: 15px; margin-top: 28px; color: var(--teal); }
.article-cover { margin-top: 48px; margin-bottom: 48px; }
.article-cover img { width: 100%; max-height: 620px; aspect-ratio: 2; object-fit: cover; }
.article-body { max-width: 790px; width: calc(100% - 64px); margin-inline: auto; font-size: 20px; overflow-wrap: break-word; }
.article-body h2 { font-size: 33px; margin-top: 48px; }
.article-body h3 { font-size: 25px; margin-top: 32px; }
.article-body p { margin-bottom: 24px; }
.article-body img { margin-block: 32px; width: 100%; }
.article-body figure { margin-inline: 0; }
.article-body pre { background: #e0e7da; padding: 24px; font-size: 15px; }
.article-body table { font-size: 16px; }
.article-body a { overflow-wrap: anywhere; }
.article-end { margin-top: 48px; padding-block: 32px 72px; border-top: 1px solid var(--rule); }
.article-end p { font-size: 16px; }
.document-reading { padding-block: 64px 80px; }
.document-reading > header { margin-bottom: 48px; }
.document-reading h1 { font-size: clamp(32px,4.7vw,65px); overflow-wrap: anywhere; }
/* Colophon */
.colophon { background: var(--ink); color: var(--paper); padding-block: 56px 34px; }
.colophon-top { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.colophon-top p { font-size: 20px; color: var(--sage); }
.colophon .contact-register { padding-block: 28px; border-block: 1px solid var(--dark-rule); margin-block: 32px; }
.colophon dt { color: var(--sage); }
.legal-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.legal-index a { color: var(--paper); font-size: 14px; }
.footer-note { font-size: 14px; margin-top: 24px; color: var(--sage); }
.colophon-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; font-size: 13px; color: var(--sage); }
#showniqo-revisit-settings { background: transparent; border: 1px solid var(--sage); padding: 9px 12px; color: var(--paper); font-size: 13px; }
#showniqo-revisit-settings:hover { background: var(--lime); color: var(--ink); }
html:not([data-showniqo-privacy-selection=unset]) #showniqo-revisit-settings { position: fixed; right: 16px; bottom: 12px; z-index: 30; background: var(--ink); border-color: var(--sage); }
html:not([data-showniqo-privacy-selection=unset]) #showniqo-revisit-settings:hover { background: var(--lime); color: var(--ink); }
/* Privacy dock: a compact, non-modal notice */
.privacy-dock { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 40; background: var(--ink); color: var(--paper); border-top: 2px solid var(--sage); max-height: 85dvh; overflow-y: auto; }
.privacy-notice { padding: 20px 32px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.privacy-notice strong { font-size: 19px; }
.privacy-notice p { font-size: 14px; line-height: 1.45; max-width: 760px; margin-top: 5px; }
.privacy-actions { display: flex; gap: 10px; }
.privacy-dock button { background: var(--ink); color: var(--paper); border: 1px solid var(--sage); padding: 11px 16px; min-height: 44px; font-size: 14px; font-weight: 600; }
.privacy-dock button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.privacy-preferences { padding: 24px 32px 28px; border-top: 1px solid var(--dark-rule); }
.preferences-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.preferences-heading h2 { font-size: 25px; letter-spacing: -.04em; margin-bottom: 16px; }
.privacy-preferences > p { font-size: 15px; max-width: 800px; }
.preference-categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-bottom: 24px; }
.preference-categories label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.preference-categories strong { display: block; font-size: 16px; margin-bottom: 6px; }
.privacy-signal { color: var(--sage); }
.privacy-dock:has(.privacy-notice[hidden]):has(.privacy-preferences[hidden]) { display: none; }
@media (min-width: 1500px) {
    .code-poster { padding-block: 72px; }
}
@media (max-width: 1180px) {
    .reading-width, .poster-width, .masthead-line { width: calc(100% - 96px); }
    .path-stops { gap: 26px; }
    .path-stops h3 { font-size: 17px; }
    .path-stops p { font-size: 15px; }
    .syntax-layout { gap: 48px; }
    .syntax-notes p { font-size: 16px; }
    .editorial-columns { gap: 48px; }
    .privacy-notice { gap: 18px; }
    .privacy-actions { gap: 8px; }
    .privacy-dock button { padding-inline: 12px; }
}
@media (max-width: 1050px) {
    .desktop-reading-nav { display: none; }
    .mobile-index-toggle { display: inline-flex; }
    .code-poster h1 { font-size: 8.1vw; }
    .code-poster { padding-block: 50px 40px; }
    .syntax-layout { grid-template-columns: 1.4fr 1fr; gap: 40px; }
    .syntax-notes li { padding-left: 50px; }
    .syntax-notes { padding-top: 30px; }
    .syntax-desk h2 { font-size: 36px; }
    .code-window { padding: 18px; }
    .code-window code { font-size: 12px; }
    .privacy-notice { grid-template-columns: 1fr; padding: 16px 24px; gap: 12px; }
    .privacy-actions { justify-content: flex-end; }
    .reading-entry h3 { font-size: 23px; }
}
@media (max-width: 800px) {
    .reading-width, .poster-width, .masthead-line { width: calc(100% - 48px); }
    .masthead-line { min-height: 78px; }
    .wordmark { gap: 12px; }
    .wordmark span { font-size: 23px; }
    .wordmark img { width: 40px; }
    .code-poster h1 { font-size: 8.4vw; }
    .code-poster h1 span { padding-inline: 14px; }
    .poster-caption { margin-top: 26px; }
    .poster-caption p { font-size: 23px; }
    .path-stops { grid-template-columns: repeat(3,1fr); gap: 32px; }
    .learning-stair { padding-block: 40px 48px; }
    .learning-stair h2 { font-size: 30px; }
    .syntax-layout, .editorial-columns { grid-template-columns: 1fr; gap: 32px; }
    .syntax-notes { padding-top: 0; }
    .syntax-notes ol { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .syntax-notes li { margin-bottom: 0; }
    .code-window code { font-size: 14px; }
    .concept-spread, .practice-bench, .stuck-points, .learning-pause, .entry-questions, .reading-shelf, .exchange-principles, .question-invitation,
    .editorial-statement, .principle-ledger, .editorial-workflow, .example-anatomy, .accessibility-position, .scope-note, .topic-compass, .starting-map, .concept-route,
    .perspective-register, .practice-method, .language-context, .misconception-notes, .contact-preface, .contact-writing, .message-guide, .address-window, .contact-directory,
    .archive-preface, .article-catalog, .archive-topics, .featured-reading, .reading-order { padding-block: 48px; }
    .diagnosis-lines article { grid-template-columns: 48px 1fr; gap: 18px; }
    .diagnosis-lines article p { grid-column: 2; }
    .diagnosis-lines article h3 { margin: 0; }
    .reading-index { grid-template-columns: 1fr; gap: 32px; }
    .reading-entry { max-width: 680px; }
    .chapter-opening { padding-block: 48px; }
    .chapter-opening .opening-note { margin-left: 0; }
    .method-sequence { grid-template-columns: 1fr; gap: 28px; }
    .method-sequence li { display: grid; grid-template-columns: 52px 1fr; gap: 12px 20px; }
    .method-sequence li::before { grid-row: span 2; margin-bottom: 0; font-size: 27px; }
    .method-sequence h3 { margin-bottom: 0; }
    .method-sequence p { grid-column: 2; }
    .contact-register { grid-template-columns: 1fr 1fr; }
    .catalog-entry { gap: 28px; grid-template-columns: 1fr 1.5fr; }
    .catalog-cover img { aspect-ratio: 1.2; }
    .catalog-entry h3 { font-size: 22px; }
    .article-body { font-size: 18px; }
    .article-body h2 { font-size: 29px; }
    .preference-categories { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 520px) {
    body { font-size: 17px; }
    .reading-width, .poster-width, .masthead-line { width: calc(100% - 40px); }
    .masthead-line { gap: 14px; min-height: 74px; }
    .wordmark span { font-size: 21px; }
    .wordmark img { width: 34px; height: 32px; }
    .wordmark { gap: 10px; }
    .mobile-index-toggle { padding: 8px; font-size: 14px; }
    .mobile-index-toggle .lucide { width: 19px; }
    .code-poster { padding-block: 44px 40px; }
    .code-poster h1 { font-size: 8.35vw; letter-spacing: -.07em; }
    .code-poster h1 span { padding: 4px 10px 8px; }
    .code-poster .poster-indent { margin-left: 7%; }
    .poster-caption { margin-left: 7%; }
    .poster-caption p { font-size: 20px; }
    .step-action { font-size: 16px; min-height: 48px; padding: 12px 18px; }
    .chapter-label { font-size: 16px; }
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    .learning-stair h2 { font-size: 25px; }
    .path-stops { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
    .path-stops li { display: grid; grid-template-columns: 38px 1fr; column-gap: 18px; align-items: start; }
    .path-stops .step-number { grid-row: span 3; margin: 0; }
    .path-stops h3 { margin-bottom: 6px; font-size: 18px; }
    .path-stops p { grid-column: 2; margin-bottom: 10px; font-size: 16px; }
    .path-stops code { grid-column: 2; justify-self: start; font-size: 12px; }
    .syntax-desk { padding-block: 40px; }
    .syntax-desk h2 { font-size: 29px; }
    .syntax-notes ol { grid-template-columns: 1fr; }
    .code-window { padding: 16px; }
    .code-window code { font-size: 12px; }
    .concept-register > div { grid-template-columns: 1fr; gap: 8px; }
    .table-scroll { margin-right: -20px; padding-right: 20px; }
    .language-table table { min-width: 660px; }
    .question-toggle { font-size: 19px; gap: 20px; }
    .question-answer { padding-right: 0; }
    .shelf-heading { display: block; }
    .shelf-heading .step-action { margin-top: 24px; }
    .exchange-principles h2 { font-size: 28px; }
    .question-pair { grid-template-columns: 1fr; gap: 0; }
    .question-sheet input:not([type=checkbox]), .question-sheet textarea { margin-bottom: 18px; }
    .opening-note { font-size: 20px; }
    .chapter-opening h1 { font-size: 34px; }
    .scope-columns { grid-template-columns: 1fr; gap: 28px; }
    .topic-jumps { grid-template-columns: 1fr; }
    .route-chapters article { grid-template-columns: 42px 1fr; gap: 18px; padding-block: 28px; }
    .route-chapters article > span { font-size: 24px; }
    .route-chapters h3 { font-size: 24px; }
    .route-chapters code { padding: 8px; font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
    .perspective-tabs button { padding: 14px 12px; font-size: 15px; flex: 1; }
    .perspective-panel h3 { font-size: 25px; }
    .perspective-panel pre { font-size: 13px; padding-inline: 16px; }
    .contact-register { grid-template-columns: 1fr; gap: 24px; }
    .address-window iframe { height: 300px; }
    .catalog-entry { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
    .catalog-cover img { aspect-ratio: 1.8; }
    .catalog-query { gap: 8px; padding-inline: 10px; }
    .catalog-query button { font-size: 13px; padding-inline: 8px; }
    .catalog-query .lucide { width: 18px; }
    .article-opening { padding-top: 44px; }
    .article-opening h1 { font-size: 31px; }
    .article-cover { margin-top: 32px; margin-bottom: 32px; }
    .article-cover img { aspect-ratio: 1.45; }
    .article-body { width: calc(100% - 40px); }
    .article-body h2 { font-size: 25px; }
    .document-reading { padding-top: 44px; }
    .colophon-top { display: block; }
    .colophon-top p { font-size: 18px; margin-top: 24px; }
    .legal-index ul { display: grid; gap: 12px; }
    .colophon-bottom { align-items: flex-start; flex-direction: column; }
    .colophon { padding-bottom: 72px; }
    .privacy-notice { padding: 14px 16px; gap: 12px; }
    .privacy-notice strong { font-size: 17px; }
    .privacy-notice p { font-size: 12px; line-height: 1.4; }
    .privacy-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
    .privacy-dock button { padding: 10px 7px; font-size: 12px; }
    .privacy-preferences { padding: 20px 16px; }
    .preferences-heading h2 { font-size: 21px; }
    .preference-categories { grid-template-columns: 1fr; gap: 16px; }
    .preference-categories label { font-size: 13px; }
    .preference-categories strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
