/* ============================================================
   Richard S. Peskin, Esq. — Trusts & Estates Law
   Palette: Deep Navy + Warm Gold (dignified, eye-catching)
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f7f3ea;
  --color-surface: #fffdf7;
  --color-surface-2: #fbf7ed;
  --color-surface-offset: #f0e9da;
  --color-surface-offset-2: #e8dfca;
  --color-divider: #e2d8c2;
  --color-border: #d8ccb2;

  /* Text */
  --color-text: #15233f;
  --color-text-muted: #5b6478;
  --color-text-faint: #9a9da6;
  --color-text-inverse: #f9f4e8;

  /* Brand: Navy */
  --color-navy: #15324f;
  --color-navy-deep: #0f2438;
  --color-navy-soft: #2a4d72;

  /* Brand: Gold */
  --color-gold: #e6a012;
  --color-gold-bright: #ffd23f;
  --color-gold-soft: #f7e4a3;

  /* Primary = Navy, Accent = Gold */
  --color-primary: #15324f;
  --color-primary-hover: #0f2438;
  --color-primary-active: #0a1a2b;
  --color-primary-highlight: #d7e0ea;
  --color-accent: #b8860b;
  --color-accent-hover: #9a7008;
  --color-accent-bright: #ffd23f;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(21, 35, 63, 0.08);
  --shadow-md: 0 6px 18px rgba(21, 35, 63, 0.10);
  --shadow-lg: 0 18px 44px rgba(21, 35, 63, 0.16);
  --shadow-gold: 0 10px 30px rgba(255, 210, 63, 0.35);

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1240px;
}

[data-theme='dark'] {
  --color-bg: #0c1626;
  --color-surface: #121f33;
  --color-surface-2: #16243b;
  --color-surface-offset: #18273f;
  --color-surface-offset-2: #1d2f49;
  --color-divider: #21304a;
  --color-border: #2b3c59;

  --color-text: #e8eef9;
  --color-text-muted: #9aa6bd;
  --color-text-faint: #5f6b81;
  --color-text-inverse: #0f1c2e;

  --color-navy: #cfe0f5;
  --color-navy-deep: #0c1626;
  --color-navy-soft: #7f9ec0;

  --color-gold: #ffd23f;
  --color-gold-bright: #ffe066;
  --color-gold-soft: #6b5a2c;

  --color-primary: #2a4d72;
  --color-primary-hover: #3a6090;
  --color-primary-active: #4a72a8;
  --color-primary-highlight: #1a2c45;
  --color-accent: #ffd23f;
  --color-accent-hover: #ffe066;
  --color-accent-bright: #ffe066;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 30px rgba(220, 179, 94, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c1626;
    --color-surface: #121f33;
    --color-surface-2: #16243b;
    --color-surface-offset: #18273f;
    --color-surface-offset-2: #1d2f49;
    --color-divider: #21304a;
    --color-border: #2b3c59;
    --color-text: #e8eef9;
    --color-text-muted: #9aa6bd;
    --color-text-faint: #5f6b81;
    --color-text-inverse: #0f1c2e;
    --color-navy: #cfe0f5;
    --color-navy-deep: #0c1626;
    --color-navy-soft: #7f9ec0;
    --color-gold: #ffd23f;
    --color-gold-bright: #ffe066;
    --color-gold-soft: #6b5a2c;
    --color-primary: #2a4d72;
    --color-primary-hover: #3a6090;
    --color-primary-active: #4a72a8;
    --color-primary-highlight: #1a2c45;
    --color-accent: #ffd23f;
    --color-accent-hover: #ffe066;
    --color-accent-bright: #ffe066;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 10px 30px rgba(255, 210, 63, 0.30);
  }
}

:root {
  --font-display: 'Playfair Display', 'Cormorant', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', system-ui, sans-serif;
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem);
  --text-3xl: clamp(2.3rem, 1.5rem + 3.2vw, 3.6rem);

  /* Spacing tokens */
  --space-12: 3rem;
  --space-16: 4rem;
  --space-32: 8rem;
}
