/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, video { max-width: 100%; height: auto; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F5; }
::-webkit-scrollbar-thumb { background: #E2C5A8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C48450; }

/* Selection */
::selection { background: #F3B8A8; color: #562019; }

/* Header transition states */
#site-header.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

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

/* Smooth image loading */
img { opacity: 1; transition: opacity 0.3s ease; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s ease; }
img.loaded { opacity: 1; }

/* Focus visible */
:focus-visible {
    outline: 2px solid #C44F38;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 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; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
