/* CSS Variables - Big Book Inspired Design */
:root {
    /* Primary Colors - Big Book Cover Design */
    --color-burgundy: #8B1538;
    --color-burgundy-dark: #5D0E25;
    --color-mustard: #D4A574;
    --color-mustard-light: #E8C896;
    
    /* Accent Colors */
    --color-black: #1A1A1A;
    --color-cream: #F8F5F0;
    --color-white: #FFFFFF;
    
    /* Neutral Colors */
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #999;
    --color-gray-dark: #333;
    
    /* Spacing System - 8px base */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 2.5rem;   /* 40px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-10: 5rem;    /* 80px */
    --space-12: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */
    
    /* Typography Scale */
    --text-h1: 3rem;      /* 48px - Main titles */
    --text-h2: 2rem;      /* 32px - Section headers */
    --text-h3: 1.5rem;    /* 24px - Subsection headers */
    --text-h4: 1.25rem;   /* 20px - Small headers */
    --text-body: 1.125rem; /* 18px - Body text (improved readability) */
    --text-footer: 0.875rem; /* 14px - Footer text */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;
    
    /* Font Families */
    --font-primary: 'Crimson Text', Georgia, serif;    /* Body text */
    --font-heading: 'Merriweather', Georgia, serif;    /* Headers */
    --font-display: 'Lora', Georgia, serif;            /* Quotes */
    --font-sans: 'Inter', system-ui, sans-serif;       /* UI elements */
    --font-mono: 'Courier New', monospace;             /* Meeting details */
    
    /* Container Sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-base: 0.5rem;
    --radius-lg: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--color-black);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: 1.3;
    color: var(--color-burgundy);
    margin-bottom: var(--space-2);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-body); }
h6 { font-size: var(--text-footer); }

p {
    margin-bottom: var(--space-3);
}

a {
    color: var(--color-burgundy);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-burgundy-dark);
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
}

li {
    margin-bottom: var(--space-1);
}

/* Layout */
.container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Focus States */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-burgundy);
    color: var(--color-cream);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Selection */
::selection {
    background: var(--color-mustard);
    color: var(--color-black);
}

::-moz-selection {
    background: var(--color-mustard);
    color: var(--color-black);
}

/* Form Elements */
input, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

input:focus, textarea:focus, button:focus {
    outline: 4px solid var(--color-mustard);
    outline-offset: 2px;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Responsive Utility Classes */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    
    .no-print {
        display: none !important;
    }
}