:root {
    font-family: 'Inter', sans-serif;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: 'Inter var', sans-serif;
    }
}

html {
    background: #fff;
    color: #000;
}

html,
body {
    line-height: 1.5;
    font-size: 16px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    margin: 1.5rem 0 0;
}

h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0rem;
}

a:link {
    color: #000;
    text-decoration: underline;
}

a:visited {
    color: #111;
}

ul,
ol,
p {
    margin: 1rem 0;
}

li>ul,
li>ol {
    margin: .75rem 0;
}

figure {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figcaption {
    margin-top: .5rem;
    text-align: center;
    font-style: italic;
}

th,
td {
    padding: .5rem;
    border-bottom: 1px solid #ddd;
}

tr.divider td {
    text-align: center;
    font-style: italic;
}

sup {
    font-size: .75em;
    line-height: 1;
}

dl {
    margin: 2rem 0;
}

dt {
    font-weight: 600;
    margin-top: .5rem;
}

dd {
    margin-left: 1rem;
}

pre,
code {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
}

pre {
    padding: 1rem;
}

body {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

body>pre {
    margin: 1rem 0;
    overflow-x: auto;
}

body>pre {
    margin: 1rem -1rem;
}

/*
* Post
*/

#title-block-header {
    display: flex;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

#title-block-header h1 {
    flex: 1 1 100%;
    margin: 0 0 .5rem;
}

#title-block-header .author,
#title-block-header .date {
    margin: 0;
    color: #666;
}

#title-block-header .date:before {
    content: '\2014';
    margin: 0 .25em;
}

.post-nav {
    color: #666;
}

.post-nav.before {
    margin: 0;
}

.post-nav.after {
    margin: 2rem 0 0;
}

.post-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.post-nav a {
    color: inherit;
}

/*
   * Index
   */
.index-page header {
    padding: 1.5rem 0;
}

.index-page h1 {
    font-size: 2.5rem;
}

.index-page p,
.index-page a {
    font-size: 1.25rem;
}

.index {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.index li {
    display: flex;
    flex-direction: column;
    margin: .25rem 0;
}

@media screen and (max-width: 800px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        background: #111;
        color: #fff;
    }

    a:link {
        color: #fff;
    }

    a:visited {
        color: #eee;
    }

    #title-block-header .author,
    #title-block-header .date {
        color: #aaa;
    }
}

.footnote-reference a {
    text-decoration: none !important;
}

.footnote-reference a sup:before {
    content: '[';
}

.footnote-reference a sup:after {
    content: ']';
}

.footnote-definition p {
    display: inline;
}

/* Syntax highlighting overrides */

.z-keyword {
    font-weight: bold;
}

.z-annotation {
    text-decoration: none;
    font-style: italic;
}

.z-comment {
    color: #999;
}

.z-quoted {
    color: #555;
}

@media (prefers-color-scheme: dark) {
    .z-quoted {
        color: #ccc;
    }
}
