* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
    font-size: 18px;
    line-height: 1.75;
    color: #2b2b2b;
    max-width: 620px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    background: #f9f8f6;
}

::selection {
    background: #2b2b2b;
    color: #f9f8f6;
}

header {
    margin-bottom: 4rem;
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    font-size: 14px;
}

header nav {
    display: flex;
    gap: 2rem;
    align-items: baseline;
}

header nav a {
    text-decoration: none;
    color: #2b2b2b;
    letter-spacing: 0.01em;
}

header nav a.site-title {
    font-weight: 500;
}

header nav a:hover {
    color: #666;
}

main {
    min-height: 50vh;
}

main > h1 {
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 2rem;
}

article {
    margin-bottom: 4rem;
}

article h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

article .meta {
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    color: #888;
    font-size: 13px;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

article p {
    margin-bottom: 1.5rem;
    hanging-punctuation: first;
}

article a {
    color: #2b2b2b;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: #aaa;
}

article a:hover {
    text-decoration-color: #2b2b2b;
}

article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
    letter-spacing: -0.01em;
}

article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

article ul, article ol {
    margin: 1.5rem 0 1.5rem 1.25rem;
}

article li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

article blockquote {
    border-left: 2px solid #ccc;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
    font-style: italic;
}

article pre {
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    background: #f0efed;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 14px;
    line-height: 1.55;
}

article code {
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    background: #f0efed;
    padding: 0.15rem 0.4rem;
    font-size: 0.85em;
}

article pre code {
    background: none;
    padding: 0;
}

article hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 3rem 0;
}

article img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    font-size: 14px;
}

article th,
article td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0dfdd;
}

article th {
    font-weight: 500;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

article td[align="right"],
article th[align="right"] {
    text-align: right;
}

article tbody tr:nth-child(even) {
    background: #f3f2f0;
}

article tbody tr:hover {
    background: #eae9e6;
}

article h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
}

article li ul,
article li ol {
    margin: 0.5rem 0 0.5rem 1.25rem;
}

.post-list {
    list-style: none;
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    font-size: 14px;
}

.post-list li {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}

.post-list .date {
    color: #888;
    min-width: 5.5rem;
    letter-spacing: 0.02em;
}

.post-list a {
    color: #2b2b2b;
    text-decoration: none;
}

.post-list a:hover {
    color: #555;
}

footer {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0dfdd;
    font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.02em;
}

@media (max-width: 500px) {
    body {
        padding: 2.5rem 1.25rem;
        font-size: 17px;
    }

    header {
        margin-bottom: 3rem;
    }

    article h1 {
        font-size: 1.4rem;
    }

    .post-list li {
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 1.25rem;
    }

    .post-list .date {
        min-width: auto;
    }
}
