/* ============================================================
   blakerides.cc — design system
   Tokens from the homepage mockup, carried verbatim.
   ============================================================ */

:root {
  --ink: #14181C;            /* asphalt near-black, primary text/dark bg */
  --ink-soft: #3A414A;       /* secondary text on light backgrounds */
  --paper: #ECEAE3;          /* page background, cool off-white */
  --paper-raised: #F6F5F1;   /* card/section surface */
  --dawn: #E8871E;           /* primary accent — "dawn amber" */
  --dawn-deep: #C96A0E;      /* hover/pressed state for accent */
  --route: #1E8C86;          /* secondary accent — data/links, "GPS teal" */
  --line: rgba(20,24,28,0.12);
  --line-soft: rgba(20,24,28,0.07);

  --font-display: 'Space Grotesk', sans-serif;  /* headings */
  --font-body: 'Inter', sans-serif;              /* body/UI text */
  --font-mono: 'IBM Plex Mono', monospace;       /* stats/data ONLY */

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20,24,28,0.05);
  --shadow-md: 0 12px 32px -16px rgba(20,24,28,0.22);
  --shadow-lg: 0 24px 56px -24px rgba(20,24,28,0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset / base ---- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--route);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

code, pre, kbd {
  font-family: var(--font-mono);
}

::selection {
  background: var(--dawn);
  color: var(--ink);
}

/* ---- focus states (visible keyboard focus everywhere) ---- */

:focus-visible {
  outline: 3px solid var(--dawn);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- skip link ---- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ---- layout ---- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  min-height: 60vh;
}

/* ---- header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 234, 227, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dawn);
  flex: none;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--route);
}

.wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--dawn);
  transition: right 0.22s var(--ease);
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--ink);
}

.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a:not(.nav-cta).active::after {
  right: 0;
}

.site-nav > a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta {
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

body.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--dawn);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--dawn-deep);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(236, 234, 227, 0.45);
}

.btn-ghost-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---- kicker / eyebrow ---- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--route);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--dawn);
}

.kicker--light {
  color: rgba(236, 234, 227, 0.72);
}

.kicker--light::before {
  background: var(--dawn);
}

/* ---- hero ---- */

.hero {
  padding: 4.5rem 0 0;
  background:
    radial-gradient(52rem 22rem at 88% -6%, rgba(232, 135, 30, 0.10), transparent 62%),
    radial-gradient(46rem 20rem at 0% 12%, rgba(30, 140, 134, 0.09), transparent 60%);
}

.hero-inner {
  max-width: 760px;
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(2.6rem, 6.2vw, 4.1rem);
  line-height: 1.03;
}

.hero-title-accent {
  color: var(--dawn-deep);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--route);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}

.hero-lede {
  margin: 1.6rem 0 0;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-stats {
  margin-top: 3.5rem;
  padding-bottom: 0.5rem;
}

.hero-stats-note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---- stat cards ---- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dawn), var(--route));
  opacity: 0.85;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- elevation line divider (reusable motif) ---- */

.elevation-line {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: 62px;
  margin: 2.75rem auto;
  padding: 0 1rem;
}

.elevation-line-fill {
  fill: rgba(30, 140, 134, 0.10);
}

.elevation-line-stroke {
  fill: none;
  stroke: var(--route);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- sections ---- */

.section {
  padding: 2.75rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.section-head .kicker {
  margin-bottom: 0.6rem;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--route);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover {
  color: var(--dawn-deep);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-arrow--back::after {
  content: none;
}

.link-arrow--back::before {
  content: "←";
  transition: transform 0.18s var(--ease);
}

.link-arrow--back:hover::before {
  transform: translateX(-4px);
}

/* ---- page heads ---- */

.page-head {
  padding: 4rem 0 1.5rem;
}

.page-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.05;
}

.page-lede {
  margin: 1.25rem 0 0;
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---- ride cards ---- */

.ride-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ride-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.ride-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 140, 134, 0.35);
}

.ride-card-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ride-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ride-card:hover .ride-card-photo img {
  transform: scale(1.04);
}

.ride-card-photo--placeholder {
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(232, 135, 30, 0.30), transparent 55%),
    radial-gradient(120% 120% at 88% 100%, rgba(30, 140, 134, 0.24), transparent 55%),
    var(--paper-raised);
}

.ride-card:nth-child(3n + 2) .ride-card-photo--placeholder {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(30, 140, 134, 0.26), transparent 55%),
    radial-gradient(120% 120% at 10% 100%, rgba(232, 135, 30, 0.26), transparent 55%),
    var(--paper-raised);
}

