/* === Blog (inherits variables from style.css) === */

.blog-main {
    padding-top: 120px; /* clear the fixed header */
    padding-bottom: 80px;
    max-width: 760px;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 8px 0 12px;
    color: var(--text);
}

.post-lede {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.post-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
}

.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 18px;
}

.post-content ul,
.post-content ol {
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}

.post-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.88rem;
}

.post-content table {
    border-collapse: collapse;
    margin-bottom: 18px;
    width: 100%;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border);
    padding: 8px 14px;
    text-align: left;
}

.post-content th {
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-light);
    padding-left: 18px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.post-content em:last-child {
    color: var(--text-muted);
}

.post-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Blog index */
.post-list {
    list-style: none;
    padding: 0;
    margin-top: 36px;
}

.post-list-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.post-list-item h2 {
    font-size: 1.35rem;
    margin: 4px 0 8px;
}

.post-list-item p {
    color: var(--text-muted);
}
