@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    line-height: 1.6;
    font-family: "Fredoka", sans-serif;

    color: oklch(0.30 0.08 160.77);
    background-color: oklch(0.8501 0.0851 67.76);
}

body {
    margin: 0;
}

/* Element selectors */

h1 {
    font-size: 40px;
    color: oklch(0.5356 0.2245 15.49);
}

h2 {
    color: oklch(0.45 0.16 15.49);
}

code {
    background-color: oklch(0.90 0.06 254.12);
}

figcaption {
    color: oklch(0.45 0.12 343.44);
}

/* Class selectors */

.waarschuwing {
    background-color: oklch(0.45 0.10 160.77);
    color: oklch(0.97 0.01 160.77);
}

.sitenaam {
    color: oklch(0.3872 0.0851 0);
}

.belangrijk {
    color: oklch(0.96 0.02 160.77);
}

/* ID selector */

#intro {
    color: oklch(0.35 0.10 207.77);
    font-weight: 600;
}

/*
Deze regel staat bewust onder #intro.
#intro is specifieker dan p, dus de intro blijft font-weight 600.
*/
p {
    font-weight: normal;
}

/* Attribute selectors */

[lang="en"] {
    font-style: italic;
}

img[alt=""] {
    border: 3px solid oklch(0.45 0.10 160.77);
}