:root {
  --ink: #183029;
  --spruce: #23483d;
  --porphyry: #9a4f3f;
  --straw: #d6bd7d;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --muted: #68766e;
  --rule: #d7d2c7;
  --serif: "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--spruce); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--porphyry); }
p { margin: 0 0 1.25rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { margin: .4rem 0 1.3rem; font-size: clamp(2.7rem, 7vw, 5.8rem); letter-spacing: -.045em; }
h2 { margin: 3.25rem 0 1rem; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { margin: 2rem 0 .7rem; font-size: 1.35rem; }
ul, ol { margin: 0 0 1.4rem; padding-left: 1.2rem; }
li { margin-bottom: .45rem; }

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.mast-inner {
  width: min(1380px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-id { min-width: 230px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.site-id strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.site-id span, .eyebrow, .kicker, .field-label {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-id span { color: var(--porphyry); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--porphyry); }
.lang-link { padding-left: 1.15rem; border-left: 1px solid var(--rule); }
.menu-toggle { display: none; margin-left: auto; padding: .55rem .7rem; color: var(--ink); background: transparent; border: 1px solid var(--ink); font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }

.hero, .page-lead {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.hero-copy, .lead-copy { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem) 0; }
.hero-media, .lead-media { min-height: 560px; background: var(--paper); overflow: hidden; }
.hero-media img, .lead-media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { color: var(--porphyry); }
.dek { max-width: 700px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.48; }
.lead-copy h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); }

.topic-band { background: var(--paper); border-bottom: 1px solid var(--rule); }
.topic-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 4rem 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.topic-card { min-height: 240px; padding: 1.5rem; color: var(--ink); border-right: 1px solid #cbc5b7; text-decoration: none; }
.topic-card:first-child { border-left: 1px solid #cbc5b7; }
.topic-card .number { color: var(--porphyry); font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.topic-card h2 { margin: 2.5rem 0 .7rem; font-size: 1.75rem; }
.topic-card p { color: #43564f; font-size: .94rem; }

.article-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 5rem 0 6rem; display: grid; grid-template-columns: 190px minmax(0, 760px); gap: clamp(3rem, 8vw, 8rem); }
.field-notes { align-self: start; position: sticky; top: 110px; border-top: 3px solid var(--porphyry); padding-top: 1rem; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.field-notes p { padding-bottom: .8rem; border-bottom: 1px solid var(--rule); }
.field-label { display: block; margin-bottom: .2rem; color: var(--ink); }
.article-body > p:first-of-type { font-family: var(--serif); font-size: 1.32rem; line-height: 1.55; }
.article-body blockquote { margin: 2.5rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 3px solid var(--porphyry); font: 1.3rem/1.5 var(--serif); }
.fact-list { margin: 2.25rem 0; padding: 1.5rem 1.5rem 1rem; background: var(--paper); border-top: 3px solid var(--straw); }
.source-note { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .86rem; }
.source-note a { overflow-wrap: anywhere; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.term { padding: 1.25rem; background: var(--white); }
.term dt { font: 600 1.2rem var(--serif); }
.term dd { margin: .35rem 0 0; color: #43564f; }
.history-line { margin: 2rem 0; padding-left: 1.25rem; border-left: 1px solid var(--porphyry); }
.history-line strong { display: block; color: var(--porphyry); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.page-index { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.page-index a { padding: 1rem; background: var(--paper); font-family: var(--serif); text-decoration: none; }

.site-footer { padding: 3.25rem 0; background: var(--ink); color: #e9eee9; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; }
.footer-title { margin: 0 0 .5rem; font: 1.35rem var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.15rem; }
.footer-links a { color: #e9eee9; font-size: .82rem; }
.notice-independent { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--straw); color: #d5ddd7; font-size: .82rem; line-height: 1.65; }
.copyright { margin-top: 1.5rem; color: #9dafaa; font-size: .72rem; }
.error-page { min-height: 62vh; display: grid; place-items: center; padding: 5rem 20px; text-align: center; background: var(--paper); }
.error-page h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--porphyry); }
.back-link { display: inline-block; padding: .7rem 1rem; border: 1px solid var(--ink); text-decoration: none; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 1rem 20px 1.4rem; background: var(--white); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
  .site-nav.is-open { display: flex; }
  .hero, .page-lead { grid-template-columns: 1fr; }
  .hero-copy, .lead-copy { padding-right: 0; }
  .hero-media, .lead-media { min-height: 420px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic-card:nth-child(3) { border-left: 1px solid #cbc5b7; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .mast-inner, .hero, .page-lead, .topic-grid, .article-shell, .footer-inner { width: min(100% - 28px, 100%); }
  .site-id { min-width: 0; }
  .site-id span { display: none; }
  .hero-copy, .lead-copy { padding: 3.5rem 0; }
  .hero-media, .lead-media { min-height: 280px; }
  .topic-grid, .article-shell, .footer-inner { grid-template-columns: 1fr; }
  .topic-card { min-height: 0; border-left: 1px solid #cbc5b7; border-bottom: 1px solid #cbc5b7; }
  .article-shell { padding: 3rem 0 4rem; gap: 2rem; }
  .field-notes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .glossary, .page-index { grid-template-columns: 1fr; }
}

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