@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-regular.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17342c;
  --muted: #4f6056;
  --pine: #1b4739;
  --moss: #46634c;
  --paper: #fbfaf5;
  --white: #fffefa;
  --wash: #eeefe4;
  --wash-strong: #e6ebdd;
  --edge: #d0d7c9;
  --sand: #eee2cf;
  --light-ink: #dce7dc;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --page: 1240px;
  --gutter: clamp(1.15rem, 4.5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; scroll-padding-top: 1.1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.62 var(--body); }
img { display: block; max-width: 100%; }
a { color: var(--pine); text-underline-offset: .19em; text-decoration-thickness: .07em; }
a:hover { color: var(--moss); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button[hidden], [hidden] { display: none !important; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid #a65d2d; outline-offset: 4px; }
::selection { background: #d9e4c9; color: var(--ink); }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.01; }
figure { margin: 0; }
.wrap { width: min(var(--page), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { z-index: 20; position: absolute; top: .7rem; left: var(--gutter); padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.arrow { font: 1.22em/1 var(--body); font-weight: 500; }
.arrow-diagonal { position: relative; flex: none; width: .77rem; height: .77rem; }
.arrow-diagonal::before, .arrow-diagonal::after { content: ''; position: absolute; }
.arrow-diagonal::before { left: .05rem; bottom: .1rem; width: .84rem; height: 1.5px; background: currentColor; transform: rotate(-45deg); transform-origin: left center; }
.arrow-diagonal::after { right: .05rem; top: .04rem; width: .47rem; height: .47rem; border-top: 1.5px solid; border-right: 1.5px solid; }
.chevron { display: inline-block; width: .46rem; height: .46rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-.16em) rotate(45deg); }
details[open] > summary .chevron { transform: translateY(.13em) rotate(225deg); }

.site-header { position: relative; z-index: 5; background: var(--white); border-bottom: 1px solid var(--edge); }
.topbar { min-height: 4.6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.55rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; justify-self: start; }
.brand:hover { color: inherit; }
.brand-symbol { flex: 0 0 auto; width: 2rem; height: 2rem; }
.brand-name { font: 400 1.95rem/.9 var(--display); white-space: nowrap; }
.brand-name em { font-weight: 400; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.8rem, 2.1vw, 1.9rem); }
.nav > a, .nav summary { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; color: var(--ink); font-size: .89rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav > a:hover, .nav summary:hover, .nav > a[aria-current='page'] { text-decoration: underline; }
.paths-nav > summary { width: max-content; }
.paths-panel { position: absolute; z-index: 6; left: 50%; top: calc(100% - 1px); transform: translateX(-50%); width: min(52rem, calc(100% - 2 * var(--gutter))); padding: 1.5rem; background: var(--white); border: 1px solid var(--edge); box-shadow: 0 16px 48px #162e2122; border-radius: 0 0 .8rem .8rem; }
.menu-groups { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
.menu-group h2 { font: 700 .79rem/1.3 var(--body); color: var(--muted); margin: 0 0 .5rem; }
.menu-group ul { padding: 0; margin: 0; list-style: none; }
.menu-group a { display: block; min-height: 2.3rem; padding: .31rem .1rem; font-size: .91rem; text-decoration: none; }
.menu-group a:hover, .menu-group a[aria-current='page'] { text-decoration: underline; }
.menu-compare { display: flex; align-items: center; gap: .7rem; border-top: 1px solid var(--edge); margin-top: .85rem; padding-top: .8rem; font-weight: 650; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; }
.edition { border-left: 1px solid var(--edge); padding-left: .8rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.search-open, .menu-toggle { display: inline-flex; min-height: 2.7rem; align-items: center; gap: .55rem; border: 0; padding: .18rem .2rem; background: transparent; color: var(--ink); font-weight: 650; font-size: .88rem; }
.search-symbol { display: inline-block; position: relative; width: .88rem; height: .88rem; border: 1.5px solid currentColor; border-radius: 50%; margin-right: .15rem; }
.search-symbol::after { content: ''; position: absolute; height: 1.5px; width: .36rem; background: currentColor; left: .6rem; top: .7rem; transform: rotate(45deg); }
.menu-toggle { display: none; }

.home-hero { background: var(--wash); padding: clamp(2.65rem, 6.4vw, 6rem) 0 clamp(2.2rem, 4.6vw, 4.2rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(2rem, 5vw, 5.3rem); }
.hero-copy { padding-bottom: .9rem; }
.hero-copy h1 { margin: 0; font-size: clamp(4.05rem, 7.4vw, 7.45rem); letter-spacing: -.027em; line-height: .91; }
.hero-copy h1 em { color: var(--moss); white-space: nowrap; }
.hero-copy .deck { max-width: 34rem; color: var(--muted); margin: 1.75rem 0 1.45rem; font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.64; }
.hero-ctas { display: flex; gap: .85rem 1.25rem; align-items: center; flex-wrap: wrap; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; text-decoration: none; font-weight: 650; }
.button { padding: .75rem 1.15rem; min-height: 3.05rem; border-radius: .38rem; color: var(--white); background: var(--pine); font-size: .91rem; border: 1px solid var(--pine); }
.button:hover { color: var(--white); background: #14352b; }
.text-link { min-height: 2.65rem; color: var(--pine); text-align: left; }
.text-link:hover { text-decoration: underline; }
.photo { min-width: 0; }
.photo img { width: 100%; height: auto; object-fit: cover; background: #dfe6d9; }
.photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; padding-top: .52rem; font-size: .76rem; line-height: 1.4; font-weight: 500; color: var(--muted); }
.photo figcaption a { color: inherit; }
.hero-photo img { aspect-ratio: 1.22; object-position: var(--focus, 50% 50%); border-radius: .7rem; }

.profile-section { padding: clamp(2.1rem, 5vw, 4.6rem) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1.5rem; margin-bottom: 1.3rem; }
.section-head h2 { margin: 0; font-size: clamp(2.55rem, 4.5vw, 4.25rem); letter-spacing: -.012em; }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: start; }
.profile { min-width: 0; border: 1px solid var(--edge); background: var(--white); border-radius: .52rem; }
.profile[open] { border-color: #90a78d; background: #f4f7ee; }
.profile summary { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 6.15rem; gap: .5rem; padding: .9rem 1.15rem; color: var(--ink); font-weight: 650; line-height: 1.45; }
.profile summary:hover { color: var(--pine); background: var(--wash); border-radius: .5rem; }
.profile .chevron { margin-right: .15rem; }
.profile div { border-top: 1px solid var(--edge); margin: 0 1.15rem; padding: .75rem 0 1rem; }
.profile p { margin: 0 0 .5rem; font-size: .93rem; color: var(--muted); }
.profile div a { display: inline-block; margin: .24rem .8rem .15rem 0; font-size: .89rem; font-weight: 650; }

.featured { padding: clamp(2.55rem, 6vw, 5.4rem) 0; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.5vw, 2.1rem); }
.story { display: grid; align-content: start; width: 100%; color: var(--ink); text-decoration: none; }
.story:hover { color: var(--ink); }
.story .photo img { aspect-ratio: 1.62; object-position: var(--focus, 50% 50%); border-radius: .4rem; }
.story .story-title { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; font-family: var(--display); font-size: clamp(1.8rem, 2.6vw, 2.7rem); line-height: .98; padding: .75rem 0 .4rem; }
.story .story-title .arrow { font-size: 1.05rem; margin-right: .15rem; }
.story:hover .story-title span:first-child { text-decoration: underline; }
.story .story-note { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.reading-feature { background: var(--pine); color: var(--white); padding: clamp(2.2rem, 5.4vw, 4.85rem) 0; }
.reading-grid { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: clamp(1.7rem, 5vw, 5rem); }
.reading-grid .photo img { aspect-ratio: 1.24; object-position: var(--focus, 50% 50%); border-radius: .52rem; }
.reading-grid h2 { font-size: clamp(2.9rem, 5vw, 5rem); color: var(--white); margin: 0 0 .85rem; }
.reading-grid p { color: var(--light-ink); max-width: 34rem; margin: 0 0 1.2rem; }
.reading-grid figcaption, .reading-grid .text-link, .reading-grid a:hover { color: var(--white); }
.home-essay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 860px) minmax(0, 1fr); padding-block: 1.55rem clamp(3rem, 7vw, 6rem); }
.home-essay .prose { grid-column: 2; }

.article-mast { padding: clamp(1.1rem, 3.8vw, 2.75rem) 0 clamp(2.4rem, 5vw, 4.4rem); background: var(--wash); border-bottom: 1px solid var(--edge); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: baseline; font-size: .79rem; margin-bottom: clamp(1.1rem, 3vw, 2.25rem); color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-hero { display: grid; grid-template-columns: 1fr; gap: clamp(1.45rem, 4.3vw, 4.4rem); align-items: center; }
.article-hero.with-photo { grid-template-columns: 1.15fr .85fr; }
.article-hero h1 { margin: 0; max-width: 62rem; font-size: clamp(3.5rem, 6.7vw, 6.4rem); line-height: .9; letter-spacing: -.022em; }
.article-hero.with-photo h1 { max-width: 48rem; font-size: clamp(3.35rem, 5.4vw, 5.6rem); }
.article-hero .deck { color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.27rem); max-width: 48rem; margin: 1.15rem 0 0; line-height: 1.61; }
.article-hero .photo img { aspect-ratio: 1.34; object-position: var(--focus, 50% 50%); border-radius: .58rem; }
.guide-layout { display: grid; grid-template-columns: minmax(10rem, .82fr) minmax(0, 3.12fr); gap: clamp(2rem, 5.7vw, 5rem); padding-block: clamp(1.6rem, 4vw, 3.75rem) clamp(2.4rem, 6vw, 5.4rem); }
.guide-layout.single { display: block; max-width: 52.5rem; }
.toc { align-self: start; position: sticky; inset-block-start: 1.2rem; min-width: 0; }
.toc h2, .toc-mobile summary { margin: 0 0 .55rem; font: 700 .85rem/1.4 var(--body); }
.toc ul, .toc-mobile ul { list-style: none; padding: 0; margin: 0; }
.toc ul { border-left: 1px solid var(--edge); max-height: calc(100vh - 6.5rem); overflow: auto; }
.toc a, .toc-mobile a { display: block; padding: .39rem .65rem; color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.39; }
.toc a:hover, .toc-mobile a:hover { text-decoration: underline; color: var(--ink); }
.toc a[aria-current='location'] { color: var(--pine); font-weight: 700; background: var(--wash); }
.toc-mobile { display: none; }
.prose { max-width: 62rem; min-width: 0; font-size: clamp(1.014rem, 1.4vw, 1.115rem); line-height: 1.75; }
.prose p { margin: 0 0 1.28em; }
.prose p.lead { color: var(--ink); font-size: clamp(1.15rem, 1.85vw, 1.38rem); line-height: 1.64; }
.prose h2 { font-size: clamp(2.13rem, 4.45vw, 3.55rem); margin: 1.15em 0 .28em; letter-spacing: -.012em; }
.prose h3 { font-size: 1.24em; line-height: 1.35; margin: 1.5em 0 .42em; }
.prose h4 { font-size: 1.08em; margin: 1.4em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose strong { font-weight: 700; }
.prose a { overflow-wrap: anywhere; }
.prose li { margin: 0 0 .65em; padding-left: .14em; }
.prose ul, .prose ol { padding-left: 1.38em; margin: 0 0 1.35em; }
.prose li > p { margin: 0 0 .5em; }
.prose hr { border: 0; border-top: 1px solid var(--edge); margin: 1.8em 0; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--edge); border-radius: .55rem; margin: 1.25rem 0 1.6rem; background: var(--white); }
.table-wrap table { width: 100%; min-width: min(35rem, 100%); border-collapse: collapse; font-size: .92em; line-height: 1.58; }
.table-wrap th, .table-wrap td { padding: .66rem .9rem; text-align: left; vertical-align: top; }
.table-wrap th { color: var(--ink); background: var(--wash-strong); font-weight: 700; }
.table-wrap tbody tr:nth-child(even) { background: #f7f7ee; }
.table-wrap tr + tr td { border-top: 1px solid var(--edge); }
.table-wrap th:nth-child(n+2) { min-width: 7.5rem; }
.table-wrap td:first-child { min-width: 8rem; }
.table-wrap strong { overflow-wrap: break-word; }
.sources { padding: 1.25rem 1.45rem 1.1rem; margin: 2.15rem 0 0; background: var(--wash); border: 1px solid var(--edge); border-radius: .6rem; font-size: .9em; }
.sources h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 .36em; }
.sources ul { margin-bottom: 0; }
.image-credits { margin-top: 2rem; border-top: 1px solid var(--edge); padding-top: .4rem; }
.image-credits ul { font-size: .86em; }
.guide-next { display: flex; gap: .6rem 1.25rem; flex-wrap: wrap; justify-content: space-between; max-width: 62rem; margin: 2.2rem 0 0; border-top: 1px solid var(--edge); padding-top: .75rem; font-size: .91rem; }

.footer { padding: clamp(2.2rem, 6vw, 4.1rem) 0 1.5rem; color: var(--light-ink); background: #142f27; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 1rem 2.1rem; }
.footer .brand { color: var(--white); }
.footer .brand-symbol { background: var(--sand); color: var(--ink); }
.footer p { margin: .8rem 0 0; color: #c7d6ca; font-size: .88rem; }
.footer h2 { color: var(--white); font: 700 .86rem/1.4 var(--body); margin: 0 0 .58rem; }
.footer nav a { display: block; color: var(--light-ink); width: fit-content; margin: .12rem 0 .35rem; font-size: .89rem; text-decoration: none; }
.footer nav a:hover { color: var(--white); text-decoration: underline; }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.45rem; margin-top: 1.55rem; padding-top: 1.18rem; border-top: 1px solid #64776a; font-size: .82rem; }
.footer-end a { color: var(--light-ink); }

.search-dialog { width: min(39rem, calc(100vw - 2rem)); max-height: min(85vh, 48rem); border: 1px solid var(--edge); border-radius: .68rem; padding: 1.4rem 1.45rem; background: var(--white); color: var(--ink); box-shadow: 0 18px 85px #16251b47; }
.search-dialog::backdrop { background: #0f201a83; }
.dialog-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dialog-top h2 { font-size: 2.7rem; margin: 0 0 .6rem; }
.dialog-top button { background: none; border: 0; padding: .1rem .5rem; min-height: 2.45rem; font-size: 1.55rem; }
.search-dialog label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .33rem; }
.search-dialog input { width: 100%; padding: .72rem .8rem; background: var(--white); border: 1px solid #93a092; border-radius: .36rem; color: var(--ink); }
.search-status { color: var(--muted); font-size: .83rem; margin: .62rem 0 .23rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { border-top: 1px solid var(--edge); }
.search-results a { display: block; padding: .5rem .15rem; font-weight: 650; text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results a small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.46; }

@media (max-width: 1020px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: .95rem; }
  .nav { gap: .82rem; }
  .nav > a, .nav summary { font-size: .83rem; }
  .edition { display: none; }
}
@media (max-width: 840px) {
  .topbar { grid-template-columns: 1fr auto; gap: 0 .75rem; min-height: 3.9rem; }
  .brand { min-height: 3.9rem; }
  .brand-symbol { width: 1.85rem; height: 1.85rem; }
  .brand-name { font-size: 1.82rem; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .nav { grid-column: 1 / -1; grid-row: 2; padding-bottom: .52rem; border-top: 1px solid var(--edge); gap: .15rem .8rem; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav[data-collapsed='true'] { display: none; }
  .js .nav { display: grid; }
  .nav > a, .nav summary { font-size: .93rem; }
  .paths-panel { position: static; width: auto; transform: none; margin-top: .25rem; padding: .85rem; border-radius: .45rem; box-shadow: none; background: var(--wash); }
  .menu-groups { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .menu-group a { font-size: .85rem; }
  .hero-grid, .reading-grid, .article-hero.with-photo { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .hero-copy h1 { font-size: clamp(3.7rem, 11vw, 6.4rem); }
  .hero-copy .deck { margin: 1.1rem 0 1rem; }
  .hero-photo img { aspect-ratio: 1.42; }
  .profiles { grid-template-columns: 1fr; gap: .6rem; }
  .profile summary { min-height: 3.8rem; }
  .article-hero h1, .article-hero.with-photo h1 { font-size: clamp(3.05rem, 9.6vw, 5.15rem); }
  .article-hero .photo img { aspect-ratio: 1.55; }
  .guide-layout { display: block; }
  .toc { display: none; }
  .toc-mobile { display: block; padding: .65rem .9rem; margin-bottom: 1.45rem; border: 1px solid var(--edge); border-radius: .36rem; background: var(--white); }
  .toc-mobile summary { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin: 0; min-height: 1.5rem; }
  .toc-mobile ul { margin-top: .38rem; }
  .toc-mobile a { padding-inline: 0; }
  .prose h2 { margin-top: 1.1em; }
}
@media (max-width: 480px) {
  .top-actions { gap: .65rem; }
  .search-open, .menu-toggle { font-size: .83rem; }
  .story-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .story .photo img { aspect-ratio: 1.68; }
  .story + .story { border-top: 1px solid var(--edge); padding-top: 1.05rem; }
  .story .story-title { font-size: 2.15rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .sources { padding: .82rem .85rem; }
  .table-wrap th, .table-wrap td { padding: .55rem .62rem; }
  .table-wrap th:nth-child(n+2) { min-width: 7.7rem; }
  .table-wrap td:first-child { min-width: 6.8rem; }
}
@media (max-width: 345px) {
  .brand { gap: .42rem; }
  .brand-name { font-size: 1.61rem; }
  .brand-symbol { width: 1.6rem; height: 1.6rem; }
  .top-actions { gap: .35rem; }
  .search-symbol { display: none; }
  .hero-copy h1 { font-size: 3.25rem; }
}
@media print {
  .site-header, .footer, .toc, .toc-mobile, .profile-section, .featured, .reading-feature, .hero-ctas, .guide-next, .search-dialog { display: none; }
  .wrap, .guide-layout.single { width: 100%; }
  .guide-layout, .article-hero, .home-essay, .hero-grid { display: block; }
  .article-hero .photo, .hero-photo { display: none; }
  .article-mast, .home-hero, .sources { background: #fff; }
  .prose { color: #000; }
  .table-wrap { overflow: visible; }
}

.edition-picker { position: relative; }
.edition-options {
  position: absolute;
  z-index: 7;
  right: 0;
  top: 100%;
  min-width: 10.9rem;
  padding: .4rem .55rem;
  background: var(--white);
  border: 1px solid var(--edge);
  border-radius: .42rem;
  box-shadow: 0 12px 24px #162e211a;
}
.edition-options a {
  display: block;
  min-height: 2.25rem;
  padding: .42rem .55rem;
  border-radius: .26rem;
  font-size: .89rem;
  text-decoration: none;
  white-space: nowrap;
}
.edition-options a:hover, .edition-options a[aria-current] {
  background: var(--wash);
  text-decoration: underline;
}
@media (max-width: 1180px) {
  .topbar { gap: 1rem; }
  .nav { gap: .88rem; }
}
@media (max-width: 840px) {
  .topbar { gap: 0 .75rem; }
  .nav { gap: .15rem .8rem; }
  .edition-options {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--wash);
    box-shadow: none;
  }
}
