/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fcf0ed;
}
::-webkit-scrollbar-thumb {
    background: #e89093;
    border-radius: 3px;
}

/* Selection */
::selection {
    background: #f3bdbd;
    color: #5e1a22;
}

/* Fade-in animations (progressive enhancement — only apply when JS is active and user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .fade-in-delay-1 { transition-delay: 0.1s; }
    .fade-in-delay-2 { transition-delay: 0.2s; }
    .fade-in-delay-3 { transition-delay: 0.3s; }
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Smooth image loading */
img {
    display: block;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 1px solid #c43b44;
    outline-offset: 4px;
}
