/* ==========================================================================
   Reset & Accessibility Primitives
   ========================================================================== */

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

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

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    z-index: 1000;
    background: #000000;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility: Keyboard Focus */
:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Accessibility: Motion Kill-Switch */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}