:root {
  --paper: #f4efe6;
  --paper-2: #efe8db;
  --ink: #1b1916;
  --muted: #5a564e;
  --faint: #8a8478;
  --rule: #d5cec0;
  --accent: #6e3b28;
  --moss: #2c4a3c;
  --annonce-bg: #1b1916;
  --annonce-fg: #f4efe6;
  --card: #fffdf8;
  --shadow: 0 1px 0 rgba(27, 25, 22, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 41rem;
  --page: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--moss); }
.wrap { width: min(100% - 2rem, var(--page)); margin-inline: auto; }
.measure { width: min(100%, var(--measure)); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 20; }

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 10;
}
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0 0.9rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { color: var(--ink); }
.logo span { color: var(--accent); }
.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-cats a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
}
.nav-cats a:hover,
.nav-cats a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.hero {
  padding: 2.6rem 0 2.2rem;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  max-width: 18ch;
}
.hero p { max-width: 40rem; margin: 0; color: var(--muted); font-size: 1.1rem; }

.section { padding: 2.4rem 0; }
.section h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}
.grid-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 0.9rem;
}
.cat-card, .teaser {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow);
}
.cat-card:hover, .teaser:hover { border-color: var(--ink); }
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 620;
  margin: 0 0 0.4rem;
}
.cat-card h3, .teaser h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.cat-card p, .teaser p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.teaser-list { display: grid; gap: 0.7rem; }
@media (min-width: 800px) {
  .teaser-list,
  .teaser-list.featured { grid-template-columns: repeat(3, 1fr); }
}

.page-head { padding: 2.1rem 0 0.4rem; }
.page-head h1, .article-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1rem; max-width: var(--measure); }

.annonce-label {
  display: inline-block;
  background: var(--annonce-bg);
  color: var(--annonce-fg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  margin: 0 0 0.9rem;
}
.annonce-who { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }

.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.4rem; }
.meta time { color: var(--ink); }

.article { padding: 0 0 3rem; }
.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.45rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 0.35rem; }
.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.12rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}
.prose th, .prose td {
  text-align: left;
  border-bottom: 1px solid var(--rule);
  padding: 0.45rem 0.5rem 0.45rem 0;
  vertical-align: top;
}
.prose th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 620; }
.sources { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.sources h2 { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 2rem 0 2.4rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.4rem;
}
.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 650;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.3rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin: 1.6rem 0 0; color: var(--muted); font-size: 0.85rem; }

.notice {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}
address { font-style: normal; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .masthead-inner { padding-top: 0.9rem; }
}

/* Article and card photos */
.article-hero {
  margin: 0 0 1.5rem;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper-2);
}
.photo-credit {
  font-size: 0.78rem;
  color: var(--faint);
  margin: 0.4rem 0 0;
}
.photo-credit a { color: inherit; }

/* Compact horizontal article cards (homepage + category lists) */
.teaser {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem 0.65rem 0.65rem;
  overflow: hidden;
}
.teaser-media {
  flex: 0 0 10.5rem;
  width: 10.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
  margin: 0;
}
.teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teaser-body { min-width: 0; flex: 1; padding-top: 0.05rem; }
.teaser .kicker,
.teaser h3,
.teaser p { padding-left: 0; padding-right: 0; }
.teaser .kicker { margin: 0 0 0.2rem; }
.teaser h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 0.2rem;
}
.teaser p {
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 799px) {
  .teaser-media {
    flex-basis: 9.25rem;
    width: 9.25rem;
  }
}

/* Mega-menu that scales past a handful of categories */
.site-nav { position: static; }
.nav-cats { align-items: center; }
.nav-mega { position: static; }
.nav-mega details { position: static; }
.nav-mega summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--ink);
}
.nav-mega summary::-webkit-details-marker { display: none; }
.nav-mega summary::after { content: " ▾"; font-size: 0.75em; color: var(--faint); }
.nav-mega details[open] summary { color: var(--accent); }
.mega-panel {
  position: absolute;
  left: max(1rem, calc((100% - 72rem) / 2));
  right: max(1rem, calc((100% - 72rem) / 2));
  top: calc(100% - 1px);
  width: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.3rem 1.45rem;
  z-index: 40;
  box-shadow: 0 16px 32px rgba(27, 25, 22, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem 1.4rem;
}
.mega-group h2 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
  font-weight: 650;
  font-family: var(--sans);
}
.mega-group ul { list-style: none; margin: 0; padding: 0; }
.mega-group li { margin: 0 0 0.65rem; }
.mega-group a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.mega-group a:hover,
.mega-group a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}
.mega-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.12rem;
}
.subcats {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.footer-cats { columns: 2; gap: 0 1.2rem; }
.footer-cats li { break-inside: avoid; }

@media (max-width: 900px) {
  .nav-primary > li:not(.nav-mega) { display: none; }
  .mega-panel {
    grid-template-columns: 1fr 1fr;
    left: 1rem;
    right: 1rem;
  }
}
@media (max-width: 640px) {
  .mega-panel { grid-template-columns: 1fr; }
  .footer-cats { columns: 1; }
}
