@font-face {
    font-family: "AtlasGrotesk";
    font-weight: 700;
    src: url("../fonts/AtlasGrotesk-Black-Web.woff2") format("woff2"), url("../fonts/AtlasGrotesk-Black-Web.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "AtlasGrotesk";
    font-weight: 600;
    src: url("../fonts/AtlasGrotesk-Bold-Web.woff2") format("woff2"), url("../fonts/AtlasGrotesk-Bold-Web.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "AtlasGrotesk";
    font-weight: 500;
    src: url("../fonts/AtlasGrotesk-Medium-Web.woff2") format("woff2"), url("../fonts/AtlasGrotesk-Medium-Web.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: "AtlasGrotesk";
    font-weight: 400;
    src: url("../fonts/AtlasGrotesk-Regular-Web.woff2") format("woff2"), url("../fonts/AtlasGrotesk-Regular-Web.woff") format("woff");
    font-display: swap;
}

body {
    margin: 0;
    font-family: AtlasGrotesk;
    overflow-x: hidden;
    --copy-color: #313131;
    color: var(--copy-color);
}

main {
    margin-top: 20px;
    margin-bottom: 32px;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-gap: 32px 40px;
}

.logo {
    display: inline-block;
}

.logo p {
    margin: 0;
    font-weight: 500;
}

.logo .red {
    margin-bottom: 4px;
    color: #000;
}

.logo .red span {
    color: rgba(255, 255, 255, 0);
    user-select: none;
}

header nav {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 10;
}

header nav.open {
    display: block;
}

header ul {
    margin: 0;
    padding: 24px 0 16px;
    position: absolute;
    width: 100%;
    list-style: none;
    background: #fff;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.19);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 250ms ease;
}

footer ul {
    list-style: none;
    position: static;
    display: flex;
    justify-content: flex-end;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

footer ul a {
    font-weight: 500 !important;
}

.open ul {
    opacity: 1;
    transform: none;
}

.nav-item {
    margin-bottom: 24px;
    margin-left: 32px;
    letter-spacing: 0.2px;
    border-bottom-color: transparent;
    font-weight: bold;
    line-height: 0.9;
    text-shadow: 1px 0.8px 0px #fff, 0.6px -0.7px 0px #fff, -1px 0.8px 0px #fff,
        0px 0.8px #fff, 0px -1.4px #fff;
}

.nav-item-active {
    border-bottom-color: var(--copy-color);
}

.hamburger {
    position: absolute;
    top: 28px;
    right: 20px;
    z-index: 20;
    cursor: pointer;
    height: 21px;
    width: 32px;
}

.hamburger div {
    position: absolute;
    background: var(--copy-color);
    width: 100%;
    height: 3px;
    transition: all 250ms ease;
}

.hamburger .bar-b {
    transform: translateY(9px);
}

.hamburger .bar-c {
    transform: translateY(18px);
}

.open+.hamburger {
    position: fixed;
}

.open+.hamburger .bar-a {
    transform: translateY(9px) rotate(-45deg);
}

.open+.hamburger .bar-b {
    opacity: 0;
}

.open+.hamburger .bar-c {
    transform: translateY(9px) rotate(225deg);
}

main>h1 {
    margin-top: 56px;
}

footer {
    border-top: 1px solid black;
    margin-top: 56px;
    padding-top: 16px;
    text-align: right;
}

/* General Styles */
h1 {
    font-size: 23px;
    font-weight: 800;
}

a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--copy-color);
    line-height: 0.85;
    text-shadow: 1px 0.5px 0px #fff, 0.6px -0.7px 0px #fff, -1px 0.2px 0px #fff,
        0px -1px #fff, 0px -1.4px #fff;
}

a.noborder {
    text-shadow: none;
    border: none;
    line-height: inherit;
}

.avatar.small {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #dedede;
    background-size: cover;
    border-radius: 50%;
}

.avatar.big {
    display: inline-block;
    width: 100px;
    height: 100px;
    background-color: #dedede;
    background-size: cover;
    border-radius: 50%;
}

::selection {
    background: #f00;
    color: #fff;
    text-shadow: none;
}

/* resend-email tag */
.resend-email-form input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    height: 32px;
    border-radius: 2px;
    background-color: #fafafa;
    font: 16px/32px AtlasGrotesk;
    color: #171717;
    padding: 0 0.5em;
    vertical-align: top;
}

.resend-email-form input[type="email"] {
    width: 260px;
    margin-right: 8px;
}

.resend-email-form input[type="submit"] {
    color: #fff;
    background: #000;
    font-weight: bold;
    cursor: pointer;
}

.resend-email-form p {
    margin-top: 4px;
    font-size: 12px;
    color: #0e9430;
}

.resend-email-form .error {
    color: #e04545;
}

@media screen and (min-width: 780px) {
    .main {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        width: 700px;
        max-width: none;
    }

    header {
        position: relative;
    }

    header nav {
        display: block;
        position: absolute;
        left: auto;
        right: 0px;
        top: 8px;
        width: 50%;
    }

    .hamburger {
        display: none;
    }

    header ul,
    footer ul {
        position: static;
        display: flex;
        justify-content: flex-end;
        box-shadow: none;
        transform: none;
        opacity: 1;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1104px) {
    .main {
        width: 1024px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}