/* @import url('https://fonts.googleapis.com/css?family=Nunito|Quicksand|Roboto+Mono'); */

/* Quicksand typefaces */
@font-face {
    font-display: swap;
    font-family: Quicksand;
    src: url(https://diego.codes/fonts/Quicksand/Quicksand-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-display: swap;
    font-family: Quicksand;
    src: url(https://diego.codes/fonts/Quicksand/Quicksand-Bold.ttf);
    font-weight: bold;
}

/* Nunito typefaces */
@font-face {
    font-display: swap;
    font-family: Nunito;
    src: url(https://diego.codes/fonts/Nunito/Nunito-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Nunito;
    src: url(https://diego.codes/fonts/Nunito/Nunito-Bold.ttf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Nunito;
    src: url(https://diego.codes/fonts/Nunito/Nunito-Italic.ttf);
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-display: swap;
    font-family: Nunito;
    src: url(https://diego.codes/fonts/Nunito/Nunito-BoldItalic.ttf);
    font-weight: bold;
    font-style: italic;
}

/* Roboto Mono typefaces */
@font-face {
    font-display: swap;
    font-family: Roboto Mono;
    src: url(https://diego.codes/fonts/Roboto_Mono/RobotoMono-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Roboto Mono;
    src: url(https://diego.codes/fonts/Roboto_Mono/RobotoMono-Bold.ttf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Roboto Mono;
    src: url(https://diego.codes/fonts/Roboto_Mono/RobotoMono-Italic.ttf);
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-display: swap;
    font-family: Roboto Mono;
    src: url(https://diego.codes/fonts/Roboto_Mono/RobotoMono-BoldItalic.ttf);
    font-weight: bold;
    font-style: italic;
}



article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
    display: block;
}
audio,
canvas,
video {
    display: inline-block;
}
audio:not([controls]) {
    display: none;
    height: 0;
}
[hidden] {
    display: none;
}
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
a:focus {
    outline: thin dotted;
}
a:active,
a:hover {
    outline: 0;
}
abbr[title] {
    border-bottom: 1px dotted;
}
b,
strong {
    font-weight: bold;
}
dfn {
    font-style: italic;
}
mark {
    background: #3f9f9f;
    color: #fffff8;
}
code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    font-size: 85%;
}
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}
q {
    quotes: "\201C" "\201D" "\2018" "\2019";
}
small {
    font-size: 80%;
}
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    top: -0.5em;
}
sub {
    bottom: -0.25em;
}

img {
    border: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
}
.figure p {
	color: #657b83;
	text-align: center;
	font-size: 90%;
	font-style: italic;
}


svg:not(:root) {
    overflow: hidden;
}
fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}
legend {
    border: 0;
    padding: 0;
}
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}
button,
input {
    line-height: normal;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}
button[disabled],
input[disabled] {
    cursor: default;
}
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
textarea {
    overflow: auto;
    vertical-align: top;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
	margin: auto;
}
:root {
    --bg: #b8bec8;
    --panel: #ffffff;
    --panel-soft: #e9edf2;
    --text: #111111;
    --muted: #434343;
    --border-dark: #7b7f86;
    --border-light: #f3f5f8;
    --link: #0000ee;
    --visited: #551a8b;
    --hover: #cc0000;
    --heading: #003366;
    --rule: #9aa1ad;
    --blockquote-border: #8b94a3;
    --blockquote-text: #222222;
    --code-border: #7f8794;
    --code-bg: #f6f8fb;
    --code-text: #111111;
    --pre-border: #8a909b;
    --pre-bg: #f2f4f7;
    --pre-text: #111111;
    --th-bg: #e1e6ed;
    --img-border: #8a909b;
    --header-bg: #dce2ea;
    --toc-border: #8a909b;
    --toc-bg: #f2f5f8;
    --toc-title: #4b515c;
    --tag-border: #8a909b;
    --tag-bg: #e5e9f0;
    --tag-text: #003366;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1d24;
        --panel: #232833;
        --panel-soft: #2b303b;
        --text: #e0e3e8;
        --muted: #b8bec8;
        --border-dark: #10141c;
        --border-light: #48505f;
        --link: #89b4ff;
        --visited: #c6a0ff;
        --hover: #ff9b8f;
        --heading: #d4e1ff;
        --rule: #626a7a;
        --blockquote-border: #8ea4d2;
        --blockquote-text: #dde3ee;
        --code-border: #6f7788;
        --code-bg: #1b202a;
        --code-text: #f1f4fa;
        --pre-border: #6a7282;
        --pre-bg: #1d222d;
        --pre-text: #edf1f7;
        --th-bg: #2c3340;
        --img-border: #6a7282;
        --header-bg: #2a3140;
        --toc-border: #6a7282;
        --toc-bg: #252b37;
        --toc-title: #c7ceda;
        --tag-border: #6a7282;
        --tag-bg: #303746;
        --tag-text: #d6e2ff;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--bg);
    color: var(--text);
}

body {
    margin: 0 auto;
    max-width: min(100%, 1400px);
    padding: 0.9rem 1rem 2rem;
    font-size: 1.05rem;
    line-height: 1.62;
}

body p,
body ul,
body ol {
    font-size: inherit;
}

pre,
code,
kbd,
samp {
    font-family: 'Courier New', Courier, monospace;
}

#content {
    margin-top: 0.75rem;
    padding: 1.05rem 1.15rem 1.4rem;
    border-top: 2px solid var(--border-light);
    border-left: 2px solid var(--border-light);
    border-right: 2px solid var(--border-dark);
    border-bottom: 2px solid var(--border-dark);
    background-color: var(--panel);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.55rem;
    margin-bottom: 0.45rem;
    color: var(--heading);
    font-family: Verdana, Geneva, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.1rem);
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.22rem, 1.02rem + 0.8vw, 1.42rem);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.18rem;
    line-height: 1.18;
    text-wrap: balance;
}

h3 {
    font-size: 1.04rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

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

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

.title {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
    font-weight: 700;
    text-align: left;
    line-height: 1.12;
    text-wrap: balance;
}

.subtitle {
    margin-top: 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-style: normal;
    font-family: Verdana, Geneva, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

p,
ul,
ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    max-width: none;
    hyphens: auto;
}

li + li {
    margin-top: 0.25rem;
}

blockquote {
    margin: 1.25rem 0;
    padding: 0.4rem 0.75rem;
    border-left: 3px solid var(--blockquote-border);
    background-color: var(--panel-soft);
    color: var(--blockquote-text);
}

code {
    padding: 0.08rem 0.3rem;
    border: 1px dotted var(--code-border);
    border-radius: 0.15rem;
    background-color: var(--code-bg);
    color: var(--code-text);
    font-size: 0.88em;
}

pre {
    margin: 1.15rem 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--pre-border);
    background-color: var(--pre-bg);
    color: var(--pre-text);
    white-space: pre;
    overflow-x: auto;
}

pre code {
    padding: 0;
    border-radius: 0;
    background-color: transparent;
}

table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

th,
td {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--pre-border);
    text-align: left;
}

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

