/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Nav ── */
.nav-link { cursor: pointer; }
#nav.scrolled {
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 46, 38, 0.06);
}

/* ── Mobile Menu ── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
.mobile-link { transition: opacity 0.3s; }
#mobileMenu.open .mobile-link { animation: fadeUp 0.4s ease both; }
#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Selection ── */
::selection { background: rgba(196, 100, 74, 0.15); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FDF9F5; }
::-webkit-scrollbar-thumb { background: #C4644A; border-radius: 3px; }

/* ── Utility ── */
.writing-mode-vertical { writing-mode: vertical-rl; }
</style>
