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

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #666666;
    --color-accent: #2563eb;
    --max-width: 680px;
    --font-sans: system-ui, -apple-system, sans-serif;
    --font-mono: "Courier New", monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding: 0 1rem;
}

main {
    max-width: var(--max-width);
    margin: 4rem auto;
}

/* Header */
header {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--color-text);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav ul a {
    text-decoration: none;
    color: var(--color-muted);
    font-size: 0.95rem;
}

header nav ul a:hover {
    color: var(--color-accent);
}

/* Footer */
footer {
    border-top: 1px solid #eee;
    padding: 2rem 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    max-width: var(--max-width);
    margin: 4rem auto 0;
}

/* Typography */
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    color: var(--color-muted);
}

a {
    color: var(--color-accent);
}

/* Post list */
.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.post-item a {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}

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

.post-item time {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0.25rem 0;
}

.post-item p {
    font-size: 0.95rem;
}

/* Post individual */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-header time {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.tag-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    font-size: 0.8rem;
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: var(--color-muted);
}

/* Post content */
.post-content {
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.post-content p {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.post-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.post-content a {
    color: var(--color-accent);
}
