/* Styling for the CMS-driven article/case-study body blocks (Phase 2). NEW
   file, not part of the original hand-built pages — loaded only by the new
   /thinking/<slug>/ and /work/<slug>/ templates, so nothing existing changes.
   Reuses the same tokens/classes (.mono, --font-mono, the dark palette) as
   the rest of the site. */

.article-body p{margin:0 0 26px;font-size:17px;line-height:1.62;color:#A8A5B0;max-width:64ch}
.article-body p:last-child{margin-bottom:0}
.article-body h2{margin:44px 0 18px;font-weight:300;font-size:clamp(1.5rem,2.3vw,2rem);line-height:1.2;letter-spacing:-.03em;color:#F3F0E8}
.article-body h3{margin:36px 0 14px;font-weight:400;font-size:clamp(1.2rem,1.7vw,1.5rem);line-height:1.25;letter-spacing:-.02em;color:#F3F0E8}
.article-body ul,.article-body ol{margin:0 0 26px;padding-left:22px;color:#A8A5B0;font-size:17px;line-height:1.62}
.article-body li{margin:0 0 8px}
.article-body a{color:#B08FE0;text-underline-offset:3px}
.article-body blockquote{margin:0 0 26px;padding-left:20px;border-left:2px solid rgba(176,143,224,.4);color:#F3F0E8;font-style:italic}
.article-body strong{color:#F3F0E8;font-weight:600}

.article-figure{margin:0 0 26px;display:flex;flex-direction:column;gap:14px}
.article-figure img{display:block;width:100%;height:auto;border:1px solid rgba(243,240,232,.1)}
.article-figure figcaption{font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:rgba(168,165,176,.42)}

.pull-quote{display:flex;flex-direction:column;gap:20px;padding:34px 0;margin:0 0 26px;border-top:1px solid rgba(243,240,232,.14);border-bottom:1px solid rgba(243,240,232,.14)}
.pull-quote__text{font-weight:300;font-size:clamp(1.6rem,2.5vw,2.1rem);line-height:1.22;letter-spacing:-.03em;max-width:32ch;color:#F3F0E8}
.pull-quote__attribution{color:rgba(168,165,176,.5)}

.callout{margin:0 0 26px;padding:22px 24px;border-radius:2px;border-left:2px solid #8FA6FF;background:rgba(243,240,232,.03);display:flex;flex-direction:column;gap:10px}
.callout--warning{border-left-color:#E0A85C}
.callout--note{border-left-color:rgba(168,165,176,.5)}
.callout__title{font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#8FA6FF}
.callout--warning .callout__title{color:#E0A85C}
.callout__body{margin:0;font-size:16px;line-height:1.58;color:#A8A5B0}

.code-block{margin:0 0 26px;padding:20px 22px;background:rgba(0,0,0,.35);border:1px solid rgba(243,240,232,.1);overflow-x:auto;font-family:var(--font-mono);font-size:13px;line-height:1.6;color:#D8D4E8}

.embed{margin:0 0 26px;display:flex;flex-direction:column;gap:12px}
.embed iframe{width:100%;aspect-ratio:16/9;border:1px solid rgba(243,240,232,.1);display:block}
.embed__caption{color:rgba(168,165,176,.42)}

.divider{margin:40px 0;height:1px;background:rgba(243,240,232,.14)}

/* Case-study chapter extras: before/after pair, metrics row — visual language
   matches the placeholders they replace in the old hand-written case.html. */
.chapter-before-after{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 26px}
.chapter-before-after img{display:block;width:100%;height:auto;border:1px solid rgba(243,240,232,.1)}
.chapter-before-after span{display:block;padding:8px 0;font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:rgba(168,165,176,.5)}
.chapter-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:24px;padding-top:20px;margin:0 0 26px}
.chapter-metric{display:flex;flex-direction:column;gap:10px;padding-top:16px;border-top:1px solid rgba(243,240,232,.14)}
.chapter-metric__value{font-weight:300;font-size:clamp(1.8rem,2.6vw,2.2rem);letter-spacing:-.03em;color:#F3F0E8}
.chapter-metric__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:rgba(168,165,176,.45)}
.chapter-metric__window{font-family:var(--font-mono);font-size:10px;color:rgba(168,165,176,.35)}
