@font-face {
    font-family: TerminusTTF;
    src: url("./terminus-ttf-4.49.3/TerminusTTF-4.49.3.ttf")
        format("truetype");
}

* {
    font-family: "TerminusTTF", monospace;
    margin: 0;
    text-decoration-line: none;
    box-sizing: border-box;

    -webkit-font-smoothing: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeSpeed !important;
}

body {
    padding: 0;
    background: #282828;
    color: #ebdbb2;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 16px;
    margin-bottom: 16px;
}

h1 {
    color: #ebdbb2;
}

h2 {
    color: #fabd2f;
}

h3 {
    color: #fb4934;
}

p {
    margin-bottom: 16px;
}

a {
    color: #d3869b;
}

a:hover {
    color: #b8bb26;
}

abbr {
    color: #ebdbb2;
}

code {
    background: #3c3836;
    padding: 0 4px;
}

ul {
    padding-left: 0;
    list-style: none;
}

li {
    padding-left: 1em;
    text-indent: -1em;
}

li:before {
    content: "•";
    padding-right: 8px;
}

table,
th,
td {
    margin-left: 3px;
    margin-right: 3px;

    margin-top: 7px;
    margin-bottom: 7px;

    padding-left: 3px;
    padding-right: 3px;

    padding-top: 8px;
    padding-bottom: 8px;

    border-left: 2px solid;
    border-right: 2px solid;
    border-top: 1px solid;
    border-bottom: 1px solid;

    border-collapse: collapse;
    border-color: #928374;

    vertical-align: top;
    text-align: left;
}

th {
    color: #fff;
}

.fgcf {
    color: #928374;
}

.fgcf:hover {
    color: #ebdbb2;
}

.fgcc {
    color: #fb4934;
}

.fgcc:hover {
    color: #cc241d;
}

.fgce {
    color: #fabd2f;
}

.fgce:hover {
    color: #d79921;
}

.fgc9 {
    color: #83a598;
}

.fgc9:hover {
    color: #458588;
}

.fgca {
    color: #b8bb26;
}

.fgca:hover {
    color: #98971a;
}

.h0 {
    white-space: pre;
    color: #ebdbb2;
}

.h1,
.h2,
.h3,
.h4,
.h5 {
    white-space: pre;
    color: #000000;
    display: inline;
}

.h1 {
    background: #fb4934;
}

.h1:hover {
    background: #cc241d;
}

.h2 {
    background: #fabd2f;
}

.h2:hover {
    background: #d79921;
}

.h3 {
    background: #b8bb26;
}

.h3:hover {
    background: #98971a;
}

.h4 {
    background: #8ec07c;
}

.h4:hover {
    background: #689d6a;
}

.h5 {
    background: #83a598;
}

.h5:hover {
    background: #458588;
}

.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    flex: 1;
}

#header {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-bottom: 16px;
}

#header h1 {
    color: #fabd2f;
    margin: 0;
}

#header img {
    display: block;
}

.layout {
    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr)
        220px;

    gap: 16px;

    align-items: start;
}

.main {
    min-width: 0;
}

.side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel {
    border: none;
    margin-bottom: 16px;
}

.panel:last-child {
    margin-bottom: 0;
}

.panel h1,
.panel h2,
.panel h3 {
    margin-top: 0;
}

/* Dn't reserve space for an unused sidebar */
.side:empty {
    display: none;
}

.gh-item {
    display: block;
    padding: 2px 0;
}

.footer {
    margin-top: auto;
    text-align: center;
    background-color: #1d2021
}

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

    .side {
        display: grid;

        grid-template-columns:
            repeat(
                auto-fit,
                minmax(200px, 1fr)
            );
    }
}

@media (max-width: 500px) {
    body {
        padding: 12px;
    }

    .panel {
        padding: 16px;
    }

    #header {
        gap: 12px;
    }

    #header img {
        width: 96px;
        height: 96px;
    }

    #header h1 {
        font-size: 24px;
    }
}

footer {
    bottom: 0;
    background-color: #1d2021
}