/* 
 * Docketry Design Tokens 
 * Core foundational variables. No hardcoded hex values in other files.
 */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --bg-canvas: #0B0D12;
  --bg-surface: #12151C;
  --bg-surface-2: #191D26;
  --bg-overlay: rgba(6, 7, 10, 0.72);

  /* Borders */
  --border-hairline: #262B36;
  --border-focus: #F2B705;

  /* Text / Ink */
  --ink-primary: #F4F1E9;
  --ink-secondary: #A8ADBB;
  --ink-tertiary: #6B7180;

  /* Brand */
  --brand-navy: #112F5D;
  --brand-gold: #F2B705;
  --brand-gold-hover: #D9A400;
  --brand-gold-glow: rgba(242, 183, 5, 0.18);

  /* Semantic */
  --success: #34D399;
  --error: #F87171;
  --warning: #FBBF24;
  --info: #60A5FA;

  /* Spacing System (8px based) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Motion & Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;

  /* Typography Scale (Fluid Clamps) */
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Step 0: Body/UI */
  --text-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Headings */
  --text-h1: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --text-h2: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);

  /* Layout */
  --max-width: 1240px;
  --page-pad: clamp(16px, 5vw, 64px);
}

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