:root {
  --ink: #141414;
  --ink-soft: #333;
  --paper: #f3f1ec;
  --card: #fff;
  --line: #d8d4cc;
  --red: #c8102e;
  --red-dark: #9d0c24;
  --header: #fff;
  --muted: #5c5c5c;
  --ok: #1f6b3a;
  --warn: #8a5a00;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 18px/1.6 "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
h1, h2 { font-family: "Inter", sans-serif; font-weight: 900; }
h3, strong, .btn, .event-date, .timeline dt, .badge { font-weight: 500; }

img { max-width: 100%; height: auto; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

/* Header */
.site-header {
  background: #fff;
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  height: 64px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 18px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 2px;
}
.nav a:hover {
  color: var(--red);
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 8px 2px;
  cursor: pointer;
}
.nav-drop-btn::after { content: " ▾"; font-size: .8em; }
.nav-drop-btn:hover, .nav-drop.is-current .nav-drop-btn { color: var(--red); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  z-index: 30;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 8px 14px; }
.nav-drop-menu a[aria-current="page"] {
  box-shadow: none;
  color: var(--red);
  background: #f7f1ee;
  font-weight: 500;
}
.nav .btn { padding: 10px 22px; }
.fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
}
.fb svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  border: 0;
  border-radius: 6px;
  padding: 10px 20px;
  line-height: 1.2;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff !important; }
.btn[aria-disabled="true"] {
  background: #777;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 16px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 380px;
  color: #fff;
  background: #1a1a1a center 68% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 20%, rgba(0,0,0,.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 0 40px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.hero p { margin: 0; font-size: 20px; max-width: 36em; }

.notice {
  background: var(--red);
  color: #fff;
  font-size: 17px;
}
.notice .wrap { padding: 12px 0; }
.notice strong { display: inline-block; margin-right: 8px; }

.page-hero {
  background: #fff;
  color: var(--ink);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 40px); }
.page-hero p { margin: 0; color: var(--ink-soft); }

main { padding: 48px 0 80px; }
h2 { font-size: 28px; margin: 0 0 20px; }
h2 + .lede, h2 + p { margin-top: 0; }
main h2 { margin-top: 64px; }
main h2:first-child { margin-top: 0; }
h3 { font-size: 20px; margin: 0 0 12px; }
.lede { font-size: 20px; max-width: 42em; margin-bottom: 24px; }

.grid {
  display: grid;
  gap: 28px;
  margin-top: 12px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.card h3 { margin-top: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.gallery a, .gallery span { display: block; text-decoration: none; color: inherit; }
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #eee;
}
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 36px 0;
}
.timeline dt { font-weight: 700; margin-top: 12px; }
.timeline dd { margin: 2px 0 0; }
.req li { margin: 4px 0; }

.program a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.program a.card:hover { border-color: var(--red); }

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a center / cover no-repeat;
  color: #fff;
  text-decoration: none;
}
.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.65) 100%);
}
.program-card > * { position: relative; z-index: 1; }
.program-card h3 { margin: 0 0 4px; color: #fff; font-size: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.program-card p { margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.program-card:hover { outline: 3px solid var(--red); }

/* Events */
.event-list { display: grid; gap: 12px; }
.event {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
}
.event.is-cancelled {
  background: #f7f4ee;
  border-style: dashed;
}
.event-date {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}
.event-date span { display: block; color: var(--muted); font-weight: 500; font-size: 15px; }
.event h3 { margin: 0 0 4px; font-size: 22px; }
.event p { margin: 0; color: var(--ink-soft); }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: #eee;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
}
.badge-cancel { background: #3a3a3a; color: #fff; }
.badge-type { background: #ead9d9; color: #6d1010; }
.status { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.error, .empty { background: #fff; border: 1px solid var(--line); padding: 16px; border-radius: 10px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Footer */
.site-footer {
  background: #fff;
  color: var(--ink-soft);
  padding: 28px 0 20px;
  font-size: 16px;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--red-dark); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.site-footer h2 { color: #666; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.legal { border-top: 1px solid var(--line); padding-top: 12px; color: #888; font-size: 14px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-drop:hover .nav-drop-menu { display: none; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .event { grid-template-columns: 1fr; }
  .event .btn { justify-self: start; }
  .grid-2, .grid-3, .foot-grid { grid-template-columns: 1fr; }
  .hero, .hero-inner { min-height: 280px; }
}
