@font-face {
  font-family: "Capture Smallz Clean";
  src: url("../fonts/Capture-Smallz-Clean.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Race";
  src: url("../fonts/NotoSans-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #141922;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #1b65b7;
  --blue-dark: #103d79;
  --sky: #7db3e8;
  --sky-light: #d9eafa;
  --track: #d2685b;
  --track-dark: #a94740;
  --grass: #749a48;
  --grass-light: #a9c768;
  --yellow: #e8cc1b;
  --route-blue: #1188df;
  --route-red: #ef4b43;
  --line: rgba(16, 61, 121, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 9%, rgba(255, 255, 255, 0.95) 0 6%, transparent 18%),
    radial-gradient(ellipse at 78% 7%, rgba(255, 255, 255, 0.58) 0 7%, transparent 19%),
    var(--sky-light);
  font-family: "Noto Race", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #fff;
  background: var(--blue-dark);
}

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

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.site-header {
  min-height: 70px;
  padding: 10px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wordmark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 50%;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  font-size: 0.85rem;
  font-weight: 800;
}

nav > a:not(.nav-cta):not(.nav-results) {
  position: relative;
}

nav > a:not(.nav-cta):not(.nav-results)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--track);
  transition: right 180ms ease;
}

nav > a:hover::after {
  right: 0;
}

.nav-cta {
  padding: 12px 20px;
  color: #fff;
  background: var(--track);
  border: 2px solid var(--track-dark);
  border-radius: 4px;
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0 var(--blue-dark);
}

