:root {
  color-scheme: light;
  --paper: #f7f6ee;
  --paper-deep: #efeee3;
  --pine: #183d36;
  --pine-soft: #38564c;
  --ink: #293b34;
  --muted: #59655b;
  --line: #d4d7c8;
  --ochre: #a37c32;
  --focus: #755210;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--sans); }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--focus); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 1px; }
img { display: block; max-width: 100%; height: auto; }
button, input, summary { font: inherit; }
::selection { background: #dce2ca; color: var(--pine); }
.skip-link { position: absolute; top: .75rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--pine); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: var(--paper); }
.site-header { border-top: 5px solid var(--pine); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1480px; margin: auto; padding: 1.25rem 2.75rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; font-weight: 650; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.025em; }
.wordmark-symbol { flex: 0 0 28px; width: 28px; height: 31px; border: 1px solid var(--pine); border-left: 5px solid var(--pine); position: relative; }
.wordmark-symbol::before, .wordmark-symbol::after { content: ""; position: absolute; left: 4px; right: 4px; border-top: 1px solid var(--pine); }
.wordmark-symbol::before { top: 9px; }
.wordmark-symbol::after { top: 17px; }
.top-nav { display: flex; align-items: center; gap: 1.5rem; font-size: .84rem; }
.top-nav a { text-decoration: none; padding: .3rem 0; }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }
.mobile-chapters { display: none; }
.page-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr) 168px; gap: 3.25rem; max-width: 1480px; margin: auto; padding: 3.25rem 2.75rem 5rem; align-items: start; }
.chapter-rail, .page-contents { font-size: .82rem; line-height: 1.45; }
.chapter-rail { padding-right: 1.25rem; border-right: 1px solid var(--line); }
.rail-heading, .contents-heading, .eyebrow, .section-label { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: var(--muted); }
.rail-heading { margin: 0 0 1.5rem; }
.nav-group + .nav-group { margin-top: 1.75rem; }
.nav-group-title { margin: 0 0 .55rem; color: var(--pine-soft); font-size: .7rem; font-weight: 700; }
.chapter-nav ul, .page-contents ol { list-style: none; padding: 0; margin: 0; }
.chapter-nav li + li { margin-top: .2rem; }
.chapter-nav a { display: block; border-left: 2px solid transparent; padding: .34rem .5rem .34rem .7rem; margin-left: -.7rem; text-decoration: none; color: var(--muted); }
.chapter-nav a:hover { color: var(--pine); background: var(--paper-deep); }
.chapter-nav a[aria-current="page"] { color: var(--pine); background: #e8ecde; border-left-color: var(--ochre); font-weight: 650; }
.main-content { min-width: 0; }
.article { max-width: 72ch; margin: auto; }
.eyebrow { display: flex; gap: .75rem; align-items: center; margin: 0 0 1.3rem; color: var(--pine-soft); }
.eyebrow::before { content: ""; width: 1.75rem; border-top: 2px solid var(--ochre); }
h1, h2, h3 { color: var(--pine); font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.45rem, 3.4vw, 3.6rem); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 1.4rem; text-wrap: balance; }
.lead { color: var(--pine-soft); font-size: 1.13rem; line-height: 1.65; margin: 0 0 1.6rem; }
.article-header { margin-bottom: 2.25rem; }
.article-header::after { content: ""; display: block; width: 4rem; margin-top: 1.7rem; border-top: 1px solid var(--ochre); }
.article-figure { margin: 0 0 2.6rem; }
.article-figure img { width: 100%; border: 1px solid #e0e0d1; }
.article-figure figcaption { font-size: .74rem; line-height: 1.5; color: var(--muted); padding: .55rem 0 0; }
.article-body { font-size: 1.015rem; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(1.65rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -.02em; margin: 2.8rem 0 1rem; border-top: 1px solid var(--line); padding-top: 1.65rem; scroll-margin-top: 2rem; text-wrap: balance; }
.article-body h3 { font-size: 1.28rem; line-height: 1.35; margin: 1.8rem 0 .7rem; }
.article-body p { margin: 0 0 1.15rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem; padding-left: 1.4rem; }
.article-body li { padding-left: .2rem; margin: .55rem 0; }
.article-body li::marker { color: var(--pine-soft); }
.article-body strong { font-weight: 650; }
.article-body blockquote, .article-body .note { border-left: 2px solid var(--ochre); background: var(--paper-deep); margin: 1.5rem 0; padding: 1.2rem 1.4rem; }
.article-body blockquote p:last-child, .article-body .note p:last-child { margin-bottom: 0; }
.article-body table { border-collapse: collapse; table-layout: fixed; width: 100%; font-size: .92rem; margin: 1.75rem 0; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: .8rem; overflow-wrap: anywhere; }
.article-body th { color: var(--pine); background: var(--paper-deep); }
.article-body a { overflow-wrap: anywhere; }
.article-body code { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.page-contents { border-left: 1px solid var(--line); padding-left: 1.1rem; position: sticky; top: 2rem; }
.contents-heading { margin: 0 0 1rem; }
.page-contents li + li { margin-top: .85rem; }
.page-contents a { text-decoration: none; color: var(--muted); font-size: .77rem; }
.page-contents a:hover { color: var(--pine); text-decoration: underline; }
.page-contents .back-top { display: inline-block; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .75rem; }
.article-body .route-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.6rem; }
.article-body .route-list li { padding: .9rem 0; margin: 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.article-body .route-list strong { display: block; color: var(--pine); margin-bottom: .35rem; }
.related-reading { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.related-reading h2 { margin: 0 0 1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.related-reading ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; }
.related-reading a { font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-inner { max-width: 1480px; margin: auto; padding: 2.4rem 2.75rem; display: grid; grid-template-columns: 208px minmax(0, 72ch); column-gap: 3.25rem; }
.footer-label { color: var(--pine); font-size: .8rem; font-weight: 650; line-height: 1.5; margin: 0 0 .5rem; }
.footer-scope { margin: 0; font-family: var(--mono); font-size: .61rem; line-height: 1.7; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.non-affiliation { margin: 0; font-size: .79rem; line-height: 1.7; color: var(--pine-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1rem; font-size: .73rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.error-code { font-family: var(--mono); color: var(--ochre); font-size: 4rem; line-height: 1; margin: 0 0 1.25rem; }

@media (min-width: 1440px) {
  .page-layout { gap: 4rem; }
}

@media (max-width: 1199px) {
  .page-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 2.5rem; }
  .page-contents { display: none; }
  .footer-inner { grid-template-columns: 185px minmax(0, 72ch); column-gap: 2.5rem; }
}

@media (max-width: 799px) {
  .header-inner { padding: 1.15rem 1.5rem; }
  .top-nav { gap: 1rem; font-size: .78rem; }
  .wordmark { font-size: .95rem; max-width: 17rem; }
  .mobile-chapters { display: block; border-top: 1px solid var(--line); padding: 0 1.5rem; }
  .mobile-chapters summary { color: var(--pine); font-size: .83rem; padding: .7rem 0; cursor: pointer; }
  .mobile-chapters[open] summary { border-bottom: 1px solid var(--line); }
  .mobile-chapters .chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.2rem 0 1.6rem; }
  .mobile-chapters .nav-group { margin: 0; }
  .mobile-chapters .chapter-nav a { font-size: .83rem; }
  .chapter-rail { display: none; }
  .page-layout { display: block; padding: 2.6rem 1.5rem 3.5rem; }
  h1 { font-size: clamp(2.35rem, 6.7vw, 3.4rem); }
  .lead { font-size: 1.08rem; }
  .article-header { margin-bottom: 1.9rem; }
  .article-figure { margin-bottom: 2rem; }
  .article-body h2 { margin-top: 2.2rem; padding-top: 1.4rem; }
  .footer-inner { display: block; padding: 2rem 1.5rem; }
  .footer-scope { margin-bottom: 1.4rem; }
}

@media (max-width: 479px) {
  .header-inner { padding: 1rem 1.1rem; align-items: flex-start; gap: .6rem; }
  .wordmark { font-size: .92rem; gap: .6rem; max-width: 12rem; }
  .wordmark-symbol { flex-basis: 22px; width: 22px; height: 28px; }
  .top-nav { align-items: flex-end; font-size: .78rem; white-space: nowrap; }
  .top-nav a:not(:last-child) { display: none; }
  .mobile-chapters { padding: 0 1.1rem; }
  .mobile-chapters .chapter-nav { gap: 1.2rem 1rem; }
  .page-layout { padding: 2.1rem 1.1rem 3rem; }
  h1 { font-size: 2.35rem; }
  .eyebrow { font-size: .59rem; letter-spacing: .09em; }
  .article-body { font-size: .975rem; }
  .article-body .route-list { grid-template-columns: 1fr; }
  .footer-inner { padding: 1.8rem 1.1rem; }
}

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

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .chapter-rail, .page-contents, .related-reading, .skip-link, .footer-bottom { display: none; }
  .page-layout { display: block; padding: 0; }
  .article { max-width: none; }
  .article-header { margin-bottom: 1rem; }
  h1 { font-size: 26pt; }
  .article-body h2 { font-size: 18pt; break-after: avoid; }
  .article-body h3 { break-after: avoid; }
  .article-figure { max-width: 11cm; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .site-footer { background: #fff; margin-top: 2rem; }
  .footer-inner { display: block; padding: 1rem 0 0; }
  .footer-label, .footer-scope { display: none; }
  .non-affiliation { color: #000; font-size: 9pt; }
}
