/* Site-wide elements and components. Page and section styles load on their own pages. */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-ink);

    background-color: var(--color-white);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-menu-open {
    overflow: hidden;
}

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

img {
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
}

.container {
    width: 100%;
    max-width: calc(var(--container-width) + var(--gutter) * 2);
    padding: 0 var(--gutter);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;

    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    border: 0;
    border-radius: 0;

    background-color: var(--color-magenta);

    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

@media (min-width: 768px) {
    .btn {
        min-height: 52px;
        padding: 14px 32px;
        font-size: 20px;
    }
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--color-ink);
}

.btn--dark {
    background-color: var(--color-ink);
}

.btn--dark:hover,
.btn--dark:focus-visible {
    background-color: var(--color-magenta);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 8px 16px;
    color: var(--color-white);
    background-color: var(--color-ink);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

:focus-visible {
    outline: 2px solid var(--color-magenta);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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