/* Custom overrides and progressive-enhancement animations */

/* Scroll-reveal — progressive enhancement: hidden by default, revealed by JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion: always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Smooth focus outlines for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a120b;
}
::-webkit-scrollbar-thumb {
    background: #2d4a30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d6340;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf8f4;
}
