/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    background: transparent;
    color: whitesmoke;
    background-color: black;
    font-family: lato, sans-serif;
    font-weight: 300;
    line-height: 1.7rem;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    background: none;
    color: inherit;
    border-radius: 0;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}
header {
    height: 35vh;
    background-image: url('assets/images/perijove.jpg');
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

h1, h2 {
    font-weight: 100;
    text-transform: uppercase;
    text-shadow: 0 1px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 6rem;
}
h2 {
    font-size: 3rem;
    letter-spacing: .5rem;
    line-height: normal;
}
p {
    padding: 1rem 0;
}
main {
    padding: 1rem 10rem;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    align-items: center;
}

span {
    text-transform: uppercase;

}

iframe {
    width: 100%;
    height: 45vh;
}
figcaption {
    font-size: .8rem;
    font-style: italic;
    font-weight: 500;
}

@media (max-width: 790px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2rem;
    }
    main {
        padding: 1rem 5rem;
    }
}


@media (max-width: 690px) {
    main {
        padding: 1rem 2rem;
        font-size: .9rem;
        }
    }
@media (max-width: 490px) {
    header {
        height: 25vh;
    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 1.5rem;
        letter-spacing: .3rem;
    }
    header {
        gap: 1.5rem;
    }
    main {
        font-size: .8rem;
        gap: .1rem;
    }
    p {
        padding: .5rem 0;
    }
    iframe {
        height: 30vh;
} 
    figcaption {
        font-size: .7rem;
    }
}

@media (max-width: 320px) {
    header {
        height: 20vh;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1rem;
        letter-spacing: .2rem;
    }
    main {
        padding: 1rem 1rem;
        font-size: .7rem;
        gap: .1rem; 
        line-height: 1rem;
    }
}