/* Explain: Base reset, typography defaults, and utility classes. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--background-color);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    color: var(--text-color);
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 6px;
}

.nh-h1 {
    font-size: clamp(1.95rem, 4.4vw, 3.3rem);
    letter-spacing: -0.01em;
}

.nh-h2 {
    font-size: clamp(1.55rem, 3.1vw, 2.4rem);
}

.nh-h3 {
    font-size: clamp(1.12rem, 1.9vw, 1.35rem);
}

.nh-lead {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.75;
}

.nh-muted {
    color: var(--text-muted);
}