/* LODESTONE CONSTRUCTION SERVICES — Design Tokens */

:root,
[data-theme='light'] {
  /* 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, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

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

  /* Brand Palette — Deep slate + burnished gold accent (construction gravitas) */
  --color-bg: #f6f5f1;
  --color-surface: #f9f8f5;
  --color-surface-2: #fbfaf8;
  --color-surface-offset: #eeece6;
  --color-surface-offset-2: #e6e3dc;
  --color-surface-dynamic: #dedad2;
  --color-divider: #d5d1c8;
  --color-border: #ccc9bf;

  /* Text */
  --color-text: #1e2428;
  --color-text-muted: #6b6f72;
  --color-text-faint: #b0b4b8;
  --color-text-inverse: #f9f8f5;

  /* Primary Accent — Lodestone Gold */
  --color-primary: #8a6200;
  --color-primary-hover: #6e4e00;
  --color-primary-active: #533b00;
  --color-primary-highlight: #e8dccc;

  /* Secondary — Deep Slate Navy */
  --color-secondary: #1e2d3d;
  --color-secondary-hover: #16222f;
  --color-secondary-active: #0e1820;

  /* Accent Red (for CTA buttons — matches original brand energy) */
  --color-cta: #8b1a1d;
  --color-cta-hover: #6e1215;
  --color-cta-active: #520d0f;

  /* Utility */
  --color-success: #3a6b1a;
  --color-error: #9a2020;

  /* 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);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 36, 40, 0.08);
  --shadow-md: 0 4px 14px rgba(30, 36, 40, 0.10);
  --shadow-lg: 0 12px 36px rgba(30, 36, 40, 0.14);

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

  /* Fonts */
  --font-display: 'Epilogue', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #131619;
  --color-surface: #181c1f;
  --color-surface-2: #1d2124;
  --color-surface-offset: #1c2025;
  --color-surface-offset-2: #222830;
  --color-surface-dynamic: #2a3038;
  --color-divider: #232a30;
  --color-border: #323b44;
  --color-text: #d0d4d8;
  --color-text-muted: #7a7f84;
  --color-text-faint: #555a60;
  --color-text-inverse: #1a2028;
  --color-primary: #c8922a;
  --color-primary-hover: #e0aa3e;
  --color-primary-active: #f0bf55;
  --color-primary-highlight: #3d3020;
  --color-secondary: #4a6480;
  --color-secondary-hover: #5a7898;
  --color-secondary-active: #6a8caf;
  --color-cta: #c0393d;
  --color-cta-hover: #d54a4e;
  --color-cta-active: #e05a5e;
  --color-success: #5a9a30;
  --color-error: #d04040;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #131619;
    --color-surface: #181c1f;
    --color-surface-2: #1d2124;
    --color-surface-offset: #1c2025;
    --color-surface-offset-2: #222830;
    --color-surface-dynamic: #2a3038;
    --color-divider: #232a30;
    --color-border: #323b44;
    --color-text: #d0d4d8;
    --color-text-muted: #7a7f84;
    --color-text-faint: #555a60;
    --color-text-inverse: #1a2028;
    --color-primary: #c8922a;
    --color-primary-hover: #e0aa3e;
    --color-primary-active: #f0bf55;
    --color-primary-highlight: #3d3020;
    --color-secondary: #4a6480;
    --color-cta: #c0393d;
    --color-cta-hover: #d54a4e;
    --color-cta-active: #e05a5e;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.45);
  }
}
