@font-face {
    font-family: "Fredoka";
    src: url("../../fonts/Fredoka-VariableFont_wdth\,wght.woff2") format("woff2")
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
    background-color: var(--bg);
    color: var(--primary);
    font-size: 100%;
}

body {
    margin: 0;
    padding: 2rem;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

header {
    background-color: oklch(0.3069 0.1472 231.18);
    color: var(--bg)
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-inline-start: -2rem;
}

nav a {
    display: inline-block;
    padding-block: 1rem;
    padding-inline: 2rem;
    color: inherit;
    text-decoration: none;
}

.row {
    display: flex;
    gap: 2rem;

    > * {
        border: dashed 1px oklch(0.7216 0.162 69.18);
        padding: 1rem;
    }

    > :first-child {
        flex: 2;
    }

    > :nth-child(2) {
        flex: 1;
    }
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

main {

    nav {
        --text: oklch(0.99 0.003 325);
        --bg: oklch(0.45 0.32 40)
    }

    nav {
        a {
        color: var(--text);
        background-color: var(--bg);
        transition: color .2s ease-in-out, background-color .1s ease-in-out;

            &:hover,
            &:focus-visible {
                color: var(--bg);
                background-color: var(--text);
            }
        }

        li:first-child {
            margin-inline-end: auto;
        }

        li:first-child a{
            background-color: var(--text);
            color: var(--primary);
            font-weight: bold;
        }
    }
}

.cards {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    

    li {
    display: flex;
    flex-direction: column;
    position: relative;

    background-color: oklch(0.3069 0.1472 231.18 / 0.2);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 .2rem oklch(0 0 0 / .2),
                0 0 2rem oklch(0 0 0 / .1);

    min-width: 20rem;
    width: calc(33% - 2rem);  

    transition: background-color 0.3s ease-in-out;
        .content a:not(.overlay-link) {
            z-index: 1;
        }


        &:hover {
            background-color: oklch(0.3069 0.1472 231.18);
            color: var(--bg);

            a {
                color: var(--bg);
            }
        }

        .content :first-of-type:hover {        
            color: black;
            background-color: green;
        }
    }

    picture {
        order: -1;
    }

    .content {
        margin: 1rem;

        .overlay-link {
            position: absolute;
            inset: 0;
            text-indent: 100%;
            white-space: nowrap;
            overflow: hidden;
        }

        a:not(.overlay-link) {
            z-index: 1;
        }
    }
}


.typography {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    padding: 2rem;

    section{
        max-width: 65ch;
    }

    p,li{
        font-size: 1.125rem;
    }

    h1{
        font-size: 3.375rem;
    }
    h2{
        font-size: 2.25rem;
    }

    h3{
        font-size: 1.5rem;
    }

    h1,h2,h3{
        margin-block-start: 2.5rem;
        margin-block-end: 1rem;
    }

    p,ul{
        margin-block-start: 0;
        margin-block-end: 1.5rem;        
    }

    h2+h3{
        margin-block-start: 1rem;
    }

    .metadetails{
        font-style: italic;
    }

    .introduction{
        font-weight: 600;
        font-size: 1.25rem;
    }
}


#oef4 {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    a{
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
    }

    .mylink{
        a{
            color: oklch(50.724% 0.20816 29.223)
        }

        a::before{
            content: "x";
            margin-inline-end: 0.4rem;
        }
    }

    .mybutton a{
        display: inline-block;

        background-color: oklch(59.949% 0.13735 126.341);
        color: oklch(1 0.00011 271.152);

        padding-block: 0.6rem;
        padding-inline: 1.2rem;

        border-radius: 0.4rem;
    }


    .mylink a:hover,
    .mylink a:focus-visible {
        text-decoration: underline;
    }

    .mybutton a:hover,
    .mybutton a:focus-visible {
        background-color: #556b2f;
    }

}



