:root {
  --ink: #101112;
  --paper: #f4f2ed;
  --paper-deep: #e9e5dc;
  --white: #fffdf8;
  --red: #d5242b;
  --red-dark: #991b22;
  --steel: #87909a;
  --line: rgba(16, 17, 18, .16);
  --muted: #596066;
  --measure: min(90vw, 1160px);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
}

html { scroll-behavior: smooth; }
html[data-theme="dark"] { --ink: #f5f2e9; --paper: #111315; --paper-deep: #1b1e21; --white: #191c1f; --line: rgba(245,242,233,.18); --muted: #b8bec2; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(16,17,18,.97); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.header-inner { width: var(--measure); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 2.8rem; height: 2.8rem; }
.brand-wordmark { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.04em; }
.brand-submark { display: block; color: #aeb5bb; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.site-nav a { color: #fff; text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #ff7377; }
.header-controls { display: flex; align-items: center; gap: .55rem; margin-left: .25rem; }
.lang-switch, [data-coppera5], .bloom-a4ca { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; min-height: 2.4rem; padding: .45rem .65rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; }
.lang-switch { text-decoration: none; }
.bloom-a4ca { display: none; }

.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--red); font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 2rem; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.04; letter-spacing: -.04em; }
h1 { font-size: clamp(3.1rem, 8vw, 7.8rem); }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
p { margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; }
.measure { width: var(--measure); margin-inline: auto; }
.section { padding: 7rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.6rem; }
.section-head > div { max-width: 38rem; }
.section-head p { max-width: 31rem; color: var(--muted); }

.hero { min-height: min(760px, calc(100vh - 78px)); position: relative; display: grid; align-items: end; color: #fff; background: #17191b; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .64; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.94) 0%, rgba(8,9,10,.54) 48%, rgba(8,9,10,.1) 100%), linear-gradient(0deg, rgba(8,9,10,.82), transparent 60%); }
.hero-content { position: relative; z-index: 1; width: var(--measure); padding: 7rem 0 6rem; }
.hero h1 { max-width: 8.5ch; margin: 1.1rem 0 1.4rem; }
.hero h1 em { color: #ff6268; font-style: normal; }
.hero-copy { max-width: 30rem; color: #e4e5e5; font-size: 1.15rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .72rem 1.15rem; border: 1px solid var(--red); background: var(--red); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.secondary { border-color: rgba(255,255,255,.55); background: transparent; }
.button.secondary:hover { background: #fff; color: var(--ink); }
.button.light { background: var(--white); color: var(--ink); border-color: var(--white); }

.ticker { background: var(--red); color: #fff; overflow: hidden; padding: .85rem 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker-group { display: flex; gap: 2.5rem; padding-right: 2.5rem; white-space: nowrap; }
.ticker span { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

.calendar-strip { background: var(--ink); color: #fff; }
.calendar-strip .section-head p, .dark-band p { color: #bbc0c4; }
.race-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.2); }
.race-card { min-height: 270px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); }
.race-date { display: flex; align-items: start; gap: .7rem; }
.race-day { font-family: var(--font-display); font-size: 3.3rem; line-height: .85; }
.race-month { color: #ff676c; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.race-card h3 { max-width: 10ch; font-size: 2rem; }
.race-card small { color: #bbc0c4; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; }
.race-card .arrow { align-self: end; color: #ff676c; font-size: 1.3rem; }

.split-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: 5rem; align-items: center; }
.split-copy { max-width: 34rem; }
.split-copy h2 { margin: 1rem 0 1.4rem; }
.image-frame { position: relative; min-height: 470px; overflow: hidden; background: var(--paper-deep); }
.image-frame img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.image-frame::after { content: ''; position: absolute; inset: 1rem; border: 1px solid rgba(255,255,255,.5); pointer-events: none; }
.stamp { position: absolute; left: -1.2rem; bottom: 2rem; z-index: 1; max-width: 13rem; padding: 1rem; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: .68rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.6rem; align-items: start; }
.story-grid[data-solace15] { min-height: 8rem; }
.basin-5a83 { border-top: 3px solid var(--ink); padding-top: .8rem; }
.atlas-470b { display: block; position: relative; aspect-ratio: 1.35 / 1; overflow: hidden; background: var(--paper-deep); margin-bottom: 1rem; }
.atlas-470b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maple-16d7, .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; color: var(--red); font-family: var(--font-mono); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.basin-5a83 h3 { margin: .65rem 0 .5rem; font-size: 1.55rem; }
.basin-5a83 p { color: var(--muted); }
.slate-53df { padding: 1.5rem; border: 1px dashed var(--line); color: var(--muted); }

.dark-band { background: #1d2023; color: #fff; }
.vehicle-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.vehicle-card { min-height: 280px; padding: 1.8rem; display: flex; flex-direction: column; justify-content: end; background: #1d2023; }
.vehicle-card strong { color: #ff676c; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; }
.vehicle-card h3 { margin: .75rem 0 .55rem; }
.vehicle-card p { color: #bbc0c4; max-width: 22rem; }

.cta-band { padding: 5rem 0; background: var(--red); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta-band h2 { max-width: 16ch; }

.page-hero { padding: 6rem 0 4.5rem; background: var(--ink); color: #fff; }
.page-hero h1 { max-width: 10ch; margin-top: 1rem; }
.page-hero p { max-width: 37rem; margin-top: 1.3rem; color: #c5c9cc; font-size: 1.2rem; }
.page-wrap { padding: 5rem 0 7rem; }
.onyx-b4f6 { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 3rem; align-items: start; }
.onyx-b4f6:has([data-timber36][hidden]), .onyx-b4f6:has([data-timber36]:empty) { grid-template-columns: minmax(0, 1fr); }
[data-timber36][hidden] { display: none; }
.solace-561d { position: sticky; top: 6rem; border-top: 3px solid var(--red); padding-top: .8rem; }
.solace-561d h2 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.solace-561d ol { padding: 0; margin: 1rem 0 0; list-style: none; }
.solace-561d li + li { margin-top: .65rem; }
.solace-561d a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.solace-561d a:hover { color: var(--red); }

.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.info-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--white); }
.info-card .number { color: var(--red); font-family: var(--font-mono); font-size: .7rem; }
.info-card h3 { margin: .8rem 0 .6rem; }
.info-card p { color: var(--muted); }
.schedule { border-top: 2px solid var(--ink); }
.schedule-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.schedule-row time { color: var(--red); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.schedule-row h3 { font-size: 1.5rem; }
.schedule-row span { color: var(--muted); font-size: .9rem; text-align: right; }
.photo-band { min-height: 360px; position: relative; overflow: hidden; color: #fff; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,14,.88), rgba(12,13,14,.18)); }
.photo-band-content { position: relative; z-index: 1; width: var(--measure); min-height: 360px; margin: auto; display: flex; align-items: center; }
.photo-band-content h2 { max-width: 12ch; }

.archive-form { display: flex; gap: .7rem; margin-bottom: 2rem; }
.archive-form input { min-height: 3rem; flex: 1; padding: .7rem 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.atlas-8ed3 { display: grid; gap: 1rem; }
.atlas-8ed3 .basin-5a83 { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.atlas-8ed3 .atlas-470b { margin: 0; }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-list a { padding: .45rem .7rem; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: .68rem; text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.prose { max-width: 47rem; }
.prose p, .prose li { color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.prose p { margin-bottom: 1.45rem; }
.prose h2, .prose h3 { margin: 2.5rem 0 1rem; }
.prose a { color: var(--red-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pearl-5589 { max-width: 53rem; margin-bottom: 2.5rem; }
.pearl-5589 h1 { margin: .8rem 0 1rem; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.cipher-493b { color: var(--muted); font-size: 1.35rem; }
.plume-2557 { width: 100%; max-height: 600px; object-fit: cover; margin: 2rem 0 3rem; }
.byline { display: flex; align-items: center; gap: .9rem; max-width: 47rem; padding: 1rem 0; margin-bottom: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; color: var(--muted); }
.byline [data-willow74] { display: block; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.contact-details { border-top: 3px solid var(--red); padding-top: 1rem; }
.contact-details dt { margin-top: 1rem; color: var(--red); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; }
.contact-details dd { margin: .2rem 0 0; font-size: 1.2rem; }
.not-found { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin: 1rem 0; }
.not-found p { max-width: 30rem; color: var(--muted); }

.site-footer { padding: 3rem 0; background: #101112; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1.5rem; }
.footer-grid p, .footer-grid a { color: #b8bec2; }
.footer-grid a { text-decoration: none; }
.footer-note { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.17); color: #87909a; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; }

@media (max-width: 900px) {
  .header-inner { min-height: 70px; gap: 1rem; }
  .site-nav { order: 3; width: 100%; display: none; margin: 0; }
  .site-nav.plume-008d { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 1rem 0 1.25rem; }
  .site-nav a { display: block; padding: .65rem 0; }
  .header-inner { flex-wrap: wrap; }
  .header-controls { margin-left: auto; }
  .bloom-a4ca { display: block; }
  .section { padding: 5rem 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 1rem; }
  .split-section, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .image-frame { min-height: 360px; }
  .image-frame img { min-height: 360px; }
  .race-grid, .vehicle-list { grid-template-columns: 1fr; }
  .onyx-b4f6 { grid-template-columns: 1fr; }
  .solace-561d { position: static; order: 2; }
  .cta-band-inner { display: block; }
  .cta-band .button-row { margin-top: 1.5rem; }
}
@media (max-width: 560px) {
  :root { --measure: min(88vw, 1160px); }
  .brand-wordmark { font-size: 1.2rem; }
  .brand-submark { display: none; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .lang-switch { display: none; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.8rem); }
  .hero-content { padding: 5rem 0 4rem; }
  .schedule-row { grid-template-columns: 5.5rem 1fr; gap: .8rem; }
  .schedule-row span { grid-column: 2; text-align: left; }
  .atlas-8ed3 .basin-5a83 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
