:root {
  color-scheme: light;
  --bg: #f4efe7;
  --bg-2: #efe6d8;
  --panel: rgba(255, 255, 255, 0.78);
  --text: #182028;
  --muted: #59646f;
  --accent: #8a1f2d;
  --accent-2: #17324d;
  --border: rgba(24, 32, 40, 0.12);
  --shadow: 0 16px 50px rgba(24, 32, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 31, 45, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(23, 50, 77, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
a { color: inherit; text-decoration: none; }
.page-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 20px 0 56px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0 22px; position: sticky; top: 0; backdrop-filter: blur(14px);
}
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; letter-spacing: 0.02em; font-weight: 700; }
.topnav, .year-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.topnav a, .year-nav a, .year-card {
  border: 1px solid var(--border); background: rgba(255,255,255,0.6); border-radius: 999px;
  padding: 9px 14px; box-shadow: var(--shadow);
}
.hero, .year-hero, .panel {
  border: 1px solid var(--border); background: var(--panel); border-radius: 28px; box-shadow: var(--shadow);
}
.hero, .year-hero { padding: 28px; margin-bottom: 24px; }
.panel { padding: 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-size: .78rem; font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 4.2rem); max-width: 12ch; }
h2 { font-size: 1.35rem; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 1.04rem; max-width: 70ch; margin: 14px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.stats div { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.56); border: 1px solid var(--border); }
.stats strong { display: block; font-size: 1.3rem; }
.stats span { color: var(--muted); font-size: .88rem; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.year-card { display: grid; gap: 6px; border-radius: 20px; padding: 16px; }
.year-card .year { color: var(--accent-2); font-size: 1.2rem; font-weight: 800; }
.year-card span { color: var(--muted); font-size: .92rem; }
.entry { padding: 18px 0; border-top: 1px solid var(--border); }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry h3 { font-size: 1.12rem; margin-top: 6px; }
.meta { margin: 0; color: var(--accent-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.excerpt { margin: 10px 0 0; color: var(--muted); }
.entry-media { margin-top: 14px; }
.media-count { margin: 0 0 8px; color: var(--accent-2); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-grid figure {
  margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border);
  background: rgba(255,255,255,.66); box-shadow: 0 8px 24px rgba(24, 32, 40, .07);
}
.media-grid a { display: block; }
.media-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(23, 50, 77, .08); }
.media-grid figcaption { padding: 8px 10px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.entry-documents { margin-top: 14px; }
.document-list, .document-grid { display: grid; gap: 10px; }
.document-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.document-link, .document-card {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(255,255,255,.66);
}
.document-card { align-items: flex-start; flex-direction: column; }
.document-card strong { line-height: 1.25; }
.document-card span:last-child { color: var(--muted); font-size: .86rem; }
.document-type {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px;
  min-height: 30px; border-radius: 8px; background: var(--accent-2); color: white;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
}
details { margin-top: 12px; }
summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.content { margin-top: 14px; padding: 18px; background: rgba(255,255,255,.64); border-radius: 18px; border: 1px solid var(--border); }
.content p { margin: 0 0 14px; line-height: 1.65; white-space: normal; }
.content p:last-child { margin-bottom: 0; }
.empty { color: var(--muted); font-style: italic; }
.note p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { position: static; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100vw - 20px, 1180px); }
  .hero, .year-hero, .panel { padding: 18px; border-radius: 22px; }
  .stats { grid-template-columns: 1fr; }
}
