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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    background: var(--color-cream);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

img { height: auto; }

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

button,
a { -webkit-tap-highlight-color: transparent; }

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd { margin-block-start: 0; }

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

::selection {
    background: var(--color-gold);
    color: var(--color-ink);
}

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

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 1rem;
    padding: 0.8rem 1rem;
    top: 1rem;
    width: auto;
    z-index: 100000;
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: 0 0 auto;
}

.reveal { opacity: 1; transform: none; }
.has-js .reveal {
    opacity: 0;
    transform: translateY(1.1rem);
    transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