.nav-results {
  padding: 10px 16px;
  color: var(--blue-dark);
  background: var(--yellow);
  border: 2px solid var(--blue-dark);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(16, 61, 121, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.nav-results:hover,
.nav-results:focus-visible {
  box-shadow: 6px 6px 0 rgba(16, 61, 121, 0.38);
  transform: translate(-2px, -2px);
}

.registration-bar {
  min-height: 36px;
  padding: 7px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #fff;
  background:
    repeating-linear-gradient(168deg, transparent 0 25px, rgba(255, 255, 255, 0.08) 26px 28px, transparent 29px 39px),
    var(--track);
  border-bottom: 3px solid var(--track-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.registration-bar a {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero {
  min-height: clamp(610px, 76vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(350px, 0.72fr);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 69, 145, 0.99) 0%, rgba(22, 97, 183, 0.9) 45%, rgba(20, 78, 141, 0.2) 78%, rgba(10, 36, 67, 0.16) 100%),
    url("../images/runners.jpg") center center / cover no-repeat;
  border-bottom: 9px solid var(--track);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  background: repeating-linear-gradient(
    164deg,
    transparent 0 35px,
    rgba(255, 255, 255, 0.22) 36px 38px,
    transparent 39px 53px
  );
  mask-image: linear-gradient(90deg, #000 0%, transparent 76%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -3%;
  bottom: 10%;
  width: 48%;
  height: 16px;
  border-top: 4px solid rgba(255, 255, 255, 0.65);
  border-bottom: 3px solid rgba(255, 255, 255, 0.38);
  transform: rotate(-3deg);
  opacity: 0.55;
  pointer-events: none;
}

.hero-copy {
  padding: clamp(46px, 5vw, 78px) clamp(24px, 6vw, 94px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: clamp(190px, 24vw, 390px);
  height: clamp(190px, 24vw, 390px);
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.045), 0 0 0 62px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 17px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(5rem, 9.8vw, 9.4rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(10, 40, 82, 0.2);
}

h1 span {
  display: block;
  color: #fff;
}

.hero-memorial {
  max-width: 650px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  line-height: 1.2;
}

.hero-lead {
  max-width: 610px;
  margin: clamp(18px, 2vw, 27px) 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 650;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.button {
  min-height: 54px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border: 3px solid #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--blue-dark);
}

.button-primary {
  color: #fff;
  background: var(--track);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.registration-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 750;
}

.race-card {
  min-height: 480px;
  margin: clamp(20px, 2.8vw, 42px);
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--blue-dark);
  background:
    repeating-linear-gradient(165deg, transparent 0 24px, rgba(27, 101, 183, 0.05) 25px 27px, transparent 28px 40px),
    rgba(255, 255, 255, 0.94);
  border: 4px solid #fff;
  border-radius: 6px;
  transform: rotate(1.3deg);
  box-shadow: 18px 18px 0 rgba(10, 45, 100, 0.7);
}

.race-card-top,
.race-card-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px dashed rgba(16, 61, 121, 0.35);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.race-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.race-card-body p {
  max-width: 18ch;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.race-card-body strong {
  margin: 8px 0 24px;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(4rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.race-card-footer {
  border-top: 2px dashed rgba(16, 61, 121, 0.35);
  border-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  background: #fff;
  border-bottom: 4px solid var(--track);
}

.facts::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: -8px;
  height: 12px;
  background: #fff;
  transform: rotate(-0.2deg);
}

.facts article {
  min-height: 138px;
  padding: 20px clamp(21px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
}

.facts article:last-child {
  border-right: 0;
}

.facts span {
  margin-bottom: auto;
  color: var(--track);
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 1.35rem;
}

.facts p {
  margin: 0 0 7px;
  color: rgba(16, 61, 121, 0.65);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts strong {
  max-width: 19ch;
  color: var(--blue-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.resource-strip {
  padding: clamp(20px, 2.5vw, 32px) clamp(22px, 5vw, 80px) clamp(42px, 5vw, 66px);
  display: grid;
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
  gap: 14px;
  color: var(--blue-dark);
  background: #fff;
  border-bottom: 4px solid var(--track);
}

.resource-strip article {
  min-height: 158px;
  padding: clamp(21px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  background: #e8f1fa;
  border: 2px solid rgba(16, 61, 121, 0.13);
  box-shadow: 7px 8px 0 rgba(16, 61, 121, 0.13);
}

.resource-strip .resource-primary {
  color: #fff;
  background:
    repeating-linear-gradient(174deg, transparent 0 53px, rgba(255, 255, 255, 0.1) 54px 58px, transparent 59px 90px),
    var(--track);
}

.resource-strip p {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.resource-strip h2 {
  margin: 0 0 19px;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.2rem, 3.3vw, 3.9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}

.resource-strip a {
  width: fit-content;
  margin-top: auto;
  padding: 12px 15px;
  color: #fff;
  background: var(--blue-dark);
  border: 2px solid currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
}

.resource-primary a {
  color: var(--blue-dark);
  background: var(--yellow);
  border-color: #fff;
  box-shadow: 5px 5px 0 rgba(7, 28, 59, 0.65);
}

.resource-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.section-heading h2,
.registration-section h2 {
  margin: 0;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(3.5rem, 6.6vw, 6.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.course-section {
  padding: clamp(46px, 5.5vw, 78px) clamp(22px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  color: var(--blue-dark);
  background:
    radial-gradient(ellipse at 22% 7%, rgba(255, 255, 255, 0.88) 0 7%, transparent 20%),
    radial-gradient(ellipse at 88% 20%, rgba(255, 255, 255, 0.55) 0 8%, transparent 22%),
    linear-gradient(180deg, #8cbee9 0%, #c5def4 55%, #eef5fb 100%);
}

.course-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-linear-gradient(166deg, transparent 0 45px, rgba(255, 255, 255, 0.45) 46px 48px, transparent 49px 65px);
  mask-image: linear-gradient(135deg, #000 0%, transparent 60%);
}

.course-section > * {
  position: relative;
  z-index: 1;
}

.course-heading {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: end;
  gap: 34px;
  margin-bottom: clamp(38px, 4.5vw, 58px);
}

.course-heading .section-kicker {
  grid-column: 1 / -1;
  color: var(--track-dark);
}

.course-description {
  max-width: 540px;
  margin: 0 0 8px;
}

.course-description p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

.course-description p + p {
  margin-top: 18px;
}

.map-frame {
  width: 50%;
  margin-inline: auto;
  padding: clamp(8px, 1vw, 16px);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 4px solid #fff;
  transform: rotate(-0.35deg);
  box-shadow: 15px 18px 0 rgba(16, 61, 121, 0.28);
}

.map-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}

.map-zoom-trigger {
  position: relative;
  display: block;
  color: inherit;
  cursor: zoom-in;
}

.map-stamp {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  padding: 12px 18px;
  color: #fff;
  background: var(--track);
  border: 3px solid #fff;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: rotate(-1deg);
  box-shadow: 6px 6px 0 var(--blue-dark);
}

.map-zoom-hint {
  position: absolute;
  top: clamp(14px, 2vw, 26px);
  right: clamp(14px, 2vw, 26px);
  padding: 9px 13px;
  color: #fff;
  background: rgba(7, 28, 59, 0.9);
  border: 2px solid #fff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(240, 70, 49, 0.88);
}

.course-section > .map-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: clamp(14px, 3vw, 36px);
  place-items: center;
}

.course-section > .map-lightbox:target {
  display: grid;
}

.map-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 32, 0.94);
  backdrop-filter: blur(5px);
}

.map-lightbox figure {
  width: min(94vw, 1100px);
  max-height: 92vh;
  margin: 0;
  position: relative;
  z-index: 1;
}

.map-lightbox figure img {
  width: 100%;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 5px solid #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.map-lightbox-close {
  width: 46px;
  height: 46px;
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--track);
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 5px 5px 0 var(--blue-dark);
}

.track-races {
  margin-top: 26px;
  padding: clamp(25px, 3vw, 42px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    repeating-linear-gradient(176deg, transparent 0 76px, rgba(255, 255, 255, 0.58) 77px 81px, transparent 82px 124px),
    var(--track);
  border: 4px solid #fff;
  box-shadow: 15px 18px 0 rgba(16, 61, 121, 0.28);
  transform: rotate(0.25deg);
}

.track-races::after {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  right: -90px;
  top: -110px;
  border: 4px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.08);
}

.track-races-heading,
.track-race-list,
.stadium-plan {
  position: relative;
  z-index: 1;
}

.track-races-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: end;
  gap: 21px 40px;
}

.track-badge {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 9px 13px;
  color: var(--track-dark);
  background: #fff;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--blue-dark);
  transform: rotate(-1deg);
}

.track-races h3 {
  max-width: 11ch;
  margin: 0;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.6rem, 4.4vw, 4.7rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.track-races-heading p {
  max-width: 610px;
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.track-race-list {
  margin-top: clamp(28px, 3.5vw, 46px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.track-race-list article {
  min-height: 200px;
  padding: 19px 17px 17px;
  display: flex;
  flex-direction: column;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(2% 4%, 97% 0, 100% 95%, 4% 100%);
}

.track-race-list article:nth-child(even) {
  transform: translateY(6px) rotate(0.6deg);
}

.track-race-list strong {
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.012em;
}

.track-race-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.track-race-list small {
  margin-top: 7px;
  color: rgba(16, 61, 121, 0.64);
  font-size: 0.68rem;
  font-weight: 800;
}

.track-category-times {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(16, 61, 121, 0.18);
}

.track-category-times p {
  margin: 0;
  padding: 5px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  align-items: start;
}

.track-category-times time {
  color: var(--track);
  font-size: 0.7rem;
  font-weight: 950;
}

.track-category-times span {
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.35;
}

.stadium-plan {
  margin-top: clamp(30px, 4vw, 52px);
  padding: clamp(15px, 2.4vw, 27px);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 10px 11px 0 var(--blue-dark);
}

.stadium-plan-copy {
  padding: clamp(9px, 1.5vw, 20px);
}

.stadium-plan-copy .track-badge {
  color: #fff;
  background: var(--track);
  box-shadow: 5px 5px 0 rgba(16, 61, 121, 0.25);
}

.stadium-plan h4 {
  max-width: 9ch;
  margin: 23px 0 14px;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}

.stadium-plan-copy > p {
  max-width: 46ch;
  margin: 0;
  color: rgba(16, 61, 121, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.stadium-plan-key {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.stadium-plan-key span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 900;
}

.stadium-plan-key i {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: block;
  background: var(--marker-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 61, 121, 0.1);
}

.key-100,
.marker-100 { --marker-color: #f04f98; }
.key-200,
.marker-200 { --marker-color: #7b55d7; }
.key-300,
.marker-300 { --marker-color: #00a978; }
.key-relay,
.marker-relay { --marker-color: #ed701d; }

.stadium-crop {
  width: 50%;
  margin: 0;
  justify-self: center;
  padding: 10px;
  overflow: hidden;
  background: var(--blue-dark);
  box-shadow: 9px 10px 0 rgba(16, 61, 121, 0.2);
  transform: rotate(0.6deg);
}

.stadium-map-image {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #9bb5ae;
}

.stadium-map-image > img {
  width: 430%;
  max-width: none;
  height: auto;
  position: absolute;
  left: -113%;
  top: -55%;
  display: block;
  filter: saturate(0.85) contrast(1.04) brightness(1.04);
}

.stadium-marker {
  padding: 7px 9px;
  position: absolute;
  z-index: 2;
  color: #fff;
  background: var(--marker-color);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: clamp(0.54rem, 1vw, 0.76rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 3px 4px 0 rgba(7, 28, 59, 0.72);
  transform: translate(-50%, -50%);
}

.stadium-marker::after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  background: var(--marker-color);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.marker-100 { left: 52%; top: 32%; }
.marker-200 { left: 88%; top: 43%; }
.marker-300 { left: 71%; top: 83%; }
.marker-relay { left: 38%; top: 69%; }

.route-board {
  margin-top: clamp(20px, 2.8vw, 36px);
  overflow: hidden;
  color: var(--blue-dark);
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 15px 18px 0 rgba(16, 61, 121, 0.28);
}

.route-row {
  --route-color: var(--track);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  border-top: 2px solid rgba(16, 61, 121, 0.14);
}

.route-yellow { --route-color: #d1ad00; }
.route-blue { --route-color: var(--route-blue); }
.route-red { --route-color: var(--route-red); }

.route-identity {
  padding: clamp(23px, 3vw, 36px);
  position: relative;
  background: color-mix(in srgb, var(--route-color) 9%, #fff);
  border-right: 2px solid rgba(16, 61, 121, 0.13);
}

.route-index {
  color: var(--route-color);
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 1.15rem;
}

.route-line {
  height: 9px;
  margin: 11px 0 17px;
  display: block;
  position: relative;
  background: var(--route-color);
  border-radius: 99px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(16, 61, 121, 0.15);
}

.route-line::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid #fff;
  transform: translateY(-50%);
}

.route-identity p {
  margin: 0 0 5px;
  color: var(--route-color);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-identity > strong {
  display: block;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.8rem, 4.3vw, 4.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.015em;
}

.route-identity small {
  max-width: 38ch;
  margin-top: 12px;
  display: block;
  color: rgba(16, 61, 121, 0.68);
  font-size: 0.72rem;
  line-height: 1.5;
}

.route-starts {
  padding: clamp(19px, 2.7vw, 34px);
  display: grid;
  align-content: center;
}

.route-starts > div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid rgba(16, 61, 121, 0.15);
}

.route-starts > div:last-child {
  border-bottom: 0;
}

.route-starts time {
  color: var(--route-color);
  font-size: 1.05rem;
  font-weight: 950;
}

.route-starts p {
  margin: 0;
}

.route-starts strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

.route-starts span {
  margin-top: 4px;
  display: block;
  color: rgba(16, 61, 121, 0.63);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
}

.relay-card {
  margin-top: clamp(34px, 4.5vw, 58px);
  padding: clamp(15px, 2.3vw, 29px);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
  color: #fff;
  background:
    repeating-linear-gradient(175deg, transparent 0 68px, rgba(255, 255, 255, 0.08) 69px 73px, transparent 74px 106px),
    var(--blue-dark);
  border: 4px solid #fff;
  box-shadow: 15px 18px 0 rgba(16, 61, 121, 0.28);
  transform: rotate(-0.2deg);
}

.relay-photo {
  min-height: 100%;
  margin: 0;
  padding: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 10px 11px 0 rgba(7, 28, 59, 0.68);
  transform: rotate(-1deg);
}

.relay-photo img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  object-fit: cover;
  object-position: 73% center;
}

.relay-content {
  padding: clamp(14px, 2vw, 30px) clamp(8px, 2vw, 28px) clamp(14px, 2vw, 30px) 0;
}

.relay-heading .section-kicker {
  color: var(--yellow);
}

.relay-heading h3 {
  margin: 12px 0 0;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}

.relay-heading h3 span {
  margin-top: 14px;
  display: block;
  color: var(--yellow);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.relay-pitch {
  max-width: 48ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.relay-categories {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.relay-categories span {
  padding: 9px 13px;
  color: var(--blue-dark);
  background: var(--yellow);
  border: 2px solid #fff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(7, 28, 59, 0.72);
}

.relay-legs {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.relay-legs > div {
  padding: 25px;
  color: var(--blue-dark);
  background: #fff;
  clip-path: polygon(1% 4%, 98% 0, 100% 94%, 3% 100%);
}

.relay-legs span {
  color: var(--track);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.relay-legs strong {
  margin-top: 9px;
  display: block;
  font-size: 1.05rem;
}

.relay-legs p {
  margin: 9px 0 0;
  color: rgba(16, 61, 121, 0.73);
  font-size: 0.82rem;
  line-height: 1.5;
}

.rewards-section {
  min-height: 560px;
  padding: clamp(46px, 5.5vw, 76px) clamp(22px, 7vw, 108px) 70px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 6vw, 82px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(255, 255, 255, 0.25) 0 8%, transparent 21%),
    linear-gradient(180deg, #1d68b8 0%, #5b9edc 100%);
}

.rewards-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background: repeating-linear-gradient(163deg, transparent 0 38px, rgba(255, 255, 255, 0.28) 39px 41px, transparent 42px 57px);
  mask-image: linear-gradient(135deg, #000 0%, transparent 75%);
}

.rewards-section::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -48px;
  height: 150px;
  background:
    repeating-linear-gradient(176deg, transparent 0 45px, rgba(255, 255, 255, 0.75) 46px 50px, transparent 51px 78px),
    var(--track);
  transform: rotate(-1deg);
}

.rewards-section > * {
  position: relative;
  z-index: 1;
}

.reward-photo {
  width: min(28vw, 360px);
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 8px;
  justify-self: center;
  display: grid;
  overflow: hidden;
  color: var(--blue-dark);
  background: #fff;
  transform: rotate(-2.2deg);
  box-shadow: 18px 20px 0 rgba(11, 49, 105, 0.7);
}

.reward-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-area: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.reward-photo figcaption {
  margin: 0;
  padding: 30px 10px 9px;
  grid-area: 1 / 1;
  align-self: end;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(7, 28, 59, 0.88));
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.reward-heading h2 {
  max-width: 8ch;
}

.reward-intro {
  max-width: 620px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.55;
}

.reward-grid {
  margin-top: 22px;
  display: grid;
  border-top: 2px solid rgba(255, 255, 255, 0.75);
}

.reward-grid > div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
}

.reward-grid span {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reward-grid strong {
  font-size: 0.96rem;
  line-height: 1.4;
}

.practical-section {
  padding: clamp(46px, 5.5vw, 78px) clamp(22px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  color: var(--blue-dark);
  background:
    radial-gradient(ellipse at 18% 2%, rgba(255, 255, 255, 0.95) 0 8%, transparent 22%),
    radial-gradient(ellipse at 90% 8%, rgba(255, 255, 255, 0.75) 0 7%, transparent 18%),
    linear-gradient(180deg, #dceafa 0%, #f6f8fb 100%);
}

.practical-heading {
  max-width: 1050px;
}

.practical-heading h2 {
  max-width: 11ch;
}

.practical-grid {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.practical-card {
  min-height: 280px;
  padding: clamp(20px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.94);
  border: 4px solid var(--blue-dark);
  clip-path: polygon(1% 3%, 98% 0, 100% 96%, 3% 100%, 0 36%);
  transition: transform 160ms ease, filter 160ms ease;
}

.practical-card:nth-child(1) { transform: rotate(-0.7deg); }
.practical-card:nth-child(2) {
  color: #fff;
  background: var(--blue);
  transform: rotate(0.8deg);
}
.practical-card:nth-child(3) {
  color: #fff;
  background: var(--track);
  transform: rotate(-0.5deg);
}

.practical-card:hover {
  transform: translateY(-7px) rotate(0deg);
  filter: drop-shadow(9px 10px 0 rgba(16, 61, 121, 0.28));
}

.practical-marker {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 1.2rem;
}

.practical-card h3 {
  margin: auto 0 14px;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2rem, 2.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}

.practical-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  opacity: 0.82;
}

.practical-card a {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-section {
  padding: clamp(46px, 5.5vw, 78px) clamp(22px, 5vw, 80px) clamp(64px, 6vw, 88px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 127, 216, 0.52) 0 8%, transparent 27%),
    repeating-linear-gradient(164deg, transparent 0 52px, rgba(255, 255, 255, 0.055) 53px 55px, transparent 56px 74px),
    var(--ink);
}

.gallery-section::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -64px;
  height: 142px;
  background:
    repeating-linear-gradient(176deg, transparent 0 45px, rgba(255, 255, 255, 0.7) 46px 50px, transparent 51px 78px),
    var(--track);
  transform: rotate(1deg);
}

.gallery-heading,
.gallery-grid,
.gallery-link {
  position: relative;
  z-index: 1;
}

.gallery-heading {
  margin-bottom: clamp(25px, 3.5vw, 42px);
}

.gallery-heading .section-kicker {
  color: var(--yellow);
}

.gallery-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(165px, 15vw, 240px);
  gap: 10px;
  background: #fff;
  box-shadow: 18px 20px 0 rgba(7, 28, 59, 0.78);
  transform: rotate(-0.35deg);
}

.gallery-photo {
  min-width: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
}

.gallery-photo-wide {
  grid-column: span 2;
}

.gallery-photo-tall {
  grid-row: span 2;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.gallery-photo:nth-child(2) img {
  object-position: 55% center;
}

.gallery-photo:nth-child(3) img {
  object-position: center 72%;
}

.gallery-photo:nth-child(5) img {
  object-position: 68% center;
}

.gallery-photo:hover img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.gallery-link {
  margin-top: 38px;
  padding: 16px 20px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  background: var(--track);
  border: 3px solid #fff;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 7px 7px 0 var(--blue);
  transform: rotate(-0.6deg);
}

.schedule-section {
  padding: clamp(44px, 5.5vw, 76px) clamp(22px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(137, 187, 231, 0.94) 0%, rgba(218, 235, 249, 0.94) 100%),
    url("../images/runners.jpg") center / cover;
}

.schedule-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background: repeating-linear-gradient(165deg, transparent 0 43px, #fff 44px 46px, transparent 47px 62px);
  mask-image: linear-gradient(135deg, #000 0%, transparent 68%);
}

.schedule-section > * {
  position: relative;
  z-index: 1;
}

.schedule-heading {
  grid-column: 1 / -1;
}

.schedule-heading h2 {
  max-width: 8ch;
  color: var(--blue-dark);
  font-size: clamp(3.2rem, 5.7vw, 6.5rem);
}

.poster-preview {
  width: min(100%, 520px);
  margin: 0;
  padding: 9px 9px 14px;
  justify-self: center;
  background: #fff;
  transform: rotate(-1.8deg);
  box-shadow: 13px 14px 0 rgba(16, 61, 121, 0.38);
}

.poster-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-preview figcaption {
  padding: 12px 4px 0;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.timeline {
  align-self: start;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid #fff;
  box-shadow: 14px 14px 0 rgba(16, 61, 121, 0.28);
}

.timeline-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 102px 1fr;
  align-items: center;
  border-bottom: 2px solid rgba(16, 61, 121, 0.25);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row time {
  color: var(--track-dark);
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.015em;
}

.timeline-row p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
}

.text-link {
  grid-column: 2;
  margin-top: -15px;
  justify-self: end;
  min-height: 54px;
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--track);
  border: 3px solid #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  box-shadow: 6px 6px 0 var(--blue-dark);
  transform: rotate(-0.5deg);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  background: var(--track-dark);
  box-shadow: 10px 10px 0 var(--blue-dark);
  transform: translate(-3px, -3px) rotate(0deg);
}

.program-registration {
  padding: clamp(30px, 4vw, 48px) clamp(22px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(390px, 1.25fr) minmax(230px, auto);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--blue-dark);
  border-top: 8px solid var(--yellow);
}

.program-registration::before,
.program-registration::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.program-registration::before {
  width: 48%;
  height: 180%;
  right: -8%;
  bottom: -112%;
  border: clamp(22px, 3vw, 42px) solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.program-registration::after {
  width: 28%;
  height: 6px;
  left: 0;
  bottom: 0;
  background: var(--track);
}

.program-registration-copy .section-kicker {
  color: var(--yellow);
}

.program-registration-copy h2 {
  max-width: 9ch;
  margin: 8px 0 13px;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.7rem, 4.2vw, 4.9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.program-registration-copy > p:last-child {
  margin: 0;
  font-size: 0.85rem;
}

.program-registration-fees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 255, 255, 0.25);
}

.program-registration-fees > div {
  min-height: 80px;
  padding: 14px clamp(14px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.program-registration-fees > div:last-child {
  border-right: 0;
}

.program-registration-fees span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.program-registration-fees strong {
  color: #fff;
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  line-height: 1;
}

.program-registration-actions {
  display: grid;
  gap: 12px;
}

.program-register-button,
.program-start-list-button {
  min-height: 54px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.program-register-button {
  color: #fff;
  background: var(--track);
  box-shadow: 6px 6px 0 rgba(6, 27, 59, 0.72);
}

.program-start-list-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.program-register-button:hover,
.program-register-button:focus-visible,
.program-start-list-button:hover,
.program-start-list-button:focus-visible {
  transform: translate(-2px, -2px);
}

.program-register-button:hover,
.program-register-button:focus-visible {
  box-shadow: 9px 9px 0 rgba(6, 27, 59, 0.72);
}

.program-start-list-button:hover,
.program-start-list-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.registration-section {
  min-height: 440px;
  padding: clamp(46px, 5.5vw, 72px) clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(38px, 6vw, 82px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    repeating-linear-gradient(175deg, transparent 0 66px, rgba(255, 255, 255, 0.65) 67px 72px, transparent 73px 112px),
    var(--track);
}

.registration-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  pointer-events: none;
  background: repeating-linear-gradient(163deg, transparent 0 35px, rgba(255, 255, 255, 0.4) 36px 38px, transparent 39px 55px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.registration-section > * {
  position: relative;
  z-index: 1;
}

.registration-section h2 {
  max-width: 8ch;
  font-size: clamp(3.9rem, 7vw, 7rem);
}

.registration-section p:not(.section-kicker) {
  max-width: 640px;
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.55;
}

.registration-big-button {
  min-height: 160px;
  padding: 30px;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.97);
  border: 7px solid #fff;
  clip-path: polygon(2% 5%, 97% 0, 100% 93%, 4% 100%, 0 46%);
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: 0.018em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(1.2deg);
  filter: drop-shadow(16px 17px 0 var(--blue-dark));
  transition: transform 160ms ease, filter 160ms ease;
}

.registration-big-button span {
  font-size: 0.85em;
}

.registration-big-button:hover,
.registration-big-button:focus-visible {
  transform: rotate(-1deg) translateY(-6px);
  filter: drop-shadow(20px 22px 0 rgba(16, 61, 121, 0.8));
}

footer {
  min-height: 150px;
  padding: 26px clamp(22px, 5vw, 80px) 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--blue-dark);
  background: #e9f0f9;
  border-top: 9px solid #fff;
}

.footer-brand p {
  max-width: 18ch;
  margin: 0;
}

.footer-brand .wordmark-mark {
  background: var(--blue-dark);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 0.78rem;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--track-dark);
}

.footer-small {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(16, 61, 121, 0.56);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-register {
  min-height: 56px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  color: #fff;
  background: var(--track);
  border: 3px solid #fff;
  border-radius: 4px;
  font-family: "Capture Smallz Clean", Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  box-shadow: 7px 7px 0 var(--blue-dark);
  transform: rotate(-1deg);
  transition: transform 150ms ease;
}

.floating-register:hover {
  transform: translateY(-4px) rotate(0deg);
}

@media (max-width: 1120px) {
  .resource-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-primary {
    grid-column: 1 / -1;
  }

  .course-heading,
  .registration-section {
    grid-template-columns: 1fr;
  }

  .track-races-heading {
    grid-template-columns: 1fr;
  }

  .track-race-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rewards-section {
    grid-template-columns: 1fr;
  }

  .reward-photo {
    width: min(52vw, 380px);
    margin-top: 34px;
  }

  .practical-grid {
    grid-template-columns: 1fr;
  }

  .practical-card {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(190px, 25vw, 275px);
  }

  .schedule-section {
    grid-template-columns: minmax(250px, 0.7fr) minmax(210px, 0.42fr);
  }

  .program-registration {
    grid-template-columns: minmax(230px, 0.65fr) minmax(410px, 1.35fr);
  }

  .program-registration-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-column: 1 / -1;
  }

  .text-link {
    grid-column: 1 / -1;
  }

  .registration-big-button {
    width: min(740px, 100%);
    justify-self: center;
  }
}

@media (max-width: 900px) {
  nav > a:not(.nav-cta):not(.nav-results) {
    display: none;
  }

  .track-race-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stadium-plan,
  .route-row {
    grid-template-columns: 1fr;
  }

  .stadium-crop {
    width: min(50%, 280px);
    justify-self: center;
  }

  .route-identity {
    border-right: 0;
    border-bottom: 2px solid rgba(16, 61, 121, 0.13);
  }

  .hero {
    grid-template-columns: 1fr;
    background-position: 66% center;
  }

  .hero-copy {
    min-height: 590px;
  }

  .program-registration {
    grid-template-columns: 1fr;
  }

  .program-registration-copy h2 {
    max-width: none;
  }

  .program-registration-actions {
    grid-column: auto;
  }

  .relay-card {
    grid-template-columns: 1fr;
  }

  .relay-photo img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-position: 50% 58%;
  }

  .relay-content {
    padding: 20px 10px 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(210px, 38vw, 340px);
  }

  .race-card {
    min-height: 400px;
    margin: 18px 22px 38px;
    transform: none;
    box-shadow: 10px 10px 0 rgba(10, 45, 100, 0.72);
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-small {
    grid-column: 1;
  }
}

@media (max-width: 650px) {
  .wordmark > span:last-child {
    display: none;
  }

  .site-header {
    min-height: 70px;
  }

  nav {
    gap: 8px;
    font-size: 0.68rem;
  }

  .nav-results {
    padding: 9px 10px;
  }

  .nav-cta {
    padding: 10px 12px;
  }

  .registration-bar {
    min-height: 39px;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.59rem;
    letter-spacing: 0.03em;
  }

  .registration-bar a {
    flex: 0 0 auto;
    padding-left: 10px;
  }

  .hero-copy {
    min-height: 520px;
    padding-top: 48px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(4.3rem, 23vw, 7rem);
  }

  .hero-memorial {
    font-size: 1.1rem;
  }

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

  .button {
    width: 100%;
  }

  .race-card-body strong {
    font-size: 4.5rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts article,
  .facts article:nth-child(2) {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resource-strip {
    grid-template-columns: 1fr;
  }

  .resource-primary {
    grid-column: 1;
  }

  .section-heading h2,
  .registration-section h2 {
    font-size: clamp(3.3rem, 16vw, 5.4rem);
  }

  .course-heading {
    display: block;
  }

  .course-description {
    margin-top: 20px;
  }

  .map-frame {
    width: calc(100% + 44px);
    margin-inline: -22px;
    padding: 4px;
    border-right: 0;
    border-left: 0;
    transform: none;
    box-shadow: 0 9px 0 rgba(16, 61, 121, 0.28);
  }

  .map-stamp {
    padding: 8px 10px;
    font-size: 0.65rem;
    box-shadow: 4px 4px 0 var(--blue-dark);
  }

  .map-zoom-hint {
    top: 10px;
    right: 10px;
    padding: 7px 9px;
    font-size: 0.55rem;
  }

  .map-lightbox {
    padding: 8px;
  }

  .map-lightbox figure {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .map-lightbox figure img {
    max-height: calc(100vh - 16px);
    border-width: 3px;
  }

  .map-lightbox-close {
    width: 42px;
    height: 42px;
    top: 9px;
    right: 9px;
  }

  .track-races {
    margin-top: 24px;
    padding: 25px 18px 30px;
    box-shadow: 8px 9px 0 rgba(16, 61, 121, 0.28);
    transform: none;
  }

  .track-races-heading {
    display: block;
  }

  .track-badge {
    display: inline-block;
    margin-bottom: 18px;
  }

  .track-races-heading p {
    margin-top: 16px;
  }

  .track-race-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .track-race-list article {
    min-height: 150px;
  }

  .track-race-list article:nth-child(even) {
    transform: none;
  }

  .stadium-plan {
    padding: 12px;
    gap: 22px;
    box-shadow: 7px 8px 0 var(--blue-dark);
  }

  .stadium-plan-copy {
    padding: 20px 9px 4px;
  }

  .stadium-plan-key {
    grid-template-columns: 1fr;
  }

  .route-board {
    box-shadow: 8px 9px 0 rgba(16, 61, 121, 0.28);
  }

  .route-starts > div {
    grid-template-columns: 66px 1fr;
    gap: 12px;
  }

  .relay-legs {
    grid-template-columns: 1fr;
  }

  .reward-photo {
    width: min(76vw, 320px);
    padding: 6px;
    box-shadow: 12px 13px 0 rgba(11, 49, 105, 0.72);
  }

  .reward-photo figcaption {
    padding: 24px 7px 7px;
    font-size: 0.5rem;
  }

  .reward-grid > div {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    padding: 6px;
    grid-template-columns: 1fr;
    grid-auto-rows: 58vw;
    gap: 6px;
    box-shadow: 10px 11px 0 rgba(7, 28, 59, 0.78);
    transform: none;
  }

  .gallery-photo-wide,
  .gallery-photo-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-link {
    width: 100%;
    justify-content: space-between;
  }

  .schedule-section {
    grid-template-columns: 1fr;
  }

  .program-registration {
    padding-block: 34px 40px;
  }

  .program-registration-fees,
  .program-registration-actions {
    grid-template-columns: 1fr;
  }

  .program-registration-fees > div {
    min-height: 76px;
    padding-inline: 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .program-registration-fees > div:last-child {
    border-bottom: 0;
  }

  .poster-preview {
    width: min(92vw, 440px);
    justify-self: center;
  }

  .timeline,
  .text-link {
    grid-column: 1;
  }

  .text-link {
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
  }

  .timeline {
    padding: 8px 17px;
  }

  .timeline-row {
    grid-template-columns: 82px 1fr;
  }

  .timeline-row time {
    font-size: 1.35rem;
  }

  .registration-big-button {
    min-height: 180px;
    padding: 24px;
    font-size: clamp(2.1rem, 11vw, 3.6rem);
    filter: drop-shadow(10px 11px 0 var(--blue-dark));
  }

  .floating-register {
    left: 15px;
    right: 15px;
    bottom: 15px;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .text-link,
  .nav-results,
  .practical-card,
  .gallery-photo img,
  .program-register-button,
  .program-start-list-button,
  .registration-big-button,
  .floating-register {
    transition: none;
  }
}
