@font-face {
    font-family: 'fredoka';
    src: url("fredoka.woff2") format("woff2");
    font-weight: 100 900;
}

:root {
    line-height: 1.6;
    font-family: 'fredoka', sans-serif;
}

body {
    margin: 0;
    padding: 1.5rem 2rem;
    background-color: oklch(96% 0.015 240);  /* Alice Blue zachtblauw */
    color: oklch(35% 0.09 235);              /* Steel Azure donkerblauw */
}

/* 1. Koppen een andere kleur geven */
h1, h2, h3, h4, h5, h6 {
    color: oklch(35% 0.13 250);              /* Dieper marineblauw */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

a {
    color: oklch(35% 0.13 250);
    text-decoration: underline;
}

a:hover, a:focus {
    color: oklch(55% 0.09 235);              /* Middenblauw bij hover */
}

/* 3. code-elementen een achtergrondkleur geven */
code {
    background-color: oklch(90% 0.02 240);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* 3. figcaption een andere kleur geven */
figcaption {
    color: oklch(35% 0.09 235);
}

/* Waarschuwing */
.waarschuwing {
    background-color: oklch(48% 0.11 235);
    color: oklch(100% 0 0);
    border-left: 4px solid oklch(35% 0.13 250);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
}

/* ID selector */
#intro {
    font-size: 1.0rem;
    font-weight: bold;
}

/* Selecteert elk element met attribuut lang="en" */
[lang="en"] {
    font-style: italic;
}

/* Standaard opmaak en grootte voor alle afbeeldingen */
img {
    max-width: 100%;
    height: 250px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Selecteert alleen afbeeldingen waar alt exact leeg is */
img[alt=""] {
    border: 4px solid oklch(55% 0.09 235);
}

/* Selecteert afbeeldingen die géén alt-attribuut hebben */
img:not([alt]) {
    border: 8px solid oklch(50% 0.18 25);
}