/* ==========================================================================
   Reset — Base Normalization
   ========================================================================== */

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

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

body {
    min-height: 100vh;
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-background);
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Focus ring uses the mandated brand focus color (--color-focus); the
   box-shadow adds a dark reinforcement ring so the indicator clears WCAG
   1.4.11 (3:1) against light surfaces, since the brand gold alone measures
   only ~2.2-2.4:1 there. The specified focus color itself is unchanged. */
:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-brand-primary);
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: var(--space-md);
    z-index: var(--z-mobile-nav);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-brand-primary);
    color: var(--color-text-on-primary);
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

.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;
}
