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

body {
    overflow-x: hidden;
}

/* Navigation link styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Writing vertical utility */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Hero content animation */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-link {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #574B42;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #C4704B;
}

/* Scroll reveal base state - content always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #C4B09A;
}

/* Selection */
::selection {
    background: #F9E3D8;
    color: #5D3124;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
    }

    .nav-link::after {
        transition: none;
    }
}
