:root {
        --cream-700: #d0cfbf;
        --cream-800: #fffbe7;
        --cream-900: #FEFFFA;
        --gray-100: #222;
        --gray-200: #333;
        --gray-500: #666;
}

html,
body {
        min-width: 100vw;
        min-height: 100vh;
        margin: 0;
        padding: 0;
}

body {
        font-family: "Blex Mono", sans-serif;
        display: flex;
        flex-direction: column;
}

a {
        color: inherit;
        text-decoration: underline dotted 2px;
}

header>nav {
        min-width: 33%;
        width: 150px;
        min-height: 55px;
}

a:hover {
        color: inherit;
        text-decoration: underline dashed 1px;
}

a:visited {
        color: inherit;
        text-decoration: underline dotted 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
        margin: 0;
        font-weight: normal;
}

@font-face {
        font-family: "Blex Mono";
        src: url('/static/fonts/BlexMonoNerdFontPropo-Regular.ttf') format('truetype');
        font-display: swap;
        font-weight: normal;
        font-style: normal;
}

@font-face {
        font-family: "Blex Mono";
        src: url('/static/fonts/BlexMonoNerdFontPropo-Bold.ttf') format('truetype');
        font-display: swap;
        font-weight: bold;
        font-style: normal;
}

@font-face {
        font-family: "Blex Mono";
        src: url('/static/fonts/BlexMonoNerdFontPropo-Italic.ttf') format('truetype');
        font-display: swap;
        font-weight: normal;
        font-style: italic;
}

@media (prefers-color-scheme: light) {
        body {
                background-color: var(--cream-800);
                color: var(--gray-200);
        }

        header {
                border-bottom: dashed var(--gray-200) 2px;
        }

        footer {
                border-top: dashed var(--gray-200) 2px;
        }

        hr {
                border-top: dashed var(--gray-200) 1px;
        }
}

hr {
        border-bottom: 0;
        border-left: 0;
        border-right: 0;
        width: 100%;
}


@media (prefers-color-scheme: dark) {
        body {
                background-color: var(--gray-100);
                color: var(--cream-800);
        }

        header {
                border-bottom: dashed var(--cream-800) 2px;
        }

        footer {
                border-top: dashed var(--cream-800) 2px;
        }

        hr {
                border-top: dashed var(--cream-800) 1px;
        }
}

header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 55px;
        min-width: 100vw;
        padding-left: 11px;
        padding-right: 11px;
        padding-top: 5px;
        padding-bottom: 5px;
        box-sizing: border-box;
}

.main-container {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        align-items: center;
        min-width: 100vw;
        max-width: 100vw;
}

main {
        display: flex;
        flex-direction: column;
}

a.header-link {
        font-size: 2em;
        line-height: 55px;
}


@media (min-width: 600px) {
        span.header-icon-text {
                display: inline;
        }

        main {
                max-width: 66%;
                width: 66%;
                padding-top: 34px;
                padding-bottom: 34px;
        }
}

@media (max-width: 599px) {
        span.header-icon-text {
                display: none;
        }

        main {
                box-sizing: border-box;
                max-width: 100%;
                width: 100%;
                padding-top: 21px;
                padding-bottom: 21px;
                padding-left: 11px;
                padding-right: 11px;
        }
}

main>h1,
main>h2,
main>h3,
main>h4,
main>h5,
main>h6 main>p {
        margin-top: 10px;
        margin-bottom: 10px;
}

nav.backlinks {
        padding-top: 11px;
        padding-bottom: 11px;
}

footer {
        padding-top: 21px;
        min-height: 34px;
        padding: 11px;
        box-sizing: border-box;
}
