/* Site developed and built by sitethreesixty.com */

/* ============================================================
   tokens.css — Fine Line Auto brand tokens + @font-face
   The ONLY file that defines CSS custom properties.
   ============================================================ */

/* --- @font-face declarations (MUST be first) --- */

@font-face {
  font-family: 'Barlow SC';
  src: url('../fonts/barlow-semi-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow SC Fallback';
  src: local('Arial Narrow'), local('Arial');
  size-adjust: 93%;
  ascent-override: 105%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* --- Custom properties --- */

:root {

  /* ---- Brand palette ---- */
  --brand-primary: #C41E2A;
  --brand-secondary: #A01822;
  --brand-accent: #C41E2A;
  --brand-highlight: #EF5350;

  /* ---- Backgrounds ---- */
  --bg-dark: #1D1D1F;
  --bg-light: #f8f1f1;
  --bg-accent: #2B2B2D;
  --bg-muted: #E8E4E4;

  /* ---- Text colours ---- */
  --text-on-dark: #f8f1f1;
  --text-on-light: #1D1D1F;
  --text-muted-dark: #a0a0a8;
  --text-muted-light: #505058;

  /* ---- Locked neutrals ---- */
  --black: #1D1D1F;
  --black-soft: #2c2c2e;
  --white: #f8f1f1;
  --white-off: #f0eded;
  --grey-darkest: #3a3a3e;
  --grey-dark: #5a5a62;
  --grey-mid: #8a8a94;
  --grey-light: #c4c4cc;
  --grey-lightest: #e4e4eb;

  /* ---- Font families ---- */
  --font-heading: 'Barlow SC', 'Barlow SC Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- Font sizes (clamp scale) ---- */
  --font-display: clamp(3rem, 6vw, 6rem);
  --font-h1: clamp(2rem, 5vw, 4.5rem);
  --font-h2: clamp(1.5rem, 3.5vw, 3rem);
  --font-h3: clamp(1.25rem, 2.5vw, 2rem);
  --font-h4: clamp(1.1rem, 2vw, 1.5rem);
  --font-body-size: clamp(1rem, 1.2vw, 1.25rem);
  --font-small: clamp(0.85rem, 1vw, 0.95rem);
  --font-caption: clamp(0.75rem, 0.9vw, 0.85rem);

  /* ---- Font weights ---- */
  --weight-regular: 400;
  --weight-bold: 700;

  /* ---- Line heights ---- */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-loose: 1.8;

  /* ---- Letter spacing ---- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-caps: 0.1em;

  /* ---- Spacing scale ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 128px;

  /* ---- Border radius ---- */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ---- Border widths ---- */
  --border-thin: 1px;
  --border-medium: 2px;
  --border-thick: 4px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(29, 29, 31, 0.08);
  --shadow-md: 0 4px 12px rgba(29, 29, 31, 0.1);
  --shadow-lg: 0 8px 30px rgba(29, 29, 31, 0.12);
  --shadow-glow: 0 0 20px rgba(196, 30, 42, 0.25);

  /* ---- Transitions ---- */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --speed-fast: 150ms;
  --speed-normal: 300ms;
  --speed-slow: 500ms;

  /* ---- Z-index scale ---- */
  --z-base: 1;
  --z-above: 10;
  --z-modal: 100;
  --z-header: 500;
  --z-overlay: 1000;

  /* ---- Opacity ---- */
  --opacity-subtle: 0.1;
  --opacity-light: 0.3;
  --opacity-half: 0.5;
  --opacity-heavy: 0.8;

  /* ---- Grid config ---- */
  --grid-columns: 12;
  --container-pad: 24px;
  --zone-pad: 64px;
}

/* https://www.sitethreesixty.com */
