/* ============================================
   EASTON RUN CLUB — design tokens
   ink   : near-black navy text/bg
   paper : cool off-white
   coral : primary energetic accent
   amber : secondary accent
   slate : muted text
   line  : hairline dividers
   ============================================ */
:root{
  --ink:      #2A2724;
  --ink-soft: #3D3934;
  --paper:    #F3ECDE;
  --paper-2:  #E3D9C6;
  --coral:    #A8342A;
  --amber:    #B8AD98;
  --slate:    #6B655B;
  --line:     rgba(42,39,36,0.14);
  --line-light: rgba(243,236,222,0.16);

  --display: "Anton", Impact, sans-serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;

  --radius: 14px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,video{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:0 28px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- eyebrow / titles ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--coral);
  margin:0 0 14px;
  font-weight:700;
}
.eyebrow--hero{ color:var(--amber); }
.eyebrow--light{ color:var(--amber); }
.eyebrow--spaced{ margin-top:64px; }

.section__title{
  font-family:var(--display);
  font-size:clamp(32px,5vw,52px);
  line-height:1.02;
  letter-spacing:0.01em;
  margin:0 0 18px;
  text-transform:uppercase;
}
.section__title--light{ color:var(--paper); }
.section__lede{
  max-width:560px;
  color:var(--slate);
  font-size:17px;
  line-height:1.6;
  margin:0 0 40px;
}
.section--dark .section__lede{ color:#B9BDC8; }
.section--dark .section__lede a{ color:var(--amber); text-decoration:underline; text-underline-offset:3px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--body);
  font-weight:700;
  font-size:15px;
  padding:15px 28px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn--coral{
  background:var(--coral);
  color:var(--paper);
  box-shadow:0 6px 0 0 #7A241C;
}
.btn--coral:hover{ box-shadow:0 8px 0 0 #7A241C; }
.btn--ghost{
  background:transparent;
  border-color:currentColor;
  color:var(--paper);
}
.hero .btn--ghost{ color:var(--paper); }
.hero .btn--ghost:hover{ background:rgba(245,244,239,0.08); }

/* ============ NAV ============ */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(20,23,31,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line-light);
}
.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.nav__logo{
  display:flex;
  align-items:center;
  line-height:1;
}
.nav__logo-img{
  height:34px;
  width:auto;
  display:block;
}
.nav__links{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav__links a{
  font-size:14px;
  font-weight:600;
  color:var(--paper);
  opacity:0.85;
}
.nav__links a:hover{ opacity:1; }
.nav__cta{
  background:var(--coral);
  color:var(--paper) !important;
  opacity:1 !important;
  padding:10px 18px;
  border-radius:999px;
}
.nav__burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.nav__burger span{
  width:22px; height:2px; background:var(--paper);
}
.nav__mobile{
  display:none;
  flex-direction:column;
  gap:2px;
  padding:8px 28px 20px;
  background:var(--ink);
}
.nav__mobile a{
  padding:12px 0;
  border-bottom:1px solid var(--line-light);
  color:var(--paper);
  font-weight:600;
}
.nav__mobile.open{ display:flex; }

@media (max-width:760px){
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
}

/* ============ HERO ============ */
.hero{
  position:relative;
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
  padding:96px 0 76px;
}
.hero--photo{
  background:
    linear-gradient(180deg, rgba(42,39,36,0.45) 0%, rgba(42,39,36,0.72) 55%, rgba(42,39,36,0.96) 100%),
    url('assets/gallery/group-photo-6.jpg') center 55% / cover no-repeat;
}
.hero__route{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.hero__route path{
  fill:none;
  stroke:var(--coral);
  stroke-width:3;
  opacity:0.35;
  stroke-linecap:round;
  stroke-dasharray:2400;
  stroke-dashoffset:2400;
  animation:draw 3.5s ease-out forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

.hero__inner{ position:relative; z-index:2; }
.hero__title{
  font-family:var(--display);
  font-size:clamp(48px,9vw,104px);
  line-height:0.94;
  text-transform:uppercase;
  margin:0 0 22px;
  letter-spacing:0.01em;
}
.hero__title span{ color:var(--coral); }
.hero__sub{
  max-width:460px;
  font-size:18px;
  line-height:1.6;
  color:#C7CAD3;
  margin:0 0 36px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }
.hero__social{ display:flex; gap:24px; }
.hero__social a{
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:0.05em;
  color:var(--amber);
  border-bottom:1px solid transparent;
}
.hero__social a:hover{ border-color:var(--amber); }

/* ============ SPLIT STRIP (signature ticker) ============ */
.split-strip{
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
  white-space:nowrap;
  border-bottom:2px solid var(--coral);
  border-top:2px solid var(--coral);
}
.split-strip__track{
  display:inline-flex;
  gap:14px;
  padding:12px 0;
  font-family:var(--mono);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.08em;
  animation:ticker 26s linear infinite;
}
.split-strip__track span{ padding:0 4px; }
.split-strip__track span:nth-child(even){ color:var(--coral); }
@keyframes ticker{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section{ padding:56px 0; }
.section--dark{ background:var(--ink); color:var(--paper); }
.section--tight{ padding-bottom:40px; }
.section--tight-top{ padding-top:40px; }

/* ---- next run spotlight ---- */
.next-run{
  background:var(--ink);
  color:var(--paper);
  border-radius:var(--radius);
  overflow:hidden;
  margin-bottom:20px;
}
.next-run__info{ padding:36px 44px; }
.next-run__day{
  font-family:var(--mono);
  color:var(--amber);
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  margin:0 0 10px;
}
.next-run__title{
  font-family:var(--display);
  font-size:clamp(28px,4vw,42px);
  text-transform:uppercase;
  margin:0 0 20px;
  line-height:1.05;
}
.next-run__meta{
  list-style:none;
  margin:0 0 20px;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:12px 36px;
}
.next-run__meta li{ font-size:15px; color:#C7CAD3; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.next-run__directions{
  font-family:var(--mono);
  font-size:12px;
  color:var(--coral);
  border-bottom:1px solid var(--coral);
}
.next-run__meta b{ color:var(--paper); font-weight:600; }

.next-run__note{
  font-size:15px;
  line-height:1.65;
  color:#C7CAD3;
  max-width:none;
  margin:0 0 24px;
}
.btn--ghost-dark{
  border-color:var(--line-light);
  color:var(--paper);
}
.btn--ghost-dark:hover{ background:rgba(243,236,222,0.08); }

/* ---- runs list ---- */
.runs-list{ display:flex; flex-direction:column; }
.run-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 4px;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}
.run-item__left{ display:flex; align-items:baseline; gap:18px; }
.run-item__date{
  font-family:var(--mono);
  font-weight:700;
  font-size:14px;
  color:var(--coral);
  min-width:96px;
}
.run-item__name{ font-weight:700; font-size:16px; }
.run-item__loc{ color:var(--slate); font-size:14px; }
.run-item__directions{ color:var(--coral); font-weight:600; }
.run-item__note{ color:var(--slate); font-size:13px; margin-top:4px; max-width:440px; line-height:1.5; }
.run-item__right{ display:flex; align-items:center; gap:14px; }
.run-item__rsvp{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.05em;
  color:var(--coral);
  border-bottom:1px solid var(--coral);
}
.run-item__tag{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:var(--paper-2);
  padding:6px 12px;
  border-radius:999px;
  color:var(--ink);
}

.gallery-more{ text-align:center; margin-top:32px; }
.btn--ghost-outline{
  background:transparent;
  border-color:var(--ink);
  color:var(--ink);
}
.btn--ghost-outline:hover{ background:var(--ink); color:var(--paper); }

/* ============ MERCH ============ */
.merch-card{
  background:var(--ink);
  color:var(--paper);
  border-radius:var(--radius);
  padding:48px;
  text-align:center;
  max-width:640px;
  margin:0 auto;
}
.merch-card__title{
  font-family:var(--display);
  font-size:clamp(26px,4vw,38px);
  text-transform:uppercase;
  margin:0 0 16px;
  line-height:1.05;
}
.merch-card__lede{
  color:#C7CAD3;
  font-size:15px;
  line-height:1.65;
  margin:0 0 28px;
}
.btn--closed{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--body);
  font-weight:700;
  font-size:15px;
  padding:15px 28px;
  border-radius:999px;
  background:var(--ink-soft);
  color:#8A8F9C;
  border:2px solid var(--line-light);
  cursor:not-allowed;
}

/* ============ FAQ ============ */
.faq-list{ max-width:760px; }
.faq-item{
  border-bottom:1px solid var(--line);
  padding:20px 0;
}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
  font-size:16px;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  font-family:var(--mono);
  font-size:20px;
  color:var(--coral);
  flex-shrink:0;
  transition:transform .2s ease;
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{
  margin:14px 0 0;
  color:var(--slate);
  font-size:15px;
  line-height:1.65;
  max-width:640px;
}
.faq-item p a{ color:var(--coral); text-decoration:underline; text-underline-offset:3px; font-weight:600; }

/* ============ LEADERS ============ */
.strava-widget{ margin-top:40px; }
.strava-widget iframe{
  display:block;
  width:100%;
  max-width:300px;
  border-radius:10px;
  border:1px solid var(--line);
}
.leaders-tabs{
  display:inline-flex;
  gap:6px;
  background:var(--paper-2);
  padding:5px;
  border-radius:999px;
  margin-bottom:32px;
}
.leaders-tab{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  font-weight:700;
  background:transparent;
  border:none;
  padding:10px 18px;
  border-radius:999px;
  color:var(--slate);
  cursor:pointer;
}
.leaders-tab.is-active{ background:var(--ink); color:var(--paper); }

.leaderboard{ max-width:640px; }
.leaderboard__status{ color:var(--slate); font-size:14px; }
.leader-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 4px;
  border-bottom:1px solid var(--line);
}
.leader-row__rank{
  font-family:var(--mono);
  font-weight:700;
  font-size:15px;
  color:var(--slate);
  min-width:28px;
}
.leader-row--top .leader-row__rank{ color:var(--coral); }
.leader-row__name{ flex:1; font-weight:600; font-size:15px; }
.leader-row__count{
  font-family:var(--mono);
  font-size:13px;
  color:var(--slate);
}
.leader-row--top .leader-row__count{ color:var(--ink); font-weight:700; }

/* ============ ABOUT ============ */
.about__inner{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:52px;
  align-items:start;
}
.about__photo{
  aspect-ratio:4/5;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--paper-2);
}
.about__photo img{ width:100%; height:100%; object-fit:cover; }
.about__photo--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--line);
}
.about__photo--empty::after{
  content:"Add photo at\A assets/team/stretch-murphy.jpg";
  white-space:pre;
  text-align:center;
  font-family:var(--mono);
  font-size:11px;
  color:var(--slate);
}
.about__role{
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:0.05em;
  color:var(--coral);
  margin:0 0 20px;
}
.about__badges{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.about__badge{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  background:var(--paper-2);
  color:var(--ink);
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
}
.about__bio{ color:var(--slate); font-size:16px; line-height:1.7; max-width:560px; margin:0 0 18px; }
.about__bio a{ color:var(--coral); text-decoration:underline; text-underline-offset:3px; font-weight:600; }
.about__bio:last-of-type{ margin-bottom:24px; }
.about__social{ display:flex; gap:20px; }
.about__social a{
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:0.05em;
  color:var(--coral);
  border-bottom:1px solid transparent;
}
.about__social a:hover{ border-color:var(--coral); }
@media (max-width:700px){
  .about__inner{ grid-template-columns:1fr; }
  .about__photo{ max-width:280px; }
}

/* ---- what to expect ---- */
.expect{
  margin-top:36px;
  padding-top:36px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:48px;
}
.expect__notes p{
  color:var(--slate);
  font-size:15px;
  line-height:1.7;
  margin:0 0 16px;
}
.expect__title{
  font-family:var(--display);
  font-size:24px;
  text-transform:uppercase;
  color:var(--ink);
  margin:0 0 16px;
  letter-spacing:0.01em;
}
.expect__notes p:last-child{ margin-bottom:0; }
.expect__schedule{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.expect__schedule li{
  display:flex;
  align-items:baseline;
  gap:16px;
  padding:12px 16px;
  background:var(--paper-2);
  border-radius:8px;
}
.expect__schedule li b{
  font-family:var(--mono);
  font-size:13px;
  color:var(--coral);
  min-width:70px;
}
.expect__schedule li span{ font-size:14px; color:var(--ink); font-weight:600; }
@media (max-width:760px){
  .expect{ grid-template-columns:1fr; gap:28px; }
}

/* ============ PHOTO BAND (decorative divider) ============ */
.photo-band{
  display:flex;
  gap:2px;
  height:220px;
  background:var(--ink);
  overflow:hidden;
}
.photo-band__tile{
  flex:1;
  min-width:0;
  height:100%;
  position:relative;
  overflow:hidden;
}
.photo-band__tile img, .photo-band__tile video{
  width:100%; height:100%; object-fit:cover;
  display:block;
  filter:saturate(1.05);
  transition:transform .5s ease;
}
.photo-band__tile:hover img, .photo-band__tile:hover video{ transform:scale(1.05); }
.photo-band__tile:nth-child(2) video{ object-position:center 78%; }
@media (max-width:700px){
  .photo-band{ height:140px; }
  .photo-band__tile:nth-child(n+4){ display:none; }
}

/* ============ GALLERY ============ */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-flow:dense;
  gap:14px;
}
.gallery-item{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:1/1;
  background:var(--ink-soft);
}
.gallery-item:nth-child(6n+1){ grid-column:span 2; grid-row:span 2; aspect-ratio:auto; }
.gallery-item img, .gallery-item video{
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.gallery-item:hover img, .gallery-item:hover video{ transform:scale(1.06); }
.gallery-item__play{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size:28px; color:var(--paper);
  background:rgba(20,23,31,0.15);
  pointer-events:none;
}
.gallery-item--empty{
  display:flex; align-items:center; justify-content:center;
  border:1px dashed var(--line-light);
  color:#7A8091;
  font-family:var(--mono);
  font-size:11px;
  text-align:center;
  padding:10px;
}
@media (max-width:760px){
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-item:nth-child(6n+1){ grid-column:span 2; grid-row:span 1; aspect-ratio:1/1; }
}

.lightbox{
  position:fixed; inset:0; z-index:100;
  background:rgba(10,11,15,0.94);
  display:none;
  align-items:center;
  justify-content:center;
  padding:40px;
}
.lightbox.open{ display:flex; }
.lightbox__content{ max-width:900px; max-height:86vh; }
.lightbox__content img, .lightbox__content video{ max-height:86vh; border-radius:8px; margin:0 auto; }
.lightbox__close{
  position:absolute; top:24px; right:28px;
  background:none; border:none; color:var(--paper);
  font-size:26px; cursor:pointer;
}

/* ============ SPONSORS ============ */
.sponsor-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  margin-bottom:24px;
}
.sponsor-stat{
  background:var(--ink);
  color:var(--paper);
  padding:26px 16px;
  text-align:center;
}
.sponsor-stat b{
  display:block;
  font-family:var(--mono);
  font-size:24px;
  color:var(--coral);
  margin-bottom:6px;
}
.sponsor-stat span{
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#9BA0AC;
}
.sponsor-diversity{
  color:var(--slate);
  font-size:14px;
  font-style:italic;
  max-width:560px;
  margin:0 0 40px;
}
@media (max-width:700px){
  .sponsor-stats{ grid-template-columns:repeat(2,1fr); }
}

.sponsor-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:16px;
  margin-bottom:52px;
}
.sponsor-tile{
  border:1px solid var(--line);
  border-radius:10px;
  padding:26px 14px;
  text-align:center;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.05em;
  color:var(--slate);
}

