@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/source-serif-4.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --paper: #f8f5ee;
  --ink: #192620;
  --muted: #4d5a52;
  --line: #dcdacf;
  --dark: #172620;
  --nav-hover: #30443a;
  --accent: #a43c23;
  --heading: "Source Serif 4", Georgia, serif;
  --frame: min(100% - clamp(2rem, 8vw, 7rem), 70rem);
  color-scheme: light;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .16em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #bf673f; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 560; line-height: 1.12; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.35rem, 6vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.3rem); letter-spacing: -.018em; }
p { line-height: 1.67; overflow-wrap: anywhere; }
.frame { width: var(--frame); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: .5rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header, .site-footer { background: var(--dark); color: #fff9eb; }
.site-header .frame, .site-footer .frame { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--heading); font-size: clamp(1.18rem, 3.7vw, 1.55rem); font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; list-style: none; }
.site-nav a, .menu-toggle {
  min-height: 44px; display: inline-flex; align-items: center; padding: .55rem .8rem;
  border-radius: .2rem; font-weight: 650; font-size: .92rem; text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a[data-current-section], .menu-toggle:hover { background: var(--nav-hover); }
.menu-toggle { display: none; font-family: inherit; color: inherit; border: 1px solid #859489; background: none; cursor: pointer; }
.site-header .frame { padding-block: .7rem; }
.site-footer .frame { padding-block: 1.25rem; }
.site-footer .frame > a:last-child { padding: .5rem 0; }
main { min-height: 65vh; padding-block: clamp(1.75rem, 5vw, 4rem); }
.list-heading { margin-bottom: clamp(1.25rem, 3.5vw, 2.25rem); }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); list-style: none; padding: 0; }
.entries > li { min-width: 0; }
.entry-card { height: 100%; display: flex; flex-direction: column; background: #fffdfa; border: 1px solid var(--line); }
.card-image { display: block; line-height: 0; }
.card-image img { aspect-ratio: 1.66; object-fit: cover; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1rem, 2.4vw, 1.55rem); gap: .65rem; }
.card-copy h2 a { text-decoration: none; }
.card-copy h2 a:hover { text-decoration: underline; }
.card-copy p { color: var(--muted); }
.card-copy time { color: var(--muted); font-size: .85rem; }
.card-copy .category { font-size: .78rem; color: var(--accent); font-weight: 700; }
.entries .featured { grid-column: 1 / -1; }
.featured .entry-card { display: grid; grid-template-columns: 1.08fr 1fr; }
.featured .card-image img { height: 100%; aspect-ratio: auto; min-height: 15rem; }
.featured .card-copy { justify-content: center; padding: clamp(1.3rem, 3.4vw, 2.6rem); }
.featured h2 { font-size: clamp(1.9rem, 4.3vw, 3.4rem); }
.article { max-width: 51rem; margin-inline: auto; }
.article-header { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.article-header > a { display: inline-block; color: var(--accent); margin-bottom: .85rem; font-weight: 700; }
.article-header .byline { margin-top: .85rem; color: var(--muted); font-size: .95rem; }
.lead-image { margin-bottom: clamp(1.35rem, 4vw, 2.3rem); }
.lead-image img { aspect-ratio: 2; object-fit: cover; }
.prose { max-width: 45rem; margin-inline: auto; font-size: clamp(1rem, 2.3vw, 1.12rem); }
.prose > * + * { margin-top: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.7em; }
.prose figure img { margin-inline: auto; width: auto; max-width: 100%; }
.prose figcaption { margin-top: .45rem; font-size: .9rem; color: var(--muted); }
.prose a { color: var(--accent); }
.article-end { display: inline-block; padding-top: .85rem; border-top: 1px solid var(--line); margin-top: 2rem; font-weight: 650; }
.archive-note { margin-top: .75rem; max-width: 42rem; }
@media (max-width: 900px) {
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .site-header .frame { gap: .35rem; }
  .site-nav { flex-basis: 100%; }
  .site-nav ul { display: grid; grid-template-columns: 1fr; padding-top: .25rem; }
  .site-nav a { display: flex; }
  .has-menu .menu-toggle { display: inline-flex; }
  .has-menu .site-nav:not(.is-open) { display: none; }
  .entries, .featured .entry-card { grid-template-columns: 1fr; }
  .featured .card-image img { aspect-ratio: 1.66; height: auto; min-height: 0; }
}
