/* ==========================================================================
   Base — reset, typografie, links, focus, hulpklassen
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-hoogte-mobiel) + 16px);
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-tekst);
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

/* Titels: Suranna heeft één gewicht en geen cursief — hiërarchie via grootte en ruimte */
h1,
h2,
h3,
h4,
.titel {
    margin: 0;
    font-family: var(--font-titel);
    font-weight: 400;
    font-synthesis: none;
    color: var(--ink-heading);
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.08;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.15;
}

h4 {
    font-size: var(--fs-h4);
    line-height: 1.2;
}

.display {
    font-size: var(--fs-display);
    line-height: 1.05;
}

p {
    margin: 0;
    max-width: 62ch;
    text-wrap: pretty;
}

p + p {
    margin-top: var(--space-3);
}

ul,
ol {
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    transition: color var(--duur) var(--ease);
}

a:hover {
    color: var(--accent-hover);
}

strong {
    font-weight: 700;
    color: var(--ink-heading);
}

blockquote,
figure {
    margin: 0;
}

/* Focus: 2px solide ring, 3px offset */
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.op-merk :focus-visible,
.sectie--merk :focus-visible {
    outline-color: var(--nachtaarde);
}

.op-donker :focus-visible,
.sectie--donker :focus-visible,
.site-footer :focus-visible,
.bb-herofoto :focus-visible {
    outline-color: var(--wit);
}

::selection {
    background: var(--roze);
    color: var(--nachtaarde);
}

/* Eyebrow-label */
.bb-label {
    display: block;
    font-family: var(--font-tekst);
    font-size: var(--fs-label);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}

.bb-lead {
    font-size: var(--fs-lead);
    font-weight: 300;
    line-height: 1.6;
}

.klein {
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* Lopende tekst uit het CMS (rich text) */
.rte > * + * {
    margin-top: var(--space-3);
}

.rte h2,
.rte h3 {
    margin-top: var(--space-6);
}

.rte h3 + p,
.rte h2 + p {
    margin-top: var(--space-3);
}

.rte ul {
    padding-left: 1.2em;
}

.rte li + li {
    margin-top: var(--space-2);
}

.rte li::marker {
    color: var(--roze);
}

/* Toegankelijkheid */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skiplink {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--nachtaarde);
    color: var(--wit);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}

.skiplink:focus {
    top: 16px;
    color: var(--wit);
}

[hidden] {
    display: none !important;
}

/* Beweging: zachte reveals (enkel met JS en zonder reduced motion) */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--duur-traag) var(--ease), transform var(--duur-traag) var(--ease);
}

.js .reveal.is-zichtbaar {
    opacity: 1;
    transform: none;
}

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

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

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
