@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f4ee;
  --paper: #fffcf7;
  --ink: #1c1916;
  --muted: #5e584f;
  --line: #ddd6cb;
  --accent: #243f35;
  --accent-hover: #152820;
  --chip: #efeae1;
  --max: 68rem;
  --text: 38rem;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark:hover { color: var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

main { display: block; }

.hero {
  padding: 4.25rem 0 3.25rem;
  border-bottom: 1px solid var(--line);
}

.hero .kicker,
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.35rem);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero .deck {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.lead, .prose p.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 40rem;
}

.hero .lead { margin: 0 0 2rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #f7f4ee;
}

.btn-primary:hover { background: var(--accent-hover); color: #f7f4ee; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
}

.section p { max-width: var(--text); }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card:hover { border-color: var(--accent); color: inherit; }

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

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

.article-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.article-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.article-list a {
  text-decoration: none;
  color: inherit;
}
.article-list a:hover h3 { color: var(--accent); }
.article-list h3 {
  font-size: 1.28rem;
  margin: 0 0 0.35rem;
}
.article-list .meta,
.byline {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.article-list p { margin: 0; color: var(--muted); max-width: var(--text); }

.page {
  padding: 3rem 0 4rem;
}

.page h1 { margin-bottom: 0.35rem; }
.page .byline { margin-bottom: 2rem; }

.prose {
  max-width: var(--text);
}

.prose p { margin: 0 0 1.15rem; }
.prose h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.8rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.7rem 0 0.6rem;
}
.prose ul, .prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}
.prose li { margin: 0 0 0.35rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.contact-note {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}

.site-footer {
  padding: 2.25rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 0 0.95rem;
  }
  .nav { justify-content: flex-start; gap: 0.3rem 0.95rem; }
  .hero { padding: 2.5rem 0 2.2rem; }
  .page { padding: 2.2rem 0 3rem; }
}
