:root {
  --ink: #101411;
  --ink-soft: #3c4a42;
  --paper: #f4f7f1;
  --paper-2: #e7f2df;
  --card: #ffffff;
  --night: #07110c;
  --night-2: #10281c;
  --lime: #d8ff3e;
  --hot: #ff3b1f;
  --line: rgba(16, 20, 17, 0.12);
  --shadow: 0 16px 40px rgba(7, 17, 12, 0.08);
  --display: Syne, Outfit, "Segoe UI", sans-serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 100% -80px, rgba(216, 255, 62, 0.28), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: #0d3b28; font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--hot); }
h1, h2, h3 { overflow-wrap: normal; }
p { overflow-wrap: break-word; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
::selection { background: var(--lime); color: var(--ink); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 800;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 17, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 255, 62, 0.18);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #f4f7f1; }
.brand:hover { color: #f4f7f1; }
.mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
}
.brand-name { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-name em { font-style: normal; color: var(--lime); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: rgba(244, 247, 241, 0.82);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover { color: var(--lime); background: rgba(216, 255, 62, 0.08); }
.nav a[aria-current="page"] { color: var(--lime); }
.nav-join, .nav-members { font-weight: 800 !important; }
.nav-join { background: var(--lime); color: var(--ink) !important; margin-left: 6px; }
.nav-join:hover { background: #edff8a; color: var(--ink) !important; }
.nav-members {
  border: 1px solid rgba(244, 247, 241, 0.35);
  color: #f4f7f1 !important;
}
.nav-members:hover { border-color: var(--lime); color: var(--lime) !important; background: transparent; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(216, 255, 62, 0.4);
  background: transparent;
  color: var(--lime);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.banner {
  background: var(--hot);
  color: #1a0b07;
  text-align: center;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero {
  position: relative;
  color: #f4f7f1;
  background: var(--night);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero:after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 17, 12, 0.94) 0%, rgba(7, 17, 12, 0.78) 46%, rgba(7, 17, 12, 0.28) 100%),
    linear-gradient(to top, rgba(7, 17, 12, 0.55), transparent 42%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  padding: 56px 0 48px;
}
.hero-inner > * { min-width: 0; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hot);
}
.hero .eyebrow { color: rgba(244, 247, 241, 0.8); }
.hero .eyebrow span {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  margin-right: 8px;
  letter-spacing: 0.12em;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  color: #f7f8f4;
  max-width: 8em;
  line-height: 0.9;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--lime);
}
.lede { font-size: 1.18rem; max-width: 38rem; margin: 0 0 22px; color: rgba(244, 247, 241, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button, button, .nav-toggle { font: inherit; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 13px 18px; text-decoration: none;
  font-weight: 800; border: 2px solid transparent; cursor: pointer;
  letter-spacing: -0.02em;
}
.button:hover { transform: translateY(-1px); }
.button.vest { background: var(--hot); color: #1a0b07; border-color: var(--hot); }
.button.vest:hover { color: #1a0b07; background: #ff5a36; }
.button.spruce {
  background: var(--lime); color: var(--ink); border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.button.spruce:hover { color: var(--ink); background: #edff8a; }
.button.ghost { background: transparent; border-color: rgba(244, 247, 241, 0.7); color: #f4f7f1; }
.button.ghost:hover { border-color: var(--lime); color: var(--lime); }
.button.line { background: transparent; border-color: var(--ink); color: var(--ink); }
.button.line:hover { background: var(--ink); color: var(--lime); }
.button.small { padding: 8px 12px; font-size: 0.92rem; }

.ticket {
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: 10px 10px 0 rgba(7, 17, 12, 0.85);
  align-self: end;
}
.ticket .kicker { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; font-weight: 800; }
.ticket h2 { margin: 8px 0; font-size: clamp(1.65rem, 6vw, 2.55rem); line-height: 0.95; }
.ticket p { margin: 0 0 8px; }
.ticket .meta { font-weight: 700; }
.ticket .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ticket .button.spruce { background: var(--ink); color: var(--lime); box-shadow: none; }
.ticket .button.spruce:hover { background: #000; color: var(--lime); }
.ticket .button.line { border-color: var(--ink); color: var(--ink); }
.ticket .button.line:hover { background: var(--ink); color: var(--lime); }
.ticket a { color: var(--ink); }

.facts { background: var(--lime); color: var(--ink); }
.facts-list {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  list-style: none; margin: 0; padding: 16px 0; align-items: center;
}
.facts li { font-weight: 700; }
.facts strong {
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.section { padding: 76px 0; }
.section.band {
  background:
    linear-gradient(180deg, rgba(216, 255, 62, 0.16), rgba(216, 255, 62, 0.05)),
    #eef6e6;
}
.section h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 12px; }
.intro { max-width: 62ch; color: var(--ink-soft); margin-top: 0; font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.card, .pace-card, .route-card, .news-card, .session-card, .person-card, .panel {
  background: var(--card);
  border: 1px solid rgba(16, 20, 17, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.pace-card { position: relative; overflow: hidden; min-height: 220px; }
.pace-card:before {
  content: "";
  position: absolute; right: -20px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(216, 255, 62, 0.45);
}
.pace-wanderer { border: 2px solid var(--ink); }
.pace-steady { background: var(--night-2); color: #f4f7f1; border-color: var(--night-2); }
.pace-steady a { color: var(--lime); }
.pace-strider { background: var(--hot); color: #1a0b07; border-color: #1a0b07; }
.pace-strider:before { background: rgba(16, 20, 17, 0.12); }
.pace-steady:before { background: rgba(216, 255, 62, 0.22); }
.pace-card h3 { position: relative; margin: 28px 0 8px; font-size: 2.2rem; }
.pace-card .short { position: relative; font-weight: 800; margin: 0 0 8px; }
.pace-steady .short { color: var(--lime); }
.pace-card p:last-child { position: relative; }
.pace-wanderer:after, .pace-steady:after, .pace-strider:after {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.14em;
  font-size: 0.75rem;
}
.pace-wanderer:after { content: "01"; }
.pace-steady:after { content: "02"; color: var(--lime); }
.pace-strider:after { content: "03"; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.steps li {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(16, 20, 17, 0.08);
  padding: 16px 16px 16px 72px;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li:before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 14px;
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--lime);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.photo-frame { border-radius: 28px; overflow: hidden; min-height: 240px; border: 2px solid var(--ink); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.beginner-band {
  background: var(--night);
  color: #f4f7f1;
  border-radius: 32px;
  padding: 28px;
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--lime);
}
.beginner-band h2 { color: var(--lime); }
.beginner-band .eyebrow { color: var(--lime); }
.beginner-band a { color: var(--lime); }
.band-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
  border: 2px solid rgba(216, 255, 62, 0.7);
}
.news-card h3 { margin: 8px 0; font-size: 1.55rem; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--hot); }
.meta { color: var(--ink-soft); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.session-card { border-left: 8px solid var(--night-2); }
.kind-efforts { border-left-color: var(--hot); }
.kind-long { border-left-color: #7aa30d; }
.kind-parkrun { border-left-color: #1aa6c7; }
.session-kicker, .kicker {
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.75rem; font-weight: 800; color: #1f7a45; margin: 0;
}
.session-when { font-family: var(--display); font-weight: 800; font-size: 1.45rem; margin: 6px 0; letter-spacing: -0.04em; }
.session-list { display: grid; gap: 12px; }
.who { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.who li { background: var(--paper-2); border-radius: 999px; padding: 4px 10px; font-size: 0.92rem; font-weight: 700; }
.rsvp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rsvp button, .inline-buttons button, .logout-form button {
  border: 2px solid rgba(16, 20, 17, 0.16);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}
.rsvp button.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }

.map { margin: 0; }
.map iframe { width: 100%; height: 340px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper-2); }
.map figcaption { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; }

.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.route-card .distance { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 6px 0; letter-spacing: -0.04em; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 20, 17, 0.08);
  box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 8px 0 0; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 22px; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:first-child img { height: 100%; min-height: 500px; }
.gallery figcaption { padding: 10px 2px 0; color: var(--ink-soft); }
.gallery strong { display: block; color: var(--ink); font-family: var(--display); letter-spacing: -0.03em; font-size: 1.05rem; }

.race-bib {
  width: min(260px, 100%);
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 18px 16px 22px;
  text-align: center;
  box-shadow: 10px 10px 0 var(--ink);
  margin-bottom: 16px;
}
.race-holes { display: flex; justify-content: space-between; padding: 0 18px; }
.race-holes i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); display: block; }
.race-no { display: block; font-family: var(--display); font-size: 4rem; font-weight: 800; line-height: 0.9; margin-top: 8px; letter-spacing: -0.06em; }
.race-bib strong, .race-bib em { display: block; letter-spacing: 0.16em; font-style: normal; }
.race-bib em { font-weight: 800; }

body:not(.is-member) main > .wrap.page-head {
  width: auto;
  max-width: none;
  margin: 0 0 8px;
  padding: 4.2rem max(1.25rem, calc((100% - var(--max)) / 2)) 3.2rem;
  background:
    radial-gradient(520px 220px at 92% 0%, rgba(216, 255, 62, 0.28), transparent 60%),
    var(--night);
  color: #f4f7f1;
}
body:not(.is-member) .page-head h1 { color: #f7f8f4; font-size: clamp(3rem, 7vw, 5.6rem); }
body:not(.is-member) .page-head .intro { color: rgba(244, 247, 241, 0.8); }
body:not(.is-member) .page-head .eyebrow { color: var(--lime); }
body:not(.is-member) .page-head a { color: var(--lime); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 10px; }
.is-member .page-head { padding: 28px 0 8px; }

.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }
.narrow h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); margin: 0 0 12px; }

label { display: block; font-weight: 800; margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; max-width: 100%;
  border: 2px solid rgba(16, 20, 17, 0.16);
  background: white; color: var(--ink);
  border-radius: 14px; padding: 12px 14px; font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--lime);
  border-color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 12px 0; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-errors, .flash { border-radius: 16px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
.form-errors, .flash.bad { background: #ffe8e2; color: #5c2416; border: 1px solid #ffc7b8; }
.flash.ok { background: #e9ffc2; color: #1a2a08; border: 1px solid #c6ee6a; }
.form-card {
  background: var(--card);
  border-radius: 28px;
  padding: 22px;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(216, 255, 62, 0.85);
}

.site-footer {
  background: var(--night);
  color: #f4f7f1;
  padding: 48px 0 22px;
  margin-top: 12px;
  border-top: 8px solid var(--lime);
}
.site-footer a { color: var(--lime); }
.site-footer a:hover { color: #f4f7f1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--display); font-size: 2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.04em; }
.footer-label { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; font-weight: 800; color: var(--lime); }
.footer-legal { border-top: 1px solid rgba(244, 247, 241, 0.14); margin-top: 26px; padding-top: 14px; color: rgba(244, 247, 241, 0.72); font-size: 0.92rem; }

.member-bar { background: #0c1c14; color: #f4f7f1; border-bottom: 1px solid rgba(216, 255, 62, 0.16); }
.member-links { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 10px 0; }
.member-links a { color: rgba(244, 247, 241, 0.86); text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.member-links a:hover { color: var(--lime); }
.member-links a[aria-current="page"] { background: rgba(216, 255, 62, 0.14); color: var(--lime); box-shadow: none; }
.member-admin { background: var(--lime); color: var(--ink) !important; }
.member-admin:hover { color: var(--ink) !important; }
.logout-form { margin-left: auto; }
.logout-form button { background: transparent; color: #f4f7f1; border-color: rgba(244, 247, 241, 0.35); }

.stack { display: grid; gap: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--card); border-radius: 20px; padding: 16px; border: 1px solid rgba(16, 20, 17, 0.08); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; }
.table-list { display: grid; gap: 10px; }
.person-card h3 { margin: 0 0 4px; }
.muted { color: var(--ink-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.tabs a { text-decoration: none; border: 2px solid rgba(16, 20, 17, 0.12); border-radius: 999px; padding: 6px 12px; color: var(--ink); background: white; font-weight: 800; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.danger { background: transparent; color: #8d2d16; border-color: #e7b2a4; }

.avail { margin: 6px 0 0; min-height: 1.2em; font-size: 0.92rem; font-weight: 700; }
.avail.ok { color: #1b6b32; }
.avail.bad { color: #8d2d16; }
.notice {
  background: var(--lime);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0;
  font-weight: 700;
  border: 2px solid var(--ink);
}

.page-join, .page-login, .page-install, .page-contact {
  background:
    radial-gradient(700px 320px at 0% -40px, rgba(216, 255, 62, 0.55), transparent 60%),
    radial-gradient(500px 240px at 100% 0%, rgba(255, 59, 31, 0.16), transparent 55%),
    var(--paper);
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
body:not(.is-member) .page-head :focus-visible,
.member-bar :focus-visible { outline-color: var(--lime); }

@media (min-width: 980px) {
  .hero-inner { min-height: 76vh; align-items: end; grid-template-columns: 1.15fr 0.85fr; padding: 64px 0 48px; }
}

@media (max-width: 1080px) {
  .grid-3, .route-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 76px;
    background: #102018;
    border: 1px solid rgba(216, 255, 62, 0.28);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px 12px; }
  .nav-join, .nav-members { margin-left: 0; text-align: center; }
  .header-inner { position: relative; }
}

@media (max-width: 800px) {
  .grid-3, .grid-2, .split, .route-grid, .footer-grid, .form-row, .stat-row, .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery figure:first-child img, .gallery img { height: 220px; min-height: 0; }
  .hero { box-sizing: border-box; padding-left: 16px; padding-right: 16px; }
  .hero-inner { display: block; width: auto; max-width: 100%; margin: 0; }
  .hero-copy, .hero h1, .lede, .ticket {
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    overflow-wrap: break-word;
  }
  .ticket { width: auto !important; box-sizing: border-box; }
  .ticket h2 { font-size: 1.7rem; overflow-wrap: break-word; }
  .beginner-band { box-shadow: 0 10px 0 var(--lime); }
  .logout-form { margin-left: 0; }
  .ticket { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .member-bar, .nav-toggle, .no-print, .hero-actions, .rsvp { display: none !important; }
  body { background: white; }
  .ticket, .card, .session-card { box-shadow: none; border: 1px solid #ccc; }
}
