html {
    font-family: serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: black;
    background-color: white;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    margin: 0;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
}

#headerbg {
    background-color: #d5f9f5;
    max-width: 52rem;
    margin: 1rem auto 1rem auto;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

header h1 {
    padding: 2rem 0 2rem 0;
}

main {
    margin: 1rem auto 1rem auto;
    padding: 0 1rem 0 1rem;
    max-width: 52rem;
}

main p {
    text-indent: 1.5em;
    margin: 0.5em 0 0.5em 0;
}

footer {
    margin-top: auto;
    padding: 0 1rem 0 1rem;
}

footer > p {
    max-width: 52rem;
    font-size: small;
    margin: 1rem auto 1rem auto;
}

div#quotes {
    line-height: 1.1;
    padding: 1rem 0 1rem 0;
}

div#quotes blockquote {
    margin-bottom: 0;
}

div#quotes blockquote p {
    margin-bottom: 0;
}

blockquote p {
    font-style: italic;
}

p.citation {
    margin-top: 0;
    text-align: right;
}

@media (min-width: 30rem) {
    #headerimg {
        position: absolute;
        top: 3rem;
        left: -2rem;
        max-height: 12rem;
    }

    header {
        min-height: 15rem;
    }
}

@media (max-width: 30rem) {
    header h1 {
        padding-top: 0;
    }

    #headerimg {
        padding-top: 1rem;
        max-height: 3rem;
    }
}
