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

html {
    scroll-behavior: smooth;
}

:where([id]) {
    scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--color-page);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
}

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

img {
    height: auto;
}

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

button,
input,
select,
textarea {
    font-size: inherit;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 0.1875rem solid var(--color-accent);
    outline-offset: 0.25rem;
}

::selection {
    background: var(--color-accent);
    color: var(--color-surface);
}

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

h1,
h2,
h3,
h4 {
    margin-bottom: var(--space-4);
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

p,
ul,
ol {
    margin-bottom: var(--space-4);
}

ul,
ol {
    padding-left: 1.25rem;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: var(--space-3);
    left: var(--space-3);
    transform: translateY(-200%);
    padding: var(--space-2) var(--space-3);
    background: var(--color-surface);
    color: var(--color-navy-900);
    box-shadow: var(--shadow-soft);
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #aeb8bf, #c9ced1);
    color: rgb(23 35 51 / 0.68);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

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

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

    .brand:hover .brand__placeholder,
    .brand:focus-visible .brand__placeholder,
    .site-navigation__dropdown a:hover,
    .site-navigation__dropdown a:focus-visible,
    .site-footer__links a:hover,
    .site-footer__links a:focus-visible,
    .site-header__menu-toggle:hover,
    .site-header__menu-toggle:active {
        transform: none;
    }

    .site-header__menu-toggle:hover .site-header__menu-icon {
        transform: none;
    }
}
