/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #5e9e5e;
}

/* ── Header scroll state ── */
#site-header.scrolled {
    background: rgba(250, 250, 246, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(45, 94, 45, 0.08);
}

/* ── Selection ── */
::selection {
    background: #b9d0b9;
    color: #1c381c;
}

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

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fafaf6;
}
::-webkit-scrollbar-thumb {
    background: #b9d0b9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}
