/* Article pages generated by scripts/build_blog.py. blog.css loads first and
   carries the palette, the navbar and the .post-tag colours; this file only
   adds what a single long-form page needs on top of the feed. */

.post-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 96px 24px 72px;
}

.breadcrumb {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.post-article h1 {
    font-size: clamp(26px, 4.2vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 14px 0 16px;
    color: var(--text);
}

.post-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

/* Long-form measure: the feed's 14px is for skimming a card, not for reading
   700 words of it. */
.post-article p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.post-article p b,
.post-article p strong { color: var(--text); font-weight: 600; }

.post-article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(74, 222, 128, .3); }
.post-article a:hover { border-bottom-color: var(--accent); }

.post-article code {
    font-family: var(--mono);
    font-size: .9em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--text);
}

.post-figure { margin: 28px 0; }

.post-figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
}

.post-source {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

/* One offer per page, after the reader has finished. The post is what brought
   them here; the screeners are what the page is for. */
.post-cta {
    margin: 40px 0;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.post-cta p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin-bottom: 16px; }

.post-cta a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.post-cta a:hover { filter: brightness(1.08); }

.post-related { margin: 40px 0 28px; }

.post-related h2 {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.post-related ul { list-style: none; padding: 0; margin: 0; }
.post-related li { border-top: 1px solid var(--border); }

.post-related a {
    display: block;
    padding: 12px 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

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

.post-back { text-align: center; }
.post-back a { color: var(--text-muted); font-family: var(--mono); font-size: 12px; text-decoration: none; }
.post-back a:hover { color: var(--accent); }

@media (max-width: 560px) {
    .post-page { padding: 84px 18px 56px; }
}
