@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --paper: #fffcf6;
  --ink: #1c1a16;
  --muted: #5c574e;
  --faint: #8a8378;
  --line: #d8d1c4;
  --accent: #21594b;
  --accent-hover: #173f36;
  --warm: #a34a28;
  --max: 42rem;
  --wide: 54rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 430;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--wide), calc(100% - 2.5rem)); margin-inline: auto; }
.measure { width: min(var(--max), 100%); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}
.wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.wordmark span { font-style: italic; font-weight: 450; color: var(--muted); }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.hero { padding: 3.25rem 0 2.5rem; }
.hero .kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.hero .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.notice {
  margin: 0 0 2.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.95rem;
}

h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.02em;
  font-size: 1.65rem;
  margin: 2.5rem 0 0.85rem;
}
h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 550;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}
p { margin: 0 0 1rem; }
.meta {
  color: var(--faint);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.15rem 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; flex: 1; }
.card .more { color: var(--accent); font-size: 0.92rem; margin-top: 0.6rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 4px;
  font-weight: 580;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin: 1.25rem 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  background: var(--paper);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
th { font-weight: 600; background: #efe9dc; }
caption {
  text-align: left;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0 0 0.5rem;
  caption-side: bottom;
}

ul, ol { margin: 0 0 1.15rem; padding-left: 1.2rem; }
li { margin: 0 0 0.35rem; }
.sources { font-size: 0.95rem; }
.sources li { margin-bottom: 0.4rem; }

article { padding: 2.25rem 0 3rem; }
article .measure p,
article .measure li { max-width: 42rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: grid; gap: 0.75rem; }
.site-footer nav { gap: 0.25rem 1rem; }
.fine { color: var(--faint); font-size: 0.85rem; max-width: 42rem; }

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .hero { padding: 2.25rem 0 1.75rem; }
  th, td { padding: 0.55rem 0.5rem; }
  .table-scroll { overflow-x: auto; }
}
