:root {
  --primary: #5b2a86;
  --accent: #e09f3e;
  --text: #2a2333;
  --muted: #6f6880;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #e6e0d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #c9a6ea;
    --accent: #e0a94f;
    --text: #ece7f2;
    --muted: #a49bb5;
    --bg: #1c1626;
    --card: #271f33;
    --line: #3a3149;
  }
}
:root[data-theme="light"] {
  --primary: #5b2a86; --accent: #e09f3e;
  --text: #2a2333; --muted: #6f6880; --bg: #faf7f2; --card: #ffffff; --line: #e6e0d6;
}
:root[data-theme="dark"] {
  --primary: #c9a6ea; --accent: #e0a94f;
  --text: #ece7f2; --muted: #a49bb5; --bg: #1c1626; --card: #271f33; --line: #3a3149;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  text-wrap: balance;
}

section { max-width: 780px; margin: 0 auto; padding: 3rem 1.25rem; }
h2 { color: var(--primary); font-size: 1.9rem; margin-bottom: 1.25rem; font-weight: 700; }
.note { color: var(--muted); font-style: italic; margin-bottom: 1rem; }

/* Hero */
.hero {
  text-align: center;
  color: #fff;
  padding: 7rem 1.25rem 6rem;
  background-size: cover;
  background-position: center;
}
.hero h1 { font-size: 3.6rem; letter-spacing: .02em; }
.hero .tagline { font-size: 1.4rem; font-style: italic; margin-top: .5rem; font-family: 'Fraunces', Georgia, serif; }
.hero .cta-label {
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  color: #f0c479;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 2rem;
  background: var(--accent);
  color: #221a10;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background .2s;
}
.btn:hover { background: #c9882a; }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Intro */
.intro p { font-size: 1.15rem; }

/* Stats */
.stats, .stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.stats { max-width: 780px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.75rem;
  min-width: 130px;
  flex: 1;
}
.stat .num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--muted); font-size: .95rem; }

/* Motivation */
.motivation blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--card);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* About */
.about p { margin-bottom: 1rem; }

/* Location */
.location { text-align: center; }

/* Things to know */
.know ul { padding-left: 1.25rem; }
.know li { margin-bottom: .6rem; }

/* Tables (schedule + roster) */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
td.num-col, th.num-col { text-align: right; font-variant-numeric: tabular-nums; }
.cell-sub { color: var(--muted); font-size: .85rem; }

/* Areas */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card h3 { color: var(--primary); padding: 1rem 1.25rem 0; }
.card ul { padding: .75rem 1.25rem 1.25rem 2.5rem; }
.card li { margin-bottom: .35rem; }

/* Gallery — collage patch: one large centre tile with four around it */
.gallery { max-width: 780px; }
.photo-patch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 100%;
}
.photo-patch a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
}
/* the centre tile fills the middle two columns across both rows */
.photo-patch a:nth-child(3) {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.photo-patch a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.photo-patch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.photo-patch a:hover img { transform: scale(1.04); }
@media (max-width: 600px) {
  .photo-patch { grid-template-columns: repeat(2, 1fr); }
  .photo-patch a:nth-child(3) { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 3 / 4; }
}

/* Signup */
.signup { text-align: center; }

/* Donations */
.donation {
  max-width: 960px;
  text-align: center;
}
.donation-copy {
  max-width: 700px;
  margin: 0 auto 1.75rem;
}
.donation-copy h2 { margin-bottom: .75rem; }
.eyebrow {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.donation-poster {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(30, 20, 60, .14);
  overflow: hidden;
}
.donation-poster:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.donation-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.poster-hint {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .9rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--bg);
  text-align: center;
  padding: 2rem 1.25rem;
}
footer a { color: inherit; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2.4rem; }
  .hero { padding: 4.5rem 1rem; }
}
