/* ============================================================
   AXIO VENTURES CO. — Design Tokens
   Modern & bold: ink-charcoal surfaces, signal-amber accent.
   ============================================================ */

: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.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 7rem);

  /* 4px spacing system */
  --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 — slightly architectural / precise */
  --radius-sm: 0.25rem;
  --radius-md: 0.4375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;
  --radius-full: 9999px;

  /* Transitions */
  --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: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Clash Grotesk', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'General Sans', 'Helvetica Neue', sans-serif;
}

/* -------------------- LIGHT MODE -------------------- */
:root,
[data-theme='light'] {
  /* Surfaces — warm ink-cream */
  --color-bg: #f7f5f0;
  --color-surface: #fffefb;
  --color-surface-2: #fbf9f4;
  --color-surface-offset: #efeae0;
  --color-surface-offset-2: #e6dfd1;
  --color-surface-dynamic: #ddd4c1;
  --color-divider: #e3ddd0;
  --color-border: #d6cdba;

  /* Text — ink */
  --color-text: #17140e;
  --color-text-muted: #6c6558;
  --color-text-faint: #a49c8c;
  --color-text-inverse: #f7f5f0;

  /* Primary accent — Signal Amber */
  --color-primary: #9c6607;
  --color-primary-hover: #7a5105;
  --color-primary-active: #5c3d04;
  --color-primary-highlight: #eee0c3;
  --color-primary-text-on: #17140e;

  /* Warning */
  --color-warning: #964219;
  --color-warning-hover: #713417;
  --color-warning-highlight: #ddcfc6;

  /* Error */
  --color-error: #a12c2c;
  --color-error-hover: #7d1e1e;
  --color-error-highlight: #e0cece;

  /* Success */
  --color-success: #3f6b28;
  --color-success-hover: #2c4f1a;
  --color-success-highlight: #d3ddc9;

  /* Shadows — warm tinted */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.2 0.02 70 / 0.08);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 70 / 0.14);
}

/* -------------------- DARK MODE -------------------- */
[data-theme='dark'] {
  --color-bg: #121110;
  --color-surface: #1a1816;
  --color-surface-2: #201e1b;
  --color-surface-offset: #262320;
  --color-surface-offset-2: #302c27;
  --color-surface-dynamic: #3a352e;
  --color-divider: #2a2723;
  --color-border: #3a352d;

  --color-text: #ece7dc;
  --color-text-muted: #a49b89;
  --color-text-faint: #6f6858;
  --color-text-inverse: #17140e;

  --color-primary: #e6a83b;
  --color-primary-hover: #efbd63;
  --color-primary-active: #f5cd84;
  --color-primary-highlight: #3a2f1c;
  --color-primary-text-on: #17140e;

  --color-warning: #cc7a4a;
  --color-warning-hover: #d9905f;
  --color-warning-highlight: #453427;

  --color-error: #d97a7a;
  --color-error-hover: #e29494;
  --color-error-highlight: #3f2a28;

  --color-success: #8fbf6c;
  --color-success-hover: #a6cf88;
  --color-success-highlight: #2c3a24;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #121110;
    --color-surface: #1a1816;
    --color-surface-2: #201e1b;
    --color-surface-offset: #262320;
    --color-surface-offset-2: #302c27;
    --color-surface-dynamic: #3a352e;
    --color-divider: #2a2723;
    --color-border: #3a352d;
    --color-text: #ece7dc;
    --color-text-muted: #a49b89;
    --color-text-faint: #6f6858;
    --color-text-inverse: #17140e;
    --color-primary: #e6a83b;
    --color-primary-hover: #efbd63;
    --color-primary-active: #f5cd84;
    --color-primary-highlight: #3a2f1c;
    --color-primary-text-on: #17140e;
    --color-warning: #cc7a4a;
    --color-error: #d97a7a;
    --color-success: #8fbf6c;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.55);
  }
}
