/**
 * DESIGN SYSTEM - Mooie Thuispakket
 * 
 * Based on mooie thuispakket design
 * Colors: Slate 900 (dark), Deep Blue, Cream, Orange
 * Typography: Merriweather (serif) + Inter (sans-serif)
 */

:root {
  /* === BRAND COLORS === */
  --color-primary: #1e3a8a;        /* Deep Blue - Trust/Authority */
  --color-primary-light: #3b82f6;
  --color-primary-pastel: #dbeafe;
  --color-primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  
  --color-dark: #0f172a;           /* Slate 900 - Trust/Authority */
  --color-dark-light: #1e293b;
  
  --color-accent: #ea580c;         /* Orange 600 - Warm Alert */
  --color-accent-light: #fb923c;
  --color-accent-pastel: #fed7aa;
  
  --color-cream: #fafaf9;          /* Stone 50 - Warmth/Background */
  --color-cream-dark: #f5f5f4;
  --color-cream-light: #fefdfb;
  
  --color-success: #10b981;       /* Emerald green */
  --color-success-light: #34d399;
  --color-success-pastel: #d1fae5;
  
  --color-warm-pink: #ec4899;
  --color-warm-pink-pastel: #fce7f3;
  
  --color-warm-blue: #3b82f6;
  --color-warm-blue-pastel: #dbeafe;
  
  --color-warm-purple: #a855f7;
  --color-warm-purple-pastel: #f3e8ff;
  
  /* === NEUTRAL COLORS (stone palette) === */
  --color-neutral-50: #fafaf9;     /* Stone 50 */
  --color-neutral-100: #f5f5f4;    /* Stone 100 */
  --color-neutral-200: #e7e5e4;    /* Stone 200 */
  --color-neutral-300: #d6d3d1;    /* Stone 300 */
  --color-neutral-400: #a8a29e;    /* Stone 400 */
  --color-neutral-500: #78716c;    /* Stone 500 */
  --color-neutral-600: #57534e;    /* Stone 600 */
  --color-neutral-700: #44403c;    /* Stone 700 */
  --color-neutral-800: #292524;    /* Stone 800 */
  --color-neutral-900: #0f172a;    /* Slate 900 */
  
  --color-text-primary: #0f172a;   /* brand-dark */
  --color-text-secondary: #57534e;
  --color-text-tertiary: #78716c;
  --color-text-inverse: #fafaf9;   /* brand-cream */
  
  --color-border: #e7e5e4;         /* Stone 200 */
  --color-border-strong: #d6d3d1;
  --color-background: #fefdfb;     /* Slightly warmer cream */
  --color-background-warm: #fafaf9;
  --color-background-subtle: #f5f5f4;
  --color-background-elevated: #ffffff;
  
  /* === TYPOGRAPHY === */
  /* Safe Rules: Max 2 typefaces, body text 16px+, line length ~70 chars */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-display: 'Merriweather', Georgia, serif;
  --font-family-serif: 'Merriweather', Georgia, serif;
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Line length constraint */
  --max-line-length: 70ch;
  
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* === SPACING === */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* === BORDERS & RADIUS === */
  --radius-sm: 0.375rem;    /* 6px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;        /* 16px */
  --radius-2xl: 1.5rem;     /* 24px */
  --radius-3xl: 2rem;       /* 32px */
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-width-strong: 2px;
  
  /* === SHADOWS (soft) === */
  /* Safe Rules: Blur = 2x distance, lower opacity as element gets closer */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);  /* 1px distance, 2px blur */
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);  /* 4px distance, 8px blur */
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.05);  /* 10px distance, 20px blur */
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);  /* 20px distance, 40px blur */
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.08);  /* 2px distance, 4px blur */
  --shadow-colored: 0 10px 20px -5px rgba(79, 70, 229, 0.2);  /* 10px distance, 20px blur */
  
  /* === ANIMATIONS === */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* === Z-INDEX === */
  --z-base: 1;
  --z-elevated: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background); /* brand-cream */
  min-height: 100vh;
}

/* === TYPOGRAPHY === */
/* Safe Rules: Lower letter spacing and line height with larger text */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);  /* Merriweather */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);  /* Tighter for larger text */
  color: var(--color-text-primary);
  letter-spacing: -0.02em;  /* Tighter letter spacing for larger text */
}

h1 { 
  font-size: var(--font-size-4xl);
  line-height: 1.1;  /* Even tighter for largest text */
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
h2 { 
  font-size: var(--font-size-3xl);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h3 { 
  font-size: var(--font-size-2xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h4 { 
  font-size: var(--font-size-xl);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Safe Rules: Raise letter spacing and line height with smaller text */
.text-sm, .text-xs {
  letter-spacing: 0.01em;
  line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }

