/* ==========================================================================
   AEROSPACE TECHNIK — Design Tokens
   Classic aviation luxury: navy, cream, brushed gold.
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #fbf8f1;
  --color-surface: #ffffff;
  --color-surface-2: #f5f0e2;
  --color-surface-offset: #efe6cd;
  --color-surface-offset-2: #e6d9b8;
  --color-divider: #e1d5b2;
  --color-border: #d3c193;

  /* Text */
  --color-text: #0b1b32;
  --color-text-muted: #4d5a70;
  --color-text-faint: #99a1ae;
  --color-text-inverse: #f7f2e2;

  /* Navy (structural accent) */
  --color-navy: #0b1f3a;
  --color-navy-2: #10294a;
  --color-navy-3: #163458;

  /* Primary accent — Brushed Gold */
  --color-primary: #a8792a;
  --color-primary-hover: #8c631f;
  --color-primary-active: #714f18;
  --color-primary-highlight: #ede0bd;

  /* Status (restrained, used sparingly) */
  --color-success: #3f6b3f;
  --color-warning: #96551b;
  --color-error: #8a2f2f;

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

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

  --shadow-sm: 0 1px 2px rgba(11, 27, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 27, 50, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 27, 50, 0.16);

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

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Work Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #081120;
  --color-surface: #0d1a2e;
  --color-surface-2: #112238;
  --color-surface-offset: #14283f;
  --color-surface-offset-2: #1a3350;
  --color-divider: #1d3552;
  --color-border: #294a6f;

  --color-text: #ece4c9;
  --color-text-muted: #a7b1c2;
  --color-text-faint: #6c7a90;
  /* Text placed on navy surfaces (header, hero overlay, footer, cta-band) must
     stay light in both themes — navy stays dark in dark mode too, it does not
     flip like the page background does. */
  --color-text-inverse: #f7f2e2;

  --color-navy: #060d1a;
  --color-navy-2: #0a1526;
  --color-navy-3: #0f1f34;

  --color-primary: #d1a94e;
  --color-primary-hover: #e2bd6a;
  --color-primary-active: #f0d187;
  --color-primary-highlight: #2b2716;

  --color-success: #7fa87f;
  --color-warning: #d38f52;
  --color-error: #c97878;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #081120;
    --color-surface: #0d1a2e;
    --color-surface-2: #112238;
    --color-surface-offset: #14283f;
    --color-surface-offset-2: #1a3350;
    --color-divider: #1d3552;
    --color-border: #294a6f;
    --color-text: #ece4c9;
    --color-text-muted: #a7b1c2;
    --color-text-faint: #6c7a90;
    --color-text-inverse: #f7f2e2;
    --color-navy: #060d1a;
    --color-navy-2: #0a1526;
    --color-navy-3: #0f1f34;
    --color-primary: #d1a94e;
    --color-primary-hover: #e2bd6a;
    --color-primary-active: #f0d187;
    --color-primary-highlight: #2b2716;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  }
}

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 3.5vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

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