/** Basic styling */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure {
    margin: 0;
    padding: 0;
}
h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure, .highlight {
    margin-bottom: 15px;
}

body {
    font: 400 16px/1.5 "Noto Sans", Helvetica, Arial, sans-serif;
    color: #31363b;
    background-color: #fcfcfc;
}


/** Images/Figures */
img {
    max-width: 100%;
    vertical-align: middle;
}
figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
figure > figcaption {
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

/** Lists */
ul, ol { margin-left: 30px; }
li > ul, li > ol { margin-bottom: 0; }

/** Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 400; }

/** Links */
a {
    color: #3498db;
    text-decoration: none;
}
a:visited { color: #3daee9; }
a:hover {
    color: #1d99f3;
    text-decoration: underline;
}

/** Blockquotes */
blockquote {
    color: #828282;
    border-left: 4px solid #eff0f1;
    padding-left: 15px;
}
blockquote > :last-child { margin-bottom: 0; }

/**
 * Code formatting
 */
pre, code {
    font-size: 15px;
    border: 1px solid #eff0f1;
    border-radius: 3px;
    background-color: #eff0f1;
}
code { padding: 1px 5px; }
pre {
    padding: 8px 12px;
    overflow-x: auto;
}
pre > code {
    border: 0;
    padding-right: 0;
    padding-left: 0;
}

/**
 * Wrapper
 */
.wrapper {
    max-width: -webkit-calc(800px - (30px * 2));
    max-width: calc(800px - (30px * 2));
    margin-right: auto;
    margin-left: auto;
    padding-right: 30px;
    padding-left: 30px;
}
@media screen and (max-width: 800px) {
    .wrapper {
        max-width: -webkit-calc(800px - (30px));
        max-width: calc(800px - (30px));
        padding-right: 15px;
        padding-left: 15px;
    }
}
/* Clearfix */
.wrapper:after {
    content: "";
    display: table;
    clear: both;
}

/** Icons (there's more in the talk section, can move up here when needed) */
.email { white-space: nowrap; }
.email::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("mail-message.svg");
    display: inline-block;
}
.rss { white-space: nowrap; }
.rss::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("feed-subscribe.svg");
    display: inline-block;
}
.mastodon { white-space: nowrap; }
.mastodon::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("im-mastodon.svg");
    display: inline-block;
}
.matrix { white-space: nowrap; }
.matrix::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("im-matrix.svg");
    display: inline-block;
}

/** Site header */
.site-header {
    min-height: 56px;
    position: relative;
    background-color: #31363b;
    color: #fcfcfc;
}

.site-title {
    line-height: 54px;
    float: left;
}
.site-title, .site-title:visited {
    color: #fcfcfc;
}

.site-nav {
    float: right;
    line-height: 54px;
}
.site-nav .nav-trigger {
    display: none;
}
.site-nav .menu-icon {
    display: none;
}
.site-nav .page-link {
    color: #fcfcfc;
    line-height: 1.5;
}
.site-nav .page-link:not(:last-child) {
    margin-right: 20px;
}
@media screen and (max-width: 600px) {
    .site-nav {
        position: absolute;
        top: 9px;
        right: 15px;
        background-color: #fcfcfc;
        border: 1px solid #eff0f1;
        border-radius: 2px;
        text-align: left;
    }
    .site-nav label[for="nav-trigger"] {
        display: block;
        float: right;
        width: 36px;
        height: 36px;
        z-index: 2;
        cursor: pointer;
    }
    .site-nav .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center;
    }
    .site-nav .menu-icon > svg path {
        fill: #31363b;
    }
    .site-nav input ~ .trigger {
        clear: both;
        display: none;
    }
    .site-nav input:checked ~ .trigger {
        display: block;
        padding-bottom: 5px;
    }
    .site-nav .page-link {
        display: block;
        padding: 5px 10px;
        color: #31363b;
    }
    .site-nav .page-link:not(:last-child) {
          margin-right: 0;
    }
}

/**
 * Footer
 */
.site-footer {
    border-top: 1px solid #eff0f1;
    padding: 20px 0;
}
.site-footer .footer-content,
.footer-content a {
    font-size: 15px;
    color: #7f8c8d;
    text-align: center;
}
.site-footer .footer-element {
    list-style: none;
    display: inline;
    padding-left: 20px;
}
.site-footer .footer-element:first-child {
    padding-left: 0px;
}

/**
 * Page content
 */
.page-content { padding: 30px 0; }
.page-heading { font-size: 20px; }

.post-list {
    margin-left: 0;
    list-style: none;
}
.post-list > li { margin-bottom: 30px; }

.post-meta {
    font-size: 14px;
    color: #828282;
}
.post-link {
    display: block;
    font-size: 24px;
}

/**
 * Posts
 */
.post-header { margin-bottom: 30px; }
.post-title {
    font-size: 42px;
    letter-spacing: -1px;
    line-height: 1;
}
@media screen and (max-width: 800px) {
    .post-title { font-size: 36px; }
}

