/* tokens.css — JM Interiors design tokens
   Brand palette: warm parchment, charcoal, muted gold-olive, cognac highlight
   Typography: Cormorant Garamond display + Work Sans body
*/

:root {
  /* Type scale (fluid) */
  --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, 0.5rem + 7vw, 7rem);

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

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1320px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, monospace;
}

/* LIGHT MODE — warm parchment, charcoal text, gold-olive accent */
:root,
[data-theme='light'] {
  --color-bg: #f5f2ec;            /* warm parchment */
  --color-surface: #faf7f1;       /* lighter linen */
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece8df;
  --color-surface-dark: #2a2825;  /* charcoal panel for testimonials */
  --color-divider: #d8d2c4;
  --color-border: #c9c2b1;

  --color-text: #1f1d1a;          /* near-black charcoal */
  --color-text-muted: #6a6660;
  --color-text-faint: #a09a8e;
  --color-text-on-dark: #f5f2ec;
  --color-text-on-dark-muted: #b9b3a6;

  --color-primary: #8a7a3f;        /* muted gold-olive */
  --color-primary-hover: #6e6232;
  --color-primary-active: #524827;
  --color-primary-soft: #ddd5be;

  --color-cognac: #a0612e;         /* warm leather highlight */
  --color-sage: #7a8268;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.06);
  --shadow-md: 0 6px 24px oklch(0.2 0.02 60 / 0.08);
  --shadow-lg: 0 18px 48px oklch(0.2 0.02 60 / 0.14);
}

/* DARK MODE — deep charcoal, warm gold accent, cream text */
[data-theme='dark'] {
  --color-bg: #1a1816;
  --color-surface: #21201d;
  --color-surface-2: #272521;
  --color-surface-offset: #2c2a25;
  --color-surface-dark: #0f0e0d;
  --color-divider: #322f2a;
  --color-border: #3d3933;

  --color-text: #ebe6db;
  --color-text-muted: #a39d8e;
  --color-text-faint: #6a6358;
  --color-text-on-dark: #ebe6db;
  --color-text-on-dark-muted: #a39d8e;

  --color-primary: #c5b07a;
  --color-primary-hover: #d6c189;
  --color-primary-active: #e6d199;
  --color-primary-soft: #3d3826;

  --color-cognac: #c87b3e;
  --color-sage: #98a085;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 6px 24px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1a1816;
    --color-surface: #21201d;
    --color-surface-2: #272521;
    --color-surface-offset: #2c2a25;
    --color-surface-dark: #0f0e0d;
    --color-divider: #322f2a;
    --color-border: #3d3933;
    --color-text: #ebe6db;
    --color-text-muted: #a39d8e;
    --color-text-faint: #6a6358;
    --color-text-on-dark: #ebe6db;
    --color-text-on-dark-muted: #a39d8e;
    --color-primary: #c5b07a;
    --color-primary-hover: #d6c189;
    --color-primary-active: #e6d199;
    --color-primary-soft: #3d3826;
    --color-cognac: #c87b3e;
    --color-sage: #98a085;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 6px 24px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.55);
  }
}
