/* ============================================================================
   CNC Ventures Ltd — Locked Design System Tokens (Gate B)
   100% Self-Hosted Fonts (assets/fonts/) · WCAG 2.1 AA Verified · £0 Spend
   Zero AI gradients · Zero glassmorphism · Sharp architectural geometry
   ============================================================================ */

@font-face {
  font-family: 'Erode';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/erode-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Zodiak';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/zodiak-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/switzer-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/switzer-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('./assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('./assets/fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113;
}

:root {
  /* 1. Color Surfaces & Borders (Warm Paper Depth + Matte Black) */
  --bg-canvas: #FAF8F3;
  --bg-surface: #F2EFE9;
  --bg-surface-elevated: #FFFFFF;
  --bg-matte: #0B0B0C;
  --bg-matte-elevated: #161618;
  --border-hairline: rgba(20, 20, 20, 0.12);
  --border-grid: rgba(20, 20, 20, 0.055);
  --border-strong: #141414;
  --border-dark: rgba(250, 248, 243, 0.15);

  /* 2. Ink & Accent (WCAG 2.1 AA >= 4.5:1) */
  --text-primary: #141414;
  --text-secondary: #524F49;
  --text-inverse: #FAF8F3;
  --text-inverse-muted: #A8A59E;
  --accent-primary: #C43B1F;
  --accent-primary-hover: #A62F17;
  --accent-on-dark: #E85D3F;
  --accent-botanical: #01642E;

  /* 3. Semantic States */
  --state-success: #01642E;
  --state-error: #B3261E;
  --state-warning: #9A5B00;
  --focus-ring: #C43B1F;

  /* 4. Typography Families & Fluid Scale */
  --font-display: 'Erode', Georgia, serif;
  --font-italic: 'Zodiak', Georgia, serif;
  --font-body: 'Switzer', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.02rem, 0.94rem + 0.35vw, 1.1875rem);
  --text-xl: clamp(1.2rem, 1.05rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.65rem, 1.15rem + 2.2vw, 2.75rem);
  --text-3xl: clamp(2.1rem, 1.3rem + 3.4vw, 4.1rem);
  --leading-tight: 1.06;
  --leading-normal: 1.6;

  /* 5. Spacing Scale (Fluid 4px / 8px rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: clamp(18px, 1.8vw + 10px, 24px);
  --space-6: clamp(24px, 2.5vw + 12px, 34px);
  --space-7: clamp(32px, 4vw + 14px, 52px);
  --space-8: clamp(44px, 5.5vw + 18px, 88px);

  /* 6. Layout, Radii & Layers */
  --container-max: 1240px;
  --gutter: clamp(16px, 3.5vw, 52px);
  --rail-w: clamp(72px, 6.5vw, 88px);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-control: 2px;
  --dock-h: 82px;
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 60;
  --z-drawer: 80;
  --z-modal: 100;

  /* 7. Motion */
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);

  /* 8. Avatar Orb Engine RGB Token */
  --orb-neutral-rgb: 0, 0, 0;
}