body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
}
body {
    color: #888;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
    color: #222;
}
header {
    position: relative;
    display: block;
    background-image: linear-gradient(#000, #000), url("/assets/banner-students.jpg");
    background-blend-mode: saturation;
    background-size: cover;
    height: 50vh;
    max-height: 300px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    background-position: center;
}
header.tall {
    max-height: 600px;
}
header.trades {
    background-image: linear-gradient(#000, #000), url("/assets/banner-trades.jpg");
}
header.construction {
    background-image: linear-gradient(#000, #000), url("/assets/banner-construction.jpg");
}
header::before, section.i_am_a a::before, section.quotes::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.5;
    transition: opacity 0.2s;
    content: "";
    z-index: 0;
}
header *, section.i_am_a a *, section.quotes * {
z-index: 1;
}
a {
    transition: color 0.2s;
    transition: background 0.2s;
}
header a, section.i_am_a a {
    color: #fff;
    text-decoration: none;
    margin: 1em;
}
header a:hover, header a:focus {
    color: #d53b38;
}
header > a > img {
    height: 60px;
    margin: 1rem;
}
header > nav > ol {
    list-style-type: none;
    display: flex;
    padding: 0;
}
section.plain {
    display: block;
}
section.i_am_a {
    display: flex;
    gap: 1rem;
    padding: 0;
    color: #fff;
    flex-wrap: wrap;
}
section.i_am_a a {
    position: relative;
    background-size: cover;
    height: 20rem;
    width: 14rem;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
section > hgroup {
    width: 100%;
}
section.people hgroup {
    text-align: center;
}
section.people {
    flex-wrap: wrap;
}
section.people div {
    height: 20rem;
    width: 14rem;
    padding: 1rem;
    border-radius: 1.5rem;
    background-position: center;
    background-size: cover;
}
section.people div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}
section.people div::before {
    background-image: linear-gradient(transparent, black);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
section.people div * {
    z-index: 1;
    color: #fff;
    margin: 0;
}
section.i_am_a a:hover::before, section.i_am_a a:focus::before {
    opacity: 0;
}
section.i_am_a a div:first-child {
    font-size: 1.5rem;
}
section.i_am_a a div:last-child {
    font-size: 2.5rem;
    font-weight: bold;
}
section.thumb {
    display: flex;
    padding: 3rem;
    gap: 3rem;
}
section.thumb > img:first-child {
    border-radius: 1.5rem;
    flex: 1;
    height: 20em;
}
div.column {
    display: flex;
    flex-direction: column;
}
hgroup p {
    color: #d53b38;
    font-size: 1.5rem;
    margin: 0;
}
hgroup h1 {
    margin-top: 0em;
    font-size: 2.5rem;
    margin-bottom: 0.25em;
}
main {
    flex-grow: 1;
}
main section:nth-child(2n) {
    background-color: #ededed;
}
.button {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background-color: #d53b38;
    padding: 1rem 2rem;
    border-radius: 100em;
    align-self: flex-start;
}
.button:hover, .button:focus {
    background-color: #222;
}
main section a {
    color: #d53b38;
    text-decoration: none;
}
main section a:hover, main section a:focus {
    color: #ff4643;
}
main section {
    position: relative;
    display: flex;
    padding: 3rem;
    gap: 3rem;
    justify-content: center;
}
section.accent {
    background-image: linear-gradient(#000, #000), url("banner-students.jpg");
    background-blend-mode: saturation;
    background-size: cover;
}
section.accent::before {
    background-color: #d53b38;
    opacity: 0.9;
}
section.accent, section.quotes h1{
    color: #fff;
}
section.quotes h1 {
    font-size: 1.5rem;
}
section.quotes div {
    flex: 1;
    display: flex;
    flex-direction: column;
}
section.quotes blockquote {
    padding: 0;
    margin: 0;
}
section.quotes .attribution + .attribution {
    margin-top: 0;
}
section.col-2 {
    flex-wrap: wrap;
}
section.col-2 > * {
    width: calc(50% - 5rem);
}
section.cards {
    flex-wrap: wrap;
}
section.cards > :not(hgroup) {
    flex: 1;
    padding: 0.5rem 1rem;
    background-color: #ededed;
    border-radius: 1.5rem;
    font-size: 1.25rem;
}
section.cards > :not(hgroup) h1 {
    margin: 0;
}
section.cards a, section.cards a h1 {
    color: #fff;
}
section.cards a {
    background-color: #d53b38;
}
section.cards a:hover {
    background-color: #222;
    color: #fff;
}
section.cards p {
    margin-top: 0;
    margin-bottom: 0.25em;
}
footer {
    background-color: #221f20;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem;
}
footer section.spacer {
    flex-grow: 1;
}
footer section.logos {
    max-width: 12rem;
}
footer a {
    color: #aaa;
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}
footer h1 {
    color: #fff;
    font-size: 1.25rem;
}
footer ol {
    padding: 0;
    list-style-type: none;
}
footer li {
    margin-bottom: 0.75rem;
}
footer li img {
    width: 100%;
}
footer li p {
    margin: 0;
}
@media (width < 1200px) {
    section.i_am_a {
        padding: 1rem calc(50% - 20rem);
    }
}
@media (width < 900px) {
    section.thumb > img:first-child {
        height: 12em;
    }
}
@media (width < 700px) {
    section.i_am_a {
        padding: 1rem;
        gap: 1rem;
    }
    section:not(.i_am_a) {
        padding: 1rem;
        gap: 1rem;
    }
    section:not(.always-horizontal) {
        flex-direction: column;
    }
    footer {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }
    footer, section.thumb {
        gap: 1rem;
        padding: 1rem;
    }
    footer section.spacer {
        display: none;
    }
    footer section {
        flex: 1;
    }
    header {
        align-items: flex-start;
    }
    header nav ol {
        flex-direction: column;
        font-size: 1.25rem;
        text-align: right;
    }
    header nav li {
        margin-bottom: 0.5em;
    }
    section.col-2 > * {
        width: initial;
    }
}
