/* ============================================================
   COVERYOU — DESIGN TOKENS
   Brand: deep petrol navy (from logo) + vivid teal accent
   ============================================================ */

:root {
  /* Type scale (fluid, clamp-based) */
  --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.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6rem);

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

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

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

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'General Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f6fafb;
  --color-surface: #ffffff;
  --color-surface-2: #eff5f7;
  --color-surface-offset: #e3edf0;
  --color-surface-dynamic: #d7e6e9;
  --color-divider: #dee9ec;
  --color-border: #d2e1e5;

  /* Text */
  --color-text: #0a2530;
  --color-text-muted: #4b6670;
  --color-text-faint: #8fa6ac;
  --color-text-inverse: #f4fafb;

  /* Primary (brand navy — from logo) */
  --color-primary: #00415c;
  --color-primary-hover: #002f42;
  --color-primary-active: #001f2c;
  --color-primary-highlight: #cfe0e6;

  /* Accent (bright teal — CTAs, links) */
  --color-accent: #007e99;
  --color-accent-hover: #00647a;
  --color-accent-active: #004d5e;
  --color-accent-highlight: #cfeef3;

  /* Semantic */
  --color-success: #3f7d32;
  --color-success-highlight: #dbe8d5;
  --color-warning: #a15c00;
  --color-warning-highlight: #ecdcc4;
  --color-error: #a13544;
  --color-error-highlight: #e5d3d6;

  --shadow-sm: 0 1px 2px rgba(6, 33, 43, 0.06);
  --shadow-md: 0 6px 20px rgba(6, 33, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(6, 33, 43, 0.14);
}

[data-theme='dark'] {
  --color-bg: #071820;
  --color-surface: #0d232c;
  --color-surface-2: #102a34;
  --color-surface-offset: #143440;
  --color-surface-dynamic: #1a3f4c;
  --color-divider: #1a3540;
  --color-border: #1e3e48;

  --color-text: #e4eff1;
  --color-text-muted: #93aeb4;
  --color-text-faint: #5f7a80;
  --color-text-inverse: #061318;

  --color-primary: #8fd0e2;
  --color-primary-hover: #b3dfec;
  --color-primary-active: #d3edf5;
  --color-primary-highlight: #163842;

  --color-accent: #38c6de;
  --color-accent-hover: #5dd6ea;
  --color-accent-active: #85e2f0;
  --color-accent-highlight: #123846;

  --color-success: #7fc169;
  --color-success-highlight: #1c2f18;
  --color-warning: #dd9c4f;
  --color-warning-highlight: #33230f;
  --color-error: #dd7d8b;
  --color-error-highlight: #3a1c21;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #071820;
    --color-surface: #0d232c;
    --color-surface-2: #102a34;
    --color-surface-offset: #143440;
    --color-surface-dynamic: #1a3f4c;
    --color-divider: #1a3540;
    --color-border: #1e3e48;
    --color-text: #e4eff1;
    --color-text-muted: #93aeb4;
    --color-text-faint: #5f7a80;
    --color-text-inverse: #061318;
    --color-primary: #8fd0e2;
    --color-primary-hover: #b3dfec;
    --color-primary-active: #d3edf5;
    --color-primary-highlight: #163842;
    --color-accent: #38c6de;
    --color-accent-hover: #5dd6ea;
    --color-accent-active: #85e2f0;
    --color-accent-highlight: #123846;
    --color-success: #7fc169;
    --color-warning: #dd9c4f;
    --color-error: #dd7d8b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  }
}
