/* Base Styles - Reset, Variables, Typography, Accessibility */

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

:root {
    --primary-green: #1a3409;
    --accent-green: #2d5016;
    --light-green: #4a7c23;
    --cream: #fafaf8;
    --warm-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #4a5568;
    --shadow-soft: 0 2px 12px rgba(45, 80, 22, 0.08);
    --shadow-medium: 0 4px 20px rgba(45, 80, 22, 0.12);
    --border-radius: 12px;
    --border-radius-small: 8px;
}



body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--warm-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Enable smooth scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
a:focus:not(.logo-burst):not([href*="#top"]),
button:focus,
[tabindex]:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

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

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Reduce complexity of seasonal animations for reduced motion */
    .falling-snow .snowflake {
        animation: none !important;
    }

    .winter-frost,
    .winter-corner {
        animation: none !important;
    }
}