@charset "UTF-8";

* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, Cambria, 'Times New Roman', serif;
}

h1 {
    font-size: 1.5em
}
h2 {
    font-size: 1.35em
}
h3 {
    font-size: 1.20em
}
h4 {
    font-size: 1.05em
}
pre {
    font-size: 16px;
    padding: 14px;
    margin: 0;
    margin-bottom: 16px;
    background-color: #FFF7F0;
    border-radius: 3px;
    border: 1px solid #CCCCCC;
    line-height: 1.45;
    overflow: auto;
}
code {
    background: #FFF7F0;
    border-radius: 3px;
    border: 1px solid #CCCCCC;
    padding: 1px 2px;
}
blockquote {
    border-left: 4px solid #dfe2e5;
    color: #6a737d;
    padding: 0 16px;
    margin: 0;
    margin-bottom: 16px;
}
a {
    color: #0060a0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,96,160,0.15);
}
a:visited {
    color: #70a0b0;
    text-decoration: none;
    border-bottom-color: rgba(112, 160, 176, 0.15);
}
a:hover {
    color: #b03000;
    text-decoration: none;
    border-bottom-color: rgba(176, 48, 0, 0.15);
}

/* Header */

.site-header {
    font-family: serif;
    font-weight: bold;
}
.site-header a,
.site-header a:visited,
.site-header a:hover {
    border-bottom: none;
    text-decoration: none;
}
.site-header img {
    width: 500px;
    max-width: 100%;
}
.site-header nav > ul {
    padding: 0;
    font-size: 0;
    margin: 0;
}
.site-header nav > ul > li:not(:last-child):after {
    content: "";
    position: relative;
    width: 3px;
    height: 3px;
    background: black;
    display: inline-block;
    top: -3px;
    margin: 0 8px 0 8px;
    border-radius: 3px;
}
.site-header nav > ul > li {
    font-size: 20px;
    line-height: 26px;
    display: inline-block;
    list-style: none;
}
.site-header nav > ul > li > a {
    color: #000;
    font-weight: 300;
    text-decoration: none;
    border-bottom: rgb(191, 191, 191) solid 1px;
}
.site-header nav > ul > li > a:hover {
    color: #337bf6;
}
.site-header nav > ul > li.selected > a {
    font-weight: 700;
    border-bottom: 0;
    pointer-events: none;
}

/* Articles */

.site-articles {
    text-align: left;
    margin-top: 100px;
    padding: 0 15px;
}
.site-articles > article {
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    word-break: break-word;
    line-height: 1.58;
    color: rgba(0, 0, 0, 0.8);
}
.site-articles > article:not(:last-child):after {
    content: "✽✽✽";
    display: block;
    width: 100%;
    font-size: 28px;
    text-align: center;
    padding-top: 15px;
    color: #666666;
}
.site-articles > article:not(:last-child) {
    margin-bottom: 35px;
}
.site-articles > article > h1 {
    font-weight: 700;
    line-height: 1.2;
}
.site-articles > article > h1 > a  {
    color: black;
    text-decoration: none;
    border-bottom: 0;
}
.site-articles > article > .last-updated,
.site-articles > article > .pinned {
    color: gray;
    font-size: 15px;
    position: relative;
    top: -10px;
    margin-bottom: 10px;
}

.article-body h2 {
    margin-bottom: 10px;
}
.article-body h3 {
    margin-bottom: 10px;
}
.article-body h4 {
    margin-bottom: 10px;
}
.article-body p, .article-body ul {
    margin: 0;
    margin-bottom: 16px;
}
.article-body img,
.article-body video {
    max-width: 100%;
    display: block;
    margin-bottom: 8px;
}
.article-body center {
    padding-bottom: 16px;
}
.article-body iframe {
    max-width: 100%;
}
.article-body img.post-icon {
    padding: 8px;
    padding-left: 0;
}
.article-body pre.lotsofcode {
    height: 310px;
}
.article-body .c,
.article-body .center-aligner {
    text-align: center;
}
.article-body a {
    color: #0060a0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,96,160,0.15);
}
.article-body a:visited {
    color: #70a0b0;
    text-decoration: none;
    border-bottom: 1px solid rgba(112, 160, 176, 0.15);
}
.article-body a:hover {
    color: #b03000;
    text-decoration: none;
    border-bottom: 1px solid rgba(176, 48, 0, 0.15);
}
.article-body a.nohover {
    border-bottom: 0;
}
.article-body .list-tldr {
    font-size: 0.9em;
    margin-left: 10px;
}
.article-body .list-tldr code {
    background: #fff1e5;
    border-radius: 0;
    border: 0;
    padding: 0 2px;
}

.catonmat-news-box {
    margin-top: 24px;
    font-size: 16px;
    padding: 15px;
    background-color: #d9e7f1;
    border-radius: 5px;
    color: rgba(0, 0, 0, 0.9);
    text-align: left;
    line-height: 1.58; /* same as in .article */
}

.catonmat-news-box .catonmat-news-email {
    margin-top: 10px;
}

.catonmat-news-box .catonmat-news-email input {
    width: 100%;
    max-width: 230px;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #91bad6;
}

.catonmat-news-box .catonmat-news-email button {
    width: 100%;
    max-width: 110px;
    font-size: 16px;
    padding: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #91bad6;
    border-radius: 3px;
    background-image: linear-gradient(to bottom, #5581b5, #446c9c);
    color: #ffffff;
    margin-top: 5px;
}
.catonmat-news-box .catonmat-news-email-error, .catonmat-news-email-success {
    margin-top: 5px;
    font-size: 16px;
}
.catonmat-news-box .catonmat-news-email-error {
    color: red;
}
.catonmat-news-box .catonmat-news-email-success {
    color: green;
}

.article-navigation {
    margin-top: 24px;
    font-size: 0;
}

.article-navigation .go {
    display: inline-block;
    font-size: 15px;
    vertical-align: top;
    width: 50%;
    position: relative;
}
.article-navigation .go.back {
    text-align: left;
    padding-left: 22px;
    padding-right: 8px;
}
.article-navigation .go.forward {
    text-align: right;
    padding-right: 22px;
    padding-left: 8px;
}
.article-navigation .go.back a:before {
    content: "←";
    position: absolute;
    font-size: 18px;
    line-height: 22px;
    left: 0;
}
.article-navigation .go.forward a:before {
    content: "→";
    position: absolute;
    font-size: 18px;
    line-height: 22px;
    right: 0;
}

/* On front page after all articles - link to archive */

.more {
    padding: 0 15px;
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: 17px;
    text-align: left;
}

/* Footer */

.site-footer {
    margin-bottom: 15px;
}

.site-footer .jelly-stains {
    padding: 15% 0 15% 0;
    user-select: none;
    pointer-events: none;
}

.site-footer .jelly-stains > img {
    max-width: 100%;
}

.site-footer .secret-message {
    color: #e6e6e6;
    font-size: 11px;
}

.site-footer .secret-message .jellyling {
    color: #f8d8d3;
}

.archive-list {
    padding-left: 0;
}

.archive-list li {
    list-style-type: none;
}
.archive-list li .date,
.archive-list li .pinned {
    opacity: 0.5;
    margin-left: 10px;
    font-size: 0.9em;
}

.archive-list li.hidden {
    opacity: 0.5;
}

.archive-list li.hidden .date {
    opacity: 0.3;
}

/* Global page width rulers */

.site-page {
    text-align: center;
    width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .site-page {
        width: auto;
        margin-right: 15px;
        margin-left: 15px;
    }
}

