/* Track Cars, by Car Scientist */
@font-face {
  font-family: "TC Sans";
  src: url("opensans-var.woff") format("woff");
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --asphalt: #111214;
  --asphalt-2: #1a1c1f;
  --asphalt-3: #24272b;
  --line: #33373c;
  --text: #ecebe7;
  --muted: #a3a6ab;
  --kerb: #e10600;
  --gold: #d4a63a;
  --white: #ffffff;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font-family: "TC Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0c55a; }

h1, h2, h3 {
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Kerb stripe */
.kerb {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--kerb) 0 34px, var(--white) 34px 68px);
}

/* Header */
.site-header { background: var(--asphalt); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand span { color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text); text-decoration: none; white-space: nowrap;
  font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 12px; border-radius: 6px; font-size: 1rem;
}
.nav a:hover { background: var(--asphalt-3); color: var(--white); }
.nav a[aria-current="page"] { color: var(--gold); }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px; padding-top: 12px; padding-bottom: 8px; }
  .brand span { display: none; }
  .nav { margin-left: -12px; width: calc(100% + 24px); }
}

/* Hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(1200px 400px at 80% -10%, rgba(212,166,58,0.12), transparent 60%),
  var(--asphalt); }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-stretch: 75%;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem;
  padding: 13px 22px; border-radius: 8px; background: var(--gold); color: var(--asphalt);
}
.btn:hover { background: #f0c55a; color: var(--asphalt); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Media / footage slot */
.media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--asphalt-2); border: 1px solid var(--line);
}
.media video, .media img, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.media.placeholder { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--asphalt-2) 0 18px, #1d2023 18px 36px); }
.media.placeholder strong { display: block; color: var(--text); font-stretch: 75%; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.04em; }

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--asphalt-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.card {
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .15s;
}
.block.alt .card { background: var(--asphalt); }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.card .num { font-stretch: 75%; font-weight: 800; color: var(--kerb); font-size: 1.1rem; letter-spacing: 0.06em; }
.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.card .more { margin-top: auto; padding-top: 10px; color: var(--gold); font-weight: 700; font-size: 0.92rem; }

.tag {
  display: inline-block; align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--asphalt-3); color: var(--muted);
}
.tag.driven { background: rgba(212,166,58,0.15); color: var(--gold); }
.tag.soon { background: var(--asphalt-3); color: var(--muted); }

/* Page header (inner pages) */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 700px; margin: 0; }

/* Prose (articles, legal pages) */
.prose { max-width: 720px; padding: 48px 0 72px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.note {
  border-left: 4px solid var(--gold); background: var(--asphalt-2); padding: 14px 18px; border-radius: 0 8px 8px 0;
  color: var(--muted); font-size: 0.96rem; margin: 1.4em 0;
}

/* Split about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.stat strong { display: block; font-stretch: 75%; font-size: 1.8rem; color: var(--white); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { background: #0b0c0d; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-legal { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 0.84rem; }
.foot-logo { width: 220px; margin-bottom: 14px; }

/* Hero track illustration */
.track-art { margin: 0; }
.track-art svg { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .track-art .car { display: none; } }
.grid.one { grid-template-columns: 1fr; }

/* Articles */
.article { max-width: 760px; padding: 36px 0 80px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.35em; }
.article h2 { font-size: 1.7rem; margin: 1.8em 0 0.5em; scroll-margin-top: 90px; }
.article h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
.article ul, .article ol { padding-left: 1.25em; }
.article li { margin-bottom: 0.45em; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.standfirst { font-size: 1.2rem; color: var(--text); }
.meta { color: var(--muted); font-size: 0.9rem; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.quick { background: var(--asphalt-2); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 24px; }
.quick h2 { margin: 0 0 10px; font-size: 1.3rem; }
.quick ul { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 10px; }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.timeline { border-left: 3px solid var(--kerb); margin: 1em 0 1.4em; padding-left: 20px; }
.timeline > div { margin-bottom: 16px; }
.timeline span { font-weight: 800; font-stretch: 75%; color: var(--gold); font-size: 1.05rem; }
.timeline p { margin: 2px 0 0; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border: 2px solid var(--gold); border-radius: 4px; }
.yours { border: 2px dashed var(--gold); background: rgba(212,166,58,0.08); color: var(--text); border-radius: 8px; padding: 14px 18px; margin: 1.4em 0; font-size: 0.98rem; }
.yours strong { color: var(--gold); }
.faq h3 { margin-top: 1.2em; }
.disclaimer { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2.4em; }

.seat { border-left: 4px solid var(--kerb); background: var(--asphalt-2); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.6em 0; }
.seat span { display: block; color: var(--gold); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; margin-bottom: 6px; }
.seat p { margin: 0; font-size: 1.05rem; font-style: italic; }
