@import url("https://fonts.googleapis.com/css2?family=Pliant:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "Speeday";
  src: url("./Speeday-Regular-FFP.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Teko Toro";
  src: url("./Teko-SemiBold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Teko Toro Bold";
  src: url("./Teko-Bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0e0e10;
  --surface: #171717;
  --surface-2: #202020;
  --line: #323232;
  --line-soft: #252525;
  --orange: #ff7305;
  --orange-dark: #c94f00;
  --text: #f4f0ea;
  --muted: #b8b2aa;
  --red: #b91c1c;
  /* Tune the Speeday hero title offset here. */
  --hero-title-offset-mobile: -4px;
  --hero-title-offset-desktop: -8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pliant", "Aptos", "Helvetica Neue", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::selection {
  background: var(--orange);
  color: #111;
}

/* Local fallback for the Tailwind utilities used in these static pages. */
.block { display: block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-0 { gap: 0; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-16 { height: 4rem; }
.h-\[72px\] { height: 72px; }
.min-h-\[72px\] { min-height: 72px; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-\[\#252525\] { border-color: #252525; }
.bg-\[\#0e0e10\] { background-color: #0e0e10; }
.bg-\[\#0e0e10\]\/95 { background-color: rgba(14, 14, 16, 0.95); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-\[4rem\] { font-size: 4rem; }
.leading-none { line-height: 1; }
.leading-\[0\.95\] { line-height: 0.95; }
.text-\[\#ff7305\] { color: #ff7305; }
.text-\[\#f4f0ea\] { color: #f4f0ea; }
.text-\[\#d7d0c7\] { color: #d7d0c7; }
.text-\[\#b8b2aa\] { color: #b8b2aa; }
.relative { position: relative; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-\[180px_1fr\] { grid-template-columns: 180px 1fr; }
  .sm\:items-center { align-items: center; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-6xl { font-size: 3.75rem; }
  .sm\:text-7xl { font-size: 4.5rem; }
  .sm\:text-\[6\.5rem\] { font-size: 6.5rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_auto\] { grid-template-columns: 1fr auto; }
  .md\:grid-cols-\[220px_1fr\] { grid-template-columns: 220px 1fr; }
  .md\:items-center { align-items: center; }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-between { justify-content: space-between; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[0\.85fr_1\.15fr\] { grid-template-columns: 0.85fr 1.15fr; }
  .lg\:grid-cols-\[0\.9fr_1\.1fr\] { grid-template-columns: 0.9fr 1.1fr; }
  .lg\:grid-cols-\[1fr_1fr\] { grid-template-columns: 1fr 1fr; }
  .lg\:items-center { align-items: center; }
  .lg\:items-start { align-items: flex-start; }
  .lg\:text-\[9rem\] { font-size: 9rem; }
}

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

.font-speeday {
  font-family: "Speeday", "Teko Toro", sans-serif;
  text-transform: uppercase;
}

.font-teko {
  font-family: "Teko Toro", "Pliant", sans-serif;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.095) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.095) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  position: relative;
}

.site-shell::before {
  background: linear-gradient(90deg, transparent, rgba(255, 115, 5, 0.13), transparent);
  content: "";
  height: 1px;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 72px;
  z-index: 5;
}

.nav-link {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-color: var(--orange);
  color: var(--text);
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #121212;
}

.button-primary:hover {
  background: #ff8b2e;
  border-color: #ff8b2e;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.24);
}

.button-secondary {
  background: #151515;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.orange-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero {
  min-height: calc(100vh - 72px);
  overflow: hidden;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(14, 14, 16, 0.52), rgba(14, 14, 16, 0.26) 43%, rgba(14, 14, 16, 0.02)),
    rgba(0, 0, 0, 0.035);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-lines {
  inset: 0;
  opacity: 0.43;
  pointer-events: none;
  position: absolute;
}

.hero-line {
  color: rgba(255, 255, 255, 0.25);
  font-family: "Speeday", "Teko Toro", sans-serif;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.86;
  position: absolute;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}

.hero-line:nth-child(1) { top: 2%; left: -20%; }
.hero-line:nth-child(2) { top: 19%; right: -28%; }
.hero-line:nth-child(3) { top: 36%; left: -35%; }
.hero-line:nth-child(4) { top: 53%; right: -34%; }
.hero-line:nth-child(5) { top: 70%; left: -24%; }
.hero-line:nth-child(6) { top: 86%; right: -42%; }

.hero-line .toro,
.wordmark-accent {
  color: var(--orange);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title span {
  display: block;
}

.hero-title {
  font-size: var(--hero-title-fit-size, 2.6rem);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.92),
    0 0 22px rgba(255, 255, 255, 0.24),
    0 0 42px rgba(255, 115, 5, 0.28),
    0 14px 42px rgba(0, 0, 0, 0.88);
  transform: translateX(var(--hero-title-offset-mobile));
}

.race-countdown {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(14, 14, 16, 0.7);
  background-size: 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin-top: 2.25rem;
  max-width: 740px;
  overflow: hidden;
}

.race-countdown-head {
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
}

.race-countdown-head span,
.race-countdown-head strong {
  font-family: "Teko Toro", "Pliant", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.race-countdown-head span {
  color: var(--text);
}

.race-countdown-head strong {
  color: var(--orange);
  font-weight: 600;
}

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

.race-countdown-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 0;
  padding: 0.85rem 0.95rem 0.95rem;
}

.race-countdown-cell:nth-child(1),
.race-countdown-cell:nth-child(2) {
  border-top: 0;
}

.race-countdown-cell:nth-child(2n) {
  border-right: 0;
}

.count-value {
  color: var(--text);
  display: block;
  font-family: "Teko Toro Bold", "Teko Toro", sans-serif;
  font-size: clamp(2.35rem, 9vw, 4.85rem);
  height: 0.94em;
  line-height: 0.94;
  overflow: hidden;
  position: relative;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16), 0 8px 28px rgba(0, 0, 0, 0.58);
}

.count-label {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.count-digit {
  display: block;
}

.count-value.is-changing .count-digit-old {
  animation: countOldUp 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.count-value.is-changing .count-digit-new {
  animation: countNewUp 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  inset: 0;
  position: absolute;
}

@keyframes countOldUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-88%);
  }
}

@keyframes countNewUp {
  from {
    opacity: 0;
    transform: translateY(88%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--hero-title-fit-size, 6.5rem);
  }

  .race-countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .race-countdown-cell,
  .race-countdown-cell:nth-child(1),
  .race-countdown-cell:nth-child(2) {
    border-top: 0;
  }

  .race-countdown-cell:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .race-countdown-cell:last-child {
    border-right: 0;
  }
}

@media (min-width: 768px) {
  .hero-title {
    transform: translateX(var(--hero-title-offset-desktop));
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--hero-title-fit-size, 9rem);
  }
}

.section {
  background: rgba(14, 14, 16, 0.86);
  border-top: 1px solid var(--line-soft);
  padding: 4.5rem 0;
  position: relative;
}

.section-tight {
  background: rgba(14, 14, 16, 0.86);
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0;
}

.container-tight {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 1.25rem;
  width: 100%;
}

.panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  position: relative;
}

.panel::before {
  background: var(--orange);
  content: "";
  height: 2px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 48px;
}

.split-rule {
  border-top: 1px solid var(--line);
}

.team-photo {
  aspect-ratio: 16 / 9;
  background: #141414;
  width: 100%;
}

.roster-card {
  min-height: 136px;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.sponsor-row {
  border-top: 1px solid var(--line);
}

.social-link {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.social-link:hover {
  color: #ff9a45;
}

.social-icon {
  color: var(--text);
  height: 1.15rem;
  width: 1.15rem;
}

.social-link span {
  color: var(--orange);
}

.page-wipe {
  background:
    linear-gradient(rgba(14, 14, 16, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 14, 16, 0.28) 1px, transparent 1px),
    var(--orange);
  background-size: 28px 28px;
  inset: 0;
  pointer-events: none;
  position: fixed;
  transform: translateY(100%);
  transition: transform 340ms cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1000;
}

.page-wipe::after {
  background: #0e0e10;
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(100%);
  transition: transform 340ms cubic-bezier(0.76, 0, 0.24, 1) 120ms;
}

body.page-leaving .page-wipe,
body.page-leaving .page-wipe::after {
  transform: translateY(0);
}

body.page-ready main,
body.page-ready footer {
  animation: pageIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 760px;
  }

  .hero-lines {
    opacity: 0.38;
  }

  .hero-line {
    font-size: clamp(4.5rem, 24vw, 8rem);
  }

  .section {
    padding: 3.25rem 0;
  }
}
