/* Custom styles for Strings & Beans */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #f59e0b;
    color: #2a1019;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f9f5f7;
}
::-webkit-scrollbar-thumb {
    background: #a35d75;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a4458;
}

/* Reduced motion */
@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;
    }
}

/* Focus visible */
:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Nav scroll state */
.nav-scrolled {
    background-color: rgba(42, 16, 25, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .font-serif {
    color: #fff !important;
}

.nav-scrolled a:not(.bg-amber-500) {
    color: #f2e9ee !important;
}
