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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.site-title {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #111;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #555;
}

.nav-links a:hover {
    color: #111;
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }

a { color: #0066cc; }
a:hover { color: #004499; }

.post-summary {
    margin-bottom: 2rem;
}

.post-summary h2 { margin-bottom: 0.25rem; }
.post-summary time { color: #888; font-size: 0.9rem; }
.post-summary p { margin-top: 0.5rem; color: #555; }

.post-header { margin-bottom: 2rem; }
.post-header time { color: #888; font-size: 0.9rem; }

.post-content h2 { margin-top: 2rem; }
.post-content h3 { margin-top: 1.5rem; font-size: 1.2rem; }
.post-content p { margin-top: 1rem; }
.post-content ul,
.post-content ol { margin-top: 1rem; padding-left: 1.5rem; }
.post-content li { margin-top: 0.25rem; }

.post-content pre {
    margin-top: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

.post-content :not(pre) > code {
    background: #f5f5f5;
    padding: 0.15em 0.3em;
    border-radius: 3px;
}

.archive-year { margin-bottom: 2rem; }
.archive-year ul { list-style: none; padding: 0; }
.archive-year li { margin-top: 0.5rem; }
.archive-year time {
    display: inline-block;
    width: 4rem;
    color: #888;
    font-size: 0.9rem;
}

footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
}
