/* Global styles */
html, input, select {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Suisse', sans-serif;
    font-style: normal;
    line-height: 100%;
    cursor: default;
}

html, body {
    background-color: var(--black);
    color: var(--white);
}

main {
    padding: 1rem;

    @media (max-width: 750px) {
        padding: 1rem 0.5rem;
    }
}

/* Typography */
.h1 {
    font-size: clamp(1.7rem, 3vw, 3rem);
}

.h3 {
    font-size: 1.7rem;
    line-height: 110%;

    + .h3 {
        margin-top: 1rem;
    }
}

.h4 {
    font-family: 'Arketa', monospace;
}

.h5 {
    font-weight: 600;
    line-height: 110%;
}

.indent {
    display: inline-block;
    width: 24.8vw;

    @media (max-width: 750px) {
        display: none;
    }
}

.animate-text {
    display: flex;
    flex-wrap: wrap;
}

a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.orange {
    color: var(--orange);
    display: inline;
}

/* Header */
header {
    padding: 1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 2;

    @media (max-width: 750px) {
        padding: 1rem 0.5rem;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2rem;
        row-gap: 0.25rem;

        @media (max-width: 750px) {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

/* Footer */
footer {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
    row-gap: 0.25rem;
    position: sticky;
    bottom: 0;

    @media (max-width: 750px) {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 0.5rem;
    }
}

/* Buttons */
button, .button {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    font-family: 'Arketa', monospace;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    width: fit-content;
    height: fit-content;
    cursor: pointer;

    &:hover {
        background-color: var(--black);
        color: var(--white);
        border: 1px solid var(--white);
    }
}

/* Elements */
.flex-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.span-2 {
    grid-column: span 2;

    @media (max-width: 1200px) {
        grid-column: span 3;
    }
}

.span-2-4 {
    grid-column: 2/4;

    @media (max-width: 1200px) {
        grid-column: 2/5;
    }

    @media (max-width: 800px) {
        grid-column: span 1;
    }
}

.span-2-5 {
    grid-column: 2/5;

    @media (max-width: 1200px) {
        grid-column: 2/5;
    }

    @media (max-width: 800px) {
        grid-column: span 1;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    row-gap: 4rem;

    @media (max-width: 1200px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 500px) {
        grid-template-columns: 1fr;
    }
}

.invert {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--white);
    z-index: 5;
    mix-blend-mode: difference;
    pointer-events: none;
}

.toggle-option {
    display: none;

    &.active {
        display: block;
    }
}

.sticky {
    position: sticky;
    align-self: start;
    top: 4rem;

    @media (max-width: 1200px) {
        position: relative;
        top: 0;
    }
}