@font-face {
    font-family: dejavu-serif;
    src: url(../fonts/dejavu/DejaVuSerif.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: dejavu-serif;
    src: url(../fonts/dejavu/DejaVuSerif-Bold.ttf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: dejavu-serif;
    src: url(../fonts/dejavu/DejaVuSerif-Italic.ttf);
    font-weight: normal;
    font-style: oblique;
}

@font-face {
    font-family: dejavu-mono;
    src: url(../fonts/dejavu/DejaVuSansMono.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: dejavu-mono;
    src: url(../fonts/dejavu/DejaVuSansMono-Bold.ttf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: dejavu-mono;
    src: url(../fonts/dejavu/DejaVuSansMono-Oblique.ttf);
    font-weight: normal;
    font-style: oblique;
}

html {
    padding-bottom: 50vh;;
}

::selection {
    background: #f5e690;
}

body {
    color: #484431;
    background-color: #fff6d8;
	font-family: dejavu-serif, serif;
    font-size: 1.1em;
    line-height: 1.6em;
    padding-bottom: 0.1;
    max-width: 100%;
    height: auto;
    margin: auto;

    img {
        max-width: 100%;
        max-height: 80vh;
    }
}

.navigation {
    padding-top: 0.1em;
    border-bottom: 0.1em solid;
    width: 42em;
    margin: auto;
}

.navigation a img {
    display: inline-block;
    width: 1em;
    vertical-align: middle;
    padding-bottom: 0.2em;
    height: auto;
}

#content {
    width: 42em;
	margin: auto;
}

.figure {
    padding: 0em;
    margin: 0em;
    max-width: 100%;
    height: auto;
    font-size: 0.8em;
}

#filetags {
    width: 42em;
    margin: auto;
}

a {
    text-decoration: none;
    color: #a26310;
    font-weight: bold;
}

a.anchor {
    color: #484431;
}

.date, .post-date {
    font-style: oblique;
}

.title {
    font-weight: bold;
    line-height: 1em;
}

.author {
    font-weight: bold;
}

pre {
    background-color: #e7d7c6;
    overflow: auto;
    margin-left: 1em;
    padding: 0.4em;
    border-left: 0.1em dashed;
    font-family: dejavu-serif;
}

pre.src {
    font-family: dejavu-mono, monospace;
    font-size: 0.8em;
    line-height: 1.2em;
}

.org-keyword {
    color: #a26310;
    font-weight: bold;
}

.org-builtin {
    color: #946830;
    font-weight: bold;
}

.org-function-name {
    color: #5a7400;
    font-weight: bold;
}

.org-string {
    color: #c74400;
}

.org-type {
    color: #008250;
}

.org-doc {
    color: #b05350;
    font-style: italic;
}

.org-constant {
    color: #3f60af;
    font-style: italic;
}

#postamble {
    text-align: center;
    font-size: 0.8em;
    margin-top: 0.4em;
}

#postamble a img {
    width: auto;
    height: 1.6em;
    clear: both;
    padding: 0.4em;
}

@media (prefers-color-scheme: dark) {
    ::selection {
        background: #544a0f;
    }

    body {
        color: #e8e4b1;
        background-color: #352718;
    }

    a {
        color: #e4b53f;
    }

    a.anchor {
        color: #e8e4b1;
    }

    pre {
        background-color: #59463f;
    }

    .org-keyword {
        color: #e4b53f;
        font-weight: bold;
    }

    .org-builtin {
        color: #e7a06f;
        font-weight: bold;
    }

    .org-function-name {
        color: #6fd560;
        font-weight: bold;
    }

    .org-string {
        color: #ffa21f;
    }

    .org-type {
        color: #65d590;
    }

    .org-doc {
        color: #e89a88;
        font-style: italic;
    }

    .org-constant {
        color: #89bfff;
        font-style: italic;
    }
}

@media (max-width: 680px) {
    
    .navigation {
        width: 20em;
        margin: auto;
    }
    
    #content {
        width: 20em;
        margin: auto;
    }
    
    #filetags {
        width: 20em;
        margin: auto;
    }

    #postamble {
        max-width: 24em;
        margin: auto;
    }
}
