/* BrightNews v5 — basis: reset, letters, container, focus en hulpklassen.
 *
 * Laad in deze volgorde: css/fonts.css, css/tokens.css, css/v5/basis.css,
 * css/v5/componenten.css. Alle maten en kleuren komen uit tokens.css; hier
 * staan geen losse hexwaarden.
 */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--surface-default);
    color: var(--text-primary);
    font-family: var(--font-family-base);
    font-size: var(--font-size-16);
    line-height: var(--line-height-24);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background-color var(--motion-duration-slow) var(--motion-easing),
        color var(--motion-duration-slow) var(--motion-easing);
}

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

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

ul[role="list"],
ol[role="list"] {
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* iOS zoomt in op velden onder 16 px; nooit kleiner. */
input,
select,
textarea {
    font-size: max(16px, 1em);
}

a {
    color: var(--text-link);
    text-underline-position: from-font;
}

/* Koppen: Instrument Sans. Elke kop kiest zelf zijn maat via een
   component- of typeklasse; dit zet alleen de familie. */
h1, h2, h3, h4 {
    font-family: var(--font-family-display);
    font-weight: 500;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Typeschaal (Figma: Typeschaal, zes maten). */
.type-display-sm {
    font-family: var(--font-family-display);
    font-size: var(--type-display-sm-size);
    line-height: var(--type-display-sm-line-height);
    font-weight: 500;
    letter-spacing: -0.72px;
}

.type-heading-lg {
    font-family: var(--font-family-display);
    font-size: var(--type-heading-lg-size);
    line-height: var(--type-heading-lg-line-height);
    font-weight: 500;
    letter-spacing: -0.32px;
}

.type-heading-md {
    font-family: var(--font-family-display);
    font-size: var(--type-heading-md-size);
    line-height: var(--type-heading-md-line-height);
    font-weight: 600;
    letter-spacing: -0.12px;
}

.type-overline {
    color: var(--text-link);
    font-size: var(--font-size-14);
    line-height: var(--line-height-20);
    font-weight: 600;
    letter-spacing: 1.12px;
    text-transform: uppercase;
}

.type-body-lg {
    font-size: var(--font-size-18);
    line-height: var(--line-height-28);
}

.type-body-sm {
    font-size: var(--font-size-14);
    line-height: var(--line-height-20);
}

/* Container: 1280 px inhoud met de zijmarge uit de tokens (80 px op
   desktop, zodat het logo op de eerste gridkolom begint). */
.container {
    width: 100%;
    max-width: calc(1280px + 2 * var(--layout-section-padding-x));
    margin-inline: auto;
    padding-inline: var(--layout-section-padding-x);
}

/* Focus: één ring voor alles (Figma: Focus ring). Alleen bij toetsenbord. */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-xs);
}

/* Iconen uit assets/iconen.svg nemen de tekstkleur over. */
.icoon {
    width: var(--icon-size-md);
    height: var(--icon-size-md);
    flex-shrink: 0;
    fill: currentColor;
}

/* Een link zonder href: de pagina bestaat in v5 nog niet. Hij staat er
   zoals in Figma, maar reageert niet op muis of toetsenbord. */
a:not([href]) {
    pointer-events: none;
}

.visueel-verborgen {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    z-index: 100;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--action-primary-bg);
    color: var(--text-on-action);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--motion-duration-fast) var(--motion-easing);
}

.skip-link:focus-visible {
    transform: none;
}
