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

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

html, body { max-width: 100%; overflow-x: clip; }

/* Browser-quirk: fieldsets hebben standaard min-width: min-content,
   waardoor ze de viewport laten overstromen wanneer een kind hun
   intrinsieke breedte overschrijdt. Reset zodat ze normaal block-flow
   volgen. Iedere fieldset die border/padding nodig heeft, krijgt dat
   nu via een eigen rule i.p.v. de browser-default. */
fieldset { min-width: 0; }

/* HTML's [hidden]-attribuut overschrijft elke display-rule. Anders blijven
   .trial-banner / .onb-alert / soortgenoten zichtbaar omdat hun .class de
   native display:none van [hidden] verslaat in specificiteit. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-4);
    color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); line-height: var(--leading-snug); }

p { margin: 0 0 var(--space-4); }

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color var(--motion-fast) var(--easing-out);
}
a:hover { color: var(--color-orange-hover); }

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

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

::selection {
    background: var(--color-orange);
    color: var(--color-white);
}

@media (max-width: 600px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
}
