/* 
===============================
VARIABLES & RESET
===============================
*/
:root {
  /* Color Palette - Light Mode */
  --color-background: #f4f2ee;
  --color-surface: #ffffff;
  --color-primary: #242321;
  --color-secondary: #916a44;
  --color-accent: #c97b5a;
  --color-muted: #a6a6a4;
  --color-light: #e8e6e2;
  --color-error: #e45858;
  
  /* Text Colors */
  --color-text-primary: #242321;
  --color-text-secondary: #6d6c6a;
  --color-text-muted: #8a8987;
  --color-text-accent: #c97b5a;
  --color-text-on-accent: #ffffff;
  
  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #c97b5a 0%, #916a44 100%);
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Cormorant', serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px */
  --text-8xl: 6rem;      /* 96px */
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* 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 */
  --space-32: 8rem;      /* 128px */
  --space-40: 10rem;     /* 160px */
  --space-48: 12rem;     /* 192px */
  --space-56: 14rem;     /* 224px */
  --space-64: 16rem;     /* 256px */
  
  /* Layout */
  --width-xs: 20rem;     /* 320px */
  --width-sm: 24rem;     /* 384px */
  --width-md: 28rem;     /* 448px */
  --width-lg: 32rem;     /* 512px */
  --width-xl: 36rem;     /* 576px */
  --width-2xl: 42rem;    /* 672px */
  --width-3xl: 48rem;    /* 768px */
  --width-4xl: 56rem;    /* 896px */
  --width-5xl: 64rem;    /* 1024px */
  --width-6xl: 72rem;    /* 1152px */
  --width-7xl: 80rem;    /* 1280px */
  --width-full: 100%;
  
  /* Borders */
  --border-radius-sm: 0.125rem; /* 2px */
  --border-radius: 0.25rem;     /* 4px */
  --border-radius-md: 0.375rem; /* 6px */
  --border-radius-lg: 0.5rem;   /* 8px */
  --border-radius-xl: 0.75rem;  /* 12px */
  --border-radius-2xl: 1rem;    /* 16px */
  --border-radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
  --transition-very-slow: 800ms;
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --ease-in: cubic-bezier(0.42, 0, 1, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Z-index */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-popover: 2000;
  --z-tooltip: 3000;
  --z-preloader: 4000;
  --z-cursor: 5000;
}

/* Dark Theme */
[data-theme="dark"] {
  --color-background: #121110;
  --color-surface: #1e1d1c;
  --color-primary: #f4f2ee;
  --color-secondary: #c09d7c;
  --color-accent: #e49478;
  --color-muted: #5a5958;
  --color-light: #242321;
  --color-error: #ff6b6b;
  
  /* Text Colors */
  --color-text-primary: #f4f2ee;
  --color-text-secondary: #a6a6a4;
  --color-text-muted: #7a7978;
  --color-text-accent: #e49478;
  --color-text-on-accent: #121110;
  
  /* Shadows for Dark Mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.12);
  
  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #e49478 0%, #c09d7c 100%);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  transition: background-color var(--transition-slow) var(--ease-default),
              color var(--transition-slow) var(--ease-default);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hide focus outline for mouse users, show for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Heading Typography */
h1, h2, h3, h4, h5 {
  font-weight: var(--font-medium);
  line-height: 1.2;
}

h1 {
  font-size: var(--text-6xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

/* Base Styles */
::selection {
  background-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* Utility Classes */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.highlight {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--width-7xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}