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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-4));
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

main {
    display: block;
}

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

img,
video {
    height: auto;
}

button,
input,
select,
textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

button,
summary,
[type="button"],
[type="submit"] {
    -webkit-tap-highlight-color: transparent;
}

textarea {
    resize: vertical;
}

a {
    color: var(--color-brand-blue-700);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    box-shadow: var(--shadow-focus);
}

::selection {
    background: var(--color-brand-cyan-300);
    color: var(--color-brand-navy-950);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
blockquote,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-brand-navy-900);
    font-weight: 760;
    line-height: var(--line-height-heading);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

h1 {
    max-width: 17ch;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-h1);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
}

h2 {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-h2);
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-h3);
}

p,
li {
    max-width: 72ch;
    overflow-wrap: anywhere;
}

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

hr {
    height: 1px;
    border: 0;
    background: var(--color-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--color-brand-navy-900);
    font-weight: 750;
}

address {
    font-style: normal;
}

[hidden] {
    display: none;
}

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

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

    *,
    *::before,
    *::after {
        animation-delay: 0ms;
        animation-duration: 1ms;
        animation-iteration-count: 1;
        scroll-behavior: auto;
        transition-delay: 0ms;
        transition-duration: 1ms;
    }
}
