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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    margin-bottom: 48px;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
header a { text-decoration: none; color: #1a1a1a; }
.site-title { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.nav-link { font-size: 14px; color: #666; }
.nav-link:hover { color: #1a1a1a; }

/* Blog listing */
.blog-header { margin-bottom: 48px; }
.blog-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.blog-header p { color: #666; font-size: 17px; }

.post-list { list-style: none; }
.post-item { border-bottom: 1px solid #f0f0f0; padding: 24px 0; }
.post-item:last-child { border-bottom: none; }
.post-item a { text-decoration: none; color: inherit; display: block; }
.post-item a:hover .post-title { color: #0066cc; }
.post-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.post-meta { font-size: 14px; color: #999; margin-bottom: 8px; }
.post-excerpt { font-size: 15px; color: #555; line-height: 1.5; }

/* Article */
article { margin-bottom: 64px; }
article h1 { font-size: 34px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.article-meta { font-size: 14px; color: #999; margin-bottom: 8px; }
.article-tags { font-size: 13px; color: #0066cc; margin-bottom: 40px; }
.article-tags span { background: #f0f6ff; padding: 2px 8px; border-radius: 3px; margin-right: 6px; }

article h2 {
    font-size: 22px; font-weight: 700;
    margin-top: 40px; margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
article h3 { font-size: 18px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; }
article p { margin-bottom: 16px; }
article ul, article ol { margin-bottom: 16px; padding-left: 24px; }
article li { margin-bottom: 6px; }
article strong { font-weight: 600; }
article a { color: #0066cc; text-decoration: none; }
article a:hover { text-decoration: underline; }

/* Code */
code {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}
pre {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}
pre code { background: none; padding: 0; font-size: 13px; line-height: 1.5; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #e8e8e8; }
th { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; }

/* Blockquote */
blockquote {
    border-left: 3px solid #0066cc;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    color: #444;
    font-style: italic;
}

/* Footer */
footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 0;
    margin-top: 64px;
    color: #999;
    font-size: 14px;
}
.footer-about { margin-bottom: 12px; color: #666; }
.footer-links a { color: #0066cc; text-decoration: none; margin-right: 16px; }

/* Responsive */
@media (max-width: 600px) {
    body { font-size: 16px; }
    article h1 { font-size: 26px; }
    .blog-header h1 { font-size: 26px; }
    pre { font-size: 12px; padding: 12px; }
    table { font-size: 13px; }
    th, td { padding: 6px 8px; }
}
