/* Article typography for peterjackson.dev — reuses the tokens in /style.css */

.post {
    padding: 8rem 0 4rem;
}

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

.post-header {
    margin-bottom: 3rem;
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
}

.post-header h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-subtitle {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.35;
    color: var(--color-text-muted);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.01em;
    margin-top: 0.8rem;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.post-body h2 {
    font-size: 1.5rem;
    margin: 3.5rem 0 1.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--color-border);
    letter-spacing: -0.01em;
}

.post-body ul {
    margin: 0 0 1.6rem 1.3rem;
}

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

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.1rem 1.4rem;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body blockquote p {
    margin: 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text);
}

.post-body strong {
    color: #fff;
    font-weight: 600;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

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

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

.post-list li {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.post-list .post-date {
    margin-bottom: 0.4rem;
}

.post-list h2 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
    border: none;
    padding: 0;
}

.post-list h2 a {
    color: var(--color-text);
}

.post-list h2 a:hover {
    color: var(--color-primary);
}

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

@media (max-width: 640px) {
    .post { padding: 6rem 0 3rem; }
    .post-body { font-size: 1rem; }
}
