/* =====================================================
   THE LIBRARY - Design System / Style Guide
   A 1920s Speakeasy in Miami
   ===================================================== */

:root {
  /* ===================
     COLOR PALETTE
     =================== */

  /* Primary Colors */
  --color-midnight: #0a0a0a;        /* Primary background */
  --color-leather: #1a1714;         /* Secondary background, cards */
  --color-charcoal: #2a2622;        /* Tertiary background */

  /* Accent Colors */
  --color-copper: #b87333;          /* Primary accent, CTAs, highlights */
  --color-copper-light: #d4965a;    /* Hover states */
  --color-copper-dark: #8b5a2b;     /* Active states */
  --color-gold: #d4af37;            /* Secondary accent, special elements */
  --color-gold-dim: #a68b2e;        /* Muted gold */

  /* Text Colors */
  --color-cream: #f5f0e6;           /* Primary text */
  --color-parchment: #c9b99a;       /* Secondary text */
  --color-muted: #8b8178;           /* Tertiary/muted text */

  /* Utility Colors */
  --color-overlay: rgba(10, 10, 10, 0.85);
  --color-overlay-heavy: rgba(10, 10, 10, 0.95);

  /* ===================
     TYPOGRAPHY
     =================== */

  /* Font Families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;
  --font-accent: 'Cinzel', serif;

  /* Font Sizes - Desktop */
  --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-hero: 6rem;       /* 96px */

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;

  /* ===================
     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 */

  /* ===================
     LAYOUT
     =================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  /* ===================
     BORDERS & RADIUS
     =================== */

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --border-thin: 1px;
  --border-medium: 2px;
  --border-thick: 4px;

  /* ===================
     SHADOWS
     =================== */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(184, 115, 51, 0.3);

  /* ===================
     TRANSITIONS
     =================== */

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ===================
     Z-INDEX SCALE
     =================== */

  --z-behind: -1;
  --z-base: 0;
  --z-above: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-book: 2000;
  --z-book-content: 2001;
}

/* ===================
   RESPONSIVE TYPOGRAPHY
   =================== */

@media (max-width: 768px) {
  :root {
    --text-hero: 3.5rem;
    --text-7xl: 3rem;
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --text-hero: 2.5rem;
    --text-7xl: 2.25rem;
    --text-6xl: 2rem;
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
  }
}
