* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
    padding: 1rem;

    --subtle-link-color: TextColor;
    --code-background: ButtonFace;
}

body {
    line-height: 1.4;
    padding-bottom: 20vh;
    text-rendering: optimizeLegibility;
}

ul {
    padding-left: 1.5rem;
}
ol {
    padding-left: 1.5rem;
}
.content li + li {
    margin-top: .25rem;
}

.index-body {
    width: 80ch;
    max-width: 100%;
    margin: 0 auto;
}

.article-body {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr min(80ch, 100%) 1fr;
}

.article-header {
    grid-column: 2;
}

.article-main {
    grid-column: 2;
}

.site-nav {
    padding: 1rem 0;
    display: flex;
    gap: 1rem;
}

a.subtle {
    color: var(--subtle-link-color);
}

a.subtle:visited {
    color: var(--subtle-link-color);
}

a[aria-current="page"] {
    text-decoration: none;
}

.post-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/*
.post-tags [aria-current="page"]::after {
    content: '⇠';
}
*/

.index-links-list {
    padding-left: 0;
}
.index-links-list li {
    display: flex;
    justify-content: space-between;
}

.articles-posts-list {
    padding-left: 0;
    list-style-type: none;
}
.articles-posts-list li {
    margin: 2rem 0;
}
.articles-posts-list header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: .25rem;
}

.content blockquote {
    margin-left: .75rem;
    border-left: 4px solid #ddd;
    padding-left: .5rem;
}

.post-time {
    white-space: nowrap;
}

.content img {
    max-width: 100%;
}

.topic-explanation {
    border: 1px dashed currentColor;
    padding: 1rem;
}

.content p code {
    font-size: 85%;
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--code-background);
}

.content pre code {
    display: block;
    overflow-y: scroll;
    font-size: 85%;
    border: 1px solid currentColor;
    padding: 1rem;
    /*
    border-radius: 2px;
    background: var(--code-background);*/
}

.callout {
    border: 1px dashed currentColor;
    padding: 0 1rem; /* because there should be <p>s inside */
}
