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

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.font-serif {
    font-family: 'Instrument Serif', Georgia, serif;
}

.font-mono {
    font-family: 'Space Mono', monospace;
}

/* ─── Reveal Animations (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Hero reveals — staggered, no JS needed for initial render */
    [data-reveal] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Navigation ─── */
#nav {
    transition: box-shadow 0.3s ease;
}

#nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ─── Mobile Menu ─── */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── Menu List ─── */
#menu ul li:hover {
    background: transparent;
}

#menu ul li:hover .text-slate-800 {
    color: #0f766e;
    transition: color 0.2s ease;
}

/* ─── Buttons ─── */
a {
    text-decoration: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ─── Selection ─── */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}
