/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   Cottagecore palette: soft, muted, warm, sun-faded
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     Colors - Soft Pastels & Earth Tones
     ------------------------------------------------------------------------- */
  
  /* Primary palette */
  --color-cream: #f7f4f0;
  --color-cream-dark: #ede8e1;
  --color-linen: #faf8f5;
  
  /* Sage greens */
  --color-sage: #9caa97;
  --color-sage-light: #b8c4b4;
  --color-sage-dark: #7a8f74;
  --color-sage-muted: #c5d1c1;
  
  /* Dusty rose */
  --color-rose: #d4a5a5;
  --color-rose-light: #e8cece;
  --color-rose-dark: #b88a8a;
  
  /* Warm honey/wheat */
  --color-honey: #dbc8a8;
  --color-honey-light: #ebe0cd;
  --color-honey-dark: #c4a87a;
  
  /* Lavender accent */
  --color-lavender: #c5b8d4;
  --color-lavender-light: #ddd5e8;
  
  /* Text colors */
  --color-text: #4a4543;
  --color-text-light: #6b6664;
  --color-text-muted: #8a8583;
  
  /* Utility colors */
  --color-white: #ffffff;
  --color-border: #e0dbd5;
  --color-border-light: #ebe7e2;
  
  /* -------------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------------- */
  
  /* Font families */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font sizes - fluid typography */
  --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.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  
  /* Font weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  
  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  
  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;
  
  /* -------------------------------------------------------------------------
     Spacing - Comfortable and spacious
     ------------------------------------------------------------------------- */
  
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 5rem;      /* 80px */
  --space-5xl: 6rem;      /* 96px */
  
  /* Section spacing */
  --section-padding: clamp(3rem, 6vw, 5rem);
  --section-gap: clamp(2.5rem, 5vw, 4rem);
  
  /* -------------------------------------------------------------------------
     Layout
     ------------------------------------------------------------------------- */
  
  --container-max: 72rem;       /* 1152px */
  --container-narrow: 48rem;    /* 768px */
  --container-prose: 40rem;     /* 640px */
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);
  
  /* -------------------------------------------------------------------------
     Borders & Radius - Soft, organic shapes
     ------------------------------------------------------------------------- */
  
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --border-thin: 1px;
  --border-medium: 2px;
  
  /* -------------------------------------------------------------------------
     Shadows - Soft, like paper lifted off surface
     ------------------------------------------------------------------------- */
  
  --shadow-sm: 0 1px 2px rgba(74, 69, 67, 0.04),
               0 2px 4px rgba(74, 69, 67, 0.03);
  
  --shadow-md: 0 2px 4px rgba(74, 69, 67, 0.04),
               0 4px 8px rgba(74, 69, 67, 0.04),
               0 8px 16px rgba(74, 69, 67, 0.03);
  
  --shadow-lg: 0 4px 8px rgba(74, 69, 67, 0.04),
               0 8px 16px rgba(74, 69, 67, 0.04),
               0 16px 32px rgba(74, 69, 67, 0.03);
  
  /* -------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------- */
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* -------------------------------------------------------------------------
     Z-index scale
     ------------------------------------------------------------------------- */
  
  --z-behind: -1;
  --z-base: 0;
  --z-above: 1;
  --z-overlay: 10;
  --z-modal: 100;
}

