:root {
  --ink: #121616;
  --muted: #63706d;
  --paper: #f8f6f0;
  --panel: #ffffff;
  --line: #d9dfd9;
  --forest: #17493e;
  --teal: #0b6f72;
  --steel: #315f7d;
  --gold: #efb64a;
  --coral: #cf604f;
  --shadow: 0 24px 70px rgba(28, 45, 42, 0.17);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(248, 246, 240, 0.92);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 15px clamp(18px, 4vw, 54px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand,
.social-strip,
.hero-actions,
.contact-actions {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 900;
  gap: 10px;
  justify-self: start;
}

.brand-logo {
  border-radius: 8px;
  height: 38px;
  width: 38px;
}

nav {
  color: var(--muted);
  display: flex;
  font-size: 0.94rem;
  font-weight: 800;
  gap: clamp(14px, 3.2vw, 32px);
  justify-content: center;
}

nav a:hover,
.social-strip a:hover {
  color: var(--teal);
}

.header-action,
.primary-action,
.secondary-action,
.donate-button,
.contact-actions a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
}

.header-action {
  background: var(--forest);
  color: white;
  justify-self: end;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
  min-height: calc(92vh - 78px);
  padding: clamp(34px, 5vw, 80px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 44px);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 9vw, 8.6rem);
  line-height: 0.88;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-mantra {
  color: var(--forest);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 950;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.6rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.lede,
.section-heading p,
.fundraiser-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  max-width: 610px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action {
  background: var(--ink);
  color: white;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--forest);
}

.social-strip {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 850;
  gap: 10px 18px;
  margin-top: 26px;
}

.hero-stats {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  padding: 18px 0;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-stats strong {
  color: var(--ink);
  display: block;
  font-size: 1.15rem;
}

.hero-media {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.46fr);
  min-height: 360px;
  min-width: 0;
}

.hero-media figure {
  margin: 0;
}

.hero-media img {
  border-radius: 8px;
  display: block;
  max-width: 100%;
  width: 100%;
}

.hero-feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.hero-photo-main {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.hero-feature figcaption {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 15px 17px;
}

.hero-feature figcaption strong {
  font-size: 0.92rem;
}

.hero-feature figcaption span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.hero-training-strip {
  display: grid;
  gap: 14px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.hero-training-strip figure {
  background: var(--ink);
  border-radius: 8px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.hero-training-strip img {
  background: #18201f;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.hero-training-strip figcaption {
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 10px 12px;
  text-transform: uppercase;
}

.mission-band {
  background: var(--forest);
  color: white;
  padding: clamp(30px, 5vw, 58px) clamp(18px, 6vw, 90px);
}

.mission-band span {
  color: var(--gold);
  display: block;
  font-size: 0.75rem;
  font-weight: 950;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mission-band p {
  font-size: clamp(1.35rem, 2.6vw, 2.6rem);
  font-weight: 850;
  line-height: 1.18;
  margin: 0;
  max-width: 1120px;
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
}

.race-list {
  border-top: 1px solid var(--ink);
  margin-top: 30px;
}

.race-origin {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  margin: 30px 0 0;
  overflow: hidden;
}

.race-origin img {
  background: #e7ece8;
  display: block;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  width: 100%;
}

.race-origin figcaption {
  align-self: center;
  padding: clamp(22px, 4vw, 44px);
}

.race-origin figcaption span {
  color: var(--coral);
  display: block;
  font-size: 0.75rem;
  font-weight: 950;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.race-origin figcaption strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  margin-bottom: 12px;
}

.race-origin figcaption p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.merch-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.race-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 20px 4px;
}

.race-distance {
  color: var(--teal);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.race-row h3 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  margin: 0;
}

.race-number {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.race-row > strong {
  color: var(--coral);
  font-size: 1.1rem;
}

.next-race {
  align-items: center;
  background: var(--forest);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 26px;
  padding: 22px 24px;
}

.next-race span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.next-race strong {
  font-size: 1.08rem;
}

.next-race a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 11px 15px;
}

.fundraiser {
  align-items: center;
  background: #e9f0ec;
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.fundraiser-copy {
  max-width: 780px;
}

.fundraiser-copy blockquote {
  border-left: 5px solid var(--coral);
  color: var(--forest);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 850;
  line-height: 1.35;
  margin: 28px 0;
  padding: 4px 0 4px 22px;
}

.fundraiser-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: min(100%, 350px);
  padding: 28px;
}

.fundraiser-total {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.fundraiser-total span {
  font-size: 1.5rem;
  font-weight: 950;
}

.fundraiser-total strong,
.fundraiser-panel p {
  color: var(--muted);
}

.progress-track {
  background: #dfe6e2;
  border-radius: 999px;
  height: 12px;
  margin: 22px 0 14px;
  overflow: hidden;
}

.progress-track span {
  background: var(--coral);
  display: block;
  height: 100%;
}

.fundraiser-panel .donate-button {
  margin-top: 8px;
  width: 100%;
}

.join-section {
  background: #fbfbf8;
}

.join-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  margin-top: 30px;
}

.join-form,
.join-message {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
}

.join-form {
  display: grid;
  gap: 18px;
}

.join-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 900;
  gap: 8px;
}

.join-form input,
.join-form select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.join-form button,
.join-message button,
.join-message a {
  align-items: center;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.join-message {
  align-content: center;
  background: var(--forest);
  color: white;
  display: grid;
  gap: 14px;
}

.join-message span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.join-message p {
  line-height: 1.6;
  margin: 0;
}

.join-message button,
.join-message a {
  background: white;
  color: var(--forest);
}

.donate-button {
  background: var(--coral);
  color: white;
  min-height: 64px;
  padding-inline: 30px;
  white-space: nowrap;
}

.merch-section {
  background: var(--ink);
  color: white;
}

.merch-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.merch-intro {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.drop-note {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 220px;
  padding-left: 28px;
}

.drop-note span,
.drop-note strong {
  display: block;
}

.drop-note span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.drop-note strong {
  font-size: 2.7rem;
  line-height: 1;
  margin-top: 8px;
}

.drop-note p {
  color: rgba(255, 255, 255, 0.66);
  margin: 8px 0 18px;
}

.drop-note a {
  border-bottom: 2px solid var(--gold);
  font-size: 0.85rem;
  font-weight: 900;
  padding-bottom: 4px;
}

.merch-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.merch-card {
  color: var(--ink);
  display: grid;
  gap: 22px;
  min-height: 430px;
  padding: 22px;
}

.primary-merch {
  grid-column: span 2;
  grid-template-columns: minmax(260px, 1.2fr) minmax(240px, 0.8fr);
}

.primary-merch > a {
  grid-column: 1 / -1;
}

.merch-card p {
  color: var(--muted);
  line-height: 1.62;
}

.product-title-row {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.product-title-row h3 {
  margin-bottom: 0;
}

.product-price {
  color: var(--forest);
  font-size: 1.25rem;
  white-space: nowrap;
}

.product-visual {
  position: relative;
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-mark {
  background: white;
  border: 3px solid white;
  border-radius: 8px;
  bottom: 12px;
  box-shadow: 0 8px 18px rgba(18, 22, 22, 0.2);
  height: 48px;
  position: absolute;
  right: 12px;
  width: 48px;
}

.product-badge {
  background: var(--forest);
  border-radius: 999px;
  color: white;
  font-size: 0.7rem;
  font-weight: 950;
  left: 12px;
  padding: 8px 11px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
}

.product-badge.seasonal {
  background: #b72e39;
}

.colorways {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.color-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  margin-right: 4px;
  text-transform: uppercase;
}

.swatch {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 5px;
}

.swatch::before {
  background: var(--swatch);
  border: 1px solid rgba(18, 22, 22, 0.22);
  border-radius: 50%;
  content: "";
  height: 14px;
  width: 14px;
}

.swatch.black { --swatch: #121616; }
.swatch.forest { --swatch: #17493e; }
.swatch.stone { --swatch: #c8c5b9; }
.swatch.white { --swatch: #ffffff; }
.swatch.heather { --swatch: #aeb4b1; }

.size-run {
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  margin: 18px 0 0;
  padding-top: 14px;
}

.size-run strong {
  color: var(--ink);
  margin-right: 8px;
  text-transform: uppercase;
}

.merch-card a {
  align-self: end;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.feature-product {
  background: var(--gold);
  border-color: var(--gold);
}

.shopify-card {
  align-content: end;
  min-height: 100%;
}

.shopify-card h3 {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1;
}

.feature-product p {
  color: rgba(18, 22, 22, 0.74);
}

.product-type {
  color: var(--coral);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.collection-heading {
  align-items: end;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  margin-top: 64px;
  padding-top: 42px;
}

.collection-heading h3 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.95;
  margin: 0;
}

.collection-heading > p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin: 0;
}

.seasonal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.seasonal-card {
  grid-template-columns: minmax(220px, 0.85fr) minmax(220px, 1fr);
}

.seasonal-card > a {
  grid-column: 1 / -1;
}

.product-art {
  align-items: center;
  aspect-ratio: 1.35 / 1;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
}

.product-art span {
  color: white;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 950;
  position: relative;
  z-index: 2;
}

.hoodie-art {
  background: linear-gradient(135deg, var(--forest), var(--teal));
}

.hoodie-art::before {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 42% 42% 18% 18%;
  height: 78%;
  top: 18%;
  width: 70%;
}

.hoodie-art::after {
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
  height: 34%;
  top: 6%;
  width: 34%;
}

.hat-art {
  background: linear-gradient(135deg, var(--coral), var(--steel));
}

.hat-art::before {
  background: rgba(255, 255, 255, 0.17);
  border-radius: 80px 80px 18px 18px;
  height: 46%;
  top: 28%;
  width: 68%;
}

.hat-art::after {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  height: 18%;
  right: 10%;
  top: 58%;
  width: 46%;
}

.social-section {
  background: #fbfbf8;
}

.video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.video-frame {
  aspect-ratio: 9 / 16;
  background: var(--ink);
  position: relative;
}

.video-frame iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.video-card > div:last-child {
  padding: 16px;
}

.video-card span {
  color: var(--coral);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.video-card strong {
  display: block;
  font-size: 1rem;
}

.social-follow {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 20px;
}

.social-follow span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-follow a {
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 950;
}

.contact-section {
  align-items: center;
  background: var(--ink);
  color: white;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.contact-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.8rem);
  margin-bottom: 0;
}

.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.contact-actions a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

footer span:first-child {
  color: var(--ink);
  font-weight: 950;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .fundraiser,
  .contact-section,
  .join-layout,
  .race-origin {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .merch-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-merch,
  .seasonal-card {
    grid-template-columns: 1fr;
  }

  .primary-merch > a,
  .seasonal-card > a {
    grid-column: auto;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .hero-actions,
  .merch-grid,
  .video-grid,
  .seasonal-grid,
  .merch-intro,
  .collection-heading {
    grid-template-columns: 1fr;
  }

  .primary-merch {
    grid-column: auto;
  }

  .drop-note {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 0;
    padding-top: 22px;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-training-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .hero-training-strip figure {
    aspect-ratio: 1 / 1;
  }

  .next-race {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .donate-button,
  .contact-actions a {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
