/*==================
Variables & Fonts
==================*/

* {
    margin: 0;
    padding: 0;
}

:root {
    --fs-xs: 0.75em;
    --fs-s: 0.825em;
    --fs-m: 1em;
    --fs-l: 1.25em;
    --fs-xl: 1.5em;
    --fs-xxl: 2.5em;
    --ff-title: "Nexa", Arial, sans-serif;
    --ff-text: "Gotham", Arial, sans-serif;
    --co-title: #1d1f2e;
    --co-bg: #edeffe;
    --co-bg-secondary: #ffffff;
    --co-text: #505057;
    --co-text-l: #757580;
    --co-border: #95959f;
    --co-inverse: #ffffff;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/Nexa-Light.otf') format('opentype');
    font-weight: 500;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/Nexa-Bold.otf') format('opentype');
    font-weight: 700;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Thin.otf') format('opentype');
    font-weight: 300;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Light.otf') format('opentype');
    font-weight: 500;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Medium.otf') format('opentype');
    font-weight: 700;
}

body {
    min-height: 100vh;
    background-color: var(--co-bg);
    font-family: var(--ff-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-title);
}

/*==================
Header
==================*/

.main-header {
    position: fixed;
    background-color: var(--co-bg-secondary);
    height: 80px;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    box-sizing: border-box;
    z-index: 9;
}

.xdhacks-logo {
    height: 60px;
}

a {
    text-decoration: none;
}

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

.nav-list a {
    outline: none;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    font-size: var(--fs-xs);
    line-height: 1.1em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #95959f;
    transition: 0.25s;
    cursor: pointer;
    position: relative;
    display: flex;
}

.nav-list li {
    list-style: none;
    margin: 2px 1rem;
}

.nav-list li a:hover,
.nav-list li a:focus,
.nav-list a.selected {
    color: #1d1f2e;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0%;
    margin-bottom: -8px;
    border-bottom: 2px solid #cdd0f3;
    opacity: 0;
    justify-self: flex-start;
    align-self: flex-end;
    transition: 0.25s;
}

.nav-list li a:hover::after,
.nav-list li a:focus::after {
    content: '';
    width: 100%;
    opacity: 1;
}

.menu-icon {
    display: none;
    opacity: 0.5;
    transition: 0.25s;
    cursor: pointer;
    outline: none;
    padding: 0.5rem;
}

.menu-icon:hover,
.menu-icon:focus {
    opacity: 0.75;
}

.menu-icon:focus {
    outline: auto;
}

@media (max-width: 800px) {
    .menu-icon {
        display: block;
    }

    .main-nav {
        display: block;
        position: absolute;
        top: 80px;
        width: 100vw;
        left: 0;
        height: auto;
        overflow: hidden;
    }

    .main-nav a {
        color: white;
        opacity: 0.65;
        padding: 0.5rem
    }

    .main-nav a:focus {
        outline: auto black;
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
        background-color: #d4d6fd;
        transform: translateY(-100%);
        transition: 0.5s;
        max-height: 0;
    }

    .nav-list li {
        height: 3rem;
        display: flex;
        align-items: center;
    }

    .nav-list li a:hover,
    .nav-list li a:focus,
    .nav-list a.selected {
        color: white;
        opacity: 1;
    }

    .nav-list li a::after {
        display: none;
    }

    .toggled .nav-list {
        transform: translateY(0);
        padding: 0.5rem 0;
        height: auto;
        max-height: 600px;
    }

    .toggled a {
        display: inline;
    }
}

.header-filler {
    height: 80px;
}

/*==================
Footer
==================*/

.main-footer {
    height: 360px;
    background-color: white;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    column-gap: 2rem;
    padding: 4rem min(4rem, 7vw);
    box-sizing: border-box;
}

.all-rights div {
    margin-right: 48px;
}

.all-rights h4 {
    color: #868dfc;
    font-size: var(--fs-s);
    margin-bottom: 1.5rem;
    position: relative;
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    display: flex;
}

.all-rights h4::after {
    content: '';
    position: absolute;
    transform: translateY(0.25rem);
    border-bottom: 2px solid;
    border-image-source: linear-gradient(90deg, #868dfc, #c86afc);
    border-image-slice: 1;
    justify-self: flex-start;
    align-self: flex-end;
    transition: 0.25s;
    width: 24px;
}

.all-rights:hover ::after,
.all-rights:focus ::after {
    content: '';
    width: 40px;
}

.all-rights p {
    font-size: var(--fs-s);
    color: #95959f;
    font-family: "Gotham", sans-serif;
    font-weight: 300;
    transition: 0.25s;
    line-height: 16px;
}

.all-rights:hover p,
.all-rights:focus p {
    color: #868dfc;
}

.main-footer ul li {
    list-style: none;
    margin: 0.75rem 0;
}

.footer-link {
    color: #95959f;
    font-size: var(--fs-s);
    font-family: "Gotham", sans-serif;
    font-weight: 500;
    transition: 0.25s;
}

.footer-link:hover,
.footer-link:focus {
    color: #cdd0f3;
}

.footer-heading {
    font-family: "Nexa", sans-serif;
    font-weight: 700;
    color: #95959f;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: #95959f;
    font-size: var(--fs-s);
    font-family: "Gotham", sans-serif;
    font-weight: 500;
}

.footer-contact a {
    color: #1d1f2e;
    font-size: var(--fs-s);
    margin-bottom: 2.5rem;
    position: relative;
    font-family: "Gotham", sans-serif;
    font-weight: 500;
    transition: 0.25s;
}

.footer-contact a:hover,
.footer-contact a:focus {
    color: #868dfc;
}

@media (max-width: 600px) {
    .main-footer {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-contact {
        display: none;
    }
}