/* Custom styles for Healing Ink */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2e1520;
}
::-webkit-scrollbar-thumb {
    background: #a8577e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c07a9c;
}

/* Selection color */
::selection {
    background: #EAB308;
    color: #2e1520;
}

/* Reveal animations - progressive enhancement, works without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav state classes */
.nav-dark {
    color: white;
}
.nav-light {
    color: #52283a;
}

/* Hero parallax-like effect */
#hero {
    background-attachment: fixed;
}

/* Subtle hover effects */
a {
    transition: all 0.3s ease;
}

/* Button focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #EAB308;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

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