@media screen and (max-width: 768px) {
    html {
        font-size: xx-large;
    }
}

body {
    background-color: lavender;
    font-family: "Big Caslon";
    overflow: hidden;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 10vh;
    position: sticky;
}

@media screen and (max-width: 900px) {
    header {
        height: 20vh;
        flex-direction: column;
    }

    header>h1 {
        margin-bottom: 0;
    }
}

a {
    color: black;
}

h1>a {
    text-decoration: none;
}

nav>a {
    margin-left: 10px;
}

main {
    height: 90vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

section {
    height: 90vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media screen and (max-width: 900px) {
    section {
        scroll-padding-top: 20vh;
    }
}

#hero {
    width: 100%;
    height: 100%;

    background-image: url('/media/handstand.HEIC');
    background-size: 112%;
    background-position: top;
    background-repeat: no-repeat;
}

@media screen and (min-width: 900px) {
    #hero {
        background-image: url('/media/croc.jpeg');
    }
}

@media screen and (min-width: 1200px) {
    #hero {
        background-image: url('/media/croc-wide.jpeg');
    }
}

section>h2 {
    text-align: center;
}

section:not(#top) {
    max-width: 80vw;
    margin: 5em auto;
    padding: 0 2em;
}

section#about,
section#contact {
    max-width: 400px;
}