/* =========================================================

Basics

========================================================= */

html {
    font-family: sans-serif;
    font-size: 18px;
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px)  { /* iPad */
    html {
        font-size: 20px;
    }
}

body {
    padding: 0;
    margin: 0;
}

header, section, footer {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
    max-width: 30rem;
    padding: 0 1rem;
}

h1,
h2,
h3,
h4 {
    margin: 1em auto 0.8rem;
    line-height: 1.2;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child {
    margin-top: 0;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin: 0.8em auto 0.8em;
    line-height: 1.4;
}

a,
a:active,
a:visited {
    color: #00f;
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid #00f;
}


/* =========================================================

Header

========================================================= */

header {
    min-height: 60vh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    background-color: #cca;
    background-image: url(../image/header-image.jpg);
    background-size: cover;
    text-align: center;
    color: #fff;
}

header h1 {
    max-width: 40rem;
    font-size: 9vw;
}


@media screen and (min-width: 800px) {
    header h1 {
        font-size: 72px;
    }
}


/* =========================================================

Responsive Whitespace for Text Sections

========================================================= */

section > h2:first-child,
section > p:first-child {
    margin-top: 1rem;
}

section > p:last-child {
    margin-bottom: 2rem;
}

@media screen and (min-width: 620px) {
    section > h2:first-child,
    section > p:first-child {
        margin-top: 2rem;
    }
    section > p:last-child {
        margin-bottom: 3rem;
    }
}

@media screen and (min-width: 680px) {
    section > h2:first-child,
    section > p:first-child {
        margin-top: 3rem;
    }
    section > p:last-child {
        margin-bottom: 4rem;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px)  { /* iPad */
    section > h2:first-child,
    section > p:first-child {
        margin-top: 3.5rem;
    }
    section > p:last-child {
        margin-bottom: 4.5rem;
    }
}


/* =========================================================

Blocks

========================================================= */

.blocks > h2:first-child {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.container {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.block {
    padding: 0 0 2rem 0;
}

@media screen and (min-width: 480px) {
    .quarter {
        width: 50%;
    }
}

@media screen and (min-width: 960px) {
    .quarter {
        width: 25%;
    }
}


/* =========================================================

Team Member Blocks

========================================================= */

.team {
    font-size: 0.8rem;
    text-align: center;
    background: linear-gradient(to bottom right, #038, #00c);
    color: #fff;
}

.team img {
    width: 100px;
    border-radius: 50%;
    margin: 0 0 1rem;
}

.team a,
.team a:active,
.team a:visited {
    color: #fff;
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid #fff;
}
