/* css/variables.css */

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Base Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Light Mode Palette (Default) */
  --bg-primary: hsl(36, 45%, 96%);
  --bg-secondary: hsl(36, 30%, 91%);
  --bg-tertiary: hsl(36, 25%, 86%);
  --text-primary: hsl(24, 25%, 12%);
  --text-secondary: hsl(24, 15%, 35%);
  --text-muted: hsl(24, 10%, 50%);
  --color-accent: hsl(24, 75%, 50%);
  --color-accent-hover: hsl(24, 85%, 42%);
  --color-accent-light: hsla(24, 75%, 50%, 0.1);
  --color-success: hsl(120, 35%, 40%);
  --color-error: hsl(0, 75%, 50%);
  --border-color: hsl(24, 15%, 80%);
  --shadow-color: hsla(24, 30%, 10%, 0.08);

  /* Typography */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing System */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout Constraints */
  --max-width-content: 1200px;
  --header-height: 80px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-primary: hsl(24, 25%, 10%);
  --bg-secondary: hsl(24, 20%, 15%);
  --bg-tertiary: hsl(24, 15%, 20%);
  --text-primary: hsl(36, 45%, 92%);
  --text-secondary: hsl(36, 25%, 75%);
  --text-muted: hsl(36, 15%, 55%);
  --color-accent: hsl(24, 85%, 60%);
  --color-accent-hover: hsl(24, 95%, 68%);
  --color-accent-light: hsla(24, 85%, 60%, 0.15);
  --border-color: hsl(24, 15%, 25%);
  --shadow-color: hsla(0, 0%, 0%, 0.4);
}

/* Focus States for Accessibility (WCAG 2.1 AA) */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* Accessibility: Reduce Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}
