:root {
  --red: #b3122b;
  --red-dark: #8c0d21;
  --ink: #1f1a1a;
  --muted: #5e5656;
  --paper: #fffdfa;
  --cream: #f6efe6;
  --line: #e4d9cc;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1ebe4; --muted: #b8aea4; --paper: #181414; --cream: #231d1c; --line: #3a3130;
    --red: #ff7a8c; --red-dark: #ff9aa8;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 1.2em 0 .5em; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.prose, .event { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand strong { display: block; font: 700 1.2rem/1.2 Georgia, serif; }
.brand small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a:hover { background: var(--cream); }
.nav a[aria-current="page"] { background: var(--red); color: #fff; }

/* hero */
.hero { background-size: cover; background-position: center top; border-bottom: 1px solid var(--line); padding: 28px 0 40px; }
.hero h1 { margin-top: .3em; max-width: 22ch; }
.hero .lede { max-width: 40rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--red-dark); margin: 0; font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); }
.btn { display: inline-block; background: var(--red); color: #fff; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; margin: 4px 8px 4px 0; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn-ghost:hover { background: var(--cream); color: var(--red-dark); }

/* home blocks */
.classes { background: var(--cream); border-radius: var(--radius); padding: 8px 24px 20px; margin-top: 32px; }
.facts { list-style: none; padding: 0; display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid3 { display: grid; gap: 16px 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid3 h3 { margin-top: 0; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--red); }
.card-year { display: block; color: var(--red); font-size: .8rem; font-weight: 700; }

/* events */
.event { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.event h2 { margin-top: 1.2em; }
.event ul:not(.gallery), .event ol { padding-left: 1.3em; }
.sign { margin: 0; color: var(--muted); font-style: italic; }
.year h2 { margin-bottom: .3em; }
.event-list { padding-left: 1.2em; }
.gallery { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery a { display: block; border-radius: 8px; overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

/* lists / people */
.people dt { font-weight: 700; margin-top: 1.2em; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.people dd { margin: .2em 0 0; font-size: 1.1rem; }
blockquote { margin: 2em 0; padding: 8px 20px; border-left: 4px solid var(--red); font: italic 1.15rem/1.5 Georgia, serif; }
blockquote footer { font: normal .85rem system-ui, sans-serif; color: var(--muted); margin-top: .5em; }

/* footer */
.site-footer { margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .3em 0; }

/* lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
dialog::backdrop { background: rgba(0,0,0,.85); }
dialog img { display: block; max-width: 96vw; max-height: 92vh; margin: auto; border-radius: 6px; }
.lb-close { position: fixed; top: 10px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 28px; line-height: 1; cursor: pointer; }

@media (max-width: 560px) { body { font-size: 17px; } .brand small { display: none; } }
