body {
    margin: 0px;
    padding: 0px;

    font-size: 18px;
} 

header {
    box-sizing: border-box;
    background-color: red;
    color: yellow;
    min-height: 50px;
    width: 100%;
    padding: 8px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;

    .logo {
        padding-left: 0;
        height: 40px;
        width: auto;
        flex: 0 0 auto;
    }

    a {
        min-width: 0;
        text-decoration: none;
        color: yellow;
    }

    h2 {
        margin: 0;
        line-height: 1.25;
    }
}

.innhold {
    padding: 35px;
    display: flex;
    flex-direction: column;
    min-height: 80vh;

    .velkommen {
        padding-bottom: 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .nyhetssak {
        border-top: 2px solid black;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
        
        a {
            color: black;
        }
    }

    .nyhetssak-bilde {
        position: relative;
        display: block;
        flex: 0 0 auto;
        width: clamp(180px, 32vw, 360px);
        max-width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 250ms ease;
        }

        &::after {
            position: absolute;
            inset: 0;
            background-color: transparent;
            content: "";
            pointer-events: none;
            transition: background-color 250ms ease;
        }

        &:hover img,
        &:focus-visible img {
            transform: scale(1.06);
        }

        &:hover::after,
        &:focus-visible::after {
            background-color: rgb(128 128 128 / 30%);
        }
    }

    .nyhetssak-tekst h5 a {
        color: inherit;
    }
}

footer {
    box-sizing: border-box;
    background-color: red;
    color: yellow;
    min-height: 90px;
    width: 100%;
    padding: 10px 20px;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.artikkel-intro {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;

    img {
        width: 400px;
        max-width: 100%;
        height: auto;
        align-self: flex-start;
    }
}

.artikkel-innhold {
    border-top: 2px solid grey;
    margin-top: 20px;
}

@media (max-width: 600px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }

    .innhold .nyhetssak,
    .artikkel-intro {
        flex-direction: column;
    }

    .innhold .nyhetssak-bilde {
        width: 100%;
    }

    .artikkel-intro img {
        width: 100%;
    }
}
