html {
    box-sizing: border-box;
    color: #111111;
    background: #fdf6e5;
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
}
  
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    line-height: 1.4;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

body:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 6rem;
    background: #ffc93c;
}

@media screen and (max-width: 600px) {
    body {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 1100px) {
    body:before {
        height: 12rem;
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    body:before {
        height: 8rem;
        width: 100%;
        position: fixed;
        z-index: 3;
    }
}

img {
    display: block;
    max-width: 100%;
}

hr {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 0;
    border-bottom: 5px dashed #ffc93c;
    opacity: 1;
}

a {
    color: #111;
    font-weight: 600;
    position: relative;
    text-decoration: underline #ffc93c;
}

a:hover:after {
    opacity: 0;
}

@media screen and (max-width: 800px) {
    a {
        text-decoration: underline dotted;
    }
    
    a:after {
        display: none;
    }
}

main {
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: #d59a00;
    margin-top: 0;
    font-weight: 600;
}

h1 {
    margin-bottom: 2rem;
}

@media screen and (min-width: 799px) {
    h2 {
        margin-bottom: 2rem;
        font-size: 3rem;
    }
}

h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h4 {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

@media screen and (max-width: 600px) {
    h4 {
        padding-left: 1rem;
    }
}

ul {
    padding-left: 3.5rem;
    list-style-type: square;
    font-size: 1.2rem;
}

@media screen and (max-width: 600px) {
    ul {
        padding-left: 1.5rem;
    }
}

.wrapper {
    margin: auto;
    max-width: 54rem;
    padding: 2rem 2rem 8rem;
    position: relative;
    z-index: 2;
}

.homegame {
    position: relative;
    z-index: 3;
    background: transparent;
    transition: background-color 0.4s ease;
    z-index: 2;
    line-height: 1;
    margin-top: 6rem;
    margin-bottom: 6rem;
    min-height: 500px;
}

.homegame:after {
    content: "";
    position: absolute;
    width: calc(100% + 4rem);
    height: 14rem;
    background-image: url("../img/yellow logo.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    top: -7rem;
    left: 50%;
    z-index: 0;
    transform: translate(-50%, 0);
    font-size: 15rem;
    color: #ffc93c;
    opacity: 1;
    font-weight: bold;
    letter-spacing: -15px;
    pointer-events: none;
}

.homegame canvas {
    margin-bottom: -7px;
    border-radius: 20px 0;
    box-shadow: 0px 0px 15px 15px rgba(0,0,0,0.1);
}

@media screen and (max-width: 1000px) {
    .homegame:after {
        top: -7rem;
        left: 0;
        transform: translate(-2rem, 0);
    } 
}

@media screen and (max-width: 700px) {
    .homegame {
        margin-top: 2rem;
    }
    
    .homegame:after {
        left: 1rem;
        bottom: auto;
        width: 20rem;
    }

    .homegame canvas {
        border-radius: 0;
        box-shadow: none;
    }
}

@media screen and (max-width: 700px) {
    .homegame {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -3rem;
        border-radius: 0;
    }

    .wrapper.homepage {
        padding-top: 8rem;
        display: flex;
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 1100px) {
    .wrapper {
        padding-top: 4rem;
    }

}

@media screen and (max-width: 700px) {
    .wrapper {
        padding-top: 12rem;
    }
}

.metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media screen and (max-width: 800px) {
    .metadata {
        flex-direction: column;
        align-items: flex-start;
    }
}

.datetime {
    display: flex;
    align-items: center;
}

.datetime__date {
    margin-left: 0.5rem;
    margin-right: 2rem;
}

.author {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 800px) {
    .author {
        margin-top: 0.5rem;
    }
}

.author__name {
    margin-left: 0.5rem;
}

.tags {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tags__tag {
    text-decoration: none;
    background: #ffc93c;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.4s ease;
}

.tags__tag:first-child {
    margin-left: 1rem;
}

.tags__tag:hover {
    background: #d59a00;
}

.static {
    padding-right: 4rem;
}

.static img {
    filter: grayscale(100%) contrast(120%);
    width: 20rem;
    border-radius: 1rem;
}

.header {
    padding: 4rem;
    position: relative;
    z-index: 5;
}

@media screen and (max-width: 700px) {
    .header {
        padding: 2rem;
        position: fixed;
    }
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header__logo {
    position: relative;
    z-index: 3;
    display: block;
    width: 4rem;
    height: 4rem;

    transition: transform 0.4s ease;
}

@media screen and (min-width: 799px) {
    .homepage-navigation .header__logo {
        filter: invert(100%);
    }
}

.header__logo:hover {
    transform: rotate(-20deg);
}

.header__menu-button {
    display: none;
}

.header__nav {
    display: flex;
    width: 50%;
    justify-content: center;
}

.header__nav-link {
    color: #111111;
    display: block;
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
}

.homepage-navigation {
    position: relative;
    z-index: 5;
}

@media screen and (min-width: 799px) {
    .homepage-navigation .header__nav-link {
        color: #fff;
    }
}

.header__nav-link:not(:first-child) {
    margin-left: 2rem;
}

.header__nav-link:after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    border-bottom: 0.25rem solid #ffc93c;
    transform: translate(0, 1rem);
    opacity: 0;

    transition: all 0.4s ease;
}

.header--contact .header__nav-link:after {
    border-bottom: 0.25rem solid #111;
}

.header__nav-link:hover:after,
.header__nav-link.active:after {
    transform: translate(0,0);
    opacity: 1;
}

@media screen and (max-width: 850px) {
    .header__nav {
        width: 75%;
    }
}

@media screen and (max-width: 700px) {
    .header__menu-button {
        display: block;
        position: fixed;
        top: 2.5rem;
        right: 2rem;
        border: 0;
        background: none;
        padding: 0;
        margin: 0;
    }

    .header__menu-button svg {
        width: 3rem;
        height: 3rem;
    }

    .header__menu-button .open { display: block; }
    .header__menu-button.active .open { display: none; }
    .header__menu-button .close { display: none; }
    .header__menu-button.active .close { display: block; }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: #ffc93c;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translate(0, -100%);
        transition: transform 1s ease;
    }

    .header__nav.active {
        transform: translate(0, 0);
    }

    .header__nav-link {
        font-weight: 300;
        font-size: 3rem;
        padding: 1rem;
        transition: all 0.4s ease;
    }

    .header__nav-link:hover {
        background: #111;
        color: #fff;
    }

    .header__nav-link:not(:first-child) {
        margin: 1rem 0 0 0;
    }
}


.header__social {
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

.header__social-link {
    color: #111111;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: color 0.4s ease;
}

@media screen and (min-width: 799px) {
    .homepage-navigation .header__social-link {
        color: #fff;
    }
}

.header__social-link:hover {
    color: #ffc93c;
}

.header__social-link:after {
    content: "";
    position: absolute;
    border: 0;
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 50%;
    transform: scale(0, 0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: -1;
}

.header__social-link:hover:after {
    opacity: 1;
    transform: scale(1, 1);
}

.header__social-link:first-child:after {
    left: 0.1rem;
}

.header__social-link:hover:after {
    opacity: 1;
    transform: scale(1.75, 1.75);
}

.header__social-link:not(:first-child) {
    margin-left: 1rem;
}

@media screen and (max-width: 850px) {
    .header__social {
        width: 100%;
        justify-content: center;
        position: fixed;
        bottom: 0;
        left: 0;
        background: #111;
        z-index: 2;
    }

    .header__social-link {
        width: 33.333%;
        color: #d59a00;
        padding: 1rem;
    }

    .header__social-link:not(:first-child) {
        border-left: 2px solid #000;
        margin: 0;
    }

    .header__social-link:first-child:after,
    .header__social-link:after {
        width: 5rem;
        height: 5rem;
        left: calc(50% - 2.5rem);
        top: calc(50% - 2.5rem);
    }
}

.feather {
    width: 2rem;
    height: 2rem;
}

.contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffc93c;
    padding: 5rem;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    
}

.contact a {
    position: relative;
    display: block;
    font-weight: 300;
    letter-spacing: 3px;
    background: #111;
    color: #fff;
    padding: 2rem;
    z-index: 10;
    overflow: hidden;
}

.contact a:before {
    content: "nice to meet you";
    background: #fff;
    color: #111;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12;
    transform: translate(0, -100%);
    transition: transform 0.4s ease;
}

.contact a:hover:before {
    transform: translate(0, 0);
}

.contact a:after {
    display: none;
}

@media screen and (max-width: 800px) {
    .contact {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 600px) {
    .contact {
        font-size: 1.5rem;
    }
}

.projects {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-grow: unset;
}

.projects__item {
    display: block;
    position: relative;
    margin-bottom: 2rem;
    width: calc(50% - 1rem);
    padding-bottom: calc(50% - 1rem);
    background: #666;
    overflow: hidden;
    border-radius: 0.5rem;
    transform: rotate(0);
    transition: transform 0.4s ease;
}

.projects__item:hover {
    transform: rotate(-2deg);
}

.projects__item:nth-child(even):hover {
    transform: rotate(2deg);
}

.projects__link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.projects__link:after {
    display: none;
}

.projects__name {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.0));
    color: #fff;
    transform: translate(0, 50%);
    transition: transform 0.4s ease;
}

.projects__thumbnail {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.projects__link:hover .projects__name {
    transform: translate(0, 0);
}

@media screen and (max-width: 700px) {
    .projects__item {
        width: 100%;
        padding-bottom: 66%;
    }

    .projects__link .projects__name {
        transform: translate(0, 0);
    }
}

.single-project__hero {
    width: 100%;
    display: block;
    margin-bottom: 2rem;
    min-height: 15rem;
    object-fit: cover;
}

.hero {
    position: relative;
    top: -15rem;
    display: block;
    min-height: 45rem;
    height: 50vh;
    margin-bottom: -25rem;
}

@media screen and (min-width: 699px) {
    .hero {
        margin-bottom: -15rem;
    }
}

@media screen and (min-width: 849px) {
    .hero {
        margin-bottom: -10rem;
    }
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    background: #111;
}

.hero__cta {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    background: #ffc93c;
    display: inline-block;
    padding: 1rem;
    color: #111;
    text-decoration: none;
    overflow: hidden;
}

.hero__cta:after {
    content: "It's really fun!";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(0, 100%);
    background: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.hero__cta:hover:after {
    transform: translate(0, 0);
}

.site-footer {
    font-size: 1.2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.contact + .site-footer {
    display: none;
}