:root {
  --bg: #070709;
  --bg-2: #101218;
  --ink: #e8e4dc;
  --muted: #9a948a;
  --cyan: #3fd0e8;
  --ice: #7ec8e3;
  --gold: #d4a017;
  --gold-2: #f0c14b;
  --run: #c45c2a;
  --munch: #3fd0e8;
  --edu: #8f7ae8;
  --other: #9a948a;
  --line: rgba(126, 200, 227, 0.18);
  --danger: #e35d6a;
  --radius: 14px;
  --font-display: "Cinzel", Palatino, "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(63, 208, 232, 0.08), transparent 50%),
    radial-gradient(900px 400px at 0% 100%, rgba(196, 92, 42, 0.08), transparent 45%),
    repeating-radial-gradient(circle at 20% 20%, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px),
    var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--ice); }
a:hover { color: var(--cyan); }

h1, h2, h3, .brand-mark, .brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-weight: 500;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.35em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #041016;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 10px rgba(63, 208, 232, 0.45));
}
.brand-name, .brand-mark { display: block; }
.brand-name { font-size: 0.72rem; color: var(--ice); text-transform: uppercase; }
.brand-mark { font-size: 1.05rem; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
}

.site-nav { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #041016;
  background: linear-gradient(180deg, var(--ice), var(--cyan));
}

main { display: block; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,9,0.88) 20%, rgba(7,7,9,0.55) 70%, rgba(7,7,9,0.3)),
    url("../img/banner.png") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap { position: relative; }

.kicker {
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  margin: 0 0 0.6rem;
}

.lede { font-size: 1.15rem; max-width: 40rem; color: #d7d2c8; }

.section { padding: 2.5rem 0; }
.section-alt { background: rgba(16, 18, 24, 0.55); border-block: 1px solid var(--line); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.4rem 0 0.4rem;
}
.stack { display: grid; gap: 1rem; }

.event-card, .panel, .edu-card {
  background: linear-gradient(180deg, rgba(20,24,30,0.95), rgba(12,14,18,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.event-card.is-featured {
  border-color: rgba(63, 208, 232, 0.55);
  box-shadow: 0 0 0 1px rgba(63,208,232,0.2), 0 12px 40px rgba(0,0,0,0.4);
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.chip-run { color: #f0b090; }
.chip-munch { color: var(--cyan); }
.chip-education { color: #c3b6ff; }
.chip-other { color: var(--muted); }

.event-location { color: var(--ice); margin: 0 0 0.5rem; }
.event-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.8rem 0 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
}
.btn-cyan {
  background: linear-gradient(180deg, var(--ice), var(--cyan));
  color: #041016;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1204;
}
.btn-ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
}
.btn-danger { background: var(--danger); color: #fff; }
.text-link { color: var(--ice); }

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-head, .cal-cell {
  padding: 0.45rem 0.3rem;
  text-align: center;
  font-size: 0.82rem;
}
.cal-head { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cal-cell {
  min-height: 4.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.cal-cell.is-today { border-color: var(--cyan); }
.cal-cell.is-muted { opacity: 0.35; }
.cal-cell.has-event { background: rgba(63, 208, 232, 0.12); }
.cal-dots { display: flex; justify-content: center; gap: 3px; margin-top: 0.15rem; }
.cal-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block;
}
.cal-dots span.run { background: var(--run); }
.cal-dots span.education { background: var(--edu); }
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.edu-grid, .link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.6rem 0 0;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-fallback {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.5rem 0 0;
}
a.is-external:not(.btn)::after {
  content: " ↗";
  font-size: 0.8em;
  opacity: 0.7;
}

form.stack label { display: grid; gap: 0.25rem; }
form.stack label.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
}
form.stack label.check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}
#paypal-button-container {
  min-height: 3rem;
  margin: 0.8rem 0;
}
#paypal-fallback {
  margin-top: 0.8rem;
}
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #0b0d12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
textarea { min-height: 8rem; resize: vertical; }
.form-error { color: var(--danger); }
.flash {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid var(--line);
}
.flash.ok { background: rgba(63,208,232,0.12); }
.flash.err { background: rgba(227,93,106,0.12); color: #ffc0c6; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 1rem; }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; color: var(--ink); }
.footer-brand p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; }
.footer-nav a { color: var(--ice); text-decoration: none; }
.fineprint { max-width: 46rem; }

.age-gate-body { display: grid; place-items: center; }
.age-gate {
  width: min(32rem, calc(100% - 2rem));
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(10,12,16,0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.age-gate img { filter: drop-shadow(0 0 16px rgba(63,208,232,0.5)); }
.age-form fieldset {
  border: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0;
  margin: 1rem 0;
}
.age-form label { display: grid; gap: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.check { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin: 0.8rem 0; }
form.stack .check { justify-content: flex-start; }

.admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0b0d12;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .cal-cell { min-height: 3.2rem; font-size: 0.75rem; }
}
