:root{
    --primary-color: #202020;
    --secondary-color: #b2b2b2;
    --hover-color: #40404088;
    --text-color: #c9c9c9;
    --dark-text-color: #2f2f2f; 
    --accent-color: #0984e3;
    --link-color: #6c5ce7;
    --overlay-color: rgba(0,0,0,.5);

    --gallery-scroll-time: 100s;
    --gallery-height: 500px;

    --border-radius-big: 24px;
    --border-radius-medium: 18px;
    --border-radius-small: 10px;
}
*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-family: Poppins, Arial, Helvetica, sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
}
body{
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--primary-color);
}
h1{
    text-align: center;
    font-weight: 200;
    text-transform: uppercase;
    font-size: clamp(1.5em, 2em, 4vw);
    letter-spacing: .175em;
    font-family: 'Courier New', Arial, Helvetica, sans-serif;
}
h2{
    text-align: center;
    font-weight: 550;
    font-size: clamp(1.25em, 1.5em, 3.25vw);
    letter-spacing: .05em;
}
p{
    font-weight: 350;
    font-size: clamp(1em, 1em, 1.5vw);
    letter-spacing: .03em;
}
.link{
    text-decoration: none;
    color: var(--link-color);
    position: relative;
}
.link::after{
    content: '';
    position: absolute;
    height: 2px;
    inline-size: 100%;
    inset-inline-start: 0;
    inset-block-end: 0;
    background-color: var(--link-color);
    transition: transform .3s ease;
    transform: scaleX(0);
    transform-origin: bottom right;
}
.link:hover::after{
    transform: scaleX(100%);
    transform-origin: bottom left;
}
.website-element{
    border-bottom: 2px solid var(--text-color);
    padding: 1em 0;
    padding-bottom: 2em;
    margin: 2em 0;
    scroll-margin-block-start: 7vh;
}
.website-element#credits{
    border-bottom: none;
}
nav{
    position: fixed;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--hover-color);
    z-index: 1;
    width: 100vw;
    top: 0;
}
nav ul{
    list-style: none;
    display: flex;
}
nav .home-li{
    margin-right: auto;
}
nav li{
    display: flex;
}
nav a{
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: 1em 2em;
    transition: background 150ms ease;
}
nav a:hover{
    background-color: var(--hover-color);
}
nav a svg, nav a img{
    margin-right: 1em;
}
nav a img{
    height: 24px;
}
#open-sidebar-btn{
    display: none;
    background: var(--primary-color);
    border-radius: var(--border-radius-small);
    border: none;
    padding: .5em;
    margin: .5em;
    height: calc(40px + 1em);
    width: calc(40px + 1em);
    cursor: pointer;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
}
#close-sidebar-btn{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}
#overlay{
    background: var(--overlay-color);
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9;
}
@media screen and (max-width: 1300px){
    #open-sidebar-btn, #close-sidebar-btn{
        display: block;
    }
    #open-sidebar-btn{
        border: 1px solid var(--hover-color);
    }
    .website-element{
        scroll-margin-block-start: 3vh;
    }
    nav{
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(20em, 100%);
        z-index: 10;
        border-left: 1px solid var(--hover-color);
        transition: right 400ms ease-out;
    }
    nav.show{
        right: 0;
    }
    nav.show ~ #overlay{
        display: block;
    }
    nav ul{
        width: 100%;
        flex-direction: column;
    }
    nav a{
        width: 100%;
        padding-left: 2.5em;
    }
    nav .home-li{
        margin-right: unset;
    }
}