/* Custom properties */
:root {
    /* base */
    --background-color: #ffffff;
    --color-base: #333333;

    /* grays */
    --border-color-code: #dadde3;;
    --background-color-code: #f8f9fa;
    --border-color-table: #a2a9b1;
    --border-color-quote: #6a747e;
    --color-quote: #606069;

    /* links */
    --color-progressive: #0366d6;
}

html {
    height: 100%;
    margin: 0;
}

/* Container constraints */
body {
    max-width: 80ch;
    margin: auto;
    padding: 20px;
    font-family: "Noto Sans Mono", "Courier", monospace;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-base);
    background-color: var(--background-color);
}

/* Ensure all text elements respect the layout */
p, li, blockquote, table, pre, code {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Lists a little less indented */
/*
ul, ol {
    padding: 0;
    margin-left: 1.5em;
}
*/

/* Blockquotes look like standard text replies */
blockquote {
    margin: 1em 0;
    padding-left: 1ch;
    border-left: 3px solid var(--border-color-quote);
    color: var(--color-quote);
}

/* Headings keep a subtle, clean hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}
/*
h1:not(.title) {
    border-bottom: 1px solid var(--border-color-table);
    padding-bottom: .5em;
}
*/

/* Tables look neat but minimal */
table {
    border-collapse: collapse;
    border-radius: 4px;
    width: 100%;
    margin: 1.5em 0;
}
th, td {
    border: 1px dashed var(--border-color-table);
    padding: 0.5ch 1ch;
    text-align: left;
}

/* code (monospace font alone alone is indistinguishable from text) */
code:not(.sourceCode), div.sourceCode {
    background-color: var(--background-color-code);
    border: 1px solid var(--border-color-code);
    border-radius: 2px;
}
div.sourceCode {
    margin: 1em 0;
}

/* Links stay functional but subtle */
a {
    color: var(--color-progressive);
    text-decoration: underline;
}

/* Task list should not be editable */
.task-list {
    pointer-events: none;
}

/* TOC */
#TOC {
    display: none;
}

/* metadata block */
#title-block-header {
    display: none;
}

/* site-nav, see site-nav.html */
