@import url("https://f.trisua.com/pub/fonts/PublicSans/PublicSans.css");

:root {
    --gray-100: #ffffff;
    --gray-200: #f2f2f2;
    --gray-300: #e3e3e3;
    --gray-400: #b8b8b8;
    --gray-500: #757575;
    --gray-600: #191919;

    --blue-100: #0074bd;
    --blue-200: #0064a3;
    --blue-300: #005489;
    --blue-400: #004570;

    --green-100: #02b757;
    --green-200: #3fc679;
    --green-300: #118237;
    --green-400: #a3e2bd;

    --red-100: #e2231a;
    --red-200: #e27676;
    --red-300: #ac1e2d;
    --red-400: #d86868;

    --pad-1: 0.25rem;
    --pad-2: 0.5rem;
    --pad-3: 0.75rem;
    --pad-4: 1rem;
}

* {
    line-height: 1.5;
    letter-spacing: 0.85px;
    margin: 0;
    padding: 0;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
    font-family: "PS", monospace;
}

html,
body {
    background: var(--gray-200);
    color: black;
    letter-spacing: 0.9px;
    height: 100dvh;
}

ul,
ol {
    margin: 0.5rem 0 0.5rem 2rem;
}

main,
.container {
    width: 120ch;
    max-width: 100dvw;
    margin: var(--pad-2) auto;
}

p:not(:last-child) {
    margin-bottom: 1rem;
}

a {
    color: var(--blue-300);
    font-weight: 600;
}

:is(h2, h3, h4, h5, h6) {
    margin: 10px 0;
    border-bottom: solid 1px var(--gray-300);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.75rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.25rem;
}

.card {
    padding: 1.25rem;
    background: var(--gray-100);
    box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
}

nav {
    width: 100dvw;
    position: sticky;
    top: 0;
    background: var(--gray-600);
    color: white;
    display: flex;
    justify-content: center;

    & .inner {
        display: flex;
        gap: var(--pad-2);
        justify-content: space-between;
        align-items: center;
        padding: var(--pad-1);
        width: 75%;

        & .title {
            font-size: 1.75rem;
        }

        & a {
            color: inherit;
            text-decoration: none;
            opacity: 75%;
            font-size: 16px;
            font-weight: 300;

            &:is(.active),
            &:hover {
                opacity: 100%;
            }

            & i {
                height: max-content;
            }
        }

        @media screen and (max-width: 900px) {
            & {
                width: 100%;
            }
        }
    }
}

button,
a.button {
    text-decoration: none;
    appearance: none;
    border: none;
    outline: none;

    background: var(--blue-100);

    font-weight: 300;
    font-size: 16px;
    color: white;

    border-radius: 4px;
    width: max-content;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: var(--pad-1);
    padding: var(--pad-2) var(--pad-4);

    &:hover {
        background: var(--blue-200);
        box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
    }

    &.green {
        background: var(--green-100);

        &:hover {
            background: var(--green-300);
        }
    }

    &.red {
        background: var(--red-100);

        &:hover {
            background: var(--red-300);
        }
    }
}

input,
textarea,
select {
    appearance: none;
    outline: none;
    resize: auto;

    border-radius: 4px;
    border: solid 1px var(--gray-300);

    width: 25rem;
    max-width: 100%;
    padding: var(--pad-2) var(--pad-3);

    transition: box-shadow 0.15s;
    box-shadow: inset 0 1px 2px rgba(25, 25, 25, 0.1);

    font-size: 16px;
}
