:root {
  --ink: #182620;
  --muted: #66736d;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --line: #d9ddd7;
  --green: #166447;
  --green-dark: #0d4933;
  --lime: #d8ee78;
  --orange: #d66b3d;
  --radius: 18px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--green-dark); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--green-dark); color: white; border-bottom: 4px solid var(--lime); }
.header-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand:hover { color: white; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--lime); color: var(--green-dark); font: 800 25px/1 Georgia, serif; }
.brand strong { display: block; font: 700 23px/1 Georgia, serif; }
.brand small { display: block; margin-top: 5px; color: #dce9e2; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-header nav a { color: white; text-decoration: none; padding: 9px 12px; border-radius: 999px; }
.site-header nav a:hover { background: rgb(255 255 255 / .12); }
.main-content { min-height: 70vh; padding-block: 48px 72px; }

.page-heading { max-width: 780px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 64px); letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 3vw, 31px); }
.page-heading > p:last-child { color: var(--muted); font-size: 18px; }

.filters { padding: 22px; margin-bottom: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 30px rgb(24 38 32 / .06); }
.filter-primary, .filter-secondary { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; min-width: 145px; font-size: 13px; font-weight: 700; }
.field-grow { flex: 1 1 260px; }
input, select { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: white; border: 1px solid #bcc5bf; border-radius: 9px; font: inherit; }
input:focus, select:focus { outline: 3px solid rgb(216 238 120 / .75); border-color: var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 18px; border: 0; border-radius: 10px; color: white; background: var(--green); font: 750 15px/1 inherit; text-decoration: none; cursor: pointer; }
.button:hover { color: white; background: var(--green-dark); }
.button-secondary { background: var(--ink); }
.advanced { margin-top: 16px; }
.advanced summary { cursor: pointer; color: var(--green-dark); font-weight: 700; }
.filter-secondary { align-items: center; padding-top: 15px; border-top: 1px solid var(--line); margin-top: 12px; }
.filter-secondary .field { flex: 1 1 190px; }
.check { display: flex; gap: 8px; align-items: center; padding-top: 18px; font-size: 14px; }
.check input { width: 20px; min-height: 20px; }
.clear-filters { display: inline-block; margin-top: 15px; font-size: 14px; }

.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.result-heading h2 { margin-bottom: 18px; }
.event-list { display: grid; gap: 13px; }
.event-card { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.event-card:hover { border-color: #aab7ae; box-shadow: 0 10px 26px rgb(24 38 32 / .06); }
.event-date { display: flex; flex-direction: column; align-items: center; align-self: start; padding: 12px 8px; border-radius: 14px; background: #e9efdf; color: var(--green-dark); }
.event-date strong { font: 700 32px/1 Georgia, serif; }
.event-date span { font: 700 18px/1 Georgia, serif; }
.event-date small { margin-top: 7px; }
.event-body h2 { margin: 7px 0 8px; }
.event-body h2 a { color: var(--ink); text-decoration: none; }
.event-meta, .event-body p { margin: 4px 0; color: var(--muted); }
.price { font-weight: 750; color: var(--green-dark) !important; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #e7ece8; color: var(--green-dark); font-size: 12px; font-weight: 750; text-decoration: none; }
.badge-state { background: var(--lime); }
.badge-danger { background: #f4c8bb; color: #7b2713; }
.empty, .error-page { padding: 40px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.pagination { justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }

.breadcrumbs { margin-bottom: 24px; color: var(--muted); }
.event-detail { max-width: 850px; }
.event-detail header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.event-detail h1 { margin-top: 14px; }
.detail-lead { color: var(--green); font: 700 clamp(20px, 3vw, 28px)/1.3 Georgia, serif; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.facts div { padding: 20px; background: var(--surface); }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.facts dd { margin: 8px 0 0; font-weight: 650; }
.prose { max-width: 720px; font-size: 18px; }
.source-box { padding: 24px; margin-top: 35px; border-radius: var(--radius); background: #e9efdf; }

.week-switcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; margin-bottom: 24px; }
.week-switcher a { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-decoration: none; }
.week-switcher a.active { color: white; background: var(--green); border-color: var(--green); }
.week-switcher small { display: block; font-size: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(135px, 1fr)); gap: 8px; overflow-x: auto; }
.calendar-day { min-height: 220px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.calendar-day h2 { margin: 0 0 12px; font-size: 17px; }
.calendar-day article { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.calendar-day article time { color: var(--orange); font-size: 12px; font-weight: 800; }
.calendar-day article a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.25; }
.calendar-day article small, .muted { color: var(--muted); }

.site-footer { padding-block: 28px; color: #dce9e2; background: var(--green-dark); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .header-row { align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .site-header nav { width: 100%; }
  .site-header nav a { flex: 1; text-align: center; }
  .main-content { padding-top: 34px; }
  .filter-primary { align-items: stretch; }
  .filter-primary .field, .filter-primary .button { width: 100%; }
  .event-card { grid-template-columns: 64px 1fr; padding: 15px; gap: 12px; }
  .event-date strong { font-size: 25px; }
  .facts { grid-template-columns: 1fr; }
  .result-heading { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-header nav, .filters, .site-footer, .pagination { display: none; }
  body { background: white; }
  .main-content { padding: 0; }
}
