
.cousine-regular {
  font-family: "Cousine", monospace;
  font-weight: 400;
  font-style: normal;
}

.cousine-bold {
  font-family: "Cousine", monospace;
  font-weight: 700;
  font-style: normal;
}

.cousine-regular-italic {
  font-family: "Cousine", monospace;
  font-weight: 400;
  font-style: italic;
}

.cousine-bold-italic {
  font-family: "Cousine", monospace;
  font-weight: 700;
  font-style: italic;
}

.libre-baskerville-regular {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: normal;
}

.libre-baskerville-bold {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-style: normal;
}

.libre-baskerville-regular-italic {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: italic;
}

h1 {
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.125;
    font-size: 2.0rem;
}

h2 {
    font-weight: bold;
    font-size: 1.85rem;
}

h2, h3, h4, h5 {
    margin-bottom: -0.6em;
    margin-top: 1.2em;
}

#main-content {
    background-color: white;
    font-family: 'Libre Baskerville';
    font-weight: 400;
    line-height: 1.5;
    width: 90%;
    max-width: 800px;
    margin: 25VH auto 0 auto;

}

#main-post-content {
    background-color: white;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    line-height: 1.5;
    width: 90%;
    max-width: 800px;
    margin: 10VH auto 0 auto;
}

/* TODO: rewrite this */
code {
	font-family: Cousine, monospace;
    font-weight: 500;
    background-color: #eee;
    border-radius: 0.2rem;
    color: #222;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-block: 0.05rem;
    font-size: 0.9rem;
    margin: 0 0.1rem;
}

.toc ol {
    list-style-type: none;
    list-style-position: inside;
    padding-left: 2.5%;
}

@media screen and (min-width: 400px) {
    h1 {
        font-size: 2.39rem;
    }
}

@media screen and (min-width: 600px) {
    #main-content {
        font-size: 1.25rem;
    }
}

@media screen and (min-width: 1344px) {
    .toc {
        position: fixed;
        top: 10VH;
        right: 3%;
        text-align: right;
        max-width: 20%;
    }

    .toc ol {
        padding-left: 0;
    }
}

.dimmed {
    color: #666;
}

.unimportant {
    font-size: 0.9rem;
}

ul.index {
    list-style-type: none;
    padding-left: 0.5%;
}

a {
    text-decoration: none;
    color: white;
    background-color: #222;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    padding-block: 0.05rem;
}

.footnote-ref a {
    font-size: 0.7rem;
    color: #222;
    background-color: #eee;
    font-weight: bold;
    text-decoration: underline;
}

.footnote-backref:after {
    /* don't emojify */
    font-family: 'Segoe UI Symbol';
    content: "\FE0E";
}

:root {
    --color-border: #ccc;
    --color-boxshadow: #555;
    --color-important: #111;
    --color-comment: #b9b9b9;
}

code[class*="language-"],
pre[class*="language-"] {
    color: #595959;
    background: none;
    /* text-shadow: -1px 1px #e9e9e9; */
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.1;
    padding-left: 0;
    padding-right: 0;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
    padding: 0.75em 0.5em;
    margin: .5em 0;
    margin-left: -.5em;
    overflow: auto;
    background: #fff;
    box-shadow: 0px 2px 2px var(--color-boxshadow);
    border: 1px solid var(--color-border);
}

pre[class*="language-"]:not(.language-none):before {
    content: attr(data-language);
    display: block;
    position: static;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-comment);
}

@media screen and (min-width: calc(800px + 10VH)) {
    pre[class*="language-"]:not(.language-none):before {
        position: absolute;
        right: calc((100% - 800px) / 2 + 1em);
    }
}

pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
    text-shadow: none;
    background: #999;
}

pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
    text-shadow: none;
    background: #999;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: var(--color-comment);
    font-style: italic;
}

.token.atrule,
.token.attr-value,
.token.keyword,
.token.operator,
.token.function {
    color: var(--color-important);
    font-weight: bold;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #ff4529;
}

.token.variable,
.token.constant {
    color: #f85;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.symbol,
.token.deleted {
    color: black;
}

