:root {
    --primary-color: #282622;
    --muted-color: #CECCC8;
    --highlight-color: #E34234;
    --bg-color: #F8F6F2;
    --lightest-color: #fff;
    --font-serif: 'Source Serif Pro', serif;
    --font-sans: 'Lato', sans;
}

body {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: min(max(1rem, 4vw), 22px);
    box-sizing: border-box;
}

.wrapper {
    padding: 0 1em;
    margin: 0 auto;
    box-sizing: border-box;
}
@media only screen and (min-width: 600px) {
    .wrapper {
        max-width: 900px;
    }
}

.source {
    text-align: right;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
}
h1 {
    margin: 0 0 1em 0;
}
@media only screen and (min-width: 600px) {
    h1 {
        font-size: 2.5em;
    }
}

strong {
    font-weight: 700;
}

blockquote {
    border-left: 4px solid var(--highlight-color);
    margin: 1.5em 16px;
    padding: 0.5em 32px;
}

blockquote p {
    display: inline;
    font-family: var(--font-sans);
    font-style: italic;
}

blockquote .quote-source {
    display: block;
    width: 100%;
    text-align: right;
    padding-top: 16px;
    font-size: 0.75em;
    opacity: 0.7;
}
.hyphenate {
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    /* legacy properties */ 
    -webkit-hyphenate-limit-before: 3; 
    -webkit-hyphenate-limit-after: 2;  
    /* current proposal */ 
    -moz-hyphenate-limit-chars: 6 3 2;     /* not yet supported */ 
    -webkit-hyphenate-limit-chars: 6 3 2;  /* not yet supported */ 
    -ms-hyphenate-limit-chars: 6 3 2; 
    hyphenate-limit-chars: 6 3 2;
}

.centered {
    margin: 0 auto;
    text-align: center;
}

.full-width: {
    width: 100%;
}

p.small {
    font-size: 0.75em;
}

p.muted {
    opacity: 0.6;
}

a {
    transition: color 0.2s ease;
    color: var(--highlight-color);
}
a:hover {
    color: var(--primary-color);
}

.button {
    transition: color 0.2s ease, background-color 0.4s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.3s ease-out;
    display: inline-block;
    padding: 1em 2em;
    color: var(--lightest-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: normal;
    -webkit-appearance: none;
    background-color: var(--highlight-color);
    border-radius: 4px;
    border: 0;
    box-shadow: none;
}
.button:hover {
    background-color: var(--primary-color);
    color: var(--lightest-color);
    transform: translateY(-6px);
    box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.1);
}

.site-nav a.button {
    background-color: var(--bg-color);
    box-shadow: none;
    color: var(--primary-color);
}
.site-nav a.button:hover {
    background-color: var(--muted-color);
    color: inherit;
    transform: translateY(-1px);
}

/* Sections */
header.site-nav {
    margin: 1.5em 0 4em 0;
}
.site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.site-nav li {
    display: inline-block;
    height: 64px;
    line-height: 64px;
    text-align: center;
}
.site-nav a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.75em;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1em;
}
.site-nav a:hover {
    color: var(--highlight-color);
}
.site-nav img {
    height: 64px;
}
.site-nav a.logo {
    transition: opacity 0.3s ease;
}
.site-nav a.logo:hover {
    opacity: 0.8;
}
.site-nav li.nav-left {
    text-align: left;
}
.site-nav li.nav-right {
    display: inline-block;
    text-align: right;
}

.intro {
    padding-bottom: 3.5em;
}
h1 {
    font-weight: 400;
}
@media only screen and (min-width: 600px) {
    .intro h1 {
        font-size: 3.5em;
    }
}
.intro p {
    margin-bottom: 3em;
}
.intro strong {
    color: var(--highlight-color);
}

.clients {
    padding: 3em;
    background-color: var(--muted-color);
    margin-bottom: 3em;
    border-radius: 4px;
}
.clients header {
    padding-bottom: 1.5em;
    text-align: center;
}
.clients h2 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
@media only screen and (min-width: 600px) {
    .clients {
        padding: 2em;
    }
}

.quotes {
    margin-bottom: 4em;
}

@media only screen and (min-width: 800px) {
    .quotes {
        display: flex;
    }
    
    .quote-block:first-child {
        margin-right: 1em;
    }
}

.quote-block {
    flex: 1;
}

.work-with-us {
    margin-bottom: 1.5em;
}

.separator {
    width: 100%;
    height: 24px;
    margin: 3em 0 4em 0;
    background: url("../img/icon--anvil.svg") no-repeat center center;
}

.wrapper-footer {
    background-color: var(--primary-color);
    color: var(--muted-color);
}

footer {
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
    padding: 1em 0 0.5em 0;
}

footer h2 {
    font-size: 1em;
    padding-bottom: 1em;
}

footer svg {
    fill: var(--muted-color);
}

footer a {
    transition: opacity 0.2s ease, transform 0.3s ease-out;
}
footer a:hover {
    opacity: 0.7;
}

.social {
    width: 10em;
    margin: 0 auto;
    display: grid;
    gap: 0.75em;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 3em;
}

.social-item a {
    padding: 0.5em;
}

/* Logos Grid */
.grid-logos {
    display: grid;
    gap: 3em;
    grid-template-columns: 1fr 1fr;
}

.grid-item {
    text-align: center;
}
.grid-item img {
    width: 100%;
}

@media only screen and (min-width: 600px) {
    .grid-logos {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 1em;
        gap: 3em;
    }
}

/* Work page */
.work {
    color: var(--lightest-color);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.work.cards-and-castles {
    background-color: #9D660B;
    background-image: url("/img/work-bg--cardsandcastles.jpg");
}
.work.materia-magica {
    background-color: #204F7B;
    background-image: url("/img/work-bg--materiamagica.jpg");
}
.work.sunday-music {
    background-color: #8F5DB7;
    background-image: url("/img/work-bg--sundaymusic.jpg");
}
.work.leyline {
    background-color: #28448E;
    background-image: url("/img/work-bg--leyline.jpg");
}
.work.guangzhou-charge {
    background-color: #276E82;
    background-image: url("/img/work-bg--guangzhoucharge.jpg");
}

.work-block {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1em;
}
.work-block h2 {
    font-size: 1em;
    font-family: var(--font-sans);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.work-block h3 {
    margin-top: 0.5em;
    font-size: 2em;
    font-weight: 700;
}
.work-block img {
    max-height: 4rem;
    max-width: 8rem;
}

.work-end {
    margin: 4em 0 1em 0;
}
.work-end p {
    margin-bottom: 3em;
}

/* Contact page */
.contact {
    margin-bottom: 4em;
}
input, textarea {
    padding: 0.5em;
    border: 1px solid var(--muted-color);
    border-radius: 4px;
    resize: none;
    width: 100%;
    box-sizing: border-box;
}
input[type=submit] {
    width: auto;
    margin: 0 auto;
}

textarea {
    height: 4em;
    line-height: 1.5;
}

label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75em;
    opacity: 0.8;   
    margin-bottom: 4px;
}

.full-width {
    grid-column: 1 / 3;
}

.center-button {
    text-align: center;
}

.form-main ul {
    list-style-type: none;
    padding-inline-start: 0;
}

.form-main ul li {
    margin-bottom: 0.5em;
}

@media only screen and (min-width: 600px) {
    .form-main {
        max-width: 75%;
        margin: 2em auto;
    }
    .form-main ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1em;
    }
}

.contact-sent {
    margin-bottom: 12em;
}

.contact-sent p {
    margin-bottom: 3em;
}