* {
    box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
    background: url('/images/background.jpg');
    font-family: 'Mohave', sans-serif;
    font-weight: lighter;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

.container {
    display: grid;
    grid-template-rows: 50px 267px 1fr;
}

.logo {
    background: url(/images/logo.png) center center no-repeat;
}

nav {
    background: white;
    text-align: center;
    font-size: 9px;
    display: flex;
    align-content: center;
    justify-content: center;
    column-gap: 4ch;
    height: 50px;
}


nav a {
    /* display: block; */
    font-size: 2em;
    text-align: center;
    color: #16403c;
    text-decoration: none;
    margin-top: 1ch;
    line-height: 37px;
}

.content {
    padding: 3ch;
    background: white;
    width: 100%;
    height: 100%;
}

h1 {
    text-align: center;
}

.patterns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 70px;
}

.patterns div {
    display: flex;
    width: 340px;
    height: 240px;
    border-radius: 10px;
    text-align: center;
    font-size: 25px;
    flex-direction: column;
    justify-content: center;
}

.patterns div:nth-child(1) {
    background: url(/images/licensed_background.jpg);
}

.patterns div:nth-child(2) {
    background: url(/images/available_background.jpg);
    padding: 45px 45px 0 45px;
}

.patterns div p {
    font-size: 15px;
}

.patterns div a {
    color: #16403c;
}

.section {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-areas:
        "photo copy";
    grid-template-columns: 350px 1fr;
    grid-gap: 4ch;
    margin-bottom: 70px;
}

.section.reversed {
    grid-template-areas:
        "copy photo";
    grid-template-columns: 1fr 350px;
}

.section h1 {
    text-align: left;
    margin: 1ch 0;
}

.section img {
    grid-area: photo;
}

.section div {
    grid-area: copy;
}

.ourstory {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 70px;
}

.contact {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}

.contact a {
    color: #16403c;
    font-size: 20px;
    position: relative;
}

.insta {
    margin-left: 22px;
}

.insta::before {
    content: url(/images/instagram.png);
    position: absolute;
    width: 24px;
    height: 24px;
    left: -31px;
}

/* .studio {
    width: 100%;
    max-width: 800px;
    height: auto;
    background: url(../images/studio.png) no-repeat;
    background-size: cover;
} */

img.studio {
    width: 100%;
}

@media (max-width: 767px) {
    nav {
        display: flex;
        flex-direction: column;
        height: unset;
        grid-area: nav;
    }
    

    .container {
        display: grid;
        grid-template-areas:
            "logo"
            "nav"
            "content";
        grid-template-rows: 100px max-content 1fr;
    }

    .logo {
        background: url(/images/logo.png) center center no-repeat;
        grid-area: logo;
        height: 100px;
        background-size: 130px;
    }

    .section {
        display: flex;
        flex-direction: column;
        grid-gap: 2ch;
    }

    .section img {
        max-width: 350px;
        margin: 0 auto;
    }

    .patterns div {
        height: 170px;
        margin-bottom: 1ch;
    }
}

