/* lettertypen.css
   Lettertypen volgens de Zodion Brand Guide V.1 (2026):
   - kop (heading):        Space Grotesk Bold
   - tussenkop:            Space Grotesk Medium, in hoofdletters
   - lopende tekst (body): DM Sans Regular
   De lettertypebestanden staan in static/fonts (dezelfde als op zodion.nl), dus geen
   verbinding met Google nodig.
*/

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(../../fonts/space-grotesk-v22-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(../../fonts/space-grotesk-v22-latin-700.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../../fonts/dm-sans-v17-latin-regular.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../../fonts/dm-sans-v17-latin-500.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../../fonts/dm-sans-v17-latin-700.woff2) format("woff2"); }

:root {
    --lettertype-tekst: "DM Sans", -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --lettertype-kop: "Space Grotesk", "DM Sans", -apple-system, "Segoe UI", system-ui, Arial, sans-serif;

    /* Django gebruikt deze variabele voor alle tekst en invoervelden */
    --font-family-primary: var(--lettertype-tekst);
}

/* Koppen */
html #site-name,
html #site-name a,
html #content h1,
html #content-main h1,
html .login #header h1 {
    font-family: var(--lettertype-kop);
    font-weight: 700;
}

html #content h1 { letter-spacing: -0.01em; }

/* Tussenkoppen: blokkoppen, menukoppen, fieldsets, filters */
html .module caption,
html .module h2,
html fieldset h2,
html .inline-group h2,
html #changelist-filter h2,
html .info-tooltip strong {
    font-family: var(--lettertype-kop);
    font-weight: 500;
    letter-spacing: 0.04em;
}

html .module caption,
html .module h2,
html #changelist-filter h2 {
    text-transform: uppercase;
}

/* Kopjes binnen een menu en in kaart-popups */
html #changelist-filter h3,
html #changelist-filter details summary,
html .kaart-popup .kaart-locatie {
    font-family: var(--lettertype-kop);
    font-weight: 500;
}
