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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.site-tagline {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.main-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9375rem;
}

.main-nav a:hover {
    color: #0f172a;
}

/* Main */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

.site-main h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Post content */
.post-thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.post-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1rem; }
.post-content ul,
.post-content ol { margin: 0 0 1rem 1.5rem; }
.post-content blockquote {
    border-left: 4px solid #cbd5e1;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    color: #475569;
}
.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}
.post-content code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}
.post-content pre code {
    background: none;
    padding: 0;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.post-content th,
.post-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.post-content th {
    background: #f1f5f9;
    font-weight: 600;
}

/* Archive / post cards */
.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: #0f172a;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #3b82f6;
}

.post-excerpt {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.post-card time {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    color: #3b82f6;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

.pagination a:hover {
    background: #eff6ff;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}
