/* Queenstown Run Club
   Layout: full-bleed brand-blue hero with the club's cream wordmark and
   hand-drawn mountains, then off-white info sections, one blue "Quest" band
   over the sunrise photo, and a blue CTA. */

@font-face {
  font-family: "GC Club";
  src: url("assets/web/gc-club-brand.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Earlgos";
  src: url("assets/web/earlgos.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #094193;        /* brand blue */
  --blue-deep: #072f6b;   /* hero gradient base, hover */
  --blue-light: #1554b4;  /* hero gradient highlight */
  --navy: #052454;        /* hoodie navy, headings on cream */
  --cream: #f7f1e2;       /* brand off-white */
  --cream-deep: #ebe2c9;  /* cards / strips on cream */
  --ink: #12203d;         /* body text on cream */
  --ink-soft: #4a5570;    /* secondary text */
  --line: rgba(9, 65, 147, 0.16);
  --sunrise: #ff7a59;     /* "live" dot, from the Quest poster sky */

  --font-display: "GC Club", "Iowan Old Style", Georgia, serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-caps: "Earlgos", "Arial Narrow", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sunrise); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display-sm { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.9vw, 2.8rem);
  line-height: 1.08;
  text-wrap: balance;
  color: var(--navy);
}
.eyebrow {
  font-family: var(--font-caps);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1rem;
  opacity: .85;
}
.eyebrow-blue { color: var(--blue); opacity: 1; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; line-height: 1.5; text-wrap: pretty; }
.sub { color: var(--ink-soft); max-width: 36em; font-size: 1.05rem; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 1rem; }
.btn-cream { background: var(--cream); color: var(--blue); border-color: var(--cream); }
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn-ghost { color: var(--cream); border-color: rgba(247,241,226,.55); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(247,241,226,.1); }
.btn-blue { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-outline { color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--cream); }
.link {
  font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
  color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.link::after { content: "→"; font-family: var(--font-body); font-weight: 600; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(4px); }
.link-light { color: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--blue) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--cream);
  border-bottom: 1px solid rgba(247,241,226,.12);
}
.nav-inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { width: 132px; height: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 1rem;
  text-decoration: none; opacity: .85; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
@media (max-width: 760px) { .nav-links { display: none; } .brand-logo { width: 112px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, var(--blue-light) 0%, var(--blue) 45%, var(--blue-deep) 100%);
  color: var(--cream);
  padding-block: clamp(56px, 9vw, 120px) clamp(190px, 22vw, 290px);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .display { animation: rise .9s var(--ease) both; }
.hero-copy .eyebrow { animation: rise .9s var(--ease) both; }
.hero-copy .lede { animation: rise .9s .1s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-badge { position: relative; width: min(340px, 72vw); aspect-ratio: 1; margin-inline: auto; animation: rise 1s .15s var(--ease) both; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.ring-text { font-family: var(--font-caps); font-weight: 400; font-size: 17px; letter-spacing: .18em; fill: var(--cream); opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge {
  position: absolute; inset: 15%; border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.badge img { width: 72%; height: auto; }

.mountains {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: max(100%, 720px); height: auto; max-width: none; pointer-events: none;
}
.hero .mountains { opacity: .95; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { order: -1; width: min(260px, 60vw); }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--cream); overflow: hidden; padding-block: 12px; }
.marquee-track {
  display: flex; gap: 28px; width: max-content; white-space: nowrap;
  font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem;
  animation: scroll 38s linear infinite;
}
.marquee-track span:nth-child(even) { opacity: .5; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; text-align: center; justify-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-left { text-align: left; justify-items: start; margin-bottom: 0; }
.section-head-light .h2, .section-head-light .sub { color: var(--cream); }
.section-head-light .sub { opacity: .9; max-width: 40em; }
.section-head-light .sub strong { color: #fff; font-weight: 600; }

/* ---------- Next run ---------- */
#next-run { padding-top: 0; padding-bottom: clamp(40px, 6vw, 72px); margin-top: calc(-1 * clamp(70px, 9vw, 120px)); position: relative; z-index: 2; }
.next-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(7,47,107,.4);
  overflow: hidden;
}
.next-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px var(--gutter); border-bottom: 1px solid var(--line);
  font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem;
}
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sunrise); box-shadow: 0 0 0 0 rgba(255,122,89,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,122,89,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,89,0); } }
.next-countdown { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.next-body { display: grid; grid-template-columns: minmax(200px, .8fr) 1.6fr; }
.next-when {
  background: var(--blue); color: var(--cream);
  padding: clamp(28px, 4vw, 44px) var(--gutter);
  display: grid; align-content: center; gap: 6px;
}
.next-day { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1; }
.next-date { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 1.1rem; opacity: .85; }
.next-what { padding: clamp(28px, 4vw, 44px) var(--gutter); display: grid; gap: 18px; align-content: center; min-width: 0; }
.next-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.05; color: var(--navy); }
.next-desc { color: var(--ink-soft); max-width: 40em; }
.next-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px 24px; }
.next-meta dt, .group-meta dt { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ink-soft); }
.next-meta dd { font-weight: 600; font-size: 1.1rem; }
.next-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) {
  .next-body { grid-template-columns: 1fr; }
  .next-when { padding-block: 24px; }
}

