:root {
  color-scheme: dark;
  --ink: #11110f;
  --ink-soft: #22221e;
  --paper: #f2eee5;
  --paper-bright: #fffaf0;
  --orange: #ff5722;
  --orange-light: #ff8a65;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(17, 17, 15, 0.16);
  --text-muted-dark: rgba(255, 250, 240, 0.64);
  --text-muted-light: rgba(17, 17, 15, 0.64);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: clip;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", Avenir, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.launch-page {
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px;
  color: var(--paper-bright);
}

.launch-glow {
  position: fixed;
  z-index: 0;
  top: -32vw;
  right: -20vw;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.26), rgba(255, 87, 34, 0) 68%);
  pointer-events: none;
}

.launch-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100% - 48px, 1240px);
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer,
.policy-header,
.policy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  color: var(--paper-bright);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 164px;
  height: auto;
}

.header-mark,
.eyebrow,
.launch-meta,
.site-footer,
.policy-updated,
.section-number,
.error-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-mark {
  color: var(--text-muted-dark);
}

.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(52px, 8vw, 124px);
  align-items: center;
  padding: clamp(72px, 10vh, 140px) 0;
}

.launch-copy {
  animation: rise-in 800ms var(--ease-out) both;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 32px;
  color: var(--orange-light);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 87, 34, 0.12);
}

.launch-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.94;
}

.no-break {
  white-space: nowrap;
}

.lead {
  margin: clamp(32px, 5vw, 56px) 0 0;
  color: var(--text-muted-dark);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.launch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 48px;
  color: rgba(255, 250, 240, 0.48);
}

.launch-meta span::before {
  content: "/";
  margin-right: 8px;
  color: var(--orange);
}

.track-art {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 0.88;
  margin-left: auto;
  animation: rise-in 900ms 120ms var(--ease-out) both;
}

.track {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 48% 48% 44% 44% / 34% 34% 66% 66%;
  transform: rotate(-13deg);
}

.track-one {
  inset: 0;
  border-color: var(--orange);
  box-shadow: 0 0 52px rgba(255, 87, 34, 0.15);
}

.track-two {
  inset: 7.5%;
}

.track-three {
  inset: 15%;
  border-style: dashed;
}

.track-runner {
  position: absolute;
  top: 8%;
  left: 37%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 18px 44px rgba(255, 87, 34, 0.28);
}

.runner-arrow {
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  transform: rotate(45deg) translate(-2px, 2px);
}

.runner-arrow::after {
  content: "";
  position: absolute;
  top: 7px;
  left: -8px;
  width: 27px;
  height: 3px;
  background: var(--ink);
  transform: rotate(-45deg);
  transform-origin: right center;
}

.track-distance {
  position: absolute;
  right: -0.06em;
  bottom: 4%;
  margin: 0;
  color: var(--paper-bright);
  font-size: clamp(4rem, 8vw, 7.7rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.track-unit {
  position: absolute;
  right: 1%;
  bottom: -4%;
  margin: 0;
  color: var(--orange-light);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.site-footer {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 250, 240, 0.48);
}

.site-footer p,
.policy-footer p {
  margin: 0;
}

.site-footer a,
.policy-footer a {
  text-decoration: none;
}

.site-footer a {
  color: var(--paper-bright);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--orange-light);
}

.policy-page {
  background: var(--paper);
  color: var(--ink);
}

.policy-header,
.policy-footer,
.policy-shell {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.policy-header {
  padding: 32px 0;
  border-bottom: 1px solid var(--line-light);
}

.wordmark-dark {
  color: var(--ink);
}

.back-link {
  color: var(--text-muted-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.policy-shell {
  padding: clamp(68px, 10vw, 124px) 0 clamp(80px, 12vw, 148px);
}

.policy-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: end;
  padding-bottom: clamp(56px, 8vw, 92px);
}

.eyebrow-dark {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--orange);
}

.policy-title h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.policy-updated {
  margin: 0 0 0.5em;
  color: var(--text-muted-light);
  white-space: nowrap;
}

.policy-content {
  border-top: 1px solid var(--line-light);
}

.policy-content section {
  display: grid;
  grid-template-columns: 80px minmax(0, 720px);
  gap: 24px;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line-light);
}

.section-number {
  margin: 0;
  color: var(--orange);
}

.policy-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.18rem, 2vw, 1.52rem);
  letter-spacing: -0.025em;
}

.policy-content p:not(.section-number) {
  max-width: 66ch;
  margin: 0;
  color: var(--text-muted-light);
  font-size: clamp(0.93rem, 1.5vw, 1.03rem);
  line-height: 2;
}

.policy-content a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.policy-footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line-light);
  color: var(--text-muted-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.not-found-page {
  display: grid;
  background: var(--ink);
  color: var(--paper-bright);
  place-items: center;
}

.not-found-shell {
  position: relative;
  display: grid;
  width: min(100% - 48px, 1120px);
  min-height: calc(100svh - 48px);
  margin: 24px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  grid-template-rows: auto 1fr;
}

.not-found-copy {
  z-index: 1;
  align-self: center;
  max-width: 640px;
}

.error-code {
  margin: 0 0 24px;
  color: var(--orange-light);
}

.not-found-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.not-found-copy > p:not(.error-code) {
  margin: 28px 0 42px;
  color: var(--text-muted-dark);
  line-height: 1.8;
}

.home-button {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--orange);
  color: var(--paper-bright);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: gap 200ms var(--ease-out), color 200ms ease;
}

.home-button:hover {
  gap: 60px;
  color: var(--orange-light);
}

.not-found-mark {
  position: absolute;
  right: -0.08em;
  bottom: -0.28em;
  margin: 0;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(14rem, 38vw, 36rem);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .launch-shell,
  .policy-header,
  .policy-footer,
  .policy-shell {
    width: min(100% - 36px, 680px);
  }

  .launch-grid {
    grid-template-columns: 1fr;
    gap: 72px;
    padding: 72px 0 84px;
  }

  .launch-copy h1 {
    font-size: clamp(3.7rem, 14vw, 6.8rem);
  }

  .track-art {
    width: min(88%, 480px);
    margin: 0 auto;
  }

  .policy-title {
    grid-template-columns: 1fr;
  }

  .policy-updated {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .policy-header {
    padding: 24px 0;
  }

  .launch-grid {
    padding-top: 56px;
  }

  .launch-copy h1 {
    font-size: clamp(3.2rem, 16.5vw, 5rem);
  }

  .lead br {
    display: none;
  }

  .launch-meta {
    display: grid;
    margin-top: 36px;
  }

  .track-art {
    width: 100%;
  }

  .track-runner {
    width: 48px;
    height: 48px;
  }

  .track-distance {
    font-size: 4.6rem;
  }

  .site-footer {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .back-link {
    font-size: 0.7rem;
  }

  .policy-shell {
    padding-top: 58px;
  }

  .policy-content section {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }

  .policy-footer {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .not-found-shell {
    width: calc(100% - 24px);
    min-height: calc(100svh - 24px);
    margin: 12px;
    padding: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
