* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    --font-family: monospace;

    --text-color: #dddddd;
    --background-color: #000000;

    --link-color: #dddddd;
    --link-highlight-color: #e100ff;

    --general-highlight: #d10046;

    --code-font-color: #dfdfdf;
    --code-lnt-color: #21da5c;
    --code-background-color: #000000;
    --inline-code-background-color: #2f1c3b;
}

html {
    line-height: 1.25em;
    text-rendering: optimizelegibility;
    letter-spacing: .03em;
    margin-bottom: 2em;
}

body {
    position: relative;
    max-width: 75vw;
    margin: 1em auto;
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--background-color);
}

@media only screen and (max-width: 768px) {
    body {
        max-width: 98vw;
    }
}

/* General */

a,
a:visited {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-style: dotted;
}

a:hover {
    background-color: var(--link-highlight-color);
}

h1:not(.page-title) {
    margin-top: 1.25em;
    margin-bottom: 1em;
}

.page-title {
    padding-top: 0.75em;
    padding-bottom: 0.75em;
}

h2 {
    font-size: 1.25em;
    margin-top: 1em;
    margin-bottom: 1em;
}

h2 time {
    font-weight: normal;
    opacity: 0.7;
}

h3,
h4,
h5,
h6 {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

ul,
ol {
    padding-left: 2ch;
}

img,
svg,
video,
audio {
    display: block;
    max-width: 100%;
    height: auto;
    fill: currentColor;
}

blockquote {
    position: relative;
    margin: 1ch 0 1ch 0;
    padding-left: 1ch;
    border-left: 2px solid var(--general-highlight);
}

#TableOfContents ol {
    list-style-position: inside;
}

/* gratefully stolen and modified from https://codepen.io/AllThingsSmitty/pen/MyqmdM */
table:not(.lntable) {
    border: 1px solid white;
    border-collapse: collapse;
    table-layout: fixed;
}

table:not(.lntable) tr,
table:not(.lntable) td,
table:not(.lntable) th {
    border: 1px solid #ddd;
    padding: 1ch;
}

table:not(.lntable) th {
    color: var(--highlight-color2);
    text-transform: uppercase;
}
