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

body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Mobile menu animations */
#mobile-menu.open {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
#mobile-menu-btn[aria-expanded="true"] #hamburger span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#mobile-menu-btn[aria-expanded="true"] #hamburger span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn[aria-expanded="true"] #hamburger span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFAF8;
}
::-webkit-scrollbar-thumb {
    background: #d44a5e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Selection color */
::selection {
    background: #fce4e8;
    color: #5c1f2a;
}

/* Reduced motion support for scroll reveals */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    #site-header,
    #mobile-menu-btn,
    .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