.ride-card:nth-child(3n + 3) .ride-card-photo--placeholder {
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(232, 135, 30, 0.22), transparent 55%),
    radial-gradient(120% 120% at 20% 110%, rgba(30, 140, 134, 0.30), transparent 55%),
    var(--paper-raised);
}

.ride-card-date,
.ride-card-category {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  background: rgba(20, 24, 28, 0.78);
  color: var(--paper);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.ride-card-category {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--dawn);
  color: var(--ink);
}

.ride-card-body {
  padding: 1.15rem 1.3rem 1.3rem;
}

.ride-card-title {
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.ride-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
}

.ride-card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ride-card-stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--route);
}

.ride-card-stat-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---- content cards ---- */

.content-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.content-card-excerpt {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ---- partners CTA (dark teaser) ---- */

.partners-cta {
  background: var(--ink);
  color: var(--paper);
  margin-top: 2rem;
  padding: 4.25rem 0;
  position: relative;
  overflow: hidden;
}

.partners-cta::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 60%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(232, 135, 30, 0.18), transparent 70%);
  pointer-events: none;
}

.partners-cta-inner {
  position: relative;
  text-align: center;
}

.partners-cta-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.75rem 0 1rem;
}

.partners-cta-text {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(236, 234, 227, 0.78);
  line-height: 1.65;
}

.partners-cta-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin: 2.25rem 0;
}

.partners-cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.partners-cta-stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--dawn);
  line-height: 1.1;
}

.partners-cta-stat-label {
  font-size: 0.8rem;
  color: rgba(236, 234, 227, 0.7);
}

.partners-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---- goals ---- */

.goal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.goal-number {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dawn-deep);
  padding-top: 0.15rem;
  line-height: 1.2;
}

.goal-body {
  flex: 1;
}

.goal-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.goal-description {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.goal-target {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--route);
  background: rgba(30, 140, 134, 0.08);
  border: 1px solid rgba(30, 140, 134, 0.35);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- race calendar ---- */

.calendar-intro {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.race-group {
  margin-top: 2.25rem;
}

.race-group-head {
  margin-bottom: 1.1rem;
}

.race-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.race-group-title::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dawn);
}

.race-group--expedition .race-group-title::before {
  background: var(--route);
}

.race-group-note {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.race-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.race-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--dawn);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.race-group--expedition .race-card {
  border-left-color: var(--route);
}

.race-card--flagship {
  background: linear-gradient(135deg, rgba(232, 135, 30, 0.07), var(--paper-raised) 42%);
  border-color: rgba(232, 135, 30, 0.45);
}

.race-flagship {
  position: absolute;
  top: -0.65rem;
  right: 1.25rem;
  background: var(--dawn);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.race-discipline {
  justify-self: start;
}

.race-body {
  min-width: 0;
}

.race-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.race-detail {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.race-value {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
  display: flex;
  gap: 0.55rem;
}

.race-value::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--dawn);
}

.race-group--expedition .race-value::before {
  background: var(--route);
}

.race-distance {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--route);
  background: rgba(30, 140, 134, 0.08);
  border: 1px solid rgba(30, 140, 134, 0.3);
  padding: 0.42rem 0.8rem;
  border-radius: 10px;
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

/* ---- results table ---- */

.table-wrap {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.results-table td {
  padding: 1rem 1.4rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table tbody tr:hover {
  background: var(--paper);
}

.results-year {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--dawn-deep);
}

.results-result {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--route);
}

/* ---- tags ---- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ---- partners page ---- */

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.offer-item {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.offer-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--route);
}

.gear-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gear-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.gear-name {
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.gear-name::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dawn);
  flex: none;
}

.gear-detail {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---- contact CTA (dark rounded card) ---- */

.contact-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 55%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(232, 135, 30, 0.16), transparent 70%);
  pointer-events: none;
}

.contact-cta > * {
  position: relative;
}

.contact-cta-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.contact-cta-text {
  max-width: 50ch;
  margin: 0.9rem auto 2rem;
  font-size: 1.02rem;
  color: rgba(236, 234, 227, 0.78);
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---- media kit ---- */

.media-kit-head {
  padding: 4rem 0 2rem;
  text-align: center;
}

.media-kit-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.02;
}

