/* Base styles */
html {
    scroll-behavior: smooth;
}

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

/* Scroll-reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
    .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 80ms; }
    .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 160ms; }
    .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 240ms; }
    .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 320ms; }

    .reveal-stagger.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is always visible */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class; without JS, content is already visible */
}

/* Thin scrollbar for webkit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f3ed;
}

::-webkit-scrollbar-thumb {
    background: #c6dfc6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9cc49c;
}

/* Selection color */
::selection {
    background: #c6dfc6;
    color: #1a3a2a;
}

/* Subtle image hover zoom handled via Tailwind utility */
