/* --------------------------------------------

Clean, simple and minimal responsive CSS grid
Developed by Jason Clark, Yellowfields*
January 2023

*/

html {
    color: rgb(56 56 56);
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-feature-settings: "kern"1, "dlig"1, "calt"1;
    font-size: 16px;
    font-smoothing: antialiased;
    font-weight: 400;
    line-height: 1.5rem;
    margin: 0;
    min-height: 100vh;
    -moz-font-feature-settings: "kern"1, "dlig"1, "calt"1;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    text-align: left;
    -webkit-font-feature-settings: "kern"1, "dlig"1, "calt"1;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: rgb(242 232 232);
    padding: 2rem;
}

/* Columns layout for Home */
.masonry-with-columns {
    columns: 5 16rem;
    column-gap: 1rem;
    margin: 0 auto;
    max-width: 84rem;
}

/* Columns layout for single page */
body.single .masonry-with-columns {
    columns: 1 20rem;
    column-gap: 1rem;
    margin: 0 auto;
    max-width: 84rem;
}

.logo {
    display: block;
    font-weight: 400;
    font-size: 1.3125rem;
    line-height: 1.75rem;
    position: relative;
    z-index: 99;
}

header {
    background-position: right top;
    background-size: contain;
    background-repeat: no-repeat;
    height: 12rem;
    margin: 0 auto 1rem auto;
    min-height: 160px;
    max-width: 84rem;
    position: relative;
}

footer {
    height: 2rem;
    margin: 0 auto;
    max-width: 84rem;
    padding-top: 1rem;
}

figure,
.masonry-with-columns div {
    margin: 0 0 0.25rem 0;
    object-fit: cover;
    padding: 0;
}

.masonry-with-columns img {
    margin-bottom: 0;
    width: 100%;
}

body.single .masonry-with-columns img {
    margin-bottom: 2rem;
    width: 100%;
}

figcaption {
    font-size: 1rem;
    line-height: 1.125rem;
}

h1 {
    font-weight: 300;
    font-size: 1.3125rem;
    line-height: 1rem;
    margin-top: 0;
    position: relative;
    z-index: 98;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.04rem;
    line-height: 1.5rem;
    margin: 1rem 1rem 2rem 0;
    padding-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 1rem 1rem 0;
}

p {
    font-size: 1.125rem;
    margin: 0 0 1rem 0;
}

body.single .masonry-with-columns p {
margin-top: 2rem;
}

.masonry-with-columns p {
    padding: 0;
}

body.single .masonry-with-columns p:last-child,
body.single .masonry-with-columns figcaption,
.masonry-with-columns p:last-child,
.masonry-with-columns figcaption {
    padding-bottom: 1rem;
}

body.single .masonry-with-columns div,
.masonry-with-columns div {
    display: inline-grid;
}

strong,
b {
    font-weight: 700;
}

blockquote {
    border-left: solid 8px rgb(248 248 248);
    color: rgb(56 56 56);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.75rem;
    margin: 1rem 0 2rem 0;
    max-width: 34rem;
    padding: 0.5rem 1rem 1rem 1.75rem;
    text-indent: -0.75rem;
}

q {
    font-size: inherit;
    font-weight: 400;
}

blockquote::before {
    content: "\201C";
}

blockquote::after {
    content: "\201D";
}

q::before,
cite::before {
    content: "\2018";
}

q::after,
cite::after {
    content: "\2019";
}

cite {
    font-style: normal;
}

p.author {
    color: rgb(56 56 56);
    font-size: 0.875rem;
    letter-spacing: 0.08rem;
    margin: -2.5rem 3rem 1.5rem 0;
    text-align: right;
    text-transform: uppercase;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* --------------------------------------------

Links */

a,
.masonry-with-columns a {
    color: rgb(56 56 56);
    font-weight: inherit;
    text-decoration: none;
}

a:hover {
    color: rgb(0 0 255);
}

figure a img {
    filter: grayscale(70%);
}

.masonry-with-columns a:hover img {
    filter: none;
    width: 100%;
}

h3 a {
    font-size: 1.25rem;
}

/* --------------------------------------------

Devices */

@media (min-width: 721px) and (max-width: 1080px) {
    header aside {
        bottom: 1rem;
        font-size: 3rem;
        line-height: 2.8rem;
    }
}

@media (max-width: 720px) {
    body {
        padding: 1rem;
    }

    header {
        background-image: none;
        height: auto;
        min-height: 160px;
    }

    aside {
        opacity: 0;
    }

    nav {
        display: block;
        margin: 0;
    }

    nav ul li {
        display: inline-block;
        margin-right: 0.8rem;
    }

    nav ul li a:hover::after {
        content: none;
    }

    footer {
        margin-bottom: 2rem;
    }

    h1 {
        margin-top: 0.4rem;
    }
}