 @import url('https://fonts.googleapis.com/css2?family=La+Belle+Aurore&family=Lato&family=Caveat&display=swap');

:root {
    --fg: black;
    --bg: #fff;
}

body {
    accent-color: red;
    color: var(--fg);
    background: var(--bg);
    font-family: 'Lato', sans;
    min-height: 100vh;
    margin: 0 3em;
    display: flex;
    flex-flow: column wrap;
    align-content: center;
}

header {
    background: rgb(189, 197, 200);
    /* background: url(./bg-snow2.jpg);
    background-size: cover;
    background-position: center; */
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
    height: 40vh;
    border: 1px solid var(--fg);
    border-top: none;
    color: black;
    overflow: hidden;
    position: relative;
}

header * {
    z-index: 1;
}

#bg {
    position: absolute;
    width: calc(100% + 10vw);
    height: calc(100% + 10vh);
    left: -5vw;
    top: -5vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

header h1 {
    font-size: 5rem;
    font-family: 'La Belle Aurore';
    line-height: 1.2em;
    margin: 1rem auto;
    padding: 0 2rem;
    font-weight: normal;
}


main {
    width: 100%;
    max-width: 700px;
    margin: 1.5em auto;
    padding: 1em;
    box-sizing: border-box;
    text-align: justify;
}

.note {
    display: inline-block;
    font-family: cursive;
    font-family: 'Caveat';
    margin: 0 2ch;
    opacity: 0.7;
    color: #023;
    transform: scale(1.2);
}

@media only screen and (min-width: 1450px) {
    body {
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        flex-flow: row wrap;
    }
    header {
        width: 42em;
        height: 100vh;
        align-content: center;
        margin: 0;
        border-bottom: none;
        border: 1px solid var(--fg);
        border-top: none;
        border-bottom: none;
    }

    header h1 {
        font-size: 10rem;
    }

    main {
        margin: 1vw;
        width: 700px;
    }
    
}

@media only screen and (max-width: 23em) {
    body {
        margin: 0;
    }

    header, main {
        width: 100%;
    }

    main {
        text-align: left;
    }

}

a {
    text-decoration: none;
    color: rgb(20, 136, 159)
}

a:visited {
    color: rgb(44, 39, 197)
}

a:hover {
    text-decoration: underline;
}