/* =====================================================================
   Autren Motors · tokens
   Brand: pure black, pure white and emerald #047857, nothing else
   (docs/brand/BRAND-DIRECTION.md, 29 Oct 2026). Text is always fully
   opaque black or white: hierarchy comes from size and weight, never grey.
   Spacing, motion and z-index follow the Flow Level house system (site surface).
   ===================================================================== */

/* Plus Jakarta Sans (SIL Open Font License), served from this site rather than Google Fonts: no visitor
   data goes to Google, and the text font arrives with the page. One variable file covers every weight. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Brand ---------- */
  --black: #000000;
  --white: #FFFFFF;
  --emerald: #047857;
  --emerald-hover: #03634A;       /* pressed/hover shade of emerald only */

  /* ---------- Roles ---------- */
  --text: var(--black);
  --on-dark: var(--white);
  --accent: var(--emerald);
  --on-accent: var(--white);

  /* Lines and quiet fills are black at low strength. They are never used for text. */
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.28);
  --line-on-dark: rgba(255, 255, 255, 0.22);
  --fill: rgba(0, 0, 0, 0.05);        /* chips, hover rows */
  --fill-hover: rgba(0, 0, 0, 0.08);
  --fill-on-dark: rgba(255, 255, 255, 0.10);
  --photo-well: #EDEDED;              /* behind a photo while it loads */
  --tint: #ECF5F1;                    /* emerald at 7% on white: soft section and panel backgrounds */
  --soft: #F4F4F4;                    /* black at 4.5% on white: the quiet partner to the tint (promo and menu cards) */

  /* ---------- Spacing (only these) ---------- */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* ---------- Type: Plus Jakarta Sans, four weights ---------- */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;

  --text-xs: 13px;  --lh-xs: 18px;    /* chips, captions */
  --text-sm: 15px;  --lh-sm: 22px;    /* card meta, nav links, controls */
  --text-md: 17px;  --lh-md: 28px;    /* body copy */
  --text-lg: 20px;  --lh-lg: 28px;    /* card title, lead */
  --text-price: 24px; --lh-price: 30px;
  --text-xl: 28px;  --lh-xl: 34px;    /* h3 */
  --text-2xl: clamp(32px, 4vw, 44px); --lh-2xl: 1.1;   /* h2 */
  --text-3xl: clamp(40px, 6vw, 64px); --lh-3xl: 1.04;  /* h1 */
  --text-display: clamp(56px, 8vw, 88px);              /* one big word on a promo */
  /* Wide car card: sized from the card's own width (cqi), so it scales with the card, not the window. */
  --text-feature-title: clamp(28px, 3cqi, 36px);
  --text-feature-price: clamp(32px, 3.6cqi, 44px);

  /* ---------- Radius ---------- */
  --r-chip: 8px;     /* spec chips, small badges */
  --r-input: 12px;   /* selects, inputs */
  --r-card: 16px;    /* car cards, tiles */
  --r-panel: 24px;   /* promos, search panel, menus */
  --r-pill: 999px;   /* every button, photo badges, toggles */

  /* ---------- Elevation ---------- */
  --shadow-hover: 0 12px 32px -8px rgba(0, 0, 0, 0.16);
  --shadow-menu: 0 2px 6px rgba(0, 0, 0, 0.06), 0 32px 64px -16px rgba(0, 0, 0, 0.28);
  --dim: rgba(0, 0, 0, 0.32);

  /* ---------- Motion ---------- */
  --dur-press: 100ms; --dur-fast: 140ms; --dur: 200ms; --dur-slow: 300ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---------- Layout ---------- */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 96px);
  --control-h: 48px;
  --control-h-sm: 40px;
  --tap: 44px;

  /* z-index: base 0 · sticky 10 · dropdown 20 · overlay 30 · sheet 40 · toast 50 */
  --z-sticky: 10; --z-dropdown: 20; --z-overlay: 30; --z-sheet: 40; --z-toast: 50;

  --focus-ring: 0 0 0 2px var(--white), 0 0 0 4px var(--emerald);

  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
