/* Custom styles to complement Tailwind */

:root {
    --burgundy: #722F37;
    --burgundy-deep: #5A252C;
    --blush: #F5E6E0;
    --cream: #FDFCFA;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #D4A8A0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* Line utility */
.bg-line {
    background-color: rgba(114, 47, 55, 0.12);
}

/* Selection color */
::selection {
    background-color: rgba(114, 47, 55, 0.15);
    color: #5A252C;
}

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

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.6s ease;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Ensure serif font renders well */
.font-serif {
    font-feature-settings: 'liga' 1, 'calt' 1;
    text-rendering: optimizeLegibility;
}

/* 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;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print styles */
@media print {
    nav,
    #mobileMenu,
    .bg-burgundy-500 {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}

/* Scroll reveal base state (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
