:root {
    --plum-950: #2e0f17;
    --plum-900: #562030;
    --plum-800: #662638;
    --plum-700: #7a2e42;
    --plum-600: #933e52;
    --plum-500: #a85568;
    --plum-300: #d4a7b8;
    --plum-200: #e8d0dc;
    --plum-100: #f3e9ee;
    --plum-50: #f9f5f7;
    --amber-500: #eab308;
    --amber-400: #facc15;
    --amber-600: #ca8a04;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--plum-950);
    color: var(--plum-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Lora', Georgia, serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Scroll reveal base — progressive enhancement, content visible without JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Header scroll state */
#site-header.scrolled {
    background: rgba(46, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(234, 179, 8, 0.1);
}

#site-header.scrolled .mobile-menu-open {
    background: rgba(46, 15, 23, 0.98);
}

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

#mobile-menu.menu-closed {
    opacity: 0;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--plum-950);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-600);
}

/* Selection color */
::selection {
    background: rgba(234, 179, 8, 0.3);
    color: var(--plum-50);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--amber-400);
    outline-offset: 2px;
}

/* Form inputs */
input::placeholder,
textarea::placeholder {
    color: rgba(212, 167, 184, 0.4);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Anchor offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}
