:root {
    --background: #222831;
    --background-light: #333c4a;
    --foreground: #d0d4d9;
    --foreground-dim: #a0a0a0;
    --accent: #e43f5a;
    --accent-mid-transparent: #e43f5a66;
    --accent-transparent: #e43f5a20;
    --accent-active: #ea6478;
    --accent-slight: #ecc6cc;
}

::selection {
    background-color: var(--accent-mid-transparent);
}

body {
    max-width: 110ch;
    margin-inline: auto;
    padding-inline: 2px;
    background: var(--background);
    color: var(--foreground);
    font-family: "Iosevka MM Pr Web", sans-serif;
    font-size: 18px;
    line-height: 1.5;
}
body.post {
    max-width: 65ch;
}
a:link, a:visited {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:active {
    text-decoration: underline;
    color: var(--accent-active);
}
pre, code {
    font-family: "Iosevka MM Cn Web", monospace;
}
header {
    width: fit-content;
    margin-inline: auto;
    text-align: center;
    font-weight: bold;
}
header h1.site-name {
    font-size: 2em;
    margin-bottom: 0;
}
header h1.site-name a:link,
header h1.site-name a:visited {
    color: var(--foreground);
}
header h1.site-name a:hover {
    text-decoration: none;
}
header h1.site-name a:active {
    text-decoration: none;
    color: var(--foreground);
}
header h5 {
    margin-top: 0;
}
footer {
    color: var(--foreground-dim);
    font-size: 0.9em;
    margin-top: 50px;
}
footer .cc-icon {
    max-width: 1em;
    max-height: 1em;
    margin-left: .2em;
    vertical-align: -0.1em;
    filter: invert(1);
}
div.centered {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
#website-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
@media only screen and (min-width: 600px) {
    #website-list {
        display: flex;
        flex-wrap: wrap;
    }
    #website-list li:not(:last-child)::after {
        content: "|";
        margin-inline: 0.5rem;
    }
}
div#post-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}
div#post-previews > a {
    display: block;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px;
    color: inherit;
    text-decoration: inherit;
}
div#post-previews > a:hover {
    background-color: var(--accent-transparent);
    border: 1px solid var(--accent);
}
div#post-previews > a:active {
    background-color: var(--accent-mid-transparent);
    border: 1px solid var(--accent);
}
.post-date, .post-info {
    color: var(--foreground-dim);
}
div#post-previews .post-title {
    margin-top: 0;
    margin-bottom: 0.3em;
}
div#post-previews .post-subtitle {
    margin: 0;
}
div#post-previews .post-date {
    font-size: 0.8em;
    margin-bottom: 0;
}
body.post .post-title {
    margin-top: 5rem;
}
body.post .post-subtitle {
    margin-top: 0;
    font-size: 1.1em;
}
body.post .post-date,
body.post .post-info {
    font-size: 0.9em;
}
body.post article {
    hyphens: auto;
    font-family: "Iosevka MM Pr Web", serif;
}
body.post article h1,
body.post article h2,
body.post article h3,
body.post article .post-title,
body.post article .post-subtitle,
body.post article .post-date,
body.post article .post-info {
    font-family: "Iosevka MM Pr Web", sans-serif;
}
body.post pre {
    border-radius: 5px;
    padding: 5px;
    background-color: var(--background-light);
}
code:not(pre *) {
    display: inline-block;
    margin-block: 1px;
    padding-inline: 2px;
    background-color: var(--background-light);
    border-radius: 4px;
}
