body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.head {
    display: flex;
    flex-direction: column;
    color: #f7f7f7;
    background-color: #535C65;
    background-image: url("/assets/header.jpg");
    background-size: cover;
}

.head.is-large {
    background-image: url("/assets/header-large.jpg");
    height: 26em;
}

.hero {
    margin: 1em;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

blockquote {
    margin: 0 0 .5em 0;
    font-size: 1.6em;
}

.navs {
    display: grid;
    grid-template: 4em / 1fr 4em;
    grid-template-areas: "brand toggle";
    position: relative;
    line-height: 4em;
}

.nav-items {
    grid-area: menu;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4em;
    background-color: #535C65;
    width: 100vw;
}

.nav-toggle {
    grid-area: toggle;
    color: inherit;
    border: none;
    font-size: 2em;
    background-color: transparent;
    margin: 0;
}

.nav-items.is-folded {
    display: none;
}

.brand {
    grid-area: brand;
    font-size: 1.1em;
    font-weight: bold;
}

.brand, .nav-item {
    text-decoration: none;
    color: inherit;
    padding: 0 1em;
}

.foot {
    color: #f7f7f7;
    display: grid;
    background-color: #535C65;
    grid-template: 7em 7em 2em / 1fr;
    grid-template-areas: "info" "addr" "legal";
}

.foot a { color: inherit; }

.info {
    margin: 1em 2em 0 2em;
    display: grid;
    grid-area: info;
    grid-template: 2em 1em 3em / 1fr 64px;
    grid-column-gap: 2em;
    grid-template-areas: "title logo" "hr logo" "subtitle logo";
}

.info-title {
    grid-area: title;
    display: block;
    text-align: center;
}

.info-delim {
    grid-area: hr;
    align-self: flex-start;
    border: 1px solid #f7f7f7;
    margin: 0 4em;
}

.info-subtitle {
    grid-area: subtitle;
}

.info-logo {
    grid-area: logo;
}

.address {
    grid-area: addr;
    margin: 0 2em;
    font-style: normal;
    line-height: 1.4;
}

.legal {
    grid-area: legal;
    margin: 0;
    display: block;
    line-height: 2em;
    background-color: #B8BAC7;
    color: #535C65;
    text-align: right;
    padding: 0 1em;
}

.legal a {
    color: inherit;
}

.main {
    flex: 1;
    padding: 0 2em;
}

.grid {
    padding: 20px 0;
    margin: 0 auto;
    max-width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-gap: 20px;
    grid-auto-flow: row dense;
}

@media screen and (min-width: 48em) {
    .navs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: "brand menu";
    }
    .nav-toggle {display: none;}
    .nav-items {
        top: 0;
        width: 100%;
        display: flex !important;
        flex-direction: row;
        background-color: transparent;
        justify-content: flex-end;
    }
    .foot {
        color: #f7f7f7;
        display: grid;
        background-color: #535C65;
        grid-template: 9em 2em / auto 1fr auto;
        grid-template-areas: "info . addr" "legal legal legal";
    }
    .info, .address {
        margin: 2em;
    }
}