:root {
    --bg: #fafafa;
    --fg: #222;
    --accent: #0066cc;
    --muted: #666;
    --border: #ddd;
    --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --fg: #e0e0e0;
        --accent: #6ab0f3;
        --muted: #999;
        --border: #333;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--fg);
    background: var(--bg);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--fg);
}

.nav-links a {
    margin-left: 1.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--accent); }

h1 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 600; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; font-weight: 600; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

article header { border: none; margin-bottom: 2rem; padding: 0; }
article time { color: var(--muted); font-size: 0.9rem; display: block; margin-top: 0.25rem; }
article .content { margin-top: 2rem; }
article .content p { margin-bottom: 1.25rem; }
article .content ul, article .content ol { margin: 1rem 0 1rem 1.5rem; }
article .content li { margin-bottom: 0.5rem; }
article .content code { background: var(--border); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.9em; }
article .content pre { background: var(--border); padding: 1rem; border-radius: 5px; overflow-x: auto; margin: 1.5rem 0; }
article .content pre code { background: none; padding: 0; }
article .content blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding-left: 1rem; color: var(--muted); }
article .content img { max-width: 100%; height: auto; border-radius: 5px; margin: 1.5rem 0; }

.tags { margin-top: 0.5rem; }
.tag { display: inline-block; background: var(--border); color: var(--muted); padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.8rem; margin-right: 0.5rem; }

.post-list { list-style: none; margin-top: 1rem; }
.post-list li { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 0.75rem; flex-wrap: wrap; }
.post-list time { color: var(--muted); font-size: 0.9rem; min-width: 100px; }

footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
