
/* Tokens and base */
:root {
  --bg: #F7F4EC;
  --surface: #FFFFFF;
  --text: #1F2328;
  --muted: #6B6F76;
  --primary: #1B6B4A;
  --accent: #E4572E;
  --line: rgb(31 35 40 / .12);
  --radius: 10px;
  --heading: "Bricolage Grotesque", sans-serif;
  --body: "Source Sans 3", sans-serif;
  --wrap: 1160px;
  --gutter: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 6.6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: .18em; transition: color 160ms; }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

/* Layout */
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.header-row, .countdown-line, .primary-nav, .section-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.countdown-line { min-height: 44px; gap: 4px 16px; padding-block: 8px; }
.header-row { justify-content: space-between; gap: 8px 24px; min-height: 68px; }
.primary-nav { gap: 4px 24px; }
.hero { padding-block: 64px; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}
.section-header { justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-area { padding-block: 64px; }
.overview-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}
.guide-index { position: sticky; top: 24px; }
.prose { width: 100%; max-width: 76ch; margin-inline: auto; min-width: 0; }
.overview-layout .prose { margin-inline: 0; }
.faq-content { max-width: 76ch; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px 48px;
  padding-block: 48px 32px;
}

/* Components */
.skip-link {
  position: absolute; z-index: 5; left: 16px; top: 8px;
  transform: translateY(-140%); padding: 8px 16px;
  color: var(--surface); background: var(--text); border-radius: var(--radius);
}
.skip-link:focus { transform: none; color: var(--surface); }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 28px/1.15 var(--heading); letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: var(--radius); }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--text); text-decoration: none;
}
.primary-nav a:hover { color: var(--primary); text-decoration: underline; }
.countdown-bar { background: var(--primary); color: var(--surface); }
.countdown-bar a, .countdown-bar a:hover { color: var(--surface); }
.countdown-bar a:focus-visible { outline-color: var(--surface); }
.countdown-label { font-size: 14px; font-weight: 600; }
.countdown-digits { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-points a {
  display: block; min-height: 64px; padding: 12px 0 0;
  border-top: 2px solid var(--primary); text-decoration: none;
}
.hero-points strong { display: block; font-size: 18px; }
.hero-points span { display: block; color: var(--text); font-size: 16px; }
.hero-points a:hover strong { text-decoration: underline; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; list-style: none; gap: 4px 12px;
  margin: 0 0 24px; padding: 0; font-size: 14px;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 12px; color: var(--muted); }
.event-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card-index {
  position: absolute; left: 12px; top: 12px; padding: 4px 8px;
  background: var(--surface); color: var(--text); border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-copy { display: grid; padding: 16px 20px 24px; gap: 8px; }
.card-copy h3 a { color: var(--text); }
.card-copy h3 a:hover { color: var(--primary); }
.card-date { color: var(--primary); font-size: 14px; font-weight: 600; }

/* Header, articles, calendar, and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero {
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero h1 { max-width: 20ch; }
.hero-lede { max-width: 60ch; margin-top: 16px; font-size: 22px; }
.hero-guide h1 { font-size: clamp(36px, 5.6vw, 60px); }
.event-grid-section { padding-block: 64px; }
.guide-index nav { padding: 24px 16px; border-block: 1px solid var(--line); }
.guide-index h2 { font-size: 18px; }
.guide-index ul { margin: 12px 0 0; padding: 0; list-style: none; }
.guide-index li + li { margin-top: 8px; }
.prose > * + * { margin-top: 16px; }
.prose > :first-child { margin-top: 0; }
.prose > h2:not(:first-child) { margin-top: 48px; }
.prose > h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.calendar-months { display: grid; gap: 24px; }
.calendar-month h3 { margin-bottom: 12px; }
.calendar-archive summary { cursor: pointer; font-weight: 600; }
.calendar-archive .calendar-months { margin-top: 16px; }
.calendar-event-notes > :not(summary) { margin-top: 16px; }
.calendar-event-notes > h3 { margin-top: 24px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 16px; }
th, td { padding: 12px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { background: var(--primary); color: var(--surface); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
.faq-section { background: var(--surface); border-block: 1px solid var(--line); padding-block: 48px; }
.faq-section h2 { margin-bottom: 24px; }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section details:first-of-type { border-top: 1px solid var(--line); }
.faq-section summary { padding-block: 16px; cursor: pointer; font-weight: 600; }
.faq-section details p { padding: 0 0 16px 24px; }
.site-footer h2 { font-size: 18px; margin-bottom: 8px; }
.site-footer nav a { display: block; width: fit-content; padding-block: 4px; }
.footer-brand p { margin-top: 12px; max-width: 48ch; color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line); padding-block: 16px 24px; font-size: 14px; }

/* Responsive layout and motion */
@media (max-width: 900px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .guide-index { position: static; }
  .guide-index nav { padding-inline: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h1, .hero-guide h1 { font-size: 36px; }
  .hero, .article-area, .event-grid-section { padding-block: 40px; }
  .hero-lede { font-size: 18px; }
  .hero-points, .event-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-points { gap: 8px; margin-top: 24px; }
  .hero-points a { min-height: 44px; padding-top: 8px; border-top-width: 1px; }
  .header-row { padding-block: 8px; }
  .primary-nav { gap: 0 16px; font-size: 16px; }
  .footer-grid { gap: 24px; }
  .countdown-line { column-gap: 12px; }
  table { font-size: 14px; }
  th, td { padding: 8px; }
  table[data-stacked] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table[data-stacked], table[data-stacked] tbody, table[data-stacked] tr, table[data-stacked] :is(td, tbody th) { display: block; }
  table[data-stacked] tr { padding: 8px 12px; border-bottom: 1px solid var(--line); }
  table[data-stacked] :is(td, tbody th) { display: grid; grid-template-columns: minmax(78px, 1fr) minmax(0, 1.7fr); gap: 8px; padding: 6px 0; border: 0; }
  table[data-stacked] :is(td, tbody th)::before { content: attr(data-label); font-weight: 600; color: var(--primary); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