.media-kit-sub {
  max-width: 52ch;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.media-kit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.media-kit-print-hint,
.media-kit-note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.race-card--kit {
  padding: 1rem 1.25rem;
}

.race-card--kit .race-name {
  font-size: 1rem;
}

/* ---- print ---- */

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .media-kit-print-hint,
  .elevation-line,
  .btn,
  .link-arrow,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #14181C !important;
  }

  .site-main {
    padding: 0;
  }

  .container {
    max-width: 100% !important;
    padding: 0;
  }

  .section {
    padding: 1.25rem 0;
  }

  .stat-card,
  .goal-card,
  .gear-card,
  .race-card,
  .offer-item,
  .competency-card,
  .spec-card,
  .project-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .partners-cta,
  .contact-cta {
    background: #14181C !important;
    color: #ECEAE3 !important;
    border-radius: 0;
  }

  .kicker--light,
  .contact-cta-text,
  .partners-cta-text,
  .partners-cta-stat-label {
    color: #ECEAE3 !important;
  }

  .partners-cta-stat-value {
    color: #E8871E !important;
  }

  a {
    color: #C96A0E !important;
    text-decoration: none;
  }
}

/* ---- about ---- */

.about-body {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.about-body p {
  margin: 0 0 1.1rem;
}

.check-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 9px;
  background: var(--dawn);
  transform: rotate(45deg);
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.competency-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.competency-card h3 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.competency-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.stack-group {
  margin-bottom: 1.75rem;
}

.stack-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ---- projects / hardware ---- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-name {
  font-weight: 600;
  font-size: 1.15rem;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.project-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.spec-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.spec-card h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.spec-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.spec-note {
  font-weight: 500;
  color: var(--ink-soft);
}

.spec-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--route);
}

/* ---- post ---- */

.post-header {
  padding-top: 3.5rem;
  padding-bottom: 0.5rem;
}

.post-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  margin-top: 0.75rem;
  max-width: 26ch;
}

.post-body {
  max-width: 72ch;
  font-size: 1.06rem;
  line-height: 1.75;
  padding-top: 1.5rem;
}

.post-body h2 {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.75rem;
}

.post-body h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.post-body p {
  margin: 0 0 1.2rem;
}

.post-body a {
  color: var(--route);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.post-body a:hover {
  color: var(--dawn-deep);
}

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}

.post-body li {
  margin: 0.4rem 0;
}

.post-body blockquote {
  margin: 1.75rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--dawn);
  color: var(--ink-soft);
  font-style: italic;
}

.post-body blockquote p {
  margin-bottom: 0.5rem;
}

.post-body code {
  font-size: 0.86em;
  background: rgba(20, 24, 28, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.post-body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
}

.post-body th,
.post-body td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.post-footer-actions {
  margin: 3rem 0 1rem;
  padding-bottom: 2rem;
}

/* ---- footer ---- */

.site-footer {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-top: 2.75rem;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-tagline {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
}

.footer-social a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--dawn-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.25rem 0 2.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- error pages ---- */

.error-page {
  padding: 5rem 0 6.5rem;
  text-align: center;
}

.error-code {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--dawn), var(--route));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page .page-lede code {
  font-size: 0.9em;
  background: rgba(20, 24, 28, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  color: var(--ink);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.empty-note {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---- utilities ---- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- responsive ---- */

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 24px 32px -28px rgba(20, 24, 28, 0.3);
    transition: max-height 0.28s var(--ease), padding 0.28s var(--ease);
  }

  body.nav-open .site-nav {
    max-height: 420px;
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .site-nav > a:not(.nav-cta) {
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin: 0.85rem 0 0.25rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .race-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: start;
  }

  .race-discipline {
    justify-self: start;
  }

  .race-distance {
    justify-self: start;
    text-align: left;
  }

  .goal-target {
    margin-left: 0;
    align-self: flex-start;
  }

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

  .footer-social {
    gap: 0.4rem 1.25rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .elevation-line {
    margin: 2.25rem auto;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-inner {
    min-height: 60px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions .btn,
  .page-actions .btn {
    flex: 1 1 100%;
  }

  .partners-cta-stats {
    gap: 1rem 2rem;
  }

  .ride-grid,
  .content-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .goal-card {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .table-wrap {
    margin: 0 -0.25rem;
    border-radius: 12px;
  }

  .results-table th,
  .results-table td {
    padding: 0.85rem 1rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
}

/* ---- reduced motion ---- */

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

  .ride-card:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .ride-card:hover .ride-card-photo img {
    transform: none;
  }
}


