:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --alt: #ede8df;
  --panel: #fffcf7;
  --ink: #191815;
  --muted: #58524a;
  --line: #cfc6ba;
  --accent: #a8360d;
  --heat: #ff6b35;
  --display: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Courier New', monospace;
  --frame: 75rem;
  --hero-image: url('assets/race-night.webp');
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #151513;
    --alt: #1c1c19;
    --panel: #201f1c;
    --ink: #f8f4ed;
    --muted: #c3bcb0;
    --line: #464139;
    --accent: #ff8455;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #151513;
  --alt: #1c1c19;
  --panel: #201f1c;
  --ink: #f8f4ed;
  --muted: #c3bcb0;
  --line: #464139;
  --accent: #ff8455;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1rem/1.6 system-ui,
    sans-serif;
}

[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 0.17rem solid var(--accent);
  outline-offset: 0.25rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1;
}

h1,
h2 {
  text-transform: uppercase;
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2.125rem, 5vw, 4.25rem);
}
h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  letter-spacing: -0.035em;
}
p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

.frame {
  width: min(var(--frame), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
}

.site-header,
.site-footer {
  background: #151513;
  color: #fff9ef;
  --accent: #ff8455;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner {
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.05em;
  color: #fff9ef;
  font: 900 italic 1.4rem/1 var(--display);
  letter-spacing: -0.07em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark > span:last-child {
  color: var(--heat);
}

.race-mark {
  display: inline-block;
  width: 1.25rem;
  height: 0.95rem;
  margin-right: 0.4rem;
  background: linear-gradient(
    90deg,
    var(--heat) 28%,
    transparent 28% 41%,
    var(--heat) 41% 68%,
    transparent 68% 81%,
    var(--heat) 81%
  );
  transform: skew(-18deg);
}

.main-nav,
.footer-inner nav,
.header-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.3rem;
  align-items: center;
}

.main-nav a,
.footer-inner nav a {
  padding-block: 0.45rem;
  color: #e1d9ce;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav [aria-current='page'],
.footer-inner nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.header-actions {
  gap: 0.6rem;
}

.theme-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  background: transparent;
  color: #fff9ef;
  border: 1px solid #72685d;
  font-size: 1.2rem;
  cursor: pointer;
}

.theme-button:hover,
.theme-button[aria-pressed='true'] {
  border-color: var(--heat);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  background: var(--heat);
  color: #1a120e;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #ff915f;
}
.button:disabled {
  opacity: 0.65;
  cursor: default;
}
.button-small {
  min-height: 2.75rem;
  font-size: 0.85rem;
}

.button-outline {
  border-color: #8b8175;
  background: #171614a6;
  color: #fff9ef;
}
.button-outline:hover {
  border-color: #fff9ef;
  background: #26211d;
}

.hero,
.page-hero {
  --accent: #ff8455;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: #fff9ef;
  background-color: #211712;
}

.hero {
  min-height: clamp(32rem, 49vw, 43rem);
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(
      90deg,
      #141310 0%,
      #141310eb 27%,
      #14131038 66%,
      #14131012 100%
    ),
    var(--hero-image, linear-gradient(125deg, #171613 30%, #70331e 100%));
  background-size: cover;
  background-position: center;
}

.hero::after,
.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: auto -3rem -1rem auto;
  width: 24rem;
  height: 0.55rem;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 12px,
    var(--heat) 12px 18px
  );
  content: '';
  transform: translateY(-1rem);
}

.hero-inner {
  padding-block: 5rem;
}

.eyebrow,
.micro,
.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1rem;
}
.eyebrow-divider {
  color: #d3b8aa;
  margin-inline: 0.35rem;
}
.slash {
  margin-right: 0.35rem;
  color: var(--accent);
}

.status-light {
  display: inline-block;
  width: 0.54rem;
  height: 0.54rem;
  margin-right: 0.38rem;
  background: var(--heat);
  border-radius: 50%;
  box-shadow: 0 0 0.65rem #ff6b3570;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.89;
  font-style: italic;
}

.hero h1 em,
.page-hero h1 em {
  color: var(--heat);
}

.hero-copy {
  max-width: 32rem;
  margin: 1.5rem 0 1.75rem;
  color: #f0e7dd;
  font-size: clamp(1rem, 2vw, 1.23rem);
}

.track-band {
  background: var(--heat);
  color: #1a120e;
}

