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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background-color: #FAFAF8;
    color: #2A0A32;
    line-height: 1.6;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.08);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.06);
}

nav.scrolled .font-inter {
    color: #4A1556;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu.open #bar2 {
    opacity: 0;
}

#mobile-menu.open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Hover underline animation for nav links */
nav a:not(.bg-plum-700):not(#menu-toggle) {
    position: relative;
}

nav a:not(.bg-plum-700):not(#menu-toggle)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #D4A017;
    transition: width 0.3s ease;
}

nav a:not(.bg-plum-700):not(#menu-toggle):hover::after {
    width: 100%;
}

/* Subtle image hover */
section img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Selection color */
::selection {
    background-color: rgba(123, 45, 142, 0.15);
    color: #2A0A32;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    section img {
        transition: none;
    }
}

/* Print */
@media print {
    nav, #mobile-menu, .animate-pulse {
        display: none !important;
    }
}
