@font-face {
  font-family: Rally;
  src: url(assets/RallyDisplay.ttf) format('truetype');
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #192521;
  --paper: #f7f5ec;
  --pine: #172520;
  --muted: #52615a;
  --orange: #fb874d;
  --line: #c7cbbf;
  font:
    100%/1.55 system-ui,
    -apple-system,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
h1,
h2,
h3,
.wordmark,
.button,
.display {
  font-family: Rally, Impact, sans-serif;
  font-weight: normal;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h2 {
  font-size: clamp(2.65rem, 6vw, 4.6rem);
  line-height: 1;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #d35b24;
  outline-offset: 4px;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding-inline: clamp(20px, 5vw, 62px);
}
.skip {
  position: absolute;
  left: 10px;
  top: -10rem;
  background: white;
  color: black;
  padding: 10px;
  z-index: 3;
}
.skip:focus {
  top: 10px;
}
header,
footer {
  background: #14211d;
  color: #faf5e9;
}
.bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 1.7rem;
  letter-spacing: 0.025em;
}
.wordmark img {
  width: 45px;
  height: 32px;
  object-fit: contain;
}
.nav,
.footlinks {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 34px);
  flex-wrap: wrap;
}
.nav a,
.footlinks a {
  text-decoration: none;
}
.nav a:hover,
.footlinks a:hover {
  text-decoration: underline;
}
.nav {
  font-size: 0.94rem;
}
.nav a {
  padding: 10px 0;
}
.hero {
  position: relative;
  isolation: isolate;
  color: #fff8e9;
  background: #1a2923;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 62%;
  z-index: -2;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #10201bee 0%, #10201bac 36%, #10201b08 70%),
    linear-gradient(0deg, #15231c38, transparent 43%);
  z-index: -1;
}
.hero .wrap {
  min-height: clamp(460px, 46vw, 600px);
  display: flex;
  align-items: center;
  padding-block: 48px;
}
.hero h1 {
  font-size: clamp(5.2rem, 10.8vw, 9.65rem);
  letter-spacing: -0.035em;
  line-height: 0.84;
}
.hero h1 span {
  display: block;
  color: var(--orange);
}
.hero p {
  max-width: 34ch;
  margin: 22px 0;
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  text-wrap: pretty;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  background: var(--orange);
  color: #17221e;
  border: 0;
  border-radius: 5px;
  font-size: 1.14rem;
  text-decoration: none;
  letter-spacing: 0.025em;
}
.button:hover {
  background: #ff9c6b;
  text-decoration: none;
}
.status {
  margin-left: 14px;
  font-size: 0.88rem;
  color: #f9ece0;
}
.course {
  padding-block: clamp(54px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
}
.section-note {
  font:
    1rem Rally,
    sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #86522f;
  margin-bottom: 12px;
}
.course p:not(.section-note) {
  margin-top: 14px;
  max-width: 40ch;
}
.gates {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.gate {
  position: relative;
  font: inherit;
  flex: 1;
  padding: 12px 8px;
  border: 2px solid #a2babb;
  border-radius: 7px;
  background: #1d302a;
  color: #fff4df;
  cursor: pointer;
}
.gate:first-child {
  border-color: #c8914c;
}
.gate:hover,
.gate[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--ink);
}
.gate b {
  display: block;
  font:
    2.65rem/1 Rally,
    sans-serif;
}
.gate small {
  font-size: 0.9rem;
}
.answer {
  min-height: 3.2em;
  color: #354e40;
  font-weight: 600;
}
.course-visual {
  background: #20312a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 356px;
  position: relative;
  padding: 18px 0;
}
.course-visual:before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, #20352bbf, #1c2d27e8),
    url(assets/rally-pass.jpg) center 50% / cover;
}
.course-visual img {
  position: relative;
  width: clamp(136px, 28vw, 195px);
  height: auto;
  display: block;
  border: 1px solid #7a8373;
  box-shadow: 0 8px 20px #0004;
  border-radius: 9px;
}
.collection {
  background: #e6e9de;
  padding-block: clamp(50px, 7vw, 88px);
}
.collection .intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.collection .intro p {
  max-width: 38ch;
  color: var(--muted);
}
.cars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.car {
  margin: 0;
  background: #23332d;
  border-radius: 7px;
  overflow: hidden;
  color: var(--paper);
}
.car img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  display: block;
}
.car figcaption {
  padding: 12px 16px 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: space-between;
}
.car strong {
  font:
    clamp(1.2rem, 2.5vw, 1.8rem) Rally,
    sans-serif;
}
.car small {
  color: #dac6a4;
}
.footer {
  padding-block: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footlinks {
  font-size: 0.9rem;
  gap: 16px;
}
.legal {
  max-width: 830px;
  padding-block: clamp(40px, 6vw, 76px);
}
.legal h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 12px;
}
.legal h2 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  margin: 30px 0 10px;
}
.legal p,
.legal li {
  max-width: 68ch;
}
.legal p + p {
  margin-top: 9px;
}
.legal ol,
.legal ul {
  padding-left: 1.3em;
}
.legal li {
  margin-block: 0.5em;
}
.legal a {
  color: #275b46;
}
.meta {
  color: var(--muted);
  margin-bottom: 24px;
}
.legal .button {
  color: var(--ink);
  margin: 12px 0;
}
.email {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .bar {
    min-height: 63px;
  }
  .wordmark {
    font-size: 1.34rem;
    gap: 6px;
  }
  .wordmark img {
    width: 34px;
    height: 25px;
  }
  .nav {
    gap: 12px;
    font-size: 0.86rem;
  }
  .hero .wrap {
    min-height: 505px;
    align-items: flex-start;
    padding-top: 34px;
  }
  .hero > img {
    object-position: 66% 70%;
  }
  .hero:before {
    background: linear-gradient(168deg, #10201bd9 0%, #10201b80 44%, transparent 75%);
  }
  .hero p {
    max-width: 28ch;
    margin: 15px 0;
  }
  .hero h1 {
    font-size: 5.1rem;
  }
  .hero .button {
    min-height: 44px;
  }
  .status {
    display: block;
    margin: 8px 0;
    color: white;
  }
  .course {
    grid-template-columns: 1fr;
  }
  .course-visual {
    min-height: 0;
    padding: 16px;
  }
  .course-visual img {
    width: 145px;
  }
  .collection .intro {
    display: block;
  }
  .collection .intro p {
    margin-top: 14px;
  }
  .cars {
    gap: 7px;
  }
  .car figcaption {
    padding: 9px;
    display: block;
  }
  .car small {
    display: block;
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .footlinks {
    gap: 12px 17px;
  }
}
@media (max-width: 390px) {
  .nav a:nth-child(2) {
    display: none;
  }
  .cars {
    grid-template-columns: 1fr;
  }
  .car {
    display: grid;
    grid-template-columns: 45% 1fr;
    align-items: center;
  }
  .hero .wrap {
    min-height: 480px;
  }
  .hero h1 {
    font-size: 4.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
