/* ==========================================================================
   Home — Base reset & shared utilities
   Loaded by every home version (v1–v6) via partials/head-common.blade.php
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }

/* ── CMS links — version-agnostic skeleton; each version restyles ──────── */
.cms-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    align-items: center;
    justify-content: center;
}
.cms-links a {
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .25rem 0;
    transition: opacity .15s ease, color .15s ease;
}
.cms-links a:hover { opacity: .75; }

/* ── Skip-link for keyboard users (a11y) ───────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: .5rem 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ── Honor user preferences ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
