*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary);
}

h1, h2, h3, h4, p {
    margin-top: 0;
}

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.25rem, 4.4vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

.section {
    padding: 4.5rem 0;
}

.section-header {
    max-width: 720px;
    margin-bottom: 2.25rem;
}

.section-header p,
.lead {
    color: var(--muted);
    font-size: 1.125rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--secondary-strong);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.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;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 200;
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.skip-link:focus {
    top: 0.75rem;
    color: var(--white);
}

:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 450ms ease, transform 450ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.bg-soft {
    background: var(--background);
}

.bg-accent {
    background: var(--accent);
}

.text-muted {
    color: var(--muted);
}
