/* Custom overrides and utilities */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(68, 110, 46, 0.2);
    color: #1a2e14;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfaf0;
}
::-webkit-scrollbar-thumb {
    background: #a1c186;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #78a358;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #446e2e;
    outline-offset: 2px;
}

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

/* Subtle pattern for cream sections */
.bg-cream-50,
.bg-cream-100,
.bg-cream-200 {
    background-image: radial-gradient(circle at 1px 1px, rgba(68, 110, 46, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
