/* Colors live here — change these to rebrand the whole site. */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --text: #1b2733;
  --muted: #5b6b7a;
  --accent: #0b6e99;
  --accent-dark: #084f6e;
  --border: #dbe3ea;
  --hero-from: #0b3c5d;
  --hero-to: #0b6e99;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f171e;
    --bg-alt: #16212b;
    --text: #e4ebf1;
    --muted: #9aabba;
    --accent: #4fb3dd;
    --accent-dark: #7cc8e8;
    --border: #273543;
    --hero-from: #0a2a40;
    --hero-to: #0b4d6b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Under-construction banner */
.construction-banner {
  background: #fff4d6; color: #5c4400;
  border-bottom: 1px solid #f0d58a;
  text-align: center; font-size: 15px;
  padding: 10px 16px;
}
@media (prefers-color-scheme: dark) {
  .construction-banner { background: #3a2f10; color: #f5dd9b; border-bottom-color: #5c4a18; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 72px 0 64px;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; opacity: 0.8; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; }
.lede { font-size: 1.15rem; max-width: 640px; opacity: 0.92; margin: 0 0 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0 0 32px; }
.facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.button {
  display: inline-block;
  background: #fff; color: var(--hero-from);
  font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 8px;
}
.button:hover { color: var(--hero-from); opacity: 0.9; }
.section .button { background: var(--accent); color: #fff; }
.button-disabled { opacity: 0.75; cursor: default; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.8rem; margin: 0 0 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--accent); }
.card p { margin: 0; color: var(--muted); }

/* Schedule */
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.day { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.day h3 { margin: 0 0 12px; font-size: 1.1rem; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border); }
.day li:first-child { border-top: 0; }
.time { flex: 0 0 52px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Hubs */
.card-primary { border: 2px solid var(--accent); }
.badge { display: inline-block; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.hub-where { font-weight: 500; color: var(--text) !important; margin-bottom: 8px !important; }

/* Supporter logos in the hero: white tiles keep dark-on-light logos legible */
.hero-supporters { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.25); }
.hero-supporters-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; opacity: 0.8; margin: 0 0 12px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.logos li { background: #fff; border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; height: 84px; }
.logos a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logos img { max-width: 100%; max-height: 60px; object-fit: contain; }
.logos li.fill { padding: 2px; }
.logos li.fill img { max-height: 80px; }

/* Organizers */
.subhead { font-size: 1.1rem; margin: 32px 0 12px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-groups { display: flex; flex-direction: column; gap: 12px; }
.contact-groups .card { padding: 16px 20px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 4px 0; }
.contact-list strong { min-width: 150px; }
.contact-list a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .contact-list li { flex-direction: column; gap: 0; padding: 6px 0; }
}
.committee { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.committee li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.people li { display: flex; flex-direction: column; }

/* Plain Markdown pages */
.prose { max-width: 720px; }
.prose h1 { font-size: 2rem; margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 15px; color: var(--muted); }