.figure {
    margin: 1.4rem auto;
}

.figure p {
    margin-top: 0.4rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.88rem;
    font-style: normal;
    font-family: Verdana, Geneva, sans-serif;
}

img {
    display: block;
    border: 1px solid var(--img-border);
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

img.pixelated {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#header {
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-top: 2px solid var(--border-light);
    border-left: 2px solid var(--border-light);
    border-right: 2px solid var(--border-dark);
    border-bottom: 2px solid var(--border-dark);
    background-color: var(--header-bg);
}

#header nav {
    display: block;
}

#header nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header nav li {
    margin: 0;
    color: var(--muted);
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.83rem;
}

#header nav li.rss-nav-item {
    display: flex;
    align-items: center;
}

#header nav a {
    text-decoration: underline;
}

#header nav a.rss-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#header nav a.rss-link svg {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

#table-of-contents {
    margin: 1.2rem 0 1.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--toc-border);
    background-color: var(--toc-bg);
}

#table-of-contents h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    border: 0;
    padding: 0;
    font-size: 0.92rem;
    color: var(--toc-title);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#text-table-of-contents ul {
    margin: 0;
    padding-left: 1rem;
}

#text-table-of-contents li {
    margin: 0.2rem 0;
}

#footer {
    width: 100%;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    font-family: Verdana, Geneva, sans-serif;
}

#footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer a {
    color: var(--muted);
}

#footer a:hover {
    color: var(--hover);
}

#license-note {
    margin-top: 1.4rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.8rem;
}

.org-ref-bib-h1,
.footnotes {
    font-size: 0.95rem;
    color: var(--muted);
    font-style: normal;
    font-family: Verdana, Geneva, sans-serif;
}

.tag {
    padding: 0 0.28em;
    border: 1px solid var(--tag-border);
    border-radius: 0;
    background-color: var(--tag-bg);
    color: var(--tag-text);
}

/* Fallback for other elements from solarized-css */
.todo,
.next,
.done {
    color: #fdf6e3;
    background-color: #dc322f;
    padding: 0 0.2em;
}

.TODO {
    border-radius: 0.2em;
    background-color: #2aa198;
}

.NEXT,
.ACTIVE {
    border-radius: 0.2em;
    background-color: #268bd2;
}

.DONE,
.CANCELLED {
    border-radius: 0.2em;
    background-color: #859900;
}

.WAITING {
    border-radius: 0.2em;
    background-color: #cb4b16;
}

.HOLD,
.NOTE {
    border-radius: 0.2em;
    background-color: #d33682;
}

@media (max-width: 700px) {
    body {
        padding: 0.7rem 0.55rem 1.35rem;
        font-size: 1rem;
    }

    #header nav ol {
        gap: 0.4rem;
    }

    #content {
        padding: 0.8rem 0.75rem 1rem;
    }

    pre {
        padding: 0.75rem 0.8rem;
    }
}
