/* Skyline Velo Cycling Club — shared site styles
   Forest green ground, cream primary text, sky blue accent, charcoal for nav/footer depth.
   Palette from the club's brand mockup (2026-09-01): #123B2A / #F3EBDD / #6FA9C9 / #202422. */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #123B2A;         /* forest green — main ground */
  --bg-raised: #0D2E20;  /* darker forest green — cards/raised surfaces */
  --line: #2A5A42;       /* mid forest green — borders/dividers */
  --ink: #F3EBDD;        /* cream — primary text (light-on-dark now, not dark-on-light) */
  --white: #F3EBDD;      /* legacy alias used as primary text color below */
  --dim: #A9C2B4;        /* muted cream-green — secondary text */
  --accent: #6FA9C9;     /* sky blue — accent text/highlights, replaces orange */
  --accent-dim: #1E3F4E; /* darker blue tint, for subtle accent backgrounds */
  --charcoal: #202422;   /* fourth brand color — nav/footer depth, distinct from the greens */
  --btn-text: #F3EBDD;   /* light text for solid accent buttons, independent of --bg */
  --max-w: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .display {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent { color: var(--accent); }

/* ---------- Nav ---------- */
/* Thin top strip above the nav — links out, doesn't scroll away. */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 700;
}
.announce-bar a { color: var(--bg); text-decoration: none; }
.announce-bar a:hover { text-decoration: underline; }

nav.site-nav {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(32,36,34,0.92), rgba(32,36,34,0));
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}
/* Solid once scrolled past the hero — toggled in js/main.js — so nav links stay readable over
   whatever section happens to be underneath, not just the hero. */
nav.site-nav.scrolled {
  background: var(--charcoal);
  backdrop-filter: none;
}

nav.site-nav .brand {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.site-nav .brand a { color: var(--white); text-decoration: none; }
nav.site-nav .brand .dot { color: var(--accent); }

nav.site-nav .links { display: flex; align-items: center; gap: 28px; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
nav.site-nav .links a { color: var(--dim); text-decoration: none; }
nav.site-nav .links a.page-link {
  position: relative;
  padding-bottom: 3px;
}
/* Underline grows in from the left on hover, rather than a plain text-decoration flip. */
nav.site-nav .links a.page-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transition: right 0.25s ease;
}
nav.site-nav .links a.page-link:hover { color: var(--white); }
nav.site-nav .links a.page-link:hover::after { right: 0; }
nav.site-nav .links a.page-link.current { color: var(--white); }
nav.site-nav .links a.page-link.current::after { right: 0; background: var(--accent); }

nav.site-nav .icon-link {
  display: flex;
  align-items: center;
  color: var(--dim);
  transition: color 0.2s ease;
}
nav.site-nav .icon-link:hover { color: var(--accent); }
nav.site-nav .icon-link svg { width: 20px; height: 20px; display: block; }
nav.site-nav .icon-link.strava-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  /* sky blue is lighter than the orange this replaced — dark text reads far better on it than
     the light --btn-text did on the old, more saturated orange */
  color: var(--bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: #8FC3DE; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---------- Generic section spacing (used on interior pages) ---------- */
.page-section { padding: 150px 0 60px; } /* extra top clearance for the announcement bar + nav stacked above */
.page-section h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 24px; }
.page-section p { color: var(--dim); font-size: 1.05rem; max-width: 640px; }
.page-section .card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  margin-top: 24px;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px;
  margin-top: 80px;
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
footer.site-footer .brand { font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: 0.03em; }
footer.site-footer .meta { color: var(--dim); font-size: 0.85rem; }
footer.site-footer .socials a { color: var(--dim); margin-left: 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
footer.site-footer .socials a:hover { color: var(--accent); }

/* ---------- Home page: traditional layout, real scroll mechanics ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 80px; /* extra top clearance for the announcement bar + nav stacked above */
  position: relative;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 14px;
}
.hero-title { font-size: clamp(3rem, 10vw, 6.6rem); }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); display: inline-block; }
.hero-sub { color: var(--dim); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 560px; margin: 24px auto 0; }
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.section { padding: 120px 24px; }
.section .wrap-inner { max-width: var(--max-w); margin: 0 auto; }
.section h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 780px; }
.section .lede { color: var(--dim); font-size: 1.1rem; max-width: 620px; margin-top: 20px; }
.reveal { opacity: 0; }

/* Horizontal-scroll gallery — pins the section while the track slides sideways as you scroll down.
   Placeholder cards until real club/ride photos exist (see website/setup.md) — swap the .gallery-card
   contents for <img> tags then, the scroll mechanic itself doesn't need to change. */
.gallery-pin {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-raised);
}
.gallery-heading {
  position: absolute;
  top: 64px; left: 24px;
  z-index: 2;
}
.gallery-track {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  will-change: transform;
}
.gallery-card {
  flex: 0 0 auto;
  width: min(70vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.gallery-card .label {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

/* Rides */
.rides-list { margin-top: 48px; display: flex; flex-direction: column; gap: 1px; background: var(--line); max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.ride-row { background: var(--bg); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding: 28px; }
.ride-row .day { font-family: 'Anton', sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.ride-row .detail { color: var(--dim); font-size: 0.95rem; }
.ride-row .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Leadership — officers only, deliberately (see decisions-log.md, minors-privacy consideration).
   Photo-card style, placeholder-photo box until real photos exist — swap the .leader-photo div
   for a real <img> then, nothing else about the layout needs to change. */
.leadership-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.leader-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
}
.leader-photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  color: var(--accent);
}
.leader-info { padding: 16px 18px 20px; }
.leader-name { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.1rem; }
.leader-tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.leader-tags span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.leader-tags span.role { color: var(--accent); border-color: var(--accent); }

.member-count { margin-top: 64px; text-align: center; }
.member-count .num { font-family: 'Anton', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); color: var(--accent); line-height: 1; }
.member-count .label { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-top: 8px; }

/* Story section — alternating text/photo blocks, inspired by a reference site's "the beginning"
   pattern but our own copy/palette. Placeholder photo box until real photos exist. */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-w);
  margin: 64px auto 0;
}
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }
.story-photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}
.story-block .pull { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; }
@media (max-width: 800px) {
  .story-block, .story-block.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* Instagram callout */
.insta-section { padding: 100px 24px; text-align: center; }
.insta-handle { font-family: 'Anton', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: none; }
.insta-handle .at { color: var(--accent); }

/* Footer watermark — large faint rotated text behind the footer content, pure CSS, no imagery. */
footer.site-footer { position: relative; overflow: hidden; }
footer.site-footer .watermark {
  position: absolute;
  bottom: -40px; right: -60px;
  font-family: 'Anton', sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  color: var(--line);
  opacity: 0.35;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
footer.site-footer .wrap { position: relative; z-index: 1; }

.join-section { background: var(--charcoal); padding: 120px 24px; text-align: center; }
.join-section h2 { color: var(--ink); }
.join-section .lede { color: var(--dim); margin: 20px auto 0; }
.join-section .btn-row { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
