/* ─── Base & Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Navbar scroll state ─── */
.nav-scrolled #nav {
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ─── Mobile menu animation ─── */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 5rem;
}
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* ─── Thin custom scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fdfbf7; }
::-webkit-scrollbar-thumb { background: #d94060; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a01030; }

/* ─── Input autofill styling ─── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefdfb inset !important;
    -webkit-text-fill-color: #2a1f17 !important;
}

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

/* ─── Selection ─── */
::selection { background: #fce7eb; color: #6c1228; }
