/* ============================================================
   GELB LAW APC — Design Tokens
   Palette: Sapphire (primary) + Gold (accent) on warm ivory / deep navy
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f8f6f0;
  --color-surface: #fbfaf5;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f1ede3;
  --color-surface-offset-2: #e8e2d2;
  --color-surface-dynamic: #ddd6c2;
  --color-divider: #ddd6c2;
  --color-border: #cdc5ad;

  /* Text */
  --color-text: #0c1a35;
  --color-text-muted: #5a6378;
  --color-text-faint: #9aa0ad;
  --color-text-inverse: #f8f6f0;

  /* Primary — Sapphire */
  --color-primary: #0f2a5e;
  --color-primary-hover: #1a3d83;
  --color-primary-active: #081c44;
  --color-primary-highlight: #d3dcef;

  /* Accent — Gold */
  --color-gold: #b8892b;
  --color-gold-hover: #9c721f;
  --color-gold-active: #7a5816;
  --color-gold-highlight: #ecdfb8;

  /* Sapphire deep — for headers / dramatic surfaces */
  --color-sapphire-deep: #07153a;
  --color-sapphire: #0f2a5e;
  --color-sapphire-bright: #1e4eb0;

  /* Semantic */
  --color-error: #a12c2c;
  --color-success: #4a7a2d;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.875rem;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12, 26, 53, 0.06);
  --shadow-md: 0 6px 18px rgba(12, 26, 53, 0.08);
  --shadow-lg: 0 18px 40px rgba(12, 26, 53, 0.14);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 6vw, 6.5rem);

  /* Spacing */
  --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;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme='dark'] {
  --color-bg: #07112a;
  --color-surface: #0c1a3a;
  --color-surface-2: #102347;
  --color-surface-offset: #0a1633;
  --color-surface-offset-2: #14295a;
  --color-surface-dynamic: #1a3169;
  --color-divider: #1a2c54;
  --color-border: #243d6f;

  --color-text: #ece7d6;
  --color-text-muted: #a6adbf;
  --color-text-faint: #6a7186;
  --color-text-inverse: #07112a;

  --color-primary: #6f9aff;
  --color-primary-hover: #97b6ff;
  --color-primary-active: #4e7eed;
  --color-primary-highlight: #1f3673;

  --color-gold: #e6c266;
  --color-gold-hover: #f0d385;
  --color-gold-active: #c9a247;
  --color-gold-highlight: #3a2f12;

  --color-sapphire-deep: #050d23;
  --color-sapphire: #0f2a5e;
  --color-sapphire-bright: #4d7be0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
}
