/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf5f0;
}
::-webkit-scrollbar-thumb {
    background: #f9cfd8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f4a5b8;
}

/* ── Selection ── */
::selection {
    background: #f9cfd8;
    color: #6e162e;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #dc4468;
    outline-offset: 2px;
}

/* ── Navbar shadow on scroll ── */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(159, 24, 54, 0.08);
}

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Input autofill ── */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefaf8 inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}
