@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,700&family=Public+Sans:wght@400;500;700;800;900&display=swap");

:root {
    /* Color System */
    --color-primary: #000000;
    --color-on-primary: #ffffff;
    --color-surface: #f9f9f9;
    --color-surface-container: #eeeeee;
    --color-tertiary: #324100;
    --color-on-tertiary: #c3f400;
    --color-outline-variant: #737373;

    /* Typography */
    --font-label: "Public Sans", sans-serif;
    --font-text: "Newsreader", serif;
    --font-header: "Public Sans", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



body {
    min-height: 100vh;
    font-family: var(--font-header);
    overflow-x: hidden;
}

.skip-link,
.screenreader-feedback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: var(--color-on-primary);
    white-space: normal;
    z-index: 10;
}


/* Header/Nav */
header {
    width: 100%;
    height: fit-content;
    padding: 2em;
    padding: 2em;
    border-bottom: 2px solid var(--color-primary);

    nav {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

        h1 {
            text-transform: uppercase;
            font-size: 36px;
            font-style: normal;
            font-weight: 900;
        }

        ul {
            list-style: none;
            display: flex;
            justify-content: space-evenly;
            gap: 1rem;

            li {
                padding: 0;
            }

            a{
                text-decoration: none;
                color: var(--color-primary);
            }
        }

    }
}

.profile-button {
    display: flex;
    padding: 12px 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary);
    color: var(--color-on-primary);

    text-decoration: none;
}







/* Hulp Paneel styling */
.hulp-paneel {
    width: min(720px, 100%);
    margin: 2rem auto 0;
    padding: 1.5rem;
    border: 2px solid var(--color-primary);
    background: var(--color-surface);
    display: flex;
    gap: 1rem;

    /* hulp paneel hidden maken */
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: -9999px;
    
}

.hulpPaneelOpen {
    opacity: 1;
    pointer-events: auto;
    position: static;

}

.hulp-paneel > section {
    flex: 1;
    padding: 1rem;
    background: var(--color-on-tertiary);
    border-radius: 8px;
}

.hulp-paneel h2 {
    margin-bottom: 1.5rem;
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hulp-paneel h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.hulp-paneel p {
    max-width: 60ch;
    font-family: var(--font-text);
    font-size: 1.125rem;
    line-height: 1.6;
}

.hulp-paneel kbd {
    display: inline-block;
    min-width: 2ch;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--color-primary);
    background: var(--color-on-primary);
    font-family: var(--font-label);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}







/********
 * MAIN *
 ********/
main {
    width: 100%;
    min-height: 100vh;
}

main section:nth-of-type(1) {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px;
    gap: 1rem;
}

main section:nth-of-type(1) > h2 {
    width: min(800px, 100%);
    align-self: center;
    color: var(--color-primary);
    font-family: var(--font-header);
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

main .nieuws-lijst {
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

main .nieuws-item {
    width: min(800px, 100%);
    margin: 0 auto;
}

main .nieuws-item > article {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    padding: 1em;
    gap: 1em;
}

main .nieuws-item > article div:nth-of-type(1) {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

main .nieuws-item > article div:nth-of-type(1) h3 {
    color: var(--color-primary);
    font-family: var(--font-header);
    font-size: 60px;
    font-style: normal;
    font-weight: 900;
    line-height: 54px; /* 90% */
    letter-spacing: -3px;
    text-transform: uppercase;
}

main .nieuws-item > article div:nth-of-type(1) h3 a {
    color: inherit;
    text-decoration: none;
}

main .nieuws-item > article div:nth-of-type(1) p {
    color: var(--color-primary);
    font-family: var(--font-text);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 32.5px; /* 162.5% */
}

main .nieuws-item > article div:nth-of-type(1) img {
    width: 100%;
    height: 20em;
    object-fit: cover;
    border: 2px solid #000;
    background: var(--color-surface);
}

main .nieuws-item > article div:nth-of-type(2) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}

main .nieuws-item > article div:nth-of-type(2) span {
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-family: var(--font-label);
    padding: 2px 8px;

    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 16px; /* 133.333% */
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

main .nieuws-item > article div:nth-of-type(2) time {
    color: #737373;
    font-family: var(--font-label);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px; /* 133.333% */
    text-transform: uppercase;
}

@media (max-width: 900px) {
    header {
        padding: 1.25rem;

        nav {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;

            h1 {
                font-size: 2rem;
            }

            ul {
                flex-wrap: wrap;
            }
        }
    }

    .hulp-paneel {
        width: 100%;
        max-width: 720px;
        margin-top: 1.25rem;
        padding: 1.25rem;
        flex-direction: column;
    }

    .hulp-paneel h2 {
        font-size: 1.5rem;
    }

    .hulp-paneel p {
        font-size: 1rem;
    }

    main {
        grid-template-columns: 1fr;

        aside {
            width: 100%;
            border-right: 0;
            border-bottom: 2px solid var(--color-primary);
        }

        .nieuws-item > article div:nth-of-type(1) h3 {
            font-size: 2.5rem;
            line-height: 0.95;
            letter-spacing: -1px;
        }
    }
}
