body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
    font-weight: 400;
    color: #181818;
    background: #f9f9f9;
    line-height: 1.8em;
    font-size: 18px;
}

a {
    color: #d85f02;
    text-decoration: none;
    word-break: break-word;
}

a:hover {
    /*color: #0b0bb5;*/
    opacity: 0.7;
    text-decoration: underline;
}

html,
button,
input,
select,
textarea {
    color: #222;
}

::-moz-selection {
    background: #3399ff;
    text-shadow: none;
    color: #fff;
}

::selection {
    background: #3399ff;
    text-shadow: none;
    color: #fff;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ddd;
    margin: 1rem 0;
    padding: 0;
}

img {
    margin: 10px auto 10px auto;
    max-width: 100%;
    display: block;
}

a img {
    border: none;
}

figure {
    margin: 0;
    text-align: center;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

table {
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-overflow-scrolling: touch;
    background-color: transparent;
    margin-bottom: 1rem;
    overflow-x: auto;
    width: 100%;
}

table th,
table td {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: top;
}

table thead th {
    border-bottom: 2px solid #dee2e6;
    vertical-align: bottom;
}

table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

table th {
    background-color: #212529;
    border-color: #32383e;
    color: #fff;
}

textarea {
    resize: vertical;
}

blockquote {
    background-color: #eee;
    border-left: 5px solid #d85f02;
    border-radius: 10px;
    font-style: italic;
    font-family: Georgia, "Times New Roman", Times, serif;
    padding: 0.5rem 1rem;
    margin: 1em 0;
}

blockquote cite {
    font-size: 70%;
    opacity: 0.8;
}

blockquote em {
    font-weight: 600;
}

blockquote code {
    font-size: 0.8rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #222;
    font-weight: 500;
    line-height: 1.3em;
    margin: 30px 0 20px 0;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.9rem;
}

.align-center {
    text-align: center;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

ul {
    padding-left: 15px;
}

ul.flat {
    margin: 0;
    padding: 0;
}

ul.flat li {
    display: block;
    list-style: none;
    margin-left: 0;
}

.prevent-collapse {
    min-height: 0.1rem;
}

.smaller {
    font-size: 70%;
}

ul {
    list-style: disc inside;
}

.post {
    max-width: 800px;
}

.post ul li {
    margin-bottom: 10px;
}

.post ul li p {
    display: inline;
}

/* Code */
.highlight pre {
    margin-bottom: 0;
    margin-top: 0;
    padding: 5px;
}

.highlight {
    font-size: 0.8em;
    max-width: 800px;
    overflow-x: auto;
}

.wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.container {
    max-width: 800px;
    margin-top: 50px;
}

.container-wide {
    max-width: 1000px;
    margin-top: 50px;
}

/* ---------------- HEADER ---------------- */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.header .avatar {
    margin-right: 1rem;
}

.header .avatar img {
    width: 64px;
    height: 64px;
    border-radius: 100%;
    display: block;
}

.header .site-title {
    margin: 0;
    line-height: 1.2;
    flex: 1; /* take available space */
}
.site-title a {
    /*color: #0000ff;*/
    text-decoration: none;
}
.site-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    /*text-underline-offset: 1px; /* push line further from text*/
}

.header .scheme-toggle {
    margin-left: 1rem;
    flex-shrink: 0; /* don’t shrink */
    border-bottom: none;
    text-decoration: none;
}
.header .scheme-toggle svg {
    width: 24px;
    height: 24px;
    color: #000;
    fill: #000;
    cursor: pointer;
}
/*.header .scheme-toggle svg:hover {
    fill: #000;
}*/

/* Optional navigation below header */
.navbar {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
}
.navbar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.navbar a {
    text-decoration: none;
    color: #181818;
}
.navbar a:hover {
    color: #3700ff;
}

/* ---------------- END HEADER ---------------- */

.section .section-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.recent-posts .posts .post {
    margin-bottom: 45px;
}

.post-header {
    display: flex;
}

.post-header .meta .date {
    margin-right: 30px;
    width: 64px;
    text-align: center;
}

.post-header .meta .date .day {
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    line-height: 0.92em;
    font-size: 3em;
    display: block;
    margin-bottom: 2px;
}

.post-header .meta .date .rest {
    display: block;
    font-size: 0.75em;
}

.post-header h1.title {
    margin: -10px 0 0 0;
}

.post .title.small {
    color: #aaa;
    margin: 0 0 10px 0;
}

.post .post-header {
    margin-bottom: 30px;
}

.post .draft-label {
    color: #3700ff;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 6px;
    background-color: #f9f2f4;
}

.post .tags a {
    display: inline-block;
    border: 1px solid #3700ff;
    border-radius: 3px;
    padding: 0px 6px;
    color: #3700ff;
    line-height: 20px;
    font-size: 0.85em;
    text-decoration: none;
    margin: 0 10px 0 0;
}

.list .posts .post-header .meta {
    margin-bottom: 0;
    margin-left: 5px;
}

.footer {
    text-align: right;
    font-size: 0.75em;
    color: #999;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding: 15px 0;
}
/*
.footer a {
    color: #3700ff;
}

.footer a:hover {
    color: #3700ff;
    text-decoration: none;
    opacity: 0.66;
}*/

.tag-cloud {
    margin-top: 20px;
}

.tag-cloud a {
    margin-right: 15px;
}

.pagination {
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.pagination li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination .page-prev {
    margin-right: 20px;
    padding-right: 20px;
}

.pagination .page-item.page-prev {
    text-align: left;
}

.pagination .page-item.page-next {
    text-align: right;
}

@media (max-width: 900px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1rem;
    }

    .container {
        margin-top: 10px;
    }

    .header .nav.social li {
        margin: 0;
    }

    .header .nav li {
        margin: 0 10px 0 0;
        font-size: 14px;
    }

    table {
        -ms-overflow-style: -ms-autohiding-scrollbar;
        -webkit-overflow-scrolling: touch;
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

.tag-li {
    display: inline !important;
}

.back {
    padding-top: 1em;
    font-size: 1em;
}

.inline-img {
    margin: 0 0 0 0 !important;
    max-width: 100%;
    display: inline-block !important;
}

.figcaption-img {
    margin-bottom: 0px;
}

figcaption {
    font-size: 0.9rem;
    display: block;
    text-align: center;
    color: gray;
}

code:not(pre *) {
    font-family: monospace;
    font-size: 1em;
    background-color: rgb(239, 241, 243);
    font-size: 95%;
    white-space: normal;
}

code {
    font-size: 0.8rem;
    white-space: pre;
}

.footer-separator {
    border-top: 0.1em dashed #dddd;
}

/* Table of contents */
.toc {
    line-height: normal;
}

.show-on-mobile {
    display: none !important;
}
@media screen and (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
    .show-on-mobile {
        display: block !important;
    }
    .container-wide {
        max-width: 800px;
    }
}

@media only screen and (min-width: 1025px) {
    .article-nav {
        display: grid;
        grid-template-columns: 1fr 15em;
        max-width: 100em;
        width: 100%;
        margin: 0 auto;
    }
}

nav {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.section-nav li.active > a {
    font-weight: 600;
    color: black;
}

.section-nav {
    font-size: smaller;
    padding-left: 0;
    border-left: 2px solid #efefef;
}

.section-nav a {
    text-decoration: none;
    display: block;
    color: #ccc;
    transition: all 50ms ease-in-out;
}

.section-nav li::marker {
    color: #ccc;
}

.section-nav a:hover,
.section-nav a:focus {
    border: none;
    /*color: #666;*/
    opacity: 0.7;
    font-weight: 600;
}

.depth-nested {
    display: none;
}

/* Static TOC */
.toc a {
    text-decoration: none;
    display: block;
    color: #515151;
    transition: all 50ms ease-in-out;
}

.toc li::marker {
    color: #515151;
}

.toc a:hover,
.toc a:focus {
    border: none;
    opacity: 0.6;
    /*color: #666;
    text-decoration: none;*/
    font-weight: 600;
}

/* For https://github.com/martignoni/hugo-notice */
.notice {
    width: 85%;
}
