[hidden] { display: none !important; }
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --text: #2a2024;
  --muted: #6b5e63;
  --accent: #8e1b2f;
  --accent-ink: #ffffff;
  --gold: #b8862b;
  --border: #e8dfd4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 20, 25, .06), 0 4px 16px rgba(40, 20, 25, .06);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1416;
    --surface: #241c1f;
    --text: #f1e9e4;
    --muted: #b5a7ac;
    --accent: #e0647a;
    --accent-ink: #1a1416;
    --gold: #e0b35c;
    --border: #3a2e33;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: .6em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; }
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--accent); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.container { padding-bottom: 64px; min-height: 60vh; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom: 4px solid var(--gold);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: #3a1820; color: var(--text); }
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: inherit; text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: inherit; text-decoration: none; padding: 8px 12px; border-radius: 8px; opacity: .9; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .15); opacity: 1; }
.nav-toggle { display: none; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav.is-open { display: flex; }
}

/* Hero */
.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.hero .lead { margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent); }

/* Quick links */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.quick-item {
  display: flex; flex-direction: column; gap: 4px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .15s ease;
}
.quick-item:hover { transform: translateY(-2px); border-color: var(--gold); }
.quick-item > span:first-child { font-size: 1.8rem; }
.quick-item span:last-child { color: var(--muted); font-size: .95rem; }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.grid .card { margin: 0; height: 100%; }
.card p { margin: .4em 0; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .4em; }
.tag {
  display: inline-block; font-size: .78rem; padding: 2px 10px; margin: 2px 4px 2px 0;
  border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--text);
}

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.chip {
  font: inherit; font-size: .9rem; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Events */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.event p { margin: .3em 0; }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 8px 0;
}
.event-date .day { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .mon { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.past .event { opacity: .7; }
.past .event-date { background: var(--muted); }

/* Resources */
.search { display: block; margin: 16px 0 8px; }
.search span { position: absolute; left: -9999px; }
.search input {
  width: 100%; max-width: 480px; font: inherit; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
}
.res-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.res-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.res-list a { font-weight: 600; }
.res-list p { margin: .3em 0 0; color: var(--muted); font-size: .95rem; }
.ext { color: var(--muted); font-size: .85rem; }

/* Prose */
.post, .page { max-width: 740px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose blockquote { margin: 1em 0; padding: .2em 1em; border-left: 4px solid var(--gold); color: var(--muted); }
.back { margin-top: 24px; }
.empty-note { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0 16px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-grid p { color: var(--muted); margin: .3em 0; }
.small { color: var(--muted); font-size: .85rem; margin-top: 24px; }
