@font-face {
    font-family: 'Fira Sans Regular';
    src: url('../assets/fonts/fira-sans/firasans-regular-webfont.woff2') format('woff2'),
         url('../assets/fonts/fira-sans/firasans-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Sans Light';
    src: url('../assets/fonts/fira-sans/firasans-light-webfont.woff2') format('woff2'),
         url('../assets/fonts/fira-sans/firasans-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Sans Light Italic';
    src: url('../assets/fonts/fira-sans/firasans-lightitalic-webfont.woff2') format('woff2'),
         url('../assets/fonts/fira-sans/firasans-lightitalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Sans Semibold';
    src: url('../assets/fonts/fira-sans/firasans-semibold-webfont.woff2') format('woff2'),
         url('../assets/fonts/fira-sans/firasans-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Sans Semibold Italic';
    src: url('../assets/fonts/fira-sans/firasans-semibolditalic-webfont.woff2') format('woff2'),
         url('../assets/fonts/fira-sans/firasans-semibolditalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Code';
    src: url('../assets/fonts/fira-code/firacode-regular-webfont.woff2') format('woff2'),
         url('../assets/fonts/fira-code/firacode-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* base font */
html {
    font-family: Fira Sans Light, sans-serif;
    color: #323232;
    font-size: 20px;
    line-height: 150%;
    background-color: #FCFCFC;
}

@media screen and (min-width: 800px) {
    html {
        width: 60vw;
        margin-left: auto;
        margin-right: auto;
    }

    nav#table-of-contents {
        margin: 16px;
        margin-bottom: 24px;
        font-size: 1rem;
        padding: 16px 10px;
        position: absolute;
        width: 18vw;
        left: 0;
        z-index: 0;
    }

    #navbar {
        width: 58vw;
        margin: 6px auto 4px auto;
    }
}

@media screen and (max-width: 799px) {
    #navbar {
        margin: 6px 16px 4px 16px;
    }
}

/* Reset margin and padding. */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure, code {
    margin: 0;
    padding: 0;
}

/* Set default margins. */
h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure, .highlight {
    margin: 0px 16px 16px 16px;
}

p {
    margin-bottom: 24px;
}

/* Set basic styling. */
body {
    padding-top: 40px;
}

/* Navigation styling. */
#org-div-home-and-up {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background-color: #FCFCFC;
    border-bottom: 1px solid #CCCDEE;
    z-index: 1;
}

#navbar {
    list-style-type: none;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#navbar-logo  {
    flex: 1
}

#navbar-logo a {
    display: block;
}

#navbar-logo img {
    float: left;
    display: block;
}

.navbar-item {
    padding: 0px 4px;
}

.navbar-item a {
    font-family: Fira Sans Semibold, sans-serif;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: -0.02em;
}

.navbar-item a:visited {
    color: #0058AA;
}

/* Header styling. */
#preamble {
    margin-top: 24px;
}

.datetitle {
    font-family: Fira Sans Light Italic, sans-serif;
    font-size: 0.786rem;
}

.title {
    font-family: Fira Sans Semibold, sans-serif;
    font-size: 2.058rem;
    line-height: 120%;
    letter-spacing: -0.02em;
    margin-top: 24px;
    margin-bottom: 16px;
}

.subtitle {
    font-family: Fira Sans Semibold, sans-serif;
    font-size: 1.272rem;
    line-height: 120%;
    letter-spacing: -0.02em;
}

/* Table of contents styling. */
nav#table-of-contents {
    margin: 16px;
    margin-bottom: 24px;
    font-size: 1rem;
    padding: 16px 10px;
    /* border-bottom: solid #8E8D8D 1px; */
    /* border-top: solid #8E8D8D 1px; */
}

nav#table-of-contents h2 {
    font-family: Fira Sans Semibold Italic, sans-serif;
    font-size: 1.272rem;
    margin: 0px 0px 10px 0px;
}

div#text-table-of-contents {
    margin: 0px;
    margin-left: 10px;
}

div#text-table-of-contents ul {
    margin-bottom: 0px;
}

div#text-table-of-contents a {
    font-family: Fira Sans Light Italic, sans-serif;
    color: #323232;
}

/* Section header styling. */
h2,h3,h4,h5,h6 {
    font-family: Fira Sans Semibold, sans-serif;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: #323232;
}

h2 {
    font-size: 1.618rem;
}

h3 {
    font-size: 1.272rem;
}

h4,h5,h6 {
    font-size: 1rem;
}

/* Hyperlink styling. */
a {
    font-family: Fira Sans Regular, sans-serif;
    color: #0058AA;
    text-decoration: none;
}

a:visited {
    color: #8E8D8D;
}

a:hover {
    text-decoration: underline;
}

/* Text markup */
.underline {
    text-decoration: underline;
}

/* Source Code Block stylings. */
.org-src-container {
    margin-bottom: 24px;
}

.linenr {
    color: #8E8D8D;
    font-size: 0.6rem;
}

pre {
    /* background-color: #F0F0F0; */
    padding: 10px;
    overflow-x: scroll;
    font-family: Fira Code, monospace;
    font-size: 0.786rem;
    line-height: 120%;
    border: solid #E0E0E0 1px;
    border-radius: 5px;
    background-color: #F8F8F8;
}

/* Inline code styling. */
code {
    font-family: Fira Code, monospace;
    font-size: 0.786rem;
    background-color: #F8F8F8;
    border: solid #E0E0E0 1px;
    border-radius: 4px;
    padding: 3px 4px 1px 4px;
}

/* List styling. */
.org-ul, .org-ol {
    padding-left: 20px;
}

/* Section status styling. */
.todo, .done {
    font-family: monospace;
    font-size: 20px;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    vertical-align: text-bottom;
    padding: 0px 4px 0px 4px;
}
.todo {
    color: red;
    border-color: red;
}

.done {
    color: green;
    border-color: green;
}

.priority {
    font-family: monospace;
    font-size: 0.6em;
    color: orange;
    border: 1px solid orange;
    border-radius: 4px;
}
