:root {
    --page-bg: #1d1f25;
    --text: #a6abb8;
    --text-soft: #555555;
    --text-faint: #777777;
    --link: #2b2b2b;
    --link-visited: #111111;
    --link-hover: #111111;
    --nav-height: 90px;
    --content-width: 700px;
    color: var(--text);
    background: var(--page-bg);
    font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
    word-break: normal;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 150ms ease-in, text-decoration-color 150ms ease-in;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--nav-height);
    background: var(--page-bg);
}

.nav-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-title {
    display: flex;
    flex-wrap: wrap;
    margin-right: 12px;
    font-weight: 200;
}

.site-title-description {
    white-space: nowrap;
}

.nav-link {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    padding: 0 8px;
    color: var(--text-soft);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--text);
}

.page-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 44px;
    padding: var(--nav-height) 24px 0;
}

.content-column,
.site-footer {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.intro {
    padding-top: 32px;
}

.intro p {
    margin: 0;
    color: var(--text-soft);
}

.post-listing {
    padding-top: 12px;
}

h1 {
    margin: 1em 0;
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
}

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

.post-list-item {
    margin-bottom: 12px;
    padding: 8px 0;
}

.post-list-item a {
    color: #4a4a4a;
    font-size: 1.125rem;
    font-weight: 600;
}

.post-list-item a:hover {
    color: var(--text);
}

.post-meta {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 0.875rem;
}

.post {
    padding-top: 32px;
}

.post-header {
    margin-bottom: 32px;
}

.post-header h1 {
    margin: 0;
}

.prose :first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: #3f3f3f;
    font-size: 1rem;
    line-height: 1.65;
}

.prose p,
.prose li,
.prose pre,
.prose blockquote,
.prose figure,
.prose ul,
.prose ol,
.prose table {
    max-width: 100%;
    margin: 1.125em 0;
}

.prose pre,
.prose table {
    overflow-x: auto;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 2em;
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
}

.prose h2 {
    margin-bottom: 1em;
    font-size: 2rem;
}

.prose h3 {
    font-size: 1.5rem;
}

/* .prose a { */
/*     color: var(--link-visited); */
/*     font-weight: 600; */
/*     text-decoration: underline; */
/*     text-decoration-thickness: 2px; */
/*     text-decoration-color: #d8d8d8; */
/*     text-underline-offset: 3px; */
/* } */
/**/
/* .prose a:visited { */
/*     color: var(--link-visited) */
/* } */

.site-footer {
    padding: 24px 0;
    color: #6f6f6f;
    font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page-bg: #1d1f25;
        --text: #d7d8df;
        --text-soft: #c7c7c7;
        --text-faint: #a3a3a3;
        --link: #eeeeee;
        --link-hover: #ffffff;
    }

    .site-nav {
        background: var(--page-bg);
    }

    .post-list-item a {
        color: #a6abb8;
    }

    .prose p,
    .prose li {
        color: #9a9fae;
    }

    .prose a {
        color: #eaebee;
        text-decoration-color: #666666;
    }
}

@media (max-width: 38rem) {
    .nav-inner {
        padding: 0 16px;
    }

    .page-shell {
        padding-right: 16px;
        padding-left: 16px;
    }

    .nav-link {
        flex: 0 0 auto;
        justify-content: flex-end;
        white-space: nowrap;
    }

    h1 {
        font-size: 2rem;
    }
}
