:root {
  color-scheme: light;
  --pine: #18302d;
  --pine-deep: #102320;
  --pine-soft: #284541;
  --gold: #7d5726;
  --gold-light: #d4b47c;
  --paper: #f6f1e6;
  --paper-deep: #ebe3d4;
  --sheet: #fffdf7;
  --ink: #242c29;
  --muted: #64706c;
  --rule: #d9cbb8;
  --focus: #a66328;
  --shadow: 0 20px 60px rgba(23, 30, 26, .17);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #172321;
  --paper-deep: #192a27;
  --sheet: #202d29;
  --ink: #eee9da;
  --muted: #adb9b0;
  --rule: #4c5c53;
  --focus: #e6ba75;
  --gold: #d4ad73;
  --gold-light: #dbbb83;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; padding-top: 72px; background: var(--paper); color: var(--ink); min-width: 0; overflow-x: clip; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: #dec28c; color: #172321; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 12px; background: var(--sheet); color: var(--ink); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .17em; font-size: .7rem; line-height: 1.5; font-weight: 750; }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(18px, 3vw, 44px); background: var(--pine-deep); color: #f5f1e6; border-bottom: 1px solid rgba(238,218,174,.2); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold-light); font-size: 24px; line-height: 1; }
.brand strong { display: block; font: 600 1.25rem/1.05 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.brand small { display: block; color: #c1c7bd; font-size: .62rem; text-transform: uppercase; letter-spacing: .13em; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.top-search { display: flex; align-items: center; gap: 10px; min-width: 230px; height: 42px; padding: 0 12px; border: 1px solid rgba(233,219,186,.27); background: rgba(255,255,255,.07); color: #f8f6ee; border-radius: 3px; text-align: left; }
.top-search:hover { background: rgba(255,255,255,.14); }
.top-search > span:first-child { font-size: 1.5rem; line-height: 1; }
.top-search kbd { margin-left: auto; border: 1px solid rgba(233,219,186,.28); border-radius: 2px; padding: 0 5px; color: #cfd4c7; font-size: .77rem; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.45rem; line-height: 1; }
.icon-button:hover { border-color: var(--gold); color: var(--gold); }
.theme-button, .mobile-menu { color: #f5f1e6; border-color: rgba(233,219,186,.27); }
.mobile-menu { display: none; }
.site-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); min-height: calc(100vh - 72px); }
.sidebar { background: var(--pine); color: #e9ebdf; min-width: 0; }
.sidebar-inner { position: sticky; top: 72px; max-height: calc(100vh - 72px); overflow-y: auto; padding: 27px 19px 35px 27px; scrollbar-width: thin; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; color: var(--gold-light); padding: 0 10px 15px; }
.sidebar-close { display: none; }
.sidebar nav { padding-bottom: 18px; }
.sidebar a { text-decoration: none; }
.nav-home { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 15px; border-bottom: 1px solid rgba(234,222,197,.18); font: 600 1rem Georgia, serif; }
.nav-home span { color: var(--gold-light); }
.nav-chapter { display: block; margin-top: 4px; }
.nav-chapter summary { display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 7px 5px; list-style: none; cursor: pointer; }
.nav-chapter summary::-webkit-details-marker { display: none; }
.nav-chapter summary:hover { background: rgba(255,255,255,.055); }
.nav-chapter summary:focus-visible { outline: 3px solid var(--gold-light); }
.nav-chapter .nav-chevron { margin-left: auto; color: var(--gold-light); transform: rotate(-90deg); transition: transform .2s; }
.nav-chapter[open] .nav-chevron { transform: rotate(0deg); }
.nav-number { padding-top: 3px; color: var(--gold-light); font-size: .71rem; font-weight: 750; letter-spacing: .08em; }
.nav-chapter-title { display: block; flex: 1; min-width: 0; font: 600 .96rem/1.25 Georgia, "Noto Serif", serif; }
.nav-chapter-title:hover, .sidebar a:hover { color: var(--gold-light); }
.nav-chapter ul { list-style: none; margin: 0 0 9px 32px; padding: 0; border-left: 1px solid rgba(228,225,208,.16); }
.nav-chapter li a { display: block; padding: 6px 6px 6px 13px; margin-left: -1px; border-left: 2px solid transparent; font-size: .78rem; line-height: 1.35; color: #cbd5cc; }
.nav-chapter li a.active, .nav-chapter li a[aria-current] { color: #f5e0ad; border-left-color: var(--gold-light); background: rgba(255,255,255,.06); }
.nav-glossary { margin-top: 24px; border-top: 1px solid rgba(234,222,197,.18); }
.sidebar-foot { margin-top: 30px; padding: 17px 10px 0; border-top: 1px solid rgba(234,222,197,.18); font-size: .74rem; color: #cbd5cc; }
.sidebar-foot p { margin: 0 0 7px; }
.sidebar-foot a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.drawer-scrim { display: none; }
main { min-width: 0; }
.hero { position: relative; overflow: hidden; min-height: 390px; display: flex; align-items: center; background: #18302d; color: #fbf8ea; }
.hero-art { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(12,32,29,.96) 0%, rgba(16,39,34,.88) 43%, rgba(11,33,29,.28) 100%), url('assets/cover.webp'); background-position: center, center 44%; background-size: cover; transform: scale(1.01); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-bottom: 4px solid #b58d54; opacity: .8; }
.hero-content { position: relative; z-index: 1; width: min(720px,100%); padding: 47px clamp(22px,6vw,84px) 51px; }
.hero-eyebrow { color: #e3c58c; }
h1,h2,h3,h4,p { overflow-wrap: break-word; }
.hero h1 { margin: 12px 0 13px; max-width: 650px; font: 500 clamp(2.55rem,4.8vw,4.85rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; text-wrap: balance; }
.hero-intro { max-width: 490px; margin: 0; font: 1.1rem/1.55 Georgia, "Noto Serif", serif; color: #f0eee1; }
.hero-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.hero-search { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 0 17px; border: 1px solid #dbc49a; border-radius: 3px; background: #f6eddb; color: #19352f; font-weight: 700; }
.hero-search:hover { background: #fff9eb; }
.hero-search > span:first-child { font-size: 1.6rem; font-weight: 400; }
.hero-search-arrow { margin-left: 11px; color: #795f37; }
.hero-read { font-weight: 650; text-decoration: none; border-bottom: 1px solid #e6c996; padding: 8px 0; }
.hero-read span { margin-left: 8px; color: #e6c996; }
.entryways { display: grid; grid-template-columns: minmax(165px,240px) minmax(0,1fr); gap: clamp(20px,3vw,45px); padding: 34px clamp(22px,5vw,75px) 37px; background: var(--paper-deep); border-bottom: 1px solid var(--rule); }
.entryways-heading .eyebrow { color: var(--gold); }
.entryways h2 { margin: 5px 0 0; font: 500 clamp(1.7rem,2.3vw,2.3rem)/1.12 Georgia, serif; letter-spacing: -.025em; }
.entryways-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
.entryways-links a, .entryways-links button { display: grid; grid-template-columns: 29px minmax(0,1fr) 17px; align-items: center; gap: 8px; min-height: 45px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: 650 .9rem/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; text-decoration: none; }
.entryways-links a:hover, .entryways-links button:hover { color: var(--gold); }
.entryways-count { color: var(--gold); font-size: .68rem; letter-spacing: .07em; }
.reading-shell { width: min(100%, 900px); margin: 0 auto; padding: 0 clamp(22px,5vw,72px); }
.reading-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 38px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.reading-head .eyebrow { color: var(--gold); }
.reading-head > p:last-child { margin: 0; color: var(--muted); font: italic .9rem Georgia, serif; }
.chapter { padding-top: 30px; }
.chapter-heading { display: flex; align-items: flex-start; gap: clamp(15px,3vw,24px); padding: 19px 0 22px; border-bottom: 2px solid var(--ink); }
.chapter-index { flex: 0 0 auto; display: grid; place-items: center; min-width: 58px; min-height: 58px; border: 1px solid var(--gold); color: var(--gold); font: 1.65rem Georgia, serif; }
.chapter-heading .eyebrow { color: var(--gold); margin-top: 3px; }
.chapter-heading h2 { margin: 3px 0 0; font: 500 clamp(2rem,3.3vw,3.2rem)/1.08 Georgia, serif; letter-spacing: -.035em; }
.rule-section { padding: 38px 0 18px; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.rule-section:focus, .term-entry:focus { outline: none; }
.rule-section:target > .section-title-row h3, .term-entry:target h4 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .15em; }
.section-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; color: var(--gold); font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.kicker-rule { height: 1px; min-width: 12px; max-width: 50px; flex: 1; background: var(--rule); }
.source-link { color: var(--muted); font-size: .7rem; font-weight: 650; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.section-title-row { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.section-title-row h3 { margin: 0 0 17px; font: 500 clamp(1.65rem,2.4vw,2.25rem)/1.16 Georgia, serif; letter-spacing: -.025em; }
.section-actions { display: flex; gap: 5px; }
.section-actions .icon-button { width: 36px; height: 36px; font-size: 1.25rem; }
.bookmark-button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.rule-copy { max-width: 70ch; font: 1.075rem/1.68 Georgia, "Noto Serif", "Times New Roman", serif; }
.rule-copy > p { margin: 0 0 1.12em; }
.rule-copy strong, .term-entry strong { font-weight: 700; }
.rule-copy .rule-subheading { margin: 1.5em 0 .45em; font: 700 1.13rem/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.rule-list { margin: .15em 0 1.2em; padding-left: 1.35em; }
.rule-list li { padding-left: .15em; margin: .35em 0; }
.rule-list li::marker { color: var(--gold); }
.term-ref, .concept-ref, .printed-url { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.term-ref:hover, .concept-ref:hover, .printed-url:hover { color: var(--gold); }
.callout { margin: 1.45em 0; padding: 13px 18px 11px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--sheet)); font: .96rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.callout p { margin: 0; }
.rule-figure { margin: 27px 0 32px; }
.figure-zoom { display: block; width: 100%; padding: 10px; border: 1px solid var(--rule); background: var(--sheet); }
.figure-zoom:hover { border-color: var(--gold); }
.figure-zoom img { display: block; width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
.rule-figure figcaption { margin-top: 9px; color: var(--muted); font: .81rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.figure-source { margin-left: 7px; }
.section-step { display: flex; justify-content: space-between; gap: 18px; margin: 32px 0 4px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.section-step a { display: flex; flex-direction: column; max-width: 45%; gap: 4px; text-decoration: none; }
.section-step a:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.section-step span { color: var(--gold); font-size: .67rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.section-step strong { font-size: .85rem; line-height: 1.4; }
.step-next { align-items: flex-end; text-align: right; }
.glossary { margin-top: 52px; padding-bottom: 70px; }
.glossary-intro { max-width: 65ch; font: 1.06rem/1.6 Georgia, serif; }
.alphabet { display: flex; flex-wrap: wrap; gap: 5px; margin: 25px 0 30px; }
.alphabet a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .82rem; }
.alphabet a:hover { border-color: var(--gold); color: var(--gold); }
.glossary-letter { scroll-margin-top: 90px; }
.glossary-letter > h3 { margin: 30px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); color: var(--gold); font: 1.9rem Georgia, serif; }
.term-entry { position: relative; padding: 18px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.glossary-letter-anchor, .term-anchor { display: block; position: relative; top: -86px; width: 1px; height: 1px; }
.term-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.term-heading h3 { margin: 0; font: 700 1.2rem/1.3 Georgia, "Noto Serif", serif; }
.term-entry p { margin: 8px 0; font: 1rem/1.58 Georgia, serif; white-space: pre-line; }
.term-definition-inline { max-width: 70ch; }
.term-tools { display: flex; gap: 15px; margin-top: 5px; }
.text-button { min-height: 32px; padding: 2px 0; border: 0; background: transparent; color: var(--gold); font-size: .72rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--ink); }
.text-button[aria-pressed="true"] { color: var(--ink); }
.glossary-rule:target h3, .glossary-rule:has(.term-anchor:target) h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.same-title .section-title-row { justify-content: flex-end; min-height: 0; margin-bottom: 8px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.term-context { font-size: .75rem; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { margin: 0 auto; padding: 25px clamp(22px,5vw,72px) 55px; max-width: 850px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.footer-rule { color: var(--gold); font-size: 1.4rem; }
.site-footer a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.mobile-bar { display: none; }
.reader-dialog { width: min(680px,calc(100vw - 28px)); max-height: min(86dvh,850px); margin: auto; padding: 0; border: 1px solid var(--rule); border-radius: 5px; box-shadow: var(--shadow); background: var(--sheet); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.reader-dialog::backdrop { background: rgba(10,23,20,.72); backdrop-filter: blur(4px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px 27px 15px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.dialog-head .eyebrow { color: var(--gold); }
.dialog-head h2 { margin: 4px 0 0; font: 500 2rem/1.1 Georgia, serif; }
.dialog-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.dialog-close:hover { color: var(--gold); border-color: var(--gold); }
.search-field { padding: 22px 27px 8px; }
.search-field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .77rem; font-weight: 700; }
.search-input-wrap { display: flex; align-items: center; min-height: 55px; padding: 0 13px; gap: 10px; border: 1px solid var(--gold); background: var(--paper); }
.search-input-wrap > span { font-size: 1.5rem; color: var(--gold); }
.search-input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.05rem; }
.search-input-wrap button { border: 0; background: transparent; color: var(--gold); font-size: .76rem; font-weight: 700; padding: 9px 0 9px 7px; }
.search-status { padding: 0 27px; margin: 8px 0 10px; color: var(--muted); font-size: .8rem; }
.search-results { max-height: min(49dvh,490px); overflow-y: auto; padding: 0 27px 12px; }
.search-result { display: flex; flex-direction: column; gap: 4px; padding: 14px 2px 16px; border-top: 1px solid var(--rule); }
.search-result a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.search-result a:hover strong { color: var(--gold); }
.result-meta { color: var(--gold); font-size: .69rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; }
.search-result strong { font: 700 1.15rem/1.3 Georgia, serif; }
.result-excerpt { color: var(--muted); font: .91rem/1.45 Georgia, serif; }
mark { background: #eacb8e; color: #1c2823; padding: 0 .05em; }
.search-prompt, .search-empty { padding: 18px 0 28px; color: var(--muted); font: .95rem/1.5 Georgia, serif; }
.search-empty strong { display: block; color: var(--ink); font: 700 1.1rem Georgia, serif; }
.search-empty p { margin: 5px 0; }
.dialog-hint { margin: 0; padding: 10px 27px 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .72rem; }
.dialog-hint kbd { border: 1px solid var(--rule); padding: 1px 5px; }
.term-dialog, .saved-dialog { width: min(540px,calc(100vw - 28px)); }
.term-definition { padding: 10px 27px 0; font: 1.08rem/1.65 Georgia, serif; white-space: pre-line; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 12px 27px 27px; }
.dialog-links a { font-size: .83rem; color: var(--gold); font-weight: 700; text-underline-offset: 4px; }
.dialog-links .source-link { align-self: center; }
.figure-dialog { width: min(1100px,calc(100vw - 28px)); }
.figure-tools { display: flex; align-items: center; gap: 13px; padding: 12px 27px 0; color: var(--muted); font-size: .74rem; }
.figure-tools button { min-height: 36px; padding: 4px 12px; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); font-weight: 700; }
.figure-tools span { display: none; }
.figure-dialog.zoomed .figure-tools span { display: inline; }
.figure-dialog > img { display: block; width: auto; max-width: calc(100% - 40px); height: auto; max-height: 68dvh; margin: 20px auto 10px; object-fit: contain; }
.figure-dialog.zoomed > img { width: max(100%,900px); max-width: none; max-height: none; margin: 18px 0 10px; object-fit: unset; }
.figure-dialog > p { margin: 0; padding: 0 27px 10px; font: .95rem/1.5 Georgia, serif; }
.figure-dialog > .source-link { display: inline-block; margin: 0 27px 26px; }
.saved-intro { margin: 18px 27px; color: var(--muted); font-size: .91rem; line-height: 1.5; }
#saved-list { padding: 0 27px 25px; }
.saved-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.saved-link strong { font: 700 1rem Georgia, serif; }
.saved-link span { flex: 0 0 auto; color: var(--gold); font-size: .73rem; }
.saved-link:hover strong { color: var(--gold); }
.saved-empty { padding: 12px 0 25px; font: .95rem/1.5 Georgia, serif; }
.toast { position: fixed; z-index: 300; right: 22px; bottom: 22px; max-width: calc(100vw - 44px); padding: 11px 16px; background: var(--pine); color: #f8f1df; box-shadow: var(--shadow); border: 1px solid var(--gold); border-radius: 3px; font-size: .83rem; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
html:not(.js) [data-open-search], html:not(.js) [data-open-saved], html:not(.js) [data-open-contents], html:not(.js) [data-theme-toggle], html:not(.js) [data-bookmark], html:not(.js) [data-copy] { display: none !important; }
html:not(.js) .sidebar { display: block; }
html:not(.js) .mobile-bar { display: none; }
@media (max-width: 1000px) {
  .site-layout { grid-template-columns: 235px minmax(0,1fr); }
  .sidebar-inner { padding-left: 18px; }
  .entryways { grid-template-columns: 1fr; gap: 13px; }
  .reading-shell { padding-left: clamp(22px,4vw,45px); padding-right: clamp(22px,4vw,45px); }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  body { padding-top: 59px; }
  .topbar { height: 59px; padding: 0 17px; }
  .site-layout { display: block; }
  .sidebar { position: fixed; z-index: 160; top: 0; bottom: 0; left: 0; width: min(84vw,345px); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  html:not(.js) .sidebar { position: static; width: 100%; transform: none; box-shadow: none; }
  html:not(.js) .sidebar-inner { max-height: 285px; }
  .contents-open .sidebar { transform: translateX(0); }
  .sidebar-inner { top: 0; max-height: 100dvh; padding-top: 21px; }
  .sidebar-close { display: grid; color: #f4e8cc; border-color: rgba(240,230,200,.35); }
  .drawer-scrim { display: block; position: fixed; z-index: 150; inset: 0; width: 100%; border: 0; opacity: 0; pointer-events: none; background: rgba(8,24,20,.62); transition: opacity .25s ease; }
  .contents-open .drawer-scrim { opacity: 1; pointer-events: auto; }
  .top-search { min-width: 0; width: 43px; padding: 0; justify-content: center; }
  .top-search span:not(:first-child), .top-search kbd { display: none; }
  .mobile-menu { display: grid; }
  .search-dialog { position: fixed; top: max(8px,env(safe-area-inset-top)); bottom: auto; left: 0; right: 0; margin: 0 auto; max-height: calc(100dvh - 16px); }
  .hero { min-height: 345px; }
  .hero-content { padding: 38px 25px 43px; }
  .hero-art { background-image: linear-gradient(90deg, rgba(12,32,29,.94), rgba(12,32,29,.74) 62%, rgba(12,32,29,.43)), url('assets/cover.webp'); }
  .entryways { padding: 26px 25px 29px; }
  .reading-shell { padding: 0 25px; }
  .mobile-bar { position: fixed; z-index: 110; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,1fr); min-height: 62px; padding-bottom: env(safe-area-inset-bottom); background: var(--pine-deep); border-top: 1px solid rgba(238,218,174,.26); }
  .mobile-bar button, .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; border: 0; background: transparent; color: #f2eede; text-decoration: none; font-size: .64rem; font-weight: 700; }
  .mobile-bar span:first-child { color: var(--gold-light); font-size: 1.2rem; font-weight: 500; line-height: 1; }
  .site-footer { padding-bottom: 95px; }
  .toast { bottom: 79px; }
}
@media (max-width: 480px) {
  .brand strong { font-size: 1.1rem; }
  .brand small { font-size: .56rem; }
  .brand-mark { width: 29px; flex-basis: 29px; height: 29px; font-size: 20px; }
  .topbar-actions { gap: 5px; }
  .topbar .icon-button, .top-search { width: 38px; height: 38px; flex-basis: 38px; }
  .hero { min-height: 310px; }
  .hero-content { padding: 31px 20px 33px; }
  .hero h1 { font-size: clamp(2.35rem,11vw,3.25rem); }
  .hero-intro { font-size: 1rem; }
  .hero-controls { margin-top: 20px; gap: 9px 18px; }
  .hero-search { min-height: 45px; padding: 0 11px; font-size: .9rem; }
  .hero-read { font-size: .85rem; }
  .entryways { padding: 23px 20px 24px; }
  .entryways-links { gap: 0 14px; }
  .entryways-links a, .entryways-links button { grid-template-columns: 21px minmax(0,1fr) 11px; gap: 3px; min-height: 46px; font-size: .79rem; }
  .reading-shell { padding: 0 20px; }
  .reading-head { display: block; }
  .reading-head > p:last-child { margin-top: 4px; }
  .chapter { padding-top: 17px; }
  .chapter-index { min-width: 45px; min-height: 45px; font-size: 1.24rem; }
  .chapter-heading { gap: 13px; }
  .chapter-heading h2 { font-size: 2rem; }
  .rule-section { padding-top: 28px; }
  .section-title-row h3 { font-size: 1.68rem; }
  .section-actions { flex-direction: column; }
  .section-actions .icon-button { min-width: 44px; min-height: 44px; }
  .rule-copy { font-size: 1.025rem; line-height: 1.64; }
  .dialog-head { padding: 17px 18px 12px; }
  .dialog-head h2 { font-size: 1.6rem; }
  .search-field { padding: 17px 18px 8px; }
  .search-status { padding: 0 18px; }
  .search-results { padding-left: 18px; padding-right: 18px; }
  .dialog-hint { padding: 10px 18px 16px; }
  .term-definition { padding-left: 18px; padding-right: 18px; }
  .dialog-links { padding-left: 18px; padding-right: 18px; }
  .saved-intro { margin-left: 18px; margin-right: 18px; }
  #saved-list { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 340px) {
  .hero-search { font-size: .78rem; }
  .hero-search-arrow { margin-left: 0; }
  .hero-read { font-size: .78rem; }
  .section-kicker { font-size: .61rem; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
