:root {
  --paper: #f3eee4;
  --paper-2: #e7e0d0;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #d0c6b2;
  --green: #16382c;
  --green-2: #1f4a3a;
  --cream: #f6f1e6;
  --gold: #d7b56a;
  --brick: #8d3014;
  --brick-deep: #6d240f;
  --max: 1120px;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.08);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brick-deep); }
a:hover { color: var(--brick); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.mast {
  background: var(--green);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}

.mast a { color: var(--cream); text-decoration: none; }

.mast-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
}

.mast-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--gold);
}

.wordmark {
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 560;
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 0.82;
  margin: 0.35rem 0 0.15rem;
  font-size: clamp(4.4rem, 13vw, 7.6rem);
}

.wordmark a { color: var(--cream); }

.tagline {
  margin: 0;
  max-width: 38rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #efe6d4;
}

.mast.compact .wordmark { font-size: clamp(3rem, 8vw, 4.5rem); margin-top: 0.2rem; }
.mast.compact .tagline { display: none; }

.nav-toggle {
  display: none;
  margin: 0.8rem 0 0.2rem;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 241, 230, 0.45);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  padding: 0.95rem 0 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(246, 241, 230, 0.22);
}

.nav a {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 1.05rem;
  padding: 0.15rem 0;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
  color: var(--gold);
}

.nav a:focus-visible,
.nav-toggle:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.8fr);
  gap: 1.6rem 2rem;
  align-items: end;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 {
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.15rem);
  margin: 0.2rem 0 0.7rem;
}

.kicker {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0;
  font-size: 1rem;
}

.deck, .byline {
  color: var(--muted);
}

.deck { font-size: 1.2rem; margin: 0 0 0.8rem; }

.byline {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: 2rem;
  margin-top: 1.8rem;
}

.copy p { margin: 0 0 1rem; }
.measure { max-width: 44rem; }

.lede::first-letter {
  font-family: Fraunces, Georgia, serif;
  float: left;
  font-size: 3.35rem;
  line-height: 0.8;
  padding: 0.15rem 0.45rem 0 0;
  color: var(--brick);
  font-weight: 560;
}

h2 { font-size: 1.85rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.35rem; margin: 1.4rem 0 0.4rem; }

.note, .identity, .panel {
  background: var(--paper-2);
  border-top: 3px solid var(--green);
  padding: 0.9rem 1rem 0.2rem;
  margin: 1.2rem 0 1.4rem;
}

.identity { border-top-color: var(--brick); }

.panel h2, .note h2, .identity h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

figure { margin: 0 0 1rem; }

figcaption, .credit {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.45rem;
}

.facts {
  margin: 0;
}

.facts div {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--brick);
  margin: 0;
}

.facts dd { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.card {
  background: transparent;
  border-top: 1px solid var(--ink);
  padding-top: 0.7rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover h2 { color: var(--brick); }

.card h2 { font-size: 1.55rem; margin: 0.25rem 0 0.45rem; }

.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.6rem;
  align-items: start;
}

ol.sources, ul.clean { padding-left: 1.15rem; }
ol.sources li, ul.clean li { margin: 0 0 0.55rem; }

.article-hero { margin: 0.4rem 0 1.2rem; }

.page-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin: 0.15rem 0 0.6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1.2rem;
  font-size: 1.02rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
}

.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.6rem;
}

label { display: grid; gap: 0.3rem; font-size: 1rem; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #b7ad99;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

textarea { min-height: 9rem; resize: vertical; }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; }

button[type="submit"] {
  justify-self: start;
  background: var(--green);
  color: var(--cream);
  border: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--green-2); }

.form-status {
  min-height: 1.4rem;
  color: var(--brick-deep);
  margin: 0;
}

.site-footer {
  background: var(--green);
  color: #efe6d4;
  margin-top: 1rem;
}

.site-footer a { color: var(--gold); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.8rem;
  display: grid;
  gap: 0.7rem;
}

.footer-inner p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.small { font-size: 0.98rem; color: var(--muted); }

.footer-inner .small { color: #d9d0c0; }

blockquote {
  margin: 1.2rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 560;
}

.error-code {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.85;
  margin: 0;
  color: var(--green);
}

@media (max-width: 860px) {
  .hero, .layout, .cards, .split { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 1rem;
  }
  .nav.is-open { display: flex; }
  .mast-meta span:nth-child(2) { display: none; }
}
