/* tokens.css — Beltrán Pardo | Consultores design system
   Derived from the firm's official brand manual:
   Carbón Profundo #1A1A1A · Bronce Metálico #A87C51 · Blanco Platino #F8F8F8 · Gris Técnico #666666
*/

:root {
  /* ---- Type scale (fluid clamp) ---- */
  --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.75rem + 6vw, 6.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;

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

  /* ---- Motion ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

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

  /* ---- Fonts ----
     Brand manual specifies Helvetica Neue (headings) / Arial (body) for the
     "precisión suiza" (Swiss precision) feel. Switzer + Satoshi are the
     modern, licensable equivalents of that exact grotesque family. */
  --font-display: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Arial', sans-serif;
}

/* ============ LIGHT MODE (default) — Blanco Platino ============ */
:root,
[data-theme='light'] {
  --color-bg: #f8f8f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf9;
  --color-surface-offset: #f0eeea;
  --color-surface-offset-2: #e7e4de;
  --color-surface-dynamic: #ecebe7;
  --color-divider: #e0ddd7;
  --color-border: #d6d2ca;

  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-text-faint: #9a9690;
  --color-text-inverse: #f8f8f8;

  --color-primary: #a87c51;
  --color-primary-hover: #8c653d;
  --color-primary-active: #714f2e;
  --color-primary-highlight: #ece1d3;

  --color-carbon: #1a1a1a;
  --color-anthracite: #222222;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.2 0.01 80 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.2 0.01 80 / 0.14);
}

/* ============ DARK MODE — Carbón Profundo ============ */
[data-theme='dark'] {
  --color-bg: #1a1a1a;
  --color-surface: #201f1d;
  --color-surface-2: #242322;
  --color-surface-offset: #262524;
  --color-surface-offset-2: #2d2c2a;
  --color-surface-dynamic: #2d2c2a;
  --color-divider: #333230;
  --color-border: #3a3937;

  --color-text: #f4f2ef;
  --color-text-muted: #a8a4a0;
  --color-text-faint: #75726d;
  --color-text-inverse: #1a1a1a;

  --color-primary: #c2996d;
  --color-primary-hover: #d4ae87;
  --color-primary-active: #a87c51;
  --color-primary-highlight: #3a322a;

  --color-carbon: #0f0f0f;
  --color-anthracite: #171716;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1a1a1a;
    --color-surface: #201f1d;
    --color-surface-2: #242322;
    --color-surface-offset: #262524;
    --color-surface-offset-2: #2d2c2a;
    --color-surface-dynamic: #2d2c2a;
    --color-divider: #333230;
    --color-border: #3a3937;

    --color-text: #f4f2ef;
    --color-text-muted: #a8a4a0;
    --color-text-faint: #75726d;
    --color-text-inverse: #1a1a1a;

    --color-primary: #c2996d;
    --color-primary-hover: #d4ae87;
    --color-primary-active: #a87c51;
    --color-primary-highlight: #3a322a;

    --color-carbon: #0f0f0f;
    --color-anthracite: #171716;

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 8px 24px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
  }
}
