/* ============================================
   Bookworm Corner — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

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

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(44, 36, 32, 0.06);
}

.navbar-transparent {
    background: transparent !important;
}

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

.menu-line.open-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-line.open-2 {
    opacity: 0;
}

.menu-line.open-3 {
    width: 5;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Subtle entrance animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

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

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

::-webkit-scrollbar-track {
    background: #fdf9f3;
}

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5c1f2b;
}

/* Selection color */
::selection {
    background: #f9d0d8;
    color: #3d1319;
}

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

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

/* Print styles */
@media print {
    nav, #contact, .scroll-indicator {
        display: none;
    }
    
    body {
        color: #1e1815;
        background: white;
    }
}
