/* Fonts */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist[wght].woff2') format('woff2 supports variations'),
       url('../fonts/Geist[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramondLight.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramondLightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramondRegular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramondItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramondMedium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramondMediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Design System Variables */

:root {
  color-scheme: light dark;

  /* Typography - Fonts */
  --font-primary: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Typography - Scale (1.25 ratio, 14px base) */
  --text-xs: 0.6875rem;   /* 11px */
  --text-sm: 0.875rem;    /* 14px - base */
  --text-md: 1.0625rem;   /* 17px */
  --text-lg: 1.3125rem;   /* 21px */
  --text-xl: 1.625rem;    /* 26px */
  --text-2xl: 2.0625rem;  /* 33px */
  --text-3xl: 2.5625rem;  /* 41px */
  --text-4xl: 3.1875rem;  /* 51px */

  /* Typography - Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Typography - Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Spacing (8px base unit) */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 1rem;       /* 16px */
  --space-md: 1.5rem;     /* 24px */
  --space-lg: 2rem;       /* 32px */
  --space-xl: 3rem;       /* 48px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */
  --space-4xl: 8rem;      /* 128px */

  /* Layout */
  --header-height: 48px;
  --max-width-content: 1200px;
  --max-width-text: 700px;
  --max-width-form: 600px;

  /* Grid */
  --grid-gap-mobile: 16px;
  --grid-gap-desktop: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* Light Mode (default) */
:root,
[data-theme="light"] {
  --color-bg: #FDFAF7;
  --color-bg-alt: #F7F3EE;
  --color-surface: #EEE9E3;
  --color-text: #1A1715;
  --color-text-secondary: #7A736B;
  --color-border: #DDD8D2;
  --color-accent: #B87C4C;
  --color-accent-hover: #A06A3A;

  /* Header backdrop */
  --header-bg: #FDFAF7;

  /* Lightbox */
  --lightbox-bg: rgba(0, 0, 0, 0.95);
  --lightbox-text: #F0EBE4;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #141210;
  --color-bg-alt: #1E1A17;
  --color-surface: #28231F;
  --color-text: #F0EBE4;
  --color-text-secondary: #8A7D74;
  --color-border: #352E29;
  --color-accent: #C4894F;
  --color-accent-hover: #D4996A;

  /* Header backdrop */
  --header-bg: #141210;

  /* Lightbox */
  --lightbox-bg: rgba(0, 0, 0, 0.98);
  --lightbox-text: #F0EBE4;
}

/* Responsive Breakpoints (for reference in media queries) */
/* Mobile: < 640px */
/* Tablet: 640px - 1023px */
/* Desktop: 1024px - 1439px */
/* Large: >= 1440px */