/* ---------- Week strip ---------- */
.week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.week li {
  text-align: center; padding: 12px 4px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem;
  display: grid; gap: 2px; min-width: 0;
}
.week li em { font-style: normal; font-size: .8rem; letter-spacing: .06em; opacity: .9; }
.week li.run { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.week li.today { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--sunrise); }
@media (max-width: 520px) { .week li { padding: 10px 2px; font-size: .8rem; } .week li em { font-size: .68rem; } }

/* ---------- Run cards ---------- */
.runs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.run-card {
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
}
.run-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.run-fri .run-photo { object-position: 50% 30%; }
.run-body { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; align-content: start; }
.run-wed { background: #fff; border: 1px solid var(--line); }
.run-fri { background: var(--navy); color: var(--cream); }
.run-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.run-day { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem; color: var(--blue); }
.run-fri .run-day { color: var(--cream); opacity: .8; }
.run-time { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.run-time span { font-family: var(--font-caps); font-size: 1.05rem; letter-spacing: .08em; margin-left: 2px; }
.run-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: var(--navy); }
.run-fri .run-name { color: var(--cream); }
.run-copy { color: var(--ink-soft); }
.run-fri .run-copy { color: var(--cream); opacity: .85; }
.run-facts { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.run-fri .run-facts { border-color: rgba(247,241,226,.18); }
.run-facts li { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: baseline; }
.run-facts strong { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ink-soft); }
.run-fri .run-facts strong { color: var(--cream); opacity: .7; }
.run-fri .link { color: var(--cream); }
@media (max-width: 760px) { .runs { grid-template-columns: 1fr; } }

/* ---------- Quest ---------- */
.quest {
  position: relative; color: var(--cream); overflow: hidden;
  background: var(--blue-deep) url("assets/web/quest-pic.jpg") center 55% / cover no-repeat;
}
.quest::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,47,107,.82) 0%, rgba(9,65,147,.78) 60%, rgba(5,36,84,.92) 100%);
}
.quest .wrap { position: relative; }
.quest-logo { line-height: 0; }
.quest-mark {
  display: block; width: min(360px, 70vw); aspect-ratio: 1160 / 477; background: var(--cream);
  -webkit-mask: url("assets/web/quest.png") center / contain no-repeat;
  mask: url("assets/web/quest.png") center / contain no-repeat;
}
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.group {
  border: 1px solid rgba(247,241,226,.25); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 12px; align-content: start; min-width: 0;
  background: rgba(5,36,84,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.group-label { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; opacity: .75; }
.group-name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.08; }
.group-copy { opacity: .88; }
.group-meta { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(247,241,226,.2); }
.group-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.group-meta dt { color: var(--cream); opacity: .7; }
.group-meta dd { font-weight: 600; }
@media (max-width: 760px) { .groups { grid-template-columns: 1fr; } }

/* ---------- Crew ---------- */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 24px; }
.founder { display: grid; gap: 14px; min-width: 0; }
.founder img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.founder figcaption { display: grid; gap: 2px; text-align: center; }
.founder strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--navy); }
.founder span { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--ink-soft); }
.founder-ig { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-caps); letter-spacing: .06em; font-size: 1rem; color: var(--blue); text-decoration: none; margin-top: 4px; }
.ig-icon { width: 18px; height: 18px; flex: none; }
.founder-ig:hover { text-decoration: underline; }
@media (max-width: 560px) { .founders { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px 0 0; border-top: 3px solid var(--blue); display: grid; gap: 10px; min-width: 0; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.08; color: var(--navy); }
.step p { color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners { padding-block: 0; }
.partners .wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 36px; display: grid; gap: 20px; }
.partners-label { text-align: center; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 28px 72px; }
.partner-list li { display: grid; justify-items: center; gap: 10px; text-align: center; }
.partner-logo {
  display: grid; place-items: center; height: 124px; width: 220px; padding: 20px 26px;
  border-radius: 16px; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease);
}
.partner-logo:hover { transform: translateY(-2px); }
.partner-altitude { background: var(--blue); }
.partner-altitude img { width: 100%; height: auto; }
.partner-grub { background: #fff; border: 1px solid var(--line); }
.partner-grub img { height: 84px; width: auto; }
.partner-role { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 500; font-size: 1.6rem; color: var(--blue); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 40em; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--blue); color: var(--cream); text-align: center; padding-bottom: clamp(150px, 18vw, 240px); }
.cta .wrap { display: grid; gap: 22px; justify-items: center; position: relative; z-index: 1; }
.cta .lede { margin-inline: auto; opacity: .9; }
.cta .hero-actions { justify-content: center; animation: none; }
.mountains-cta { opacity: .35; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--cream); padding-block: 44px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer-brand { display: grid; gap: 10px; }
.footer-logo { width: 150px; height: auto; }
.footer-brand p span { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; opacity: .7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-family: var(--font-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; }
.footer-fine { grid-column: 1 / -1; font-size: .9rem; opacity: .6; border-top: 1px solid rgba(247,241,226,.15); padding-top: 20px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .marquee-track, .live-dot { animation: none; }
  .hero-copy > *, .hero-actions, .hero-badge { animation: none; opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
