/* ===================
   WRITING / ARTICLE STYLES
   Layered on top of styles-merged.css (the homepage design system).
   Only adds long-form article typography; tokens come from the homepage.
   =================== */

/* Article column */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(80px + 2.5rem) 24px 2rem;
}

.article-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 32px;
}
.article-meta a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.article-meta a:hover { color: var(--accent); }
.article-meta .dot { opacity: 0.5; }

/* Hero image */
.article-hero {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: block;
    margin-bottom: 40px;
}

/* ---- Prose ---- */
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > figure,
.article-body > .prompt-block,
.article-body > .callout {
    margin-bottom: 24px;
}

.article-body p,
.article-body li {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.article-body a:hover { color: var(--accent-hover); }

.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }

.article-body strong { font-weight: 700; color: var(--text-primary); }

.article-body code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1em 0.4em;
    color: var(--text-primary);
    word-break: break-word;
}

/* Inline figures */
figure { margin: 0; }
figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: block;
    cursor: zoom-in;
    background: var(--card-bg);
}
figcaption {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

/* Copyable prompt / code block */
.prompt-block {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.6;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    overflow-x: auto;
}

/* Pull-callout (e.g. series note) */
.callout {
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-secondary);
}
.callout a { color: var(--accent); }

/* End-of-article author bio */
.article-bio {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-secondary);
}
.article-bio a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Make figures zoomable via the homepage lightbox (#lightbox is styled in styles-merged.css) */

/* ===================
   BLOG INDEX (HUB)
   =================== */
.blog-index { max-width: 1040px; margin: 0 auto; padding: calc(80px + 2.5rem) 24px 2rem; }
.blog-index-header { margin-bottom: 40px; }
.blog-index-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.blog-index-header p { font-size: 18px; color: var(--text-secondary); max-width: 60ch; }

.post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.post-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.post-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}
.post-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
}
@media (max-width: 640px) {
    .post-list { grid-template-columns: 1fr; }
}
.post-card .post-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.post-card h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.post-card p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 16px; }
.post-card .post-date { font-size: 13px; color: var(--text-muted); margin-top: auto; }

/* Mobile menu (full-width sheet + Office Hours action) is defined once in
   styles-merged.css so the homepage and blog share it. */
