/* ==========================================================================
   GAMCS design tokens — "chrome, gear and amber"
   Colors sampled from the club badge (assets/images/brand/logo-1024.webp; original in _private/originals):
   - amber   median of badge center ........ #9A5D09 (used as --c-amber-2)
             highlight band ................. #B78D41 → lifted to #D4922C for AA text on dark
   - red     car body median ................ #C80008 → --c-red #D11A1F (white text 5.1:1)
             car shadow ..................... #8E0202 → --c-red-2
   - chrome  wrench/gear highlights ......... #F2F4F6 / #BFC4CA / #6E747C
   Fonts: Archivo (wdth 100–125, wght 600–900), Inter (wght 400–800), JetBrains Mono
   (wght 400–700) — one variable woff2 per family, subset at build time to Latin +
   Serbian Latin (č ć đ š ž) + typographic punctuation („ “ – — ′ ″ …).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  /* surfaces */
  --c-bg: #0A0A0C;
  --c-bg-2: #121317;
  --c-bg-3: #1A1C21;
  --c-bg-4: #23262C;
  --c-line: rgba(255, 255, 255, .08);
  --c-line-2: rgba(255, 255, 255, .16);

  /* chrome */
  --c-chrome-1: #F2F4F6;
  --c-chrome-2: #BFC4CA;
  --c-chrome-3: #6E747C;

  /* brand */
  --c-amber: #D4922C;
  --c-amber-2: #9A5D09;
  --c-amber-glow: rgba(212, 146, 44, .22);
  --c-red: #D11A1F;
  --c-red-2: #8E0202;

  /* text */
  --c-text: #ECEEF0;
  --c-muted: #9097A0;
  --c-focus: #F0B04A;

  --g-chrome: linear-gradient(180deg, #FFFFFF 0%, #F2F4F6 28%, #BFC4CA 52%, #6E747C 66%, #D9DDE1 84%, #F2F4F6 100%);
  --g-chrome-line: linear-gradient(90deg, #6E747C, #F2F4F6 30%, #BFC4CA 60%, #6E747C);
  --g-amber: linear-gradient(135deg, #E9AE4C 0%, #D4922C 45%, #9A5D09 100%);

  /* type */
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-2xs: .6875rem;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h4: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  --fs-h2: clamp(2.125rem, 1.35rem + 3.4vw, 4.25rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 5.6vw, 6.75rem);
  --fs-hero: clamp(2.625rem, .9rem + 7.6vw, 8.75rem);

  /* layout */
  --maxw: 1440px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --sec-y: clamp(4.5rem, 3rem + 7vw, 10rem);
  --nav-h: 76px;
  --tabbar-h: 64px;
  --fab: 52px;
  --fab-bottom: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .2s;
  --t-med: .45s;
  --t-slow: .9s;

  color-scheme: dark;
}

@media (max-width: 899px) {
  :root {
    --nav-h: 60px;
    --fab: 48px;
    --fab-bottom: calc(var(--tabbar-h) + 12px + var(--safe-b));
  }
}
