/* 
 * 📱 mobile-first variables. Base is mobile, media queries for everything up.
 *
 * Groetjes thuis 👋 
 */
:root {
    /* 🎨 Master colors */
    --color-primary: #1c45e5;
    --color-secondary: #31dc8a;
    --color-tertiary: #f3f3ec;
    /* 🔤 Typography */
    --font-family-base: 'Montserrat', sans-serif;
    /* 🖌️ Spectrum colors */
    --color-base-50: #ffffff;
    --color-base-400: #A6A6A6;
    --color-base-500: #747474;
    --color-base-900: #000000;
    --color-primary-500: var(--color-primary);
    --color-secondary-500: var(--color-secondary);
    --color-tertiary-500: var(--color-tertiary);
    /* 📏 Sizing */
    --grid-base: 4px;
    --grid-margin: calc(var(--grid-base) * 4);
    --grid-gutter: calc(var(--grid-base) * 2);
}

/* 🧹 First some chores. Let's normalise the styles we care about. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* 🧰 Some global utilities */
.invert {
    color: var(--color-base-50);
}

.semi {
    font-weight: 600;
}

.bold {
    font-weight: 700;
}

/* 📙 Base typography setup */
h1 {
    font-weight: 600;
    font-size: 2rem;
    line-height: 125%;
}

h2 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 125%;
}

h3 {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 125%;
}

/* 🖥️ Everything above mobile */
/*  (480px, 768px, 1024px, and 1280px). */
@media only screen and (min-width: 1024px) {
    :root {
        --grid-margin: calc(var(--grid-base) * 4);
        --grid-gutter: calc(var(--grid-base) * 4);
    }

    h1 {
        font-weight: 600;
        font-size: 4rem;
        line-height: 125%;
    }

    h2 {
        font-weight: 700;
        font-size: 3rem;
        line-height: 125%;
    }

    h3 {
        font-weight: 600;
        font-size: 1.5rem;
        line-height: 125%;
    }

    p {
        font-size: 0.9375rem;
        font-weight: 400;
    }
}
@media only screen and (min-width: 768px) {
    :root {
        --grid-margin: calc(var(--grid-base) * 10);
        --grid-gutter: calc(var(--grid-base) * 4);
    }
}

@media only screen and (min-width: 1024px) {
    :root {
        --grid-margin: calc(var(--grid-base) * 15);
        --grid-gutter: calc(var(--grid-base) * 6);
    }
}

@media only screen and (min-width: 1280px) {
    :root {
        --grid-margin: calc(var(--grid-base) * 25);
        --grid-gutter: calc(var(--grid-base) * 6);
    }
}

@media only screen and (min-width: 1920px) {
    :root {
        --grid-margin: calc(var(--grid-base) * 100);
        --grid-gutter: calc(var(--grid-base) * 8);
    }
}

.grid-root {
    display: grid;
    grid-template-columns: var(--grid-margin) repeat(12, 1fr) var(--grid-margin);
    grid-column-gap: var(--grid-gutter);
}