@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/barlow-condensed-800i.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d0e11;
  --band: #131519;
  --surface: #1a1d22;
  --line: #383d46;
  --light: #f1efe9;
  --muted: #b6bac2;
  --red: #f63d40;
  --accent: #ff7474;
  --paper: #eeeae1;
  --ink: #17181c;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --shell: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--light); font: 400 1rem/1.55 Inter, Arial, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, figure, h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
.shell { width: min(calc(100% - 112px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: .7rem; padding: .75rem 1rem; color: var(--background); background: var(--red); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .66rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.35;
}
.eyebrow::before { content: ""; width: .82rem; height: .2rem; flex: none; background: currentColor; transform: skew(-35deg); }

.site-header { position: relative; z-index: 2; background: var(--background); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.brand img { width: 176px; height: auto; }
#main-navigation, .footer-inner nav { display: flex; align-items: center; gap: clamp(.8rem, 3.2vw, 3rem); }
#main-navigation > a:not(.button), .footer-inner nav a { color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; }
#main-navigation > a:not(.button):hover, .footer-inner nav a:hover { color: var(--light); text-decoration: underline; text-underline-offset: .34em; }
.menu-toggle { display: none; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: .72rem 1.2rem;
  border: 1px solid var(--red);
  color: #141014;
  background: var(--red);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.24;
  text-decoration: none;
  transition: background-color .16s, color .16s, border-color .16s;
}
.button:hover { background: #ff7474; border-color: #ff7474; }
.button span, .text-link span { font-size: 1rem; }
.button-quiet { color: var(--light); border-color: #7d858f; background: #0d0e1180; }
.button-quiet:hover { color: var(--light); border-color: var(--accent); background: #22242a; }
.button-compact { min-height: 42px; padding: .55rem .95rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); font-weight: 700; font-size: .88rem; text-underline-offset: .27em; }
.text-link:hover { color: var(--light); }

.hero { isolation: isolate; overflow: hidden; position: relative; background: #090b10; }
.hero-image, .hero-image img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: center 58%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #080a0ced, #080a0cc9 25%, #080a0c46 52%, transparent 74%),
    linear-gradient(0deg, #080a0c9c, transparent 25%);
}
.hero-inner { min-height: clamp(610px, 47vw, 775px); position: relative; display: grid; align-items: center; padding-block: 4.1rem 5.4rem; }
.hero-copy { max-width: min(100%, 750px); }
.hero h1 {
  margin: .9rem 0 1.26rem -.013em;
  font: italic 800 clamp(5.3rem, 8.15vw, 9rem)/.83 var(--heading);
  letter-spacing: -.027em;
  text-transform: uppercase;
}
.hero h1 em { color: var(--light); }
.hero-intro { max-width: 39ch; font-size: clamp(.98rem, 1.32vw, 1.18rem); color: #dedde0; }
.hero .actions { margin-top: 1.58rem; }
.hero-caption { position: absolute; right: 0; bottom: 1.3rem; background: #090b0ed1; padding: .52rem .68rem; color: #f2f3f2; font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.hero-caption span { padding-inline: .28em; color: var(--accent); }
.hero-caption small { display: block; margin-top: .13rem; color: #b6bac2; font-size: .62rem; }

.race-strip { color: var(--ink); background: var(--paper); border-top: 3px solid var(--red); }
.race-strip-inner { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.race-strip-inner > div { display: flex; gap: clamp(.5rem, 2vw, 1.5rem); align-items: baseline; padding-block: .25rem; }
.race-strip strong { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.race-strip span { color: #4d5057; font-size: .88rem; }
.race-strip a, .race-strip a span { color: #ae222d; }
.race-strip a { flex: none; }
.race-strip a:hover { color: #71131d; }
.race-strip a:focus-visible { outline-color: #aa2630; }

.section { padding-block: clamp(3.25rem, 6.5vw, 6.5rem); scroll-margin-top: 1rem; }
.section-band { background: var(--band); }
.paper-zone { color-scheme: light; --accent: #aa2630; --light: #17181c; --muted: #4a4d55; --line: #b6afa5; --surface: #e5dfd4; background: var(--paper); color: var(--light); }
.paper-zone .text-link:hover { color: #651720; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem 2.25rem; align-items: flex-end; margin-bottom: clamp(1.45rem, 3vw, 2.45rem); }
.section-heading > p { max-width: 37ch; color: var(--muted); margin-bottom: .22rem; font-size: .94rem; }
h2, .internal-title {
  margin-top: .35rem;
  font: italic 800 clamp(3.6rem, 6vw, 6.35rem)/.88 var(--heading);
  letter-spacing: -.016em;
  text-transform: uppercase;
}
.garage-showcase h3 { font-style: italic; text-transform: uppercase; }

.driver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.driver-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(230px, 24vw, 330px);
  padding: clamp(1.35rem, 3vw, 2.5rem);
  background: #16181d;
  border-top: 4px solid var(--red);
  color: #f1efe9;
}
.driver-card::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(124deg, transparent 70%, #23262d 70% 76%, transparent 76%); }
.driver-monogram { position: absolute; z-index: -1; right: .14em; top: -.035em; color: transparent; -webkit-text-stroke: 1px #737781; opacity: .7; font: italic 800 clamp(10rem, 18vw, 17rem)/1 var(--heading); user-select: none; }
.driver-copy .eyebrow { color: #ff7474; }
.driver-copy h3 { margin-top: .5rem; font: italic 800 clamp(2.55rem, 4.4vw, 4.75rem)/.94 var(--heading); text-transform: uppercase; }

.race-toolbar { display: flex; justify-content: space-between; gap: .65rem; flex-wrap: wrap; align-items: center; margin-bottom: .95rem; }
.race-control { display: inline-flex; border: 1px solid var(--line); background: var(--background); padding: 4px; gap: 4px; }
.race-control button { min-height: 42px; padding: .48rem 1rem; border: 0; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 700; }
.race-control button:hover { color: var(--light); }
.race-control button[aria-pressed="true"] { color: #141014; background: var(--red); }
.feed-list { display: grid; gap: .7rem; }
.feed-card, .feed-empty { min-width: 0; padding: 1.12rem 1.25rem; overflow-wrap: anywhere; background: var(--surface); border-left: 2px solid var(--accent); }
.feed-empty { border: 1px solid var(--line); background: transparent; }
.feed-list:empty, .social-links:not(:has(> :not([hidden]))) { display: none; }
.feed-title, .feed-empty-title { color: var(--light); font-weight: 700; font-size: 1rem; }
.feed-meta, .feed-summary, .feed-empty-summary { color: var(--muted); font-size: .88rem; }
.feed-meta { margin-bottom: .28rem; }
.feed-summary, .feed-empty-summary, .feed-link { margin-top: .35rem; }
.feed-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .75rem; }

.paddock-grid { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); gap: clamp(1.1rem, 4vw, 3.5rem); align-items: start; }
.paddock-photo { border: 1px solid var(--line); }
.paddock-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.paddock-feeds { display: grid; gap: 1.25rem; }
.subhead { font: italic 800 2.35rem/.97 var(--heading); text-transform: uppercase; margin-bottom: .6rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }

.contact { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(1.35rem, 7.5vw, 7.5rem); }
.contact-links { display: grid; gap: 1.25rem; margin-top: 1.55rem; }
.contact-links section { border-top: 1px solid var(--line); padding-top: .85rem; }
.contact-links h3 { font-size: 1rem; }
.contact-links p, .form-note { color: var(--muted); font-size: .88rem; margin: .32rem 0 .45rem; }
.contact-links .feed-list { margin-top: .7rem; }
.inquiry { border: 1px solid var(--line); background: var(--surface); padding: clamp(1rem, 3vw, 1.8rem); scroll-margin-top: 1rem; }
.inquiry fieldset { min-width: 0; border: 0; margin: 1rem 0 0; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .75rem; margin-bottom: 1rem; }
.form-grid label:nth-last-child(-n + 2) { grid-column: 1 / -1; }
.inquiry label { display: block; color: var(--light); font-size: .82rem; font-weight: 600; }
.inquiry input, .inquiry select, .inquiry textarea { display: block; width: 100%; min-height: 43px; margin-top: .34rem; border: 1px solid #707883; border-radius: 0; background: var(--background); color: var(--light); padding: .55rem .66rem; font-size: .92rem; }
.inquiry textarea { resize: vertical; }
.form-status:empty { display: none; }
.form-status { font-size: .87rem; color: var(--accent); margin-block: .8rem; }
#inquiry-draft { margin-top: .75rem; }
#inquiry-draft .actions { margin-top: .75rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; padding-block: 1.65rem 1.35rem; }
.footer-inner nav { justify-self: end; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .55rem; }
.footer-note { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; border-top: 1px solid var(--line); padding-top: .85rem; }

.internal-lead { margin-block: 1.15rem 1.6rem; color: var(--muted); max-width: 54ch; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.brand-preview { border: 1px solid var(--line); background: var(--surface); }
.brand-swatch { display: grid; place-items: center; min-height: 185px; padding: 1.75rem; background: var(--background); }
.brand-swatch img { width: min(100%, 400px); height: auto; }
.brand-swatch-light { background: var(--paper); }
.brand-assets { padding: 1rem; border-top: 1px solid var(--line); }
.brand-assets h2 { margin: 0 0 .5rem; font: 700 1rem/1.4 Inter, Arial, sans-serif; letter-spacing: 0; text-transform: none; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero-inner { min-height: 595px; }
  .hero-image img { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, #080a0cf2, #080a0ccb 31%, #080a0c29 77%, transparent), linear-gradient(0deg, #080a0c9c, transparent 31%); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 0; }
  .brand img { width: 143px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .56rem; min-height: 42px; padding: .4rem .66rem; color: var(--light); background: transparent; border: 1px solid #6c727b; font-size: .82rem; font-weight: 700; }
  .menu-icon { width: 13px; height: 8px; border-block: 1px solid var(--accent); }
  #main-navigation { flex-basis: 100%; flex-wrap: wrap; gap: .3rem 1.2rem; padding: .45rem 0 .9rem; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + #main-navigation { display: none; }
  #main-navigation > a:not(.button) { display: inline-flex; align-items: center; min-height: 42px; }
  .hero-inner { min-height: 0; padding-top: clamp(245px, 57vw, 370px); padding-bottom: 4.25rem; }
  .hero-image { height: clamp(350px, 68vw, 475px); }
  .hero-image img { object-position: 90% 48%; }
  .hero::after { background: linear-gradient(0deg, #090b10 0% 39%, #090b10dc 47%, #090b1025 76%, #08090a13 100%); }
  .hero h1 { font-size: clamp(4.15rem, 11.9vw, 6.7rem); margin-block: .68rem 1rem; }
  .hero .actions { margin-top: 1.2rem; }
  .hero-caption { right: auto; left: 0; bottom: 1rem; padding: 0; background: none; font-size: .61rem; }
  .hero-caption small { display: inline; margin-left: .33rem; font-size: .54rem; }
  .race-strip-inner > div { display: grid; gap: .14rem; padding-block: .48rem; }
  .section-heading { display: grid; gap: .78rem; }
  .driver-card { min-height: 200px; }
  .paddock-grid, .contact, .brand-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-self: start; }
}
@media (max-width: 490px) {
  .driver-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .button { gap: .55rem; padding-inline: .72rem; min-height: 46px; }
}
@media (max-width: 350px) {
  .hero h1 { font-size: 3.55rem; }
  .hero-caption small { display: none; }
  .hero-caption { font-size: .57rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
