body {
    position: relative;
    margin: 0;
    font-family: "Helvetica Neue", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

#post-title {
    margin-bottom: 0;
}

#post-date {
    font-weight: normal;
    font-size: small;
}

section#content {
    margin: 2em auto;
    margin-bottom: 0;
    max-width: 40em;
    line-height: 1.6em;
    font-size: 1.2em;
    padding: 0 0.5em;
    padding-bottom: 4em;
}

section#content img {
    display: block;
    margin: auto;
    max-width: 100%;
}

h1, h2, h3 {
    line-height: 1.2em
}

pre code {
    display: block;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    max-width: 100%;
    min-width: 100px;
    padding: 0;
}

header#site-header {
    display: flex;
    padding: 1em;
    flex-wrap: wrap;
    border-bottom: 1px solid;
}

div#sitename {
    flex: 4;
    font-weight: bold;
    font-size: 20pt;
    margin-top: auto;
    margin-bottom: auto;
}

nav > ul {
    display: flex;
}

nav li {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-right: 15px;
}

#next-prev {
    display: flex;
}

#prev {
    flex: 1;
    overflow: clip;
    text-overflow: ellipsis;
}

#next {
    flex: 1;
    overflow: clip;
    text-overflow: ellipsis;
    text-align: right;
}

section#content > #social-buttons img {
    display: inline;
    margin-left: 3px;
    margin-right: 3px;
    vertical-align: middle;
}

#site-footer {
    position: absolute;
    bottom: 0;
    width: 100dvw;
    text-align: center;
}

/* Fix for safari links in dark mode. */
@supports (color-scheme: dark light) {
    @media screen and (prefers-color-scheme: dark) {
        :where(a:link) {color: #9e9eff;}
        :where(a:visited) {color: #d0adf0;}
    }
}
