:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #e5eadf;
  background: #101311;
  font-synthesis: none;
  --lime: #d9fa86;
  --line: #30382d;
  --muted: #a0ad95;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--lime);
  text-underline-offset: 4px;
}
a:hover {
  color: #f1ffd4;
}
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 6px;
  border-radius: 3px;
}
.site-header,
main,
footer {
  max-width: 1440px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: #e5eadf;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.7px;
  text-decoration: none;
}
.brand span {
  color: var(--lime);
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
nav a[aria-current] {
  color: var(--lime);
}
.button {
  display: inline-block;
  padding: 14px 20px;
  background: var(--lime);
  border-radius: 8px;
  color: #15200c;
  font-weight: 650;
  text-decoration: none;
  font-size: 16px;
}
.button:hover {
  background: #e8ffb9;
  color: #15200c;
}
.button.small {
  padding: 11px 15px;
  font-size: 14px;
}
.hero {
  padding: 64px 0 42px;
  max-width: 940px;
}
.eyebrow {
  font:
    600 12px ui-monospace,
    monospace;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 17px;
}
h1 {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -2.3px;
  margin: 0 0 25px;
  font-weight: 750;
}
h1 span {
  color: var(--lime);
}
.lead {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
  color: #b2bdaa;
  max-width: 790px;
  margin: 0 0 26px;
}
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.track-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171d15;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.track-card:hover {
  border-color: #8da85f;
  color: inherit;
}
.card-map {
  height: 200px;
  background: #121710;
  padding: 16px;
}
.card-map .circuit-map {
  height: 100%;
  width: 100%;
}
.card-copy {
  padding: 24px;
}
.card-copy .eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
.card-copy h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.card-copy h2 span {
  float: right;
  color: var(--lime);
  margin-left: 9px;
}
.card-copy p:last-child {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.circuit-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.track-edge {
  stroke: #36442d;
  stroke-width: 17;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.track-line {
  stroke: #b8c8a2;
  stroke-width: 5;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.circuit-map line {
  stroke: #829969;
  stroke-width: 1.5;
}
.circuit-map circle {
  fill: #d9fa86;
  stroke: #141b0e;
  stroke-width: 2;
}
.circuit-map text {
  font:
    700 13px system-ui,
    sans-serif;
  fill: #18200e;
  text-anchor: middle;
  dominant-baseline: central;
}
.circuit-map a:hover circle,
.circuit-map a:focus circle {
  fill: #fff;
}
.map-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121710;
  margin: 0;
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.map-panel figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171d15;
  padding: 30px;
}
.prose {
  max-width: 940px;
  line-height: 1.8;
  font-size: 17px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin: 34px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  color: #bcc7b3;
  margin: 0 0 18px;
}
.prose li {
  margin-bottom: 9px;
}
.prose .muted {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.corner-panel {
  padding: 24px;
}
.corner-panel h2 {
  font-size: 23px;
  margin: 0 0 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  text-align: left;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
tbody th {
  color: var(--lime);
  width: 54px;
  font-family: ui-monospace, monospace;
}
tr:target {
  background: #354229;
  scroll-margin: 35px;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
.breadcrumbs {
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}
.breadcrumbs span:last-child {
  color: var(--muted);
}
.track-hero {
  padding-top: 32px;
  max-width: 1100px;
}
.stats {
  display: flex;
  gap: 42px;
  margin: 32px 0 0;
}
.stats dt {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stats dd {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.stats small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
footer .brand {
  font-size: 22px;
}
footer p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 500px;
}
footer nav {
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 24px;
  padding: 12px;
  background: #101311;
}
.skip:focus {
  top: 12px;
  z-index: 2;
}
@media (max-width: 1000px) {
  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  }
  .site-header,
  main,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  footer {
    flex-wrap: wrap;
  }
  .map-panel {
    padding: 10px;
  }
}
@media (max-width: 760px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .map-panel {
    position: static;
  }
  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 0;
  }
  nav {
    gap: 18px;
  }
  .hero {
    padding-top: 40px;
  }
  h1 {
    letter-spacing: -1.3px;
  }
  .track-hero {
    padding-top: 24px;
  }
  .prose {
    padding: 24px;
    font-size: 16px;
  }
  .stats {
    gap: 30px;
  }
  .stats dd {
    font-size: 25px;
  }
  .map-panel figcaption {
    padding: 0 10px 8px;
  }
}
@media (max-width: 480px) {
  .track-grid {
    grid-template-columns: 1fr;
  }
  .site-header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
    gap: 12px;
  }
  .button.small {
    font-size: 12px;
    padding: 10px;
  }
  .stats {
    gap: 22px;
  }
  .card-map {
    height: 180px;
  }
}
