*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables */
:root {
    /* Colors */
    --color-primary: #505e52;
    --color-secondary: #39493c;
    --color-accent: #c48655;
    --color-accent-dark: #bc6c25;
    --color-wood: #6f4518;
    --color-wood-dark: #583101;
    --color-text-light: #ebebeb;
    --color-text-dark: #000000;
    --color-shadow: rgba(0, 0, 0, 0.8);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #dda15e 0%, #bc6c25 100%);
    --gradient-background: linear-gradient(135deg, #6a7c6d 0%, #505e52 100%);
    --gradient-header: linear-gradient(135deg, #505e52 0%, #39493c 100%);
    --gradient-card: linear-gradient(135deg, #6f4518 0%, #583101 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-family: 'Georgia', 'Times New Roman', serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.3;
    
    /* Borders and Shadows */
    --border-radius: 8px;
    --border-width: 2px;
    --shadow-primary: 0 12px 24px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-text: 2px 2px 4px rgba(0, 0, 0, 0.8);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-light);
    background: var(--gradient-background);
    min-height: 100vh;
    cursor: url('../img/wood_cursor.png'), auto;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.header {
    background: var(--gradient-header);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-secondary);
}

.header__content {
    max-width: 1200px;
    margin: 0 auto;
}

.main {
    flex: 1;
}

.section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.section__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
    text-shadow: var(--shadow-text);
    color: var(--color-text-light);
}

.footer {
    background: var(--gradient-header);
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: auto;
}

.footer p {
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
}

/* Typography */
h1 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
}

h2 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
}

p {
    margin-bottom: var(--spacing-md);
}

/* Interactive Elements */
a {
    color: var(--color-text-light);
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-accent);
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .header {
        padding: 0.75rem;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section__title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
}

    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section__title {
        font-size: var(--font-size-xl);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text-light: #ffffff;
        --color-text-dark: #000000;
        --shadow-text: 3px 3px 6px #000000;
    }
}

/* Keyboard navigation styles */
.keyboard-navigation a:focus,
.keyboard-navigation button:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
}

    .header,
    .footer {
        display: none;
    }
    
    .logo {
        animation: none;
    }
}