/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2d5016;
    --color-secondary: #5a8c3a;
    --color-accent: #8bc34a;
    --color-background: #fafafa;
    --color-text: #333333;
    --color-text-light: #666666;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --border-radius: 0.5rem;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-unit);
}

/* Image Container */
.image-container {
    width: 100%;
    margin-bottom: calc(var(--spacing-unit) * 3);
    display: flex;
    justify-content: center;
}

.image-container img {
    width: 80%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15),
                0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Facts Section */
.facts {
    background: white;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.facts ul {
    list-style: none;
    margin-top: var(--spacing-unit);
}

.facts li {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--color-text-light);
    line-height: 1.7;
}

.facts li::before {
    content: "🥒";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Footer */
footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--color-primary);
    color: white;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 0.875rem;
    }
    
    .image-container img {
        width: 90%;
    }
    
    .facts {
        padding: var(--spacing-unit);
    }
}

@media (max-width: 480px) {
    .image-container img {
        width: 95%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #1a1a1a;
        --color-text: #e0e0e0;
        --color-text-light: #b0b0b0;
    }
    
    .facts {
        background: #2a2a2a;
    }
    
    .image-container img {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
                    0 2px 4px rgba(0, 0, 0, 0.2);
    }
}
