@charset "utf-8";@font-face{font-family:Hack;src:url("/da3b52604894cfaf49bceafb68f9a1b13d7dee53/f56dd/content/fonts/hack-regular.woff2") format("woff2"),url("/d225b25da61f9c6a43b5377ff5db41d37f5f9f24/12ca6/content/fonts/hack-regular.woff") format("woff");font-weight:400;font-style:normal}@font-face{font-family:Hack;src:url("/dba586dd11b4c7b7231eb7afec7515c24bd1ef81/7a3c8/content/fonts/hack-bold.woff2") format("woff2"),url("/03e1c736fda44d7bb2ea607757e318d0f78a265a/c60f3/content/fonts/hack-bold.woff") format("woff");font-weight:700;font-style:normal}@font-face{font-family:Hack;src:url("/fce3893b9c623c89b7bef27a291783098e3aff94/6ea38/content/fonts/hack-italic.woff2") format("woff2"),url("/1f8d2849cb0e17496c55fa9a42111e636633b538/cd3eb/content/fonts/hack-italic.woff") format("woff");font-weight:400;font-style:italic}@font-face{font-family:Hack;src:url("/a864df30bd89f6d1779a8e6d3dddbf4604b12f2d/72cb9/content/fonts/hack-bolditalic.woff2") format("woff2"),url("/56e1a9b6991901b76a5ed6a0fd728d2ec88d870f/05e3e/content/fonts/hack-bolditalic.woff") format("woff");font-weight:700;font-style:italic}


:root {
    color-scheme: dark;

    --clr-bg: #262220;
    --clr-fg: #f9f6e8;

    --clr-blockquote-fg: #e6e0c8;
    --clr-blockquote-bg: #ede9d3;

    --blockquote-width: 2px;

    --clr-code-bg: #1f1b1a;
    --clr-code-fg: #f0f3e6;
    --clr-code-bg-dark: #181414;

    --clr-link: #cdc4c4; /* #9e9b9b; */

    --scrollbar-height: 6px; /* TODO: Firefox */
}

*,
*::before,
*::after {
    background-color: var(--clr-bg);
    color: var(--clr-fg);
    font-family: Hack, hack, monospace;

    scrollbar-width: none;
    -ms-overflow-style: none;

    scrollbar-color: var(--clr-code-bg-dark) transparent;

    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    word-wrap: break-word;
    /*
     * Removed because users asked to to:
     * word-break: break-all;
     * */

    scroll-behavior: smooth;

    outline-offset: 3px;
}

::-webkit-scrollbar,
::-webkit-scrollbar-thumb {
    height: var(--scrollbar-height);
}

::-webkit-scrollbar {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--clr-code-bg-dark);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
}

/* Removed because I want code blocks to scroll
code,
code *,
pre,
pre * {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
}
*/

body {
    margin: auto;
    padding: 2rem;
    max-width: 1100px;
    min-height: 100vh;
    text-rendering: optimizeSpeed;
}

h1 {
    text-align: center;
    margin: 1em;
    font-size: 2em;
}

li {
    margin: 0.5em;
}

a {
    text-decoration: none;
    color: var(--clr-link);
    font-style: italic;
}

a:focus,
a:hover {
    text-decoration: underline;
}

/*
a:not(li > a)::before {
    content: "[";
    font-style: bold;
    color: #c9c3c3;
}

a:not(li > a)::after {
    content: "]";
    font-style: bold;
    color: #c9c3c3;
}
*/

pre,
pre * {
    background-color: var(--clr-code-bg);
}

pre,
pre *,
code {
    color: var(--clr-code-fg);
}

pre,
pre code {
    overflow-x: auto !important;

    scrollbar-width: initial;
    -ms-overflow-style: initial;
}

pre {
    padding: 1em;
    border-radius: 4px;
}

code:not(pre code),
time {
    background-color: var(--clr-code-bg);
    border-radius: 2px;
    padding: 0.2em;
}

#info-bar {
    text-align: center;
}

#blog-content {
    padding: 0.3em;
    line-height: 1.4;
}

blockquote {
    margin: 10px 0;
    overflow: hidden;
    padding: 0 0 0 20px;
    font-weight: 100;
    position: relative;
}

blockquote:before {
    content: "";
    border-left: var(--blockquote-width) solid var(--clr-blockquote-bg); /* Thx cel */
    position: absolute;
    bottom: 14px;
    top: 13px;
    left: 0;
}

blockquote,
blockquote * {
    color: var(--clr-blockquote-fg);
}

*[h] > a {
    opacity: 0.3;
    -webkit-transition: opacity 0.1s ease-in-out;
    -o-transition: opacity 0.1s ease-in-out;
    transition: opacity 0.1s ease-in-out;
}

*[h]:hover > a,
*[h]:focus > a {
    opacity: 0.6;
}

*[h] > a:hover,
*[h] > a:focus {
    opacity: 1;
}

@media only screen and (max-width: 1200px) {
    *[h] > a,
    *[h]:hover > a,
    *[h]:focus > a {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;

        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;

        -webkit-transition-duration: 0.01ms !important;
        -o-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }
}

nav img {
    height: 1rem;
}

@media (prefers-contrast: more) {
    :root {
        --clr-bg: #000000;
        --clr-fg: #ffffff;

        --clr-blockquote-fg: #ededed;
        --clr-blockquote-bg: #868e91;

        --clr-code-bg: #090909;
        --clr-code-fg: #f0f0f0;

        --clr-link: #a9c4d1;

        --blockquote-width: 4px;

        --scrollbar-height: initial; /* TODO: Firefox */
    }

    html::-webkit-scrollbar {
        display: initial !important;
    }

    *,
    *::before,
    *::after {
        scrollbar-width: initial !important;
        -ms-overflow-style: initial !important;
    }

    a {
        opacity: 1;
    }
}
