/*
 * public/shared/css/base.css
 * Reset and basic element styles used by BOTH sites.
 * No colors or fonts here: each site's theme.css sets the variables this file reads.
 */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-ink);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    margin: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--c-ink);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Layout helpers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section {
    padding: var(--section-pad) 0;
}

.is-hidden {
    display: none !important;
}

/* Native fieldsets are used for form steps; remove their default min-width quirk */
fieldset {
    min-width: 0;
}