.track-band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  padding-block: 0.8rem;
  font: 800 0.82rem/1.35 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.track-band-inner span + span::before {
  margin-right: 1.75rem;
  content: '//';
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section-alt {
  background: var(--alt);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
}

.section-intro > p:not(.eyebrow),
.partner > p:not(.eyebrow) {
  max-width: 43rem;
  color: var(--muted);
}

.section-intro > h2 + p,
.partner > h2 + p {
  margin-top: 1.2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.text-link:hover {
  text-decoration-thickness: 0.14em;
}

.standings {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: start;
  justify-content: space-between;
  padding: 1.25rem;
  border-top: 0.25rem solid var(--accent);
}

.micro {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.label {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.standings table {
  width: 100%;
  border-collapse: collapse;
}
.standings th,
.standings td {
  padding: 0.65rem 0.4rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.standings tr > :first-child {
  padding-left: 1.25rem;
}
.standings tr > :last-child {
  padding-right: 0.75rem;
}
.standings thead th {
  color: var(--muted);
  font: 700 0.76rem/1.3 var(--mono);
  text-transform: uppercase;
}
.standings tbody td:first-child {
  color: var(--accent);
  font: 800 1rem/1.3 var(--mono);
}
.standings tbody tr:nth-child(odd) {
  background: var(--alt);
}
.standings tbody td:last-child {
  color: var(--muted);
}
.panel-note {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.steps,
.tier-grid,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.steps > li {
  padding: 1.2rem 1.15rem 1.35rem;
  border-top: 1px solid var(--accent);
}
.step-number {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font: 800 1.3rem/1 var(--mono);
}
.steps p,
.tier p:last-child,
.feature p:last-child {
  margin-top: 0.65rem;
  color: var(--muted);
}

.garage-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: clamp(19rem, 35vw, 28rem);
  padding: 1.25rem;
  background: #211712;
  color: #fff9ef;
  border-bottom: 0.25rem solid var(--heat);
}

.garage-visual img,
.garage-visual::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.garage-visual img {
  z-index: -2;
  object-fit: cover;
}
.garage-visual::after {
  z-index: -1;
  background: linear-gradient(0deg, #141310ed, #14131008 58%, #14131044);
  content: '';
}
.garage-visual .label {
  background: #171614;
  border-color: #887e72;
  color: #fff9ef;
}
.garage-name .micro {
  display: block;
  color: #ff9a73;
}
.garage-name strong {
  display: block;
  font: 900 italic clamp(2.45rem, 5vw, 4rem)/0.95 var(--display);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.specs {
  margin: 1.25rem 0 0.6rem;
}
.specs > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.specs dt {
  color: var(--muted);
}
.specs dd {
  margin: 0;
  font-weight: 750;
}

.tier-grid {
  margin: 1.6rem 0 0.65rem;
}
.tier,
.feature {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.tier-feature {
  border-top: 0.25rem solid var(--accent);
  padding-top: calc(1.35rem - 0.25rem + 1px);
}
.price {
  margin: 0.8rem 0 0;
  font: 900 2.4rem/1 var(--display);
  letter-spacing: -0.055em;
}
.price span {
  color: var(--muted);
  font:
    600 0.85rem/1.3 system-ui,
    sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.partner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.partner {
  padding: clamp(1.25rem, 3vw, 2.35rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.partner h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
}

.waitlist {
  --accent: #25130a;
  background: var(--heat);
  color: #211309;
}
.waitlist-inner {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.waitlist .section-intro > p:not(.eyebrow) {
  color: #2e190f;
}

.waitlist-form {
  min-width: 0;
}
.waitlist-form fieldset {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
}
.form-fields {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.form-fields label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 800;
}
.form-fields input,
.form-fields select {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid #6a2d16;
  border-radius: 0;
  color: #221711;
  background: #fffbf5;
  color-scheme: light;
}
.waitlist-form .button {
  background: #1a1511;
  color: #fff9ef;
}
.waitlist-form .button:hover {
  background: #392519;
}
.waitlist-form > p,
.waitlist-form noscript p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}
.form-status {
  font-weight: 800;
}
.form-status:empty {
  margin: 0;
}

.faq {
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}
.faq summary {
  padding: 0.75rem 0.25rem;
  font-weight: 800;
  cursor: pointer;
}
.faq summary::marker {
  color: var(--accent);
}
.faq details p {
  margin: 0 0 0.85rem;
  padding-inline: 1.1rem 0.4rem;
  color: var(--muted);
}

.site-footer {
  border-top: 0.25rem solid var(--heat);
}
.footer-inner {
  padding-block: 2rem;
  flex-wrap: wrap;
}
.footer-inner p,
.footer-inner small {
  margin-top: 0.55rem;
  color: #c3bcb0;
  font-size: 0.85rem;
}

.page-hero {
  background-image:
    linear-gradient(100deg, #151513 5%, #151513c9 55%, #1515136b),
    var(--hero-image, linear-gradient(130deg, #181513, #6f331d));
  background-size: cover;
  background-position: center;
  border-bottom: 0.25rem solid var(--heat);
}
.page-hero .frame {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 7rem);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature h3 {
  margin-bottom: 0.55rem;
}
.subpage-cta .split {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.subpage-cta .button {
  justify-self: start;
  background: #1a1511;
  color: #fff9ef;
}
.subpage-cta .button:hover {
  background: #392519;
}
.subpage-cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

@media (max-width: 54rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    padding-block: 0.7rem 0.4rem;
  }
  .main-nav {
    order: 1;
    width: 100%;
    border-top: 1px solid #39352e;
  }
  .hero {
    background-position: 61% center;
  }
  .track-band-inner span + span::before {
    margin-right: 0.65rem;
  }
  .track-band-inner {
    column-gap: 0.65rem;
  }
}

@media (max-width: 42rem) {
  .frame {
    width: calc(100% - 2rem);
  }
  .split,
  .steps,
  .tier-grid,
  .partner-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    background: #141310;
  }
  .hero::before {
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: clamp(15rem, 55vw, 22rem);
    background:
      linear-gradient(180deg, #141310, #1413102b 36%, transparent 65%),
      var(--hero-image) 78% center / cover;
    content: '';
  }
  .hero-inner {
    padding-block: 3.5rem clamp(12rem, 42vw, 19rem);
  }
  .hero h1 {
    font-size: clamp(3.1rem, 13vw, 5.5rem);
  }
  .garage-visual {
    min-height: 14rem;
    aspect-ratio: 1.7;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 23rem) {
  .header-inner {
    column-gap: 0.45rem;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-actions .button {
    padding-inline: 0.45rem;
    font-size: 0.75rem;
  }
  .main-nav {
    column-gap: 0.9rem;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .form-fields {
    grid-template-columns: 1fr;
  }
}
