/* Art direction: VaultMind — localized AI for UHNW / family offices
   Palette: Deep warm charcoal, accent: muted gold (#c9a54e) — vault-like, Swiss private bank
   Typography: Cormorant Garamond (display) + Inter (body) — elegant serif + clean sans
   Density: Spacious — generous whitespace, luxury feel */

/* ============================================================
   FONTS
   ============================================================ */
/* Google Fonts via China-accessible mirror */
@import url('https://fonts.loli.net/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   TYPE SCALE
   ============================================================ */
:root {
  --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.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* ============================================================
   SPACING (4px system)
   ============================================================ */
:root {
  --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;
}

/* ============================================================
   COLOR PALETTE — VaultMind Dark-first
   ============================================================ */
:root, [data-theme="dark"] {
  /* Surfaces — deep warm charcoal */
  --color-bg: #0d0b0a;
  --color-surface: #141210;
  --color-surface-2: #1a1815;
  --color-surface-offset: #1e1c18;
  --color-surface-offset-2: #24221d;
  --color-surface-dynamic: #2d2b26;
  --color-divider: #342f28;
  --color-border: #3d3830;

  /* Text */
  --color-text: #e8e4dd;
  --color-text-muted: #9a9590;
  --color-text-faint: #5c5854;
  --color-text-inverse: #0d0b0a;

  /* Primary Accent — muted gold */
  --color-primary: #c9a54e;
  --color-primary-hover: #d4b468;
  --color-primary-active: #b8933e;
  --color-primary-highlight: #2a2518;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

/* Light mode */
[data-theme="light"] {
  --color-bg: #faf8f5;
  --color-surface: #f5f2ed;
  --color-surface-2: #fffdf9;
  --color-surface-offset: #eee9e1;
  --color-surface-offset-2: #e5dfd6;
  --color-surface-dynamic: #dbd4ca;
  --color-divider: #cfc8be;
  --color-border: #c0b9af;
  --color-text: #1a1815;
  --color-text-muted: #6b6560;
  --color-text-faint: #a9a49e;
  --color-text-inverse: #faf8f5;
  --color-primary: #96782a;
  --color-primary-hover: #7d6320;
  --color-primary-active: #644e18;
  --color-primary-highlight: #f0e8d6;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* ============================================================
   SHARED TOKENS
   ============================================================ */
:root {
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}
