/* Fernwood Plant Studio — design tokens (source of truth). Load before style.css. */
:root {
  /* Primary: forest green */
  --color-primary-50: #f1f6f2;
  --color-primary-100: #dde9e0;
  --color-primary-200: #bbd3c2;
  --color-primary-300: #8fb59c;
  --color-primary-400: #5f9174;
  --color-primary-500: #3f7458;
  --color-primary-600: #2f5d46;
  --color-primary-700: #264b39;
  --color-primary-800: #1f3b2e;
  --color-primary-900: #172c22;

  /* Accent: terracotta */
  --color-accent-50: #fbf2ee;
  --color-accent-100: #f6e0d6;
  --color-accent-200: #edc0ac;
  --color-accent-300: #e09a7d;
  --color-accent-400: #d1775a;
  --color-accent-500: #bf5d3f;
  --color-accent-600: #a24a31;
  --color-accent-700: #833b28;
  --color-accent-800: #6a3224;
  --color-accent-900: #582c21;

  /* Warm neutrals */
  --color-neutral-50: #fafaf9;
  --color-neutral-100: #f5f5f4;
  --color-neutral-200: #e7e5e4;
  --color-neutral-300: #d6d3d1;
  --color-neutral-400: #a8a29e;
  --color-neutral-500: #78716c;
  --color-neutral-600: #57534e;
  --color-neutral-700: #44403c;
  --color-neutral-800: #292524;
  --color-neutral-900: #1c1917;

  /* Semantic */
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-info: #2563eb;

  /* Roles */
  --color-bg: #faf8f4;
  --color-bg-soft: #f1ede5;
  --color-bg-strong: #e6e0d4;
  --color-surface-dark: var(--color-primary-900);
  --color-text: var(--color-neutral-900);
  --color-text-body: var(--color-neutral-700);
  --color-text-muted: var(--color-neutral-500);
  --color-text-on-dark: var(--color-neutral-50);
  --color-text-on-primary: var(--color-neutral-50);
  --color-border: var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);
  --color-link: var(--color-primary-600);
  --color-focus: var(--color-accent-500);
  --overlay-hero: linear-gradient(180deg, rgba(23, 44, 34, 0.25) 0%, rgba(23, 44, 34, 0.65) 100%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-display: clamp(2.441rem, 5vw + 1rem, 4.5rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --letter-tight: -0.03em;
  --letter-normal: 0;
  --letter-wide: 0.05em;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.65;
  --measure: 65ch;

  /* Spacing (8px grid, 4px sub-step) */
  --space-0: 0;
  --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;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Radii */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows: diffuse */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-xl: 0 16px 48px rgba(28, 25, 23, 0.10);
  --shadow-inner: inset 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-glow: 0 0 20px rgba(47, 93, 70, 0.15);

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --stagger-step: 100ms;
  --reveal-distance: 16px;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --grid-gap: 1.5rem;
  --header-height: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
    --stagger-step: 0ms;
    --reveal-distance: 0px;
  }
}
