/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Utility ─── */
sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ─── Selection ─── */
::selection {
    background: color-mix(in srgb, #C4725A 20%, transparent);
    color: #1C1917;
}

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

/* ─── Smooth scroll offset for fixed nav ─── */
section[id] {
    scroll-margin-top: 64px;
}

/* ─── Image placeholder fallback ─── */
img {
    display: block;
    max-width: 100%;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
