/* ===================================================================
   JP TREE LLC — Design Tokens
   Dark, illustrative, colorful forest theme.
   =================================================================== */

:root,
[data-theme='light'] {
  /* ---- Fonts ---- */
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  /* ---- 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(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, 4.75rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 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;

  /* ---- Surfaces (light mode — rarely seen, dark is default) ---- */
  --color-bg: #f4f1e8;
  --color-surface: #ffffff;
  --color-surface-2: #faf8f0;
  --color-surface-offset: #ece7d8;
  --color-surface-offset-2: #e2dcc8;
  --color-divider: #d8d0b8;
  --color-border: #c9bf9e;

  --color-text: #241f14;
  --color-text-muted: #5c5440;
  --color-text-faint: #a89d7f;
  --color-text-inverse: #fdfaf2;

  /* ---- Primary Accent: JP Truck Orange ---- */
  --color-primary: #e2680f;
  --color-primary-hover: #c9560a;
  --color-primary-active: #a44608;
  --color-primary-highlight: #fbe0c4;

  /* ---- Forest Green (secondary) ---- */
  --color-forest: #2f6b3a;
  --color-forest-hover: #24552d;
  --color-forest-active: #1c4223;
  --color-forest-highlight: #d3e6d2;

  /* ---- Amber / Gold (tertiary accent) ---- */
  --color-gold: #e0a52a;
  --color-gold-hover: #c48f1d;
  --color-gold-highlight: #f6e4bb;

  /* ---- Status ---- */
  --color-warning: #b5541f;
  --color-warning-highlight: #f0dcc6;
  --color-success: #3a7a3f;
  --color-success-highlight: #d4e6d4;
  --color-error: #a1352c;
  --color-error-highlight: #f0d2ce;

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

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

  --shadow-sm: 0 1px 3px oklch(0.15 0.02 90 / 0.15);
  --shadow-md: 0 6px 18px oklch(0.15 0.02 90 / 0.2);
  --shadow-lg: 0 16px 40px oklch(0.15 0.02 90 / 0.28);
  --shadow-glow: 0 0 40px oklch(0.65 0.18 45 / 0.35);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;
}

/* ===== DARK MODE (default aesthetic for this brand) ===== */
[data-theme='dark'] {
  --color-bg: #14140f;
  --color-surface: #1a1b14;
  --color-surface-2: #20221a;
  --color-surface-offset: #24261d;
  --color-surface-offset-2: #2c2f22;
  --color-divider: #33362a;
  --color-border: #40432f;

  --color-text: #ece6d3;
  --color-text-muted: #a5a08a;
  --color-text-faint: #6d6a58;
  --color-text-inverse: #14140f;

  --color-primary: #f2812e;
  --color-primary-hover: #ff9a4d;
  --color-primary-active: #d96f1f;
  --color-primary-highlight: #4a3222;

  --color-forest: #6bab6e;
  --color-forest-hover: #85c087;
  --color-forest-active: #4f8f55;
  --color-forest-highlight: #253524;

  --color-gold: #f0c058;
  --color-gold-hover: #f7cf7c;
  --color-gold-highlight: #443a22;

  --color-warning: #e2914f;
  --color-warning-highlight: #453324;
  --color-success: #7bc47e;
  --color-success-highlight: #253524;
  --color-error: #e0715f;
  --color-error-highlight: #442622;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 20px 50px oklch(0 0 0 / 0.6);
  --shadow-glow: 0 0 50px oklch(0.65 0.18 45 / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14140f;
    --color-surface: #1a1b14;
    --color-surface-2: #20221a;
    --color-surface-offset: #24261d;
    --color-surface-offset-2: #2c2f22;
    --color-divider: #33362a;
    --color-border: #40432f;
    --color-text: #ece6d3;
    --color-text-muted: #a5a08a;
    --color-text-faint: #6d6a58;
    --color-text-inverse: #14140f;
    --color-primary: #f2812e;
    --color-primary-hover: #ff9a4d;
    --color-primary-active: #d96f1f;
    --color-primary-highlight: #4a3222;
    --color-forest: #6bab6e;
    --color-forest-hover: #85c087;
    --color-forest-active: #4f8f55;
    --color-forest-highlight: #253524;
    --color-gold: #f0c058;
    --color-gold-hover: #f7cf7c;
    --color-gold-highlight: #443a22;
    --color-warning: #e2914f;
    --color-warning-highlight: #453324;
    --color-success: #7bc47e;
    --color-success-highlight: #253524;
    --color-error: #e0715f;
    --color-error-highlight: #442622;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.4);
    --shadow-md: 0 6px 18px oklch(0 0 0 / 0.5);
    --shadow-lg: 0 20px 50px oklch(0 0 0 / 0.6);
    --shadow-glow: 0 0 50px oklch(0.65 0.18 45 / 0.25);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}
</content>
