:root {
    --primary: #c23616;
    --text: black;
    --bg: #f7f1e3;
}

html {
    height: 100%;
}

body {
    color: var(--text);
    border-top: 5px solid var(--primary);
    border-bottom: 5px solid var(--primary);
    font-family: monospace;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    min-height: 100%;
    overflow-wrap: break-word;
}

html, body {
    background: var(--bg);
}

#preamble ol li {
    text-align: right;
    list-style-type: none;
}

#preamble, #postamble, #content {
    max-width: 640px;
    margin: 0 auto;
}

#preamble, #content {
    padding: 0rem 2rem 0rem 2rem;
}

#postamble {
    padding: 4rem 2rem 6rem 2rem;
}

#preamble, #postamble, #text-table-of-contents, th, h1, h2, h3, h4, h5, h6 {
    text-transform: lowercase;
}

h2, h3, h4, h5, h6 {
    margin-top: 3rem;
}

p {
    margin: 1rem 0;
}

li {
    margin: 0.4rem 0;
}

hr {
    color: var(--text);
    margin: 2rem 0;
    text-align: center;
    border: 0;
}

hr:before {
    content: "/////";
}

hr:after {
    content: attr(data-content) "/////";
}

a {
    color: var(--bg);
}

a:link, a:active, a:hover, a:visited {
    background: var(--primary);
}

table {
    width: 100%;
}

table, th, td {
    border: thin solid var(--text);
    border-collapse: collapse;
    padding: 0.4rem;
}

blockquote {
    border: thin solid var(--text);
    font-style: italic;
    padding: 1rem;
}

blockquote p {
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

pre {
    background-color: var(--bg);
}

pre span.syntax-builtin {
    font-weight: bold;
    color: #d33682;
}

pre span.syntax-string {
    color: #2aa198;
}

pre span.syntax-keyword {
    color: #859900;
}

pre span.syntax-variable-name {
    color: #268bd2;
}

pre span.syntax-function-name {
    color: #d33682;
}

pre span.syntax-type {
    color: #b58900;
}

pre span.syntax-constant {
    color: #6c71c4;
}

pre span.syntax-comment-delimiter {
    color: #96A7A9;
}

pre span.syntax-comment {
    font-style: italic;
    color: #96A7A9;
}
