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

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
p { font-family: 'Inter', system-ui, sans-serif; }

/* ── Scroll Reveal (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);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible even if JS fails */
.reveal { opacity: 1; transform: none; }

/* ── Header Scroll State ── */
#header.scrolled {
    box-shadow: 0 1px 20px rgba(15, 26, 46, 0.08);
}

/* ── Selection ── */
::selection { background: #e85d2e; color: #fdfcfa; }

/* ── Focus ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #e85d2e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5ed; }
::-webkit-scrollbar-thumb { background: #d9bc96; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c4a26e; }
