@import url('css/cabinet-grotesk.css');

:root {
    --width: 720px;
    --hpad: 12px;
    --font-main: 'CabinetGrotesk-Extrabold', monospace;
    --font-secondary: 'CabinetGrotesk-Medium', monospace;
    --font-scale: 1.1em;
    --background-color: #ffffff;
    --heading-color: #2f2f2f;
    --heading-background: #ffffff;
    --text-color: #2f2f2f;
    --link-color: #e08309;
    --visited-color: #a46008;
    --code-background-color: #FFF9EA;
    --hover-color: #FBF3D3;
    --code-color: #222222;
    --blockquote-color: #414141;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px var(--hpad);
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
    padding-top: 24px;
    background: var(--heading-background);
    font-size: 1em;
}

h1 {
    font-size: 1.6em;
}

h2 {
    font-size: 1.3em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: .9em;
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

nav {
    background: #000000;
}

nav p {
    margin-top: 0px;
    margin-bottom: 0px;
}

nav a {
    font-weight: 700;
    color: #fff;
    margin-right: 0px;
    padding: 5px 12px;
    display: inline-block;
}

nav a:hover {
    color: #000000 !important;
    background: var(--hover-color);
}

nav a:visited {
    color: #fff;
}

p time {
    display: block;
    color: slategray;
    padding: 0 0 1em 0;
}

button {
    margin: 0;
    cursor: pointer;
}

main {
    padding: 0.4em 12px;
}

main {
    line-height: 1.6;
}

table {
    width: calc(var(--width) - var(--hpad));
}

hr {
    border: 0;
    border-top: 1px dashed;
    margin-top: 2em;
    margin-bottom: 2em;
}

img {
    width: 100%;
    max-width: calc(var(--width) - var(--hpad));
}

code {
    font-family: 'Courier Prime', monospace;
    font-size: smaller;
    padding: 2px;
    color: var(--code-color);
    border-radius: 4px;
    background-color: var(--code-background-color);
}

pre {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9em;
    background-color: var(--code-background-color) !important;
    border-radius: 4px;
    border: 1px solid lightgray;
    padding: 12px;
    overflow-x: auto;
}

blockquote {
    border-left: 1px solid #999;
    color: var(--blockquote-color);
    padding-left: 12px;
    margin-left: 0;
    font-style: italic;
}

footer {
    font-size: smaller;
    color: #444;
    display: inline-block;
    padding: 0.4em 0 !important;
    margin: 1em 0 0 0;
    background: var(--heading-background);
    width: 100%;
    max-width: calc(var(--width) - var(--hpad));
    border-top: 1px solid #999;
}

.title:hover {
    text-decoration: none;
}

.title {
    text-decoration: none;
}

.title {
    font-family: "CabinetGrotesk-Bold";
    font-size: 1.4em;
    display: inline-block;
    padding: 0.2em 0 0.4em;
    margin-top: 0px;
    margin-bottom: 0px;
    color: black;
}

.title:visited {
    color: black;
}

.inline {
    width: auto !important;
}

.highlight,
.code {
    padding: 1px 15px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 0px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: auto;
}

th {
    border-bottom: 1px solid #ffffff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

