/* ============================================
   DaySpring ISO Standards & Certification Consult — Design Tokens
   Modern technical aesthetic: cool slate + cyan
   ============================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2vw, 3rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  --text-hero: clamp(3rem, 2rem + 4.5vw, 5.5rem);

  /* Spacing — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 140ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* LIGHT (default) — precision instrument: cool whites, graphite text, cyan accent */
:root,
[data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #f7f9fb;
  --color-surface-2: #f1f4f7;
  --color-surface-offset: #e7ecf1;
  --color-divider: #e2e8ef;
  --color-border: #d6dde5;
  --color-border-strong: #b6bfca;

  --color-text: #0c1620;
  --color-text-muted: #4a5868;
  --color-text-faint: #7d8a98;
  --color-text-inverse: #ffffff;

  --color-primary: #0e7490;       /* deep cyan-teal — calibrated */
  --color-primary-hover: #0a5d75;
  --color-primary-active: #074957;
  --color-primary-soft: #e0f2f6;

  --color-accent: #0ea5b7;        /* brighter cyan for highlights */
  --color-success: #0f7a3b;
  --color-warning: #b45309;
  --color-error: #b91c1c;

  --color-grid: rgba(12, 22, 32, 0.06);
  --color-glow: rgba(14, 165, 183, 0.18);

  --shadow-sm: 0 1px 2px rgba(12, 22, 32, 0.05);
  --shadow-md: 0 4px 16px rgba(12, 22, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 22, 32, 0.12);
}

/* DARK — engineering console: deep slate, cyan signals */
[data-theme='dark'] {
  --color-bg: #0a1117;
  --color-surface: #0f1820;
  --color-surface-2: #14202a;
  --color-surface-offset: #182734;
  --color-divider: #1d2c3a;
  --color-border: #243446;
  --color-border-strong: #354a60;

  --color-text: #e6edf3;
  --color-text-muted: #95a4b3;
  --color-text-faint: #5d6e7f;
  --color-text-inverse: #0a1117;

  --color-primary: #22d3ee;
  --color-primary-hover: #67e8f9;
  --color-primary-active: #06b6d4;
  --color-primary-soft: #0e2933;

  --color-accent: #22d3ee;
  --color-success: #4ade80;
  --color-warning: #f59e0b;
  --color-error: #f87171;

  --color-grid: rgba(230, 237, 243, 0.05);
  --color-glow: rgba(34, 211, 238, 0.22);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}
