/* Blog-specific styles — base styles come from /styles.css */

.site-nav--active {
    color: var(--accent);
    font-weight: 600;
}

/* Post list */
.post-list-header {
    margin-bottom: 2rem;
}

.post-list-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.post-list-desc {
    color: var(--muted);
}

.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 4px;
}

.post-summary {
    border: 1px solid var(--border);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    background: var(--cell-bg);
}

.post-summary:first-child {
    border-radius: 4px 4px 0 0;
}

.post-summary:last-child {
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 4px 4px;
}

.post-summary:only-child {
    border-radius: 4px;
    border-bottom: 1px solid var(--border);
}

.post-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.post-summary-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.post-summary-title a {
    color: var(--text);
    text-decoration: none;
}

.post-summary-title a:hover {
    color: var(--select);
}

.post-summary-desc {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Single post */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-description {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Post body prose */
.post-body {
    max-width: 680px;
}

.post-body h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.post-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body a {
    color: var(--select);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.post-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: var(--row-header);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.1em 0.35em;
}

.post-body pre {
    border-radius: 6px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}


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

/* Monaco editor block replacing <pre> */
.post-body .monaco-block {
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: normal;
}

.post-body blockquote {
    border-left: 3px solid var(--select);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    color: var(--muted);
    font-style: italic;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.25rem;
}

/* Back link */
.post-back {
    display: inline-block;
    margin-top: 1.5rem;
}

.post-back {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.post-back:hover {
    color: var(--select);
}
