main{
    display: flex;
    flex-direction: column;
    justify-items: center;
    overflow-x: clip;

    margin-block: 9rem 15rem;
    padding-inline: 3rem;
    gap: 4rem;
}

@media screen and (max-width: 600px){
    main{
        margin-block: 6rem 10rem;
        padding-inline: 1rem;
        gap: 2rem;
    }
}

/* intro */

.intro{
    width: 100%;
    gap: .5rem;
    display: grid;
}

.wordmark-logo{
    display: flex;

    max-width: 1400px;
    margin-inline: auto;
}

.intro p{
    max-width: 700px;
    text-align: center;
    margin-inline: auto;
}

/* games list */

.list{
    display: grid;
    gap: 2rem;
}

.list-item{
    text-decoration: none;
}

.line{
    display: none;
}

.stack{
    display: block;
}

.description{
    position: relative;
    padding-bottom: 1.5rem;
    border: 0 solid var(--black-600);
    border-bottom-width: 5px;
    padding-inline: 3rem;
    color: black;
}

.blurb{
    width: 60%; 
    max-width: 750px;
    padding-top: .5rem;
}

.box, .prompt, .modifier{
    pointer-events: none;
    position: absolute;
}

.box{
    width: 38%;
    right: 3%;
    top: -1rem;
    z-index: 4;
}

.prompt{
    width: 17%;
    right: 2rem;
    top: 6rem;
    margin-right: 20%;
    z-index: 6;
}

.modifier{
    width: 17%;
    right: 24rem;
    top: 0;
    z-index: 5;
}

.learn-more{
    position: relative;
    
    background: white;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    gap: 1ch;
    padding-block: .25rem .5rem;
    padding-inline: 1.5rem;
    color: black;

    h2{
        z-index: 3;
        padding: 0;
        transition: color .5s ease;
    }

    .dark{
        fill: var(--black-600);
        transition: fill .5s ease;
    }

    .light{
        fill: var(--black-400);
        transition: fill .5s ease;
    }

    svg{
        z-index: 3;
        width: 60px;
    }
}

.learn-more::after{
    transform: translateX(100%);
    content: "";
    background-color: var(--black-600);

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    
    transition: transform .5s ease;
}

.list-item:hover,
.list-item:active,
.list-item:focus {
    cursor: pointer;

    .dark{
        fill: var(--white-600)
    }

    .light{
        fill: white !important;
    }

    .learn-more h2{
        color: white !important;
    }

    .learn-more::after{
        transform: translateX(0%);
    }
}

.block{
    background-color: var(--blue-400);
    color: white;

    display: flex;
    width: fit-content;
    text-align: center;

    margin-inline: auto;
    padding-inline: 4rem;
    padding-block: 1rem;

}

.outreach{
    display: flex;
    flex-wrap: wrap;
    column-gap: .5ch;
    justify-content: center;
    align-items: center;

    margin-inline: auto;
    text-align: center;
    width: fit-content;

    a{
        position: relative;
        z-index: 3;
        padding: .4rem;
        overflow-x: clip;

        font-family: "sofia-pro", sans-serif;
        font-variant-alternates: styleset(alt-chars);
        line-height: 1;
        font-size: var(--fs-400);

        color: black;
        text-decoration-color: black;
        overflow: hidden;

        transition: color .5s ease;
    }

    a::after{
        content: "";
        color: white;
        transform: translateX(101%);
        background-color: black;
        transition: transform .5s ease;

        z-index: -1;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
    }

    a:hover,
    a:active,
    a:focus {
        color: white;
        text-decoration-color: black;
    }

    a:hover::after,
    a:active::after,
    a:focus::after {
        transform: translateX(0);
    }
}

@media screen and (max-width: 900px){
    .list{
        gap: 1rem;
    }

    .description{
        padding-inline: 1rem;
        padding-bottom: 0;
        border-bottom-width: 4px;

        .blurb{
            max-width: unset;
            width: 100%;
            text-align: center;
        }

        .box{
            transform: translateX(-50%);
            margin-left: 50%;
            width: 75%;

            position: relative;
            top: unset;
        }
    }

    .learn-more{
        svg{
            width: 40px;
        }

        h2{
            font-size: var(--fs-400)
        }
    }
    
    .line{
        display: block;
    }

    .stack{
        display: none;
    }
    
    h2{
        text-align: center;
    }

    .block{
        padding-inline: 2rem;
    }

    .outreach a{
        font-size: var(--fs-300)
    }
}

@media screen and (max-width: 400px){
    .outreach a{
        font-size: var(--fs-200);
    }
    .learn-more h2{
        font-size: var(--fs-300)
    }
}