@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    min-height: 100dvh;
    background-color: #2f2f2f;
    font-family: "Lato", sans-serif;
    color: #FFF;
}

h1, h2{
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
}

h2 {
    letter-spacing: 4px;
    font-size: 2.1rem;
}

header{
    min-height: calc(100dvh - 5.6rem);
    background-image:
        linear-gradient(180deg, rgb(0 0 0 / 25%) 0%, rgba(10, 10, 10, 0) 100%),  
        -webkit-image-set(
            url("sergio-sanchezmtz.png") 1x,
            url("sergio-sanchez.png") 2x);
    background-image: 
        linear-gradient(180deg, rgb(0 0 0 / 25%) 0%, rgba(10, 10, 10, 0) 100%),  
        image-set(
            url("sergio-sanchezmtz.png") 1x,
            url("sergio-sanchez.png") 2x);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
}

header nav{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    font-size: 1.3rem;
    background: #000;
}

footer span {
    color: #dbff52;
    text-decoration: none;
}

nav.on-scroll {
    position: fixed;
    top: 0;
    background: #000;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0;
    transition: 1s;
}

nav.on-scroll h1 {
    font-size: 2.2rem;
}

nav.on-scroll h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

@media (max-width: 550px) {
    footer {
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }
    
    header {
        min-height: calc(100dvh - 8.2rem);
    }
}