:root {
  color-scheme: light;
  --ink: #1d2c24;
  --muted: #4a5b50;
  --paper: #fcfcf8;
  --surface: #f0f3e9;
  --forest: #172e24;
  --green: #2b563e;
  --line: #d7dfd0;
  --gold: #efcf83;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #9a5a16;
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.75vw, 3.1rem); letter-spacing: -.035em; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  padding: .6rem 1rem;
  transform: translateY(-160%);
  color: white;
  background: var(--forest);
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.1rem 2rem; }
.header-inner { min-height: 80px; }
.brand { display: inline-flex; gap: .75rem; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.18; }
.brand small { display: block; margin-top: .12rem; font-size: .75rem; color: var(--muted); letter-spacing: .075em; }
.brand-mark {
  display: grid;
  place-content: center;
  flex: none;
  gap: 3px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--forest);
}
.brand-mark i { width: 19px; height: 2px; border-radius: 2px; background: var(--gold); transform: rotate(-24deg); }
.site-header nav ul, .site-footer nav ul { display: flex; flex-wrap: wrap; gap: .15rem 1.8rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a, .site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav .nav-active, .site-footer nav a:hover { text-decoration: underline; }

.hero { background: var(--forest); color: #fffdf3; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 105rem; margin-inline: auto; }
.hero-copy { padding: clamp(3.2rem, 7.5vw, 7rem) clamp(1.5rem, 5vw, 5rem) clamp(3.2rem, 7vw, 6.4rem) max(1.5rem, calc((min(100vw, 105rem) - 73rem) / 2)); }
.eyebrow {
  margin-bottom: .85rem;
  font-size: .83rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(3rem, 6.8vw, 7rem); letter-spacing: -.058em; line-height: .96; }
.hero-description { max-width: 28rem; margin-top: 1.45rem; color: #e4ecdf; font-size: clamp(1.05rem, 1.6vw, 1.36rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.35rem; margin-top: 1.8rem; }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: #fffdf3; font-size: .9rem; font-weight: 650; }
.hero a:focus-visible { outline-color: var(--gold); }
.hero-image { position: relative; min-height: 100%; background: #504630; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 45% 57%; display: block; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { background: var(--gold); color: #202a1f; }
.button-primary:hover { background: #ffe3a1; }
.button-outline { border-color: var(--green); color: var(--green); }
.button-outline:hover { background: #e7eedf; }

.refresh { background: #e8edde; border-bottom: 1px solid var(--line); }
.refresh-inner { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .35rem 1.4rem; align-items: baseline; padding-block: 1.15rem; }
.refresh strong { color: var(--forest); font-size: .87rem; }
.refresh p { max-width: 61rem; color: #314238; font-size: .93rem; }
.refresh a { white-space: nowrap; font-weight: 650; }

.library { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.15rem 2rem; }
.section-intro h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); letter-spacing: -.045em; }
.section-intro p { margin-top: .48rem; color: var(--muted); }
.search { width: min(20rem, 100%); }
.search label { display: block; margin-bottom: .3rem; font-size: .88rem; font-weight: 700; }
.search input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid #89998b;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.search input::placeholder { color: #526457; }
.filter-tools { display: flex; justify-content: space-between; align-items: center; gap: .55rem 1.2rem; margin: 1.7rem 0 1.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button, .empty button {
  min-height: 44px;
  border: 1px solid #aebba9;
  border-radius: 4px;
  padding: .42rem .85rem;
  background: transparent;
  color: var(--forest);
  font-size: .87rem;
  font-weight: 650;
}
.filters button:hover, .empty button:hover { background: var(--surface); }
.filters button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: white; }
.result-count { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.section-intro + [hidden] + .cards, .featured .cards { margin-top: 1.45rem; }
.card {
  padding: 1.25rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid #a8b99a;
  border-radius: 4px;
  background: #fff;
}
.card-category { color: var(--green); font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.card-title { margin-top: .45rem; font-family: var(--serif); font-size: 1.48rem; font-weight: 400; letter-spacing: 0; }
.card-title a { display: inline-flex; align-items: center; min-height: 30px; color: var(--ink); }
.card p { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.empty { padding: 2rem; border: 1px dashed #aebba9; text-align: center; }
.empty button { margin-top: .75rem; }
.archive-link { margin-top: 1.25rem; }
.featured { padding: clamp(2.6rem, 5vw, 4.3rem) 0; background: var(--surface); border-top: 1px solid var(--line); }

.article-head { background: var(--surface); padding: 1.35rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.4rem; font-size: .89rem; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; min-height: 28px; }
.article-head h1, .missing h1 { font-size: clamp(2.65rem, 6vw, 5.15rem); letter-spacing: -.045em; max-width: 60rem; }
.article-head .lead { max-width: 45rem; margin-top: .75rem; font-size: clamp(1.05rem, 2vw, 1.26rem); color: var(--muted); }
.pdf-link { margin-top: 1.1rem; }
.archive-document { display: inline-flex; min-height: 44px; align-items: center; margin-left: .85rem; }
.archive-index table { margin-top: 1.25rem; }
.article-shell { display: grid; grid-template-areas: "article snapshot"; grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem); align-items: start; gap: 1.8rem clamp(1.7rem, 6vw, 5.5rem); }
.article-shell, .document-shell, .collection, .missing { padding-block: clamp(2.3rem, 5vw, 4rem); }
.prose { max-width: 49rem; line-height: 1.64; overflow-wrap: anywhere; }
.prose section + section { margin-top: 2rem; }
.prose h2 { margin: 0 0 .65rem; font-size: clamp(1.6rem, 3.25vw, 2.3rem); }
.prose p + p { margin-top: .85rem; }
.prose ol { margin: 0; padding-left: 1.5rem; }
.prose li { padding-left: .2rem; margin-top: .5rem; }
.prose li:target { background: #f7ebc7; }
.prose table { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; }
.prose caption { text-align: left; color: var(--muted); margin: 0 0 .55rem; }
.prose th, .prose td { padding: .52rem .7rem; border: 1px solid var(--line); vertical-align: top; }
.prose thead { background: var(--forest); color: #fff; }
.prose tbody tr:nth-child(even) { background: var(--surface); }
.prose tbody th { width: 26%; }
.prose td:nth-child(2) { width: 25%; }
.archive-index tbody th { width: 43%; }
.archive-index td:nth-child(2) { width: 37%; }
.article-shell .prose { grid-area: article; }
.snapshot { grid-area: snapshot; padding: 1.25rem 1.3rem; border-top: 3px solid #a8b99a; border-radius: 4px; background: var(--surface); }
.snapshot h2 { font-size: 1.7rem; }
.snapshot dt { margin-top: .85rem; font-weight: 700; }
.snapshot dd { margin: .22rem 0 0; color: var(--muted); }
.snapshot h3 { margin-top: 1.35rem; font-size: 1rem; }
.snapshot ul { padding-left: 1rem; margin-bottom: 0; }
.snapshot li + li { margin-top: .4rem; }
.missing p { margin: .8rem 0 1.3rem; }
.print-only { display: none; }

.site-footer { padding-block: 1.8rem; background: var(--forest); color: #fffdf3; }
.site-footer .brand, .site-footer nav a { color: #fffdf3; }
.site-footer .brand small, .site-footer p { color: #d7e3d8; }
.site-footer .brand-mark { border: 1px solid #b5c3b9; }
.site-footer p { margin-top: .55rem; font-size: .84rem; }
.site-footer a:focus-visible { outline-color: var(--gold); }
@media (max-width: 62rem) {
  .hero-copy { padding-right: 1.5rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .wrap { width: min(100% - 2rem, 73rem); }
  .header-inner { padding-block: .85rem .35rem; }
  .header-inner, .footer-inner { flex-direction: column; align-items: flex-start; gap: .55rem; }
  .site-header nav ul, .site-footer nav ul { gap: .1rem 1.2rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 2.8rem 1rem 2.25rem; }
  .hero-image { min-height: clamp(13rem, 48vw, 20rem); }
  .hero h1 { font-size: clamp(3.2rem, 10.5vw, 5rem); }
  .hero-description { margin-top: 1rem; }
  .hero-actions { margin-top: 1.1rem; }
  .refresh-inner { grid-template-columns: minmax(0, 1fr); }
  .section-intro { flex-direction: column; align-items: flex-start; }
  .filter-tools { flex-direction: column; align-items: flex-start; }
  .article-shell { grid-template-areas: "snapshot" "article"; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .prose th, .prose td { padding: .4rem; }
}
@media print {
  @page { size: Letter; margin: 12mm 15mm; }
  :root { background: white; color: #16241d; font-size: 9.5pt; }
  .skip, .site-header, .site-footer, .crumb, .pdf-link, .archive-document { display: none; }
  .wrap, .prose { width: 100%; max-width: none; }
  .article-head { background: white; border-bottom: 1px solid #a0af9e; padding: 1mm 0 4mm; }
  .article-head h1 { font-size: 24pt; }
  .article-head .eyebrow { margin-bottom: 2mm; }
  .article-head .lead { font-size: 10pt; }
  .print-only { display: block; color: #4a5b50; font-size: 9pt; margin-bottom: 4mm; }
  .document-shell { padding-block: 4mm 0; }
  .prose { line-height: 1.29; }
  .prose .sources { font-size: 9pt; }
  .prose section + section { margin-top: 3mm; }
  .prose h2 { font-size: 13.5pt; margin-bottom: 1.8mm; break-after: avoid; }
  .prose p + p { margin-top: 2mm; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  .prose li { margin-top: 1mm; }
}
