:root {
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --color-ink: #151411;
  --color-asphalt: #22211e;
  --color-paper: #f3f6fa;
  --color-paper-deep: #e4ebf3;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-muted: #526170;
  --color-border: #b8c6d4;
  --color-border-light: #dce4ec;
  --color-racing-red: #a52b1f;
  --color-racing-red-dark: #741b13;
  --color-racing-blue: #173b63;
  --color-white: #ffffff;
  --color-success: #28613c;
  --color-error: #8d241b;
  --color-danger: #8d241b;
  --color-danger-border: #b54a40;
  --color-danger-bg: #fff2ee;
  --color-focus: #2274a5;
  --color-warning-bg: #fff6df;
  --color-warning-border: #d1a437;
  --color-warning-text: #6f4c00;
  --color-success-bg: #e5f2e9;
  --color-success-border: #a8ccb2;
  --color-info: #225d83;
  --color-info-bg: #e8f0fa;
  --color-pending: #805b00;
  --color-pending-bg: #fff1cc;
  --color-shipped: #146575;
  --color-shipped-bg: #d6eff5;
  --color-cancelled: #913441;
  --color-cancelled-bg: #f8d5d8;
  --color-bg: var(--color-paper);
  --color-bg-alt: var(--color-paper-deep);
  --color-contrast: var(--color-white);
  --color-accent: var(--color-ink);
  --color-accent-hover: var(--color-racing-red);
  --color-primary: var(--color-racing-red);
  --color-primary-light: #f4e6de;
  --color-text-muted: var(--color-muted);
  --color-overlay: rgb(21 20 17 / 78%);
  --shadow-text: none;
  --shadow-hero: 0 2px 18px rgb(0 0 0 / 45%);
  --shadow-card: 0 12px 32px rgb(36 33 29 / 12%);
  --shadow-card-hover: 0 20px 48px rgb(36 33 29 / 20%);
  --shadow-brand: 0.35rem 0.35rem 0 rgb(23 59 99 / 12%);
  --shadow-brand-subtle: 0.25rem 0.25rem 0 rgb(23 59 99 / 10%);
  --shadow-brand-hover: 0.35rem 0.35rem 0 rgb(165 43 31 / 24%);
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(2.25rem, 5vw, 4.75rem);
  --page-max: 76rem;
  --content-max: 52rem;
  --motion-fast: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgb(23 59 99 / 8%), transparent 28rem),
    var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.site-content {
  flex: 1 0 auto;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.98;
  text-wrap: wrap;
}

h1 {
  font-size: var(--text-2xl);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: var(--text-xl);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--color-racing-blue);
  color: var(--color-white);
}

.flash {
  margin: 0;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid transparent;
  font-weight: 700;
  text-align: center;
}

.flash--notice {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success);
}

.flash--alert {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-error);
}

.empty-state {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-style: italic;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-racing-red);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: var(--space-6);
}

.section-heading h2,
.section-heading p {
  margin-bottom: var(--space-2);
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: var(--text-lg);
}

@media (max-width: 640px) {
  :root {
    --space-8: 3.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
