/* Custom overrides and enhancements */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle pattern for cream backgrounds */
.bg-cream-50 {
    background-image: radial-gradient(circle at 1px 1px, rgba(74, 124, 74, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6a9e6a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(74, 124, 74, 0.2);
    color: #1a2e1a;
}

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(26, 46, 26, 0.08);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
    img {
        transition: none;
    }
}
