:root {
  color-scheme: light;
  --ink: #233d36;
  --muted: #58655f;
  --paper: #f8f6f0;
  --surface: #fffefa;
  --surface-warm: #eeeee3;
  --line: #d8ddcf;
  --accent: #214f46;
  --accent-dark: #173d35;
  --accent-soft: #e4ecdf;
  --rust: #a34e35;
  --max-width: 76rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
.icon { width: 1.5rem; height: 1.5rem; vertical-align: middle; }
h1, h2, h3, h4, p, li, a { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.2; }
h1, .section-heading h2, .page-header h1, .article-header h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .7rem 1rem; background: var(--accent); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: white; }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner, .primary-navigation ul, .hero, .section-block, .page-shell, .footer-inner, .search-inner { width: min(calc(100% - 4rem), var(--max-width)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 760; letter-spacing: -.055em; line-height: 1.2; flex-shrink: 0; }
.brand-accent { color: var(--rust); }
.brand-mark { display: grid; place-items: center; width: 2.6rem; height: 2.8rem; border-radius: 50% 50% 5px 5px; color: #fff7e7; background: var(--accent); }
.brand-mark .icon { width: 1.95rem; height: 1.95rem; }
.brand-caption { display: block; font-size: .61rem; font-weight: 500; letter-spacing: .04em; margin-top: .4rem; color: var(--muted); }
.header-note { margin: 0 auto 0 2rem; font-family: Georgia, serif; font-style: italic; color: var(--muted); font-size: .95rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-search { display: flex; gap: .5rem; align-items: center; padding: .6rem 1rem; min-height: 44px; border: 1px solid var(--line); border-radius: .3rem; font-size: .83rem; font-weight: 650; text-decoration: none; }
.header-search:hover { background: var(--accent-soft); }
.header-search .icon { width: 1.15rem; height: 1.15rem; }
.menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--line); background: transparent; border-radius: .3rem; font-size: .85rem; }
.primary-navigation { border-top: 1px solid #e8e9df; }
.primary-navigation ul { display: flex; justify-content: space-between; align-items: stretch; gap: .6rem; padding: 0; list-style: none; }
.primary-navigation a { display: flex; align-items: center; min-height: 3.25rem; padding: .6rem .4rem; color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-navigation a:hover, .primary-navigation a[aria-current] { color: var(--rust); border-bottom-color: var(--rust); }
.site-main { min-height: 65vh; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 5rem); }
.eyebrow { margin: 0 0 .9rem; font-size: .68rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--rust); line-height: 1.5; }
.hero h1 { margin: 0; font-size: clamp(2.7rem, 4.4vw, 4rem); line-height: 1.06; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-summary { max-width: 49ch; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; min-height: 3rem; padding: .7rem 1.15rem; background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: .3rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
.button:hover { color: white; background: var(--accent-dark); }
.button .icon { width: 1.2rem; height: 1.2rem; }
.button-secondary { background: var(--surface); color: var(--accent); }
.button-secondary:hover { background: var(--accent-soft); color: var(--accent); }
.hero-note { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .75rem; margin: 1.4rem 0 0; }
.hero-note::before { content: ""; width: 1.3rem; height: 1px; background: var(--rust); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual img { display: block; width: 100%; height: auto; }
.workbench-label { display: block; margin-top: .25rem; color: var(--muted); text-align: center; font-size: .55rem; letter-spacing: .16em; }
.workbench-label span { display: block; margin-top: .15rem; font-family: Georgia, serif; font-style: italic; font-size: .8rem; letter-spacing: 0; }
.section-block { padding-block: 3.5rem; }
.section-heading { margin-bottom: 1.65rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.section-heading > p:last-child { margin: .65rem 0 0; color: var(--muted); font-size: .92rem; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.section-aside { max-width: 25ch; font-size: .85rem; font-family: Georgia, serif; font-style: italic; }
.search-section { background: var(--surface-warm); border-block: 1px solid var(--line); padding-block: 2.6rem; scroll-margin-top: 1rem; }
.search-section .section-heading h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.search-form > label { display: block; font-size: .75rem; font-weight: 650; margin-bottom: .5rem; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) auto; gap: .65rem; }
.search-input-wrap { position: relative; min-width: 0; }
.search-input-wrap > .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem; color: var(--muted); pointer-events: none; }
input[type="search"], select { min-width: 0; width: 100%; min-height: 3.15rem; padding: .65rem .85rem; color: var(--ink); background: var(--surface); border: 1px solid #a8b5a6; border-radius: .3rem; font-size: .9rem; }
.search-input-wrap input { padding-left: 2.9rem; height: 100%; }
.search-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .6rem; font-size: .75rem; }
.search-suggestions span { color: var(--muted); }
.search-suggestions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.search-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.search-status { margin: .75rem 0; font-size: .85rem; }
.search-status:empty { display: none; }
.plain-button { background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; font-size: .85rem; min-height: 44px; padding: .3rem .5rem; }
.search-results { margin-block: 1rem; }
.search-results:empty { display: none; }
.category-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.category-card, .article-card, .search-result-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; transition: border-color .15s, box-shadow .15s; }
.category-card:hover, .article-card:hover, .search-result-card:hover { border-color: #96aa93; box-shadow: 0 5px 20px #233d3608; }
.category-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-bottom: 1.25rem; }
.topic-icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; background: var(--accent-soft); color: var(--accent); border: 1px solid #d6dfce; border-radius: .5rem .5rem 1.4rem .5rem; }
.topic-icon .icon { width: 2rem; height: 2rem; }
[data-topic="fabric-guides"] .topic-icon, [data-topic="stitches-sewing-tasks"] .topic-icon { background: #f0e4d3; border-color: #e6d6c0; color: #88512d; }
[data-topic="needles-thread-tension"] .topic-icon, [data-topic="troubleshooting-care"] .topic-icon { background: #efe2da; border-color: #e5d3c8; color: #994b36; }
.category-count { color: var(--muted); font-size: .7rem; }
.category-card h3 { font-size: 1.25rem; letter-spacing: -.025em; margin: 0 0 .8rem; }
.category-card h3 a, .article-card h3 a, .search-result-card h3 a { color: var(--ink); text-decoration: none; }
.category-card h3 a:hover, .article-card h3 a:hover, .search-result-card h3 a:hover { color: var(--rust); text-decoration: underline; }
.category-card > p, .article-card > p:not(.card-category), .search-result-card > p:not(.card-category) { color: var(--muted); margin: 0 0 1.5rem; font-size: .88rem; line-height: 1.75; }
.text-link { display: inline-flex; gap: .7rem; align-items: center; min-height: 44px; font-weight: 650; font-size: .82rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 1.2rem; height: 1.2rem; }
.category-card > .text-link { margin-top: auto; border-top: 1px dashed var(--line); padding-top: .7rem; width: 100%; justify-content: space-between; }
.latest-section { padding-top: 2rem; border-top: 1px solid var(--line); }
.article-card h3, .search-result-card h3 { font-family: Georgia, serif; font-size: 1.28rem; font-weight: 500; line-height: 1.35; margin: .4rem 0 .8rem; }
.card-category { display: flex; align-items: center; gap: .5rem; font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; }
.card-category .icon { width: 1.2rem; height: 1.2rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; width: 100%; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); }
.card-bottom > span { color: var(--muted); font-size: .68rem; }
.reference-notes { padding-top: 0; }
.reference-notes details { border-block: 1px dashed #b8c4b3; padding-block: 1rem; }
summary { min-height: 44px; padding-block: .6rem; font-weight: 650; }
.reference-notes summary { font-size: 1rem; }
.reference-notes summary span { font-weight: 400; color: var(--muted); margin-left: 1rem; font-size: .83rem; }
.reference-notes .prose { margin-block: 1rem; }
.page-shell { padding-block: 1.5rem 4rem; }
.breadcrumbs { color: var(--muted); margin-bottom: 2rem; font-size: .75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: #84927f; }
.breadcrumbs a { color: var(--muted); }
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); max-width: 23ch; margin: 0; }
.category-header { padding: 2rem; background: #eeeee3; border: 1px solid var(--line); border-radius: .5rem; position: relative; }
.category-header .topic-icon { float: right; width: 4rem; height: 4rem; margin: 0 0 1rem 1.5rem; background-color: var(--surface); }
.page-description { max-width: 70ch; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; }
.category-overview { margin-top: 1rem; border-top: 1px dashed #b8c4b3; }
.category-overview summary { font-size: .88rem; }
.compact-block { width: 100%; padding: 0; }
.collection-heading { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.collection-heading h2, .topic-navigation h2 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; letter-spacing: -.025em; }
.collection-total { font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.collection-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; padding: 1rem; background: var(--surface-warm); border-radius: .4rem; margin-top: 1.2rem; }
.collection-controls > div:first-child { flex: 3 1 14rem; }
.collection-controls > div { flex: 1 1 9rem; min-width: 0; }
.collection-controls label { display: block; font-size: .7rem; font-weight: 650; margin-bottom: .3rem; }
.collection-controls .plain-button { padding-inline: .8rem; }
.collection-status { font-size: .8rem; color: var(--muted); margin-block: .7rem 1.2rem; }
.collection-empty { padding: 2rem; border: 1px dashed #a8b5a6; }
.topic-navigation { border-top: 1px dashed #b8c4b3; margin-top: 3rem; padding-top: 2rem; }
.topic-navigation > div { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.topic-navigation a { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: .4rem; min-height: 44px; padding: .5rem .8rem; font-size: .8rem; text-decoration: none; background: var(--surface); }
.article-header { max-width: 62rem; margin-block: 2.5rem; }
.article-header h1 { margin: 0; font-size: clamp(2.2rem, 4.1vw, 3.7rem); line-height: 1.12; }
.article-header .eyebrow a { text-decoration: none; }
.article-description { max-width: 68ch; color: var(--muted); font-size: 1.08rem; margin-block: 1.1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .72rem; color: var(--muted); }
.taxonomy-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.meta-pill { display: inline-flex; align-items: center; min-height: 2.2rem; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--surface); font-size: .7rem; text-decoration: none; }
.meta-pill:hover { background: var(--accent-soft); }
.article-layout { display: grid; grid-template-columns: minmax(0, 48rem) minmax(0, 17rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; min-width: 0; }
.article-reading { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
.article-toc { border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); padding: .5rem 1.1rem; max-height: calc(100dvh - 3rem); overflow-y: auto; scrollbar-width: thin; }
.article-toc summary { font-size: .85rem; }
.article-toc ul { padding-left: 0; margin: .2rem 0 1rem; list-style: none; }
.article-toc ul ul { padding-left: .85rem; border-left: 1px solid var(--line); }
.article-toc li + li { margin-top: .15rem; }
.article-toc a { display: block; padding: .4rem .2rem; font-size: .75rem; line-height: 1.55; color: var(--muted); text-decoration: none; }
.article-toc a:hover, .article-toc a[aria-current] { color: var(--rust); text-decoration: underline; }
.article-toc .toc-back { border-top: 1px dashed var(--line); padding-block: .75rem; }
.prose { width: 100%; max-width: 73ch; min-width: 0; font-size: 1.04rem; line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.5rem 0 .9rem; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.25; scroll-margin-top: 1.5rem; }
.prose h3 { margin: 1.8rem 0 .6rem; font-size: 1.18rem; scroll-margin-top: 1.5rem; }
.prose h4 { margin-block: 1.5rem .5rem; }
.prose p { margin: 0 0 1.2rem; }
.prose li + li { margin-top: .5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-block: 1rem 1.5rem; }
.prose li::marker { color: var(--rust); }
.prose blockquote { margin: 1.5rem 0; border-left: 3px solid #a8ba9e; padding: 1rem 1.2rem; background: #eaf0e4; color: var(--ink); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose pre { max-width: 100%; overflow: auto; padding: 1rem; background: #243e36; color: #fff8ea; border-radius: .3rem; line-height: 1.65; font-size: .85rem; }
.prose code { overflow-wrap: anywhere; padding: .1rem .25rem; border-radius: .2rem; background: #e9ece0; font-size: .88em; }
.prose pre code { padding: 0; background: transparent; overflow-wrap: normal; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.heading-anchor { margin-left: .4rem; font-family: ui-sans-serif, sans-serif; font-size: .65em; opacity: 0; text-decoration: none; }
:where(h2, h3, h4):hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.prose img, .prose figure img, .featured-image img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: .35rem; }
.prose figure, .featured-image { min-width: 0; max-width: 100%; margin: 1.75rem 0; }
.prose figcaption { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-top: .6rem; text-align: center; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--line); border-radius: .3rem; scrollbar-color: #8f9e86 #eeeee3; }
.prose table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: .85rem; line-height: 1.65; }
.prose th, .prose td { min-width: 8rem; padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: normal; }
.prose th { color: var(--accent); background: #e7ebde; font-size: .78rem; font-weight: 700; }
.prose tr:nth-child(even) td { background: #f0f2e9; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll.is-scrollable::before { content: "Scroll to explore the table →"; display: block; position: sticky; left: 0; width: fit-content; padding: .35rem .7rem; font-size: .7rem; color: var(--muted); }
.article-support { max-width: 100%; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px dashed #acbba4; }
.article-support h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.source-list { padding-left: 1.2rem; font-size: .88rem; }
.source-list li + li { margin-top: .8rem; }
.source-tier { display: inline-block; padding: .1rem .35rem; margin-left: .3rem; border: 1px solid var(--line); font-size: .65rem; color: var(--muted); text-transform: capitalize; border-radius: .2rem; }
.related-content ul { list-style: none; margin: 0; padding: 0; }
.related-content li + li { border-top: 1px solid var(--line); }
.related-content a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; text-decoration: none; font-size: .9rem; }
.related-content a:hover { text-decoration: underline; }
.article-return { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); background: var(--accent-soft); padding: 1.2rem; margin-top: 2rem; border-radius: .4rem; font-size: .75rem; text-decoration: none; }
.article-return strong { display: block; font-size: .9rem; }
.term-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.term-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); border-radius: .4rem; }
.term-list a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.term-list span { font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.site-footer { background: var(--accent-dark); color: #fcf7e9; padding-block: 3.5rem 1.5rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem 5rem; }
.footer-title { color: #fff8e9; font-family: Georgia, serif; font-size: 1.8rem; text-decoration: none; }
.footer-title:hover { color: #e9c9a9; }
.footer-stitch { color: #d8b392; margin-left: .5rem; }
.footer-about p { max-width: 54ch; color: #cad7cb; font-size: .86rem; }
.footer-domain { color: #cad7cb; font-size: .72rem; letter-spacing: .06em; }
.site-footer h2 { margin: .3rem 0 1rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: #e4e8d8; font-size: .8rem; text-decoration: none; }
.footer-links a:hover { color: #f0bd96; text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid #507066; color: #cad7cb; font-size: .72rem; }
.footer-copyright a { color: #e4e8d8; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 64rem) {
  .header-note { display: none; }
  .hero { gap: 1rem; }
  .hero h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 14rem; gap: 2rem; }
  .category-card, .article-card, .search-result-card { padding: 1.25rem; }
}
@media (max-width: 60rem) {
  .header-inner { min-height: 5rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .primary-navigation ul { display: grid; grid-template-columns: 1fr 1fr; padding-block: .5rem; gap: 0 1rem; }
  .primary-navigation a { padding-inline: .5rem; min-height: 44px; }
  .js .primary-navigation { display: none; }
  .js .primary-navigation.is-open { display: block; }
  .category-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { display: flex; flex-direction: column; gap: 1.8rem; }
  .article-sidebar { position: static; width: 100%; }
  .article-toc { max-height: none; }
  .article-toc nav { max-height: 18rem; overflow-y: auto; }
  .article-header { margin-block: 2rem; }
}
@media (max-width: 48rem) {
  .header-inner, .primary-navigation ul, .hero, .section-block, .page-shell, .footer-inner, .search-inner { width: min(calc(100% - 2.5rem), var(--max-width)); }
  .header-inner { gap: .75rem; }
  .brand-caption { font-size: .56rem; }
  .header-search { padding-inline: .65rem; }
  .search-word { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2rem; gap: 1.5rem; }
  .hero-copy { max-width: 38rem; }
  .hero h1 { font-size: clamp(2.65rem, 7.5vw, 3.7rem); }
  .hero-visual { width: min(100%, 27rem); margin: 0 auto; }
  .section-block { padding-block: 2.5rem; }
  .section-heading-row { align-items: start; flex-direction: column; gap: .6rem; }
  .section-aside { max-width: none; }
  .search-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .search-input-wrap { grid-column: 1 / -1; }
  .search-controls input, .collection-controls input, select { font-size: 1rem; }
  .search-section { padding-block: 2rem; }
  .category-header { padding: 1.5rem; }
  .category-header .topic-icon { width: 3rem; height: 3rem; }
  .compact-block { width: 100%; padding: 0; }
  .reference-notes { padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 36rem) {
  .header-inner, .primary-navigation ul, .hero, .section-block, .page-shell, .footer-inner, .search-inner { width: calc(100% - 2rem); }
  .site-brand { gap: .45rem; font-size: 1.08rem; }
  .brand-mark { width: 2.1rem; height: 2.35rem; }
  .brand-mark .icon { width: 1.6rem; height: 1.6rem; }
  .brand-caption { display: none; }
  .header-inner { gap: .4rem; }
  .header-actions { gap: .25rem; }
  .menu-toggle > span { display: none; }
  .header-search { border: 0; padding: .5rem; }
  .header-search > span { display: none; }
  .header-search { width: 44px; justify-content: center; }
  .menu-toggle { padding: .45rem .5rem; font-size: .75rem; }
  .hero-actions { gap: .6rem 1rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.65rem); }
  .hero-visual { max-width: 16rem; }
  .hero-summary { font-size: 1rem; }
  .category-grid, .article-grid, .term-list { grid-template-columns: 1fr; }
  .category-card { padding: 1.4rem; }
  .category-card-top { margin-bottom: .8rem; }
  .category-card h3 { max-width: 25ch; }
  .category-card > p { margin-bottom: .8rem; }
  .category-card .text-link { padding-top: .5rem; }
  .category-header { padding: 1.2rem; }
  .category-header .topic-icon { float: none; margin: 0 0 1rem; }
  .page-header h1 { font-size: 2.35rem; }
  .collection-heading { align-items: start; }
  .collection-heading h2 { font-size: 1.6rem; }
  .collection-controls > div:first-child { flex-basis: 100%; }
  .collection-controls > div { flex-basis: 8rem; }
  .collection-controls { padding: .8rem; }
  .compact-block { width: 100%; padding: 0; }
  .article-header h1 { font-size: 2.15rem; }
  .article-description { font-size: 1rem; }
  .article-meta { gap: .3rem .75rem; }
  .article-toc a { min-height: 44px; padding-block: .65rem; }
  .prose { font-size: 1rem; line-height: 1.8; }
  .reference-notes summary span { display: block; margin: .3rem 0 0; }
  .footer-copyright a { display: flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .article-sidebar, .article-return, .heading-anchor, .skip-link { display: none; }
  .article-layout { display: block; }
  .page-shell, .prose { width: 100%; max-width: none; }
  .table-scroll { overflow: visible; }
  body { background: white; color: black; }
}
