/* ============================================================
   SIGNAL — article reading layout (shared by all dispatches)
   Warm paper, deep green-ink, restrained sage. The signature:
   metadata set in JetBrains Mono with a "SIGNAL" chip, framing
   each piece as a transmitted dispatch from the lab rather than
   a generic blog post. Boldness is spent here and on the single
   "stance" line per article; everything else stays quiet.
   ============================================================ */

.article-wrap {
    background: linear-gradient(180deg, #F7F5EC 0%, #EDEBDF 100%);
    padding: calc(var(--nav-height, 72px) + 3.5rem) 1.5rem 4.5rem;
    min-height: 100vh;
}
.article { max-width: 700px; margin: 0 auto; }

/* --- Signature: mono dispatch label with SIGNAL chip --- */
.article-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4A6B4D;
    margin: 0 0 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.article-eyebrow::before {
    content: "SIGNAL";
    color: #16201A;
    background: #E2E7D6;
    padding: 0.28em 0.62em;
    border-radius: 3px;
    letter-spacing: 0.1em;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 4.5vw + 1rem, 3.35rem);
    line-height: 1.07;
    color: #16201A;
    letter-spacing: -0.006em;
    margin: 0 0 1.1rem;
}
.article-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    color: #6B6F63;
    margin: 0 0 2.6rem;
    padding-bottom: 2.6rem;
    border-bottom: 1px solid #DBD7C6;
}
.article-lede {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.22rem;
    line-height: 1.62;
    font-weight: 500;
    color: #23271F;
    margin: 0 0 2rem;
}
.article-body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.78;
    color: #34382F;
}
.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.42rem;
    color: #16201A;
    letter-spacing: -0.01em;
    margin: 2.8rem 0 0.9rem;
}
.article-body p { margin: 0 0 1.35rem; }
.article-body strong { color: #16201A; font-weight: 600; }
.article-body em { color: #4A6B4D; font-style: italic; }

/* --- figures / diagrams: editorial paper panel, sage + coral line-art --- */
.article-figure {
    margin: 2.8rem 0 2.4rem;
    padding: 1.9rem 1.5rem 1.4rem;
    background: #F1EDDF;
    border: 1px solid #DBD7C6;
    border-radius: 12px;
}
.article-figure svg { width: 100%; height: auto; display: block; }
.article-figure text {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 13px; font-weight: 500; fill: #1B241D;
}
.article-figure .fig-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.16em; fill: #C45B38; font-weight: 500;
}
.article-figure-caption {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.55;
    color: #6B6F63; margin: 1.2rem 0 0; text-align: center;
}

/* --- The stance: one held position per dispatch. Embodies the
   brand, an AI that takes a position instead of hedging. --- */
.article-stance {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.35rem, 2vw + 0.8rem, 1.6rem);
    line-height: 1.36;
    font-weight: 700;
    font-style: italic;
    color: #16201A;
    margin: 2.6rem 0;
    padding-left: 1.4rem;
    border-left: 3px solid #4A6B4D;
}

.article-cta {
    margin-top: 3.4rem;
    padding: 2.2rem;
    border-radius: 14px;
    background: #16201A;
    text-align: center;
}
.article-cta h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700; font-size: 1.5rem; color: #F4F1E6; margin: 0 0 0.6rem;
}
.article-cta p {
    font-family: 'Inter', sans-serif; font-size: 0.96rem; color: #B9C2B4; margin: 0 0 1.5rem;
}
.article-cta-btn {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
    color: #16201A; background: #E8E4C9;
    padding: 0.85rem 1.8rem; border-radius: 999px; text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}
.article-cta-btn:hover { transform: translateY(-2px); background: #F4F1E6; }
.article-back {
    display: inline-block; margin-top: 2.8rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
    color: #4A6B4D; text-decoration: none;
}
.article-back:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .article-cta-btn { transition: none; }
    .article-cta-btn:hover { transform: none; }
}
@media (max-width: 600px) {
    .article-wrap { padding: calc(var(--nav-height, 64px) + 2rem) 1.2rem 3rem; }
    .article-lede { font-size: 1.1rem; }
    .article-eyebrow { flex-wrap: wrap; }
}