.post-content { margin-bottom: 30px; }
.post-content h2 { font-size: 32px; }
@media screen and (max-width: 800px) {
    .post-content h2 { font-size: 28px; }
}
.post-content h3 { font-size: 26px; }
@media screen and (max-width: 800px) {
    .post-content h3 { font-size: 22px; }
}
.post-content h4 { font-size: 20px; }
@media screen and (max-width: 800px) {
    .post-content h4 { font-size: 18px; }
}
.post-content table th, td {
    border: 1px solid #eff0f1;
}
.post-content table {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
}
.post-content td { padding: 4px; }
.post-content th { padding: 4px 12px 4px 12px }
.post-content tr:hover { background-color: #eff0f1; }

.post-navigation {
    margin-top: 20px;
    font-size: 15px;
}
.post-navigation .nav-prev { float: left; }
.post-navigation .nav-prev ::before {
    content: "◀";
    padding-right: 4px;
}
.post-navigation .nav-next { float: right; }
.post-navigation .nav-next ::after {
    content: "▶";
    padding-left: 4px;
}
.post-navigation .nav-next ::after {
}

/**
 * Talk styles
 */
.talks {}
.talks .abstract { white-space: nowrap; }
.talks .abstract::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("document-new.svg");
    display: inline-block;
    white-space: nowrap;
}
.talks .video { white-space: nowrap; }
.talks .slides { white-space: nowrap; }
.talks .slides::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("view-presentation.svg");
    display: inline-block;
    white-space: nowrap;
}
.talks .talk { margin-bottom: 10px; }
.talks .title { font-style: italic; }
.talks .video { white-space: nowrap; }
.talks .video::before {
    height: 12px;
    width: 12px;
    padding-right: 2px;
    content: url("folder-video.svg");
    display: inline-block;
}

/**
 * Syntax highlighting styles
 */
.highlight { background: #eff0f1; }

/** Comments (m: multiline, p: preproc, l: single, s: special) */
.highlight .c { color: #7f8c8d; }
.highlight .cm { color: #7f8c8d; }
.highlight .cp { color: #27ae60; }
.highlight .c1 { color: #7f8c8d; }
.highlight .cs { color: #7f8c8d; font-weight: bold; }

/** Errors */
.highlight .err { color: #a61717; background-color: #e3d2d2; }

/** Keywords (c: constant, d: declaration, n: namespace, p: pseudo, r: reserved, t: type, v: variable */
.highlight .k { font-weight: bold; }
.highlight .kc { font-weight: bold; }
.highlight .kd { font-weight: bold; }
.highlight .kp { font-weight: bold; }
.highlight .kr { font-weight: bold; }
.highlight .kt { color: #2980b9; }

/** Operators (w: word) */
.highlight .o {}
.highlight .ow { font-weight: bold; }

/** Generic (d: deleted, e: emph, r: error, h: heading, i: inserted, o: output, p: prompt, s: strong, u: subheading, t: traceback, l: lineno) */
/** TODO **/
.highlight .gd { color: #000; background-color: #fdd; }
.highlight .gd .x { color: #000; background-color: #faa; }
.highlight .ge { font-style: italic; }
.highlight .gr { color: #a00; }
.highlight .gh { color: #999; }
.highlight .gi { color: #000; background-color: #dfd; }
.highlight .gi .x { color: #000; background-color: #afa; }
.highlight .go { color: #888; }
.highlight .gp { color: #555; }
.highlight .gs { font-weight: bold; }
.highlight .gu { color: #aaa; }
.highlight .gt { color: #a00; }

/** Numbers (f: float, h: hex, i: int, il: long, o: oct, b: bin, x: other) */
.highlight .m { color: #f67400; }
.highlight .mf { color: #f67400; }
.highlight .mh { color: #f67400; }
.highlight .mi { color: #f67400; }
.highlight .mo { color: #f67400; }
.highlight .il { color: #f67400; }

/** String (b: backtick, c: char, d: doc, 2: double, e: escape, h: heredoc, i: interpol, x: other, r: regex, 1: single, s: symbol) */
.highlight .s { color: #da4453; }
.highlight .sb { color: #da4453; }
.highlight .sc { color: #3daee9; }
.highlight .sd { color: #da4453; }
.highlight .s2 { color: #da4453; }
.highlight .se { color: #3daee9; }
.highlight .sh { color: #da4453; }
.highlight .si { color: #da4453; }
.highlight .sx { color: #da4453; }
.highlight .sr { color: #3daee9; }
.highlight .s1 { color: #da4453; }
.highlight .ss { color: #3daee9; }

/** Name (a: attribute, b: builtin, bp: pseudo, c: class, o: constant, d: decorator, i: entity, e: exception, f: function, y: property, l: label, n: namespace, x: other, t: tag, v: variable, vc: class, vg: global, vi: instance */
/** TODO **/
.highlight .n { color: #2980b9; }
.highlight .na { color: #008080; }
.highlight .nb { color: #2980b9; }
.highlight .nc { color: #2980b9; }
.highlight .no { color: #008080; }
.highlight .ni { color: #800080; }
.highlight .ne { color: #900; font-weight: bold; }
.highlight .nf { color: #2980b9; }
.highlight .nn { color: #555; }
.highlight .nt { color: #000080; }
.highlight .nv { color: #008080; }
.highlight .bp { color: #999; }
.highlight .vc { color: #008080; }
.highlight .vg { color: #008080; }
.highlight .vi { color: #008080; }

/** Whitespace */
.highlight .w {}
