/* Base Styles - Reset, Variables, Typography, Accessibility */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d5016;
    --accent-green: #4a7c23;
    --light-green: #7fb069;
    --cream: #fefdf8;
    --warm-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-medium: #666;
    --shadow-soft: 0 4px 20px rgba(45, 80, 22, 0.1);
    --shadow-medium: 0 8px 30px rgba(45, 80, 22, 0.15);
    --border-radius: 20px;
    --border-radius-small: 12px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    /* Prevent elastic scrolling on mobile */
    overscroll-behavior: none;
    height: 100%;
}

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;
    /* Prevent elastic scrolling on mobile */
    overscroll-behavior: none;
    -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,
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;
    }

    /* Disable extras animations for reduced motion */
    .dressings li,
    .addon-item,
    .falling-leaves .leaf,
    .autumn-glow,
    .pumpkin-corner {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}