* {
    box-sizing: border-box;
}

html {
    background-color: #faf9f6;
    font-size: 16px;
}

body {
    background-color: transparent;
    color: #111111;
    font-family: "Courier Prime", "Courier New", Courier, monospace;
    line-height: 1.6;
    max-width: 70ch;
    margin: 0 auto;
    padding: 4rem 2rem;
}

@media (max-width: 850px) {
    body {
        padding: 2rem 1.5rem;
    }
}

nav {
    margin-bottom: 3rem;
    border-bottom: 2px dashed #bbbbbb;
    padding-bottom: 1.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav a {
    color: #111111;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

nav .date {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 1em;
    text-transform: uppercase;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

h2 {
    text-decoration: underline;
    text-underline-offset: 4px;
}

p {
    margin-bottom: 1.5em;
    text-align: justify;
}

a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: #555555;
}

*:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 4px;
}

code {
    background-color: rgba(0,0,0,0.06);
    padding: 0.1em 0.3em;
    border-radius: 2px;
}

pre {
    background-color: rgba(0,0,0,0.03);
    border-left: 4px solid #111111;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

blockquote {
    border-left: none;
    margin: 1.5em 0;
    padding-left: 0;
    font-style: normal;
}

blockquote p {
    margin: 0 0 0.2em 0;
}

blockquote p::before {
    content: "> ";
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

li {
    margin-bottom: 0.5em;
}

ul {
    list-style-type: square;
}

h2 + ul, h2 + ol, h3 + ul, h3 + ol {
    margin-top: 0;
}

@media (prefers-color-scheme: dark) {
    html {
        background-color: #121212;
    }

    body {
        color: #e0e0e0;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #ffffff;
    }

    a, nav a {
        color: #e0e0e0;
    }

    a:hover, nav a:hover {
        color: #999999;
    }

    nav {
        border-bottom-color: #444444;
    }

    code {
        background-color: rgba(255, 255, 255, 0.1);
    }

    pre {
        background-color: rgba(255, 255, 255, 0.05);
        border-left-color: #e0e0e0;
    }

    blockquote {
    }

    *:focus-visible {
        outline-color: #e0e0e0;
    }
}

@media print {
    html, body {
        background-color: transparent !important;
        color: #000 !important;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    nav {
        display: none !important;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
    }
}