/* ==========================================================================
   Rally Jet Charters — Design Tokens
   Concept: authoritative, discreet, minimal — private aviation for
   political campaigns. Deep navy + warm ivory neutrals, single brass accent.
   ========================================================================== */

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1.125rem, 1.1rem + 0.25vw, 1.1rem);
  --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, 6rem);

  /* 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 */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

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

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

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

:root,
[data-theme='light'] {
  /* Surfaces — warm ivory, restrained */
  --color-bg: #f6f4f0;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf7;
  --color-surface-offset: #eeebe4;
  --color-surface-offset-2: #e5e1d7;
  --color-surface-dynamic: #dcd7ca;
  --color-divider: #e2ded4;
  --color-border: #d3cdbf;

  /* Text — deep navy-charcoal */
  --color-text: #12202f;
  --color-text-muted: #5c6875;
  --color-text-faint: #9ba3ac;
  --color-text-inverse: #f6f4ef;

  /* Primary Accent — Deep Navy */
  --color-primary: #1b3358;
  --color-primary-hover: #12233d;
  --color-primary-active: #0c1a2d;
  --color-primary-highlight: #d7dfe9;

  /* Secondary Accent — Brass (sparing use: dividers, small marks) */
  --color-accent: #96772f;
  --color-accent-hover: #7a5f26;
  --color-accent-highlight: #e9dfc4;

  --color-warning: #8a5a24;
  --color-warning-hover: #6c451b;
  --color-warning-highlight: #e6d8c4;

  --color-error: #7a2f3a;
  --color-error-hover: #5e222b;
  --color-error-highlight: #ddc9cc;

  --color-success: #35603f;
  --color-success-hover: #274a2e;
  --color-success-highlight: #cddccf;

  /* Shadows — cool navy tint to match palette */
  --shadow-sm: 0 1px 2px oklch(0.22 0.02 250 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.22 0.02 250 / 0.09);
  --shadow-lg: 0 16px 40px oklch(0.22 0.02 250 / 0.14);
}

[data-theme='dark'] {
  --color-bg: #0d1521;
  --color-surface: #121b28;
  --color-surface-2: #16202e;
  --color-surface-offset: #182231;
  --color-surface-offset-2: #1e2a3b;
  --color-surface-dynamic: #263447;
  --color-divider: #22303f;
  --color-border: #2c3b4c;

  --color-text: #e6e5e0;
  --color-text-muted: #98a1ac;
  --color-text-faint: #647082;
  --color-text-inverse: #14202f;

  --color-primary: #7a9bc4;
  --color-primary-hover: #a0bce0;
  --color-primary-active: #bcd0ea;
  --color-primary-highlight: #223349;

  --color-accent: #cfab5c;
  --color-accent-hover: #ddc07d;
  --color-accent-highlight: #3a3220;

  --color-warning: #c98f52;
  --color-warning-hover: #dba775;
  --color-warning-highlight: #3d2f1f;

  --color-error: #c17685;
  --color-error-hover: #d494a1;
  --color-error-highlight: #3a2429;

  --color-success: #7fac86;
  --color-success-hover: #a0c6a6;
  --color-success-highlight: #263a29;

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

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1521;
    --color-surface: #121b28;
    --color-surface-2: #16202e;
    --color-surface-offset: #182231;
    --color-surface-offset-2: #1e2a3b;
    --color-surface-dynamic: #263447;
    --color-divider: #22303f;
    --color-border: #2c3b4c;
    --color-text: #e6e5e0;
    --color-text-muted: #98a1ac;
    --color-text-faint: #647082;
    --color-text-inverse: #14202f;
    --color-primary: #7a9bc4;
    --color-primary-hover: #a0bce0;
    --color-primary-active: #bcd0ea;
    --color-primary-highlight: #223349;
    --color-accent: #cfab5c;
    --color-accent-hover: #ddc07d;
    --color-accent-highlight: #3a3220;
    --color-warning: #c98f52;
    --color-warning-hover: #dba775;
    --color-warning-highlight: #3d2f1f;
    --color-error: #c17685;
    --color-error-hover: #d494a1;
    --color-error-highlight: #3a2429;
    --color-success: #7fac86;
    --color-success-hover: #a0c6a6;
    --color-success-highlight: #263a29;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}
