/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #d4aeb8;
    color: #271118;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d4aeb8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b88192;
}

/* ── Mobile Menu ── */
.menu-line {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1.5px;
    background: #4a2530;
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 7px;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 7px;
}

/* ── Scroll indicator ── */
.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #4a2530);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Always visible for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Navbar glass effect ── */
#navbar.scrolled {
    background: rgba(250, 245, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 37, 48, 0.06);
}

/* ── Image hover effects ── */
.group:hover .group-hover\\:bg-amber-400\\/20 {
    background: rgba(252, 211, 77, 0.2);
}

/* ── Focus styles ── */
input:focus, textarea:focus, button:focus {
    outline: none;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid #9a576e;
    outline-offset: 2px;
    border-radius: 2px;
}

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