/* Custom styles that complement Tailwind */

/* Ensure all text has proper contrast */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #3d8b3d;
    color: #fafaf6;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3d8b3d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #e3efe3;
}

/* Subtle pattern for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(31, 85, 31, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