.form-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:36px;
  max-width:640px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:18px;
}
input, textarea{
  width:100%;
  margin-top:8px;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid var(--line);
  font-family:var(--body);
  font-size:15px;
  background:var(--paper);
  color:var(--ink);
}
input:focus, textarea:focus{
  outline:2px solid var(--coral);
  outline-offset:1px;
}
textarea{ resize:vertical; }
.form-status{ font-size:13px; margin-top:14px; color:var(--slate); min-height:18px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }

/* ============ JOIN ============ */
.section--join{
  background:linear-gradient(135deg,var(--ink) 0%,#3D3934 100%);
  color:var(--paper);
  text-align:center;
}
.join__inner{ display:flex; flex-direction:column; align-items:center; }
.section--join .section__lede{ color:#C7CAD3; margin-left:auto; margin-right:auto; }
.join-form{
  display:flex;
  gap:12px;
  width:100%;
  max-width:560px;
  flex-wrap:wrap;
  justify-content:center;
}
.join-form input[name="first"], .join-form input[name="last"]{
  flex:1;
  min-width:120px;
  background:var(--ink-soft);
  border:1px solid var(--line-light);
  color:var(--paper);
}
.join-form input[name="email"]{
  flex:2;
  min-width:220px;
  background:var(--ink-soft);
  border:1px solid var(--line-light);
  color:var(--paper);
}
.join__count{
  margin-top:18px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:0.08em;
  color:#9BA0AC;
  text-transform:uppercase;
}

/* ============ FOOTER ============ */
.footer{ background:var(--ink); color:var(--paper); padding:44px 0; }
.footer__logo{ display:block; line-height:1; }
.footer__logo-img{ height:44px; width:auto; display:block; }
.footer__inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line-light);
  padding-top:28px;
}
.footer__links{ display:flex; gap:24px; flex-wrap:wrap; }
.footer__links a{ font-size:14px; opacity:0.8; }
.footer__links a:hover{ opacity:1; }
.footer__meta{
  width:100%;
  font-family:var(--mono);
  font-size:11px;
  color:#7A8091;
  margin:0;
  letter-spacing:0.02em;
}
