/* @import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap');

:root {
    --text-color: rgb(78, 79, 90);
    --muted-color: rgb(185, 186, 197);
    --border-color: rgb(244, 244, 247);
    --bg-color: rgb(255, 255, 255);
    --link-color: rgb(37, 99, 178);
    --link-visited-color: rgb(130, 71, 168);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: rgb(200, 201, 214);
        --muted-color: rgb(120, 121, 133);
        --border-color: rgb(40, 41, 46);
        --bg-color: rgb(22, 22, 26);
        --link-color: rgb(120, 170, 255);
        --link-visited-color: rgb(200, 160, 255);
    }
}

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

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

body {
    /* font-family: sans-serif; */
    font-family: "Noto Sans Mono", monospace;

    /* prevents iOS Safari from auto-inflating font size in narrow
       flex columns, which can otherwise force nowrap text to wrap */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;

    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 0.9em;

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

    border-left: 3px solid var(--border-color);
    border-right: 3px solid var(--border-color);
    padding-left: 20px;
    padding-right: 20px;

    /* slightly dimmed, "archival" look */
    opacity: 0.85;
}

img {
    max-width: 100%;
}

.hub-list img {
    width: 200px;
    height: auto;
}

h1,
h2 {
    /* font-family: "Didact Gothic", sans-serif; */
    font-family: "Noto Sans Mono", monospace;
}

h1 {
    font-size: 1.6em;
    font-weight: 800;

    padding-top: 10px;
    padding-bottom: 20px;
}

h2 {
    font-size: 1.25em;
}

h3 {
    font-size: 1.05em;
}

h4 {
    font-size: 1em;
}

#page-header {
    padding-top: 10px;
}

#archive-notice {
    margin: 0 0 1em 0;
}

#archive-nav {
    display: block;
    margin-bottom: 1em;
}

body>#archive-nav {
    font-weight: bold;
    margin-bottom: 3em;
}

#page-header #archive-notice,
#page-header #archive-nav {
    color: var(--muted-color);
    font-size: 0.9em;
}

#page-date {
    color: var(--muted-color);
    font-size: 0.9em;
    margin: 1em 0;
    text-align: right;
}

#header-separator,
#footer-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1em 0;
}

#site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    color: var(--muted-color);
    font-size: 0.9em;
}

#footer-internal,
#footer-external {
    white-space: nowrap;
    /* Safari flexbox bug: without this, a nowrap flex item can still
       get shrunk below its content's intrinsic width, forcing the
       text to wrap despite white-space: nowrap. */
    flex-shrink: 0;
}

#site-footer a {
    color: var(--muted-color);
}

.spacing-bottom {
    margin-bottom: 20px;
}

.post-list p {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.post-list {
    list-style: none;
    padding-left: 0;
}

.post-list li {
    margin-bottom: 1em;
}

.post-categories {
    font-size: 0.8em;
    opacity: 0.6;
    margin-top: 2em;
}

.post-list .post-categories {
    margin-bottom: 2em;
}

main .post-categories {
    clear: both;
}

.comment-count {
    white-space: nowrap;
}

.tag-cloud {
    line-height: normal;
}

.post-tags {
    margin-top: 0.3em;
}

.summary-block {
    overflow: hidden;
}

.summary-image-wrap {
    float: right;
    width: 100px;
    max-height: 100px;
    margin-left: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.summary-image {
    max-width: 100px;
    max-height: 100px;
}


.comments {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .comment-list {
    margin-top: 1em;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.comment {
    margin-bottom: 1.5em;
}

.comment-meta {
    font-size: 0.85em;
    color: var(--muted-color);
    margin-bottom: 0.3em;
}

.comment-date {
    margin-left: 0.5em;
}

.comment-content p {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

iframe {
    max-width: 100%;
}

.notfound {
    text-align: center;
    padding: 2em 0;
}

.notfound-glyph {
    font-size: 10em;
    line-height: 1;
    opacity: 0.15;
}

.notfound h1 {
    font-size: 1.3em;
}

.notfound p {
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}