/* imports */
@font-face {
    font-family: "gorgeous_pixel";
    src: url("/static/fonts/gorgeous_pixel.ttf") format("truetype");
}

/* properties */
:root {
    --body-max-width: 56rem;
    --body-padding: 2rem;

    --background-color: #000000;
    --text-color: #ffffff;
    --blinkie-width: 150px;

    --large-font: gorgeous_pixel;
    --default-font: "DM Mono", monospace;
    --fallback-font: "Times New Roman", Times, serif;

    --hot-pink: oklch(72% 0.28 340);
    --electric-blue: oklch(72% 0.23 250);
    --neon-purple: oklch(70% 0.25 300);
    --bright-turquoise: oklch(80% 0.21 200);
    --lime-green: oklch(83% 0.24 135);
    --pastel-lavender: oklch(85% 0.14 305);
    --bubblegum-pink: oklch(80% 0.20 350);
}

* {
    /* reset default scaling */
    margin: 0;
    padding: 0;
}

/* defaults */
body {
    /* scaling */
    max-width: calc(var(--body-max-width) + var(--body-padding) * 2);
    padding: var(--body-padding);
    margin: 0 auto;

    /* theme */
    font-family: var(--default-font), var(--fallback-font);
    background-color: var(--background-color);
    color: var(--text-color);
    image-rendering: crisp-edges;

    /* section positioning */
    display: flex;
    flex-direction: column;
    gap: calc(var(--body-padding) / 2);
}

/* texts */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--large-font), var(--fallback-font);
}

p, span {
    font-family: var(--default-font), var(--fallback-font);
}

a {
    font-family: inherit;
    color: var(--bubblegum-pink)
}

hr {
    margin: calc(var(--body-padding) / 4) 0;
    width: 100%;
    height: 1px;
    background-color: white;
    border: none;
}

/* header */
header {
    max-height: 2rem;
    align-items: center;
    justify-content: space-between;

    * {
        height: 1em;
    }

    #header-top {
        width: 100%;
        max-height: 2rem;
    }

    #header-sub {
        width: 100%;
        max-height: 21px;
    }
}

/* sections */
#sections_container {
    /* this houses the primary and secondary sections */
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: calc(var(--body-padding) / 2);

    #secondary {
        flex: 0 0 var(--blinkie-width);
        width: var(--blinkie-width);

        * {
            max-width: 100%;
        }
    }

    #primary {
        flex: 1 1 auto;
        width: auto;
    }
}

/* classes */
.flexy {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--body-padding) / 2);

    * {
        max-width: 100%;
    }
}

.space-between {
    justify-content: space-between;
}

.as-row {
    flex-direction: row;
}

.y-align {
    align-items: center;
}

.no-wrap {
    flex-wrap: nowrap;
}

.gap {
    gap: calc(var(--body-padding) / 2);
}

.small-gap {
    gap: calc(var(--body-padding) / 4);
}

/* uniques */
#wordmark_anchor {
    text-decoration: none;
    height: max-content;
    user-select: none;
    cursor: pointer;
}

/* responsiveness */
@media (max-width: 38rem) {
    #sections_container {
        gap: 0;
    }

    #sections_container #secondary {
        width: 0px;
        flex: 0;
        visibility: hidden;
    }

    #sections_container #primary {
        flex: 1 1 100%;
        width: 100%;
    }

    header {
        /* allow for wrapping <3 */
        max-height: min-content;
    }

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