/* ==========================================================================
   Samia Journal — reading layout for long-form pieces, on top of samia.css v3
   Headlines stay Archivo (the system default). The article body, deks and
   pull quotes read in Fraunces. Ink lines, hard shadows, paper and tints.
   ========================================================================== */

/* Sample banner above the header on placeholder pages */
.sample-note { background: var(--ink); color: rgba(255,247,230,.85); font-size: .86rem; text-align: center; padding: 10px var(--gutter); line-height: 1.45; }
.sample-note strong { color: var(--sun); }

/* Small layout helpers used by Journal pages (no inline styles) */
.center .inline-form { margin-inline: auto; }
.center .actions { justify-content: center; }
.hero .caption + .label { display: flex; }            /* caption on its own line above the label */
.hero .art.framed.pop.in { transform: rotate(1.5deg); } /* keep the frame's tilt after the reveal */

/* Article header --------------------------------------------------------- */
.article-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.article-head .kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--s3); }
.article-head .kicker .small { margin-left: 4px; }
.article-head h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem); max-width: 14em; margin-bottom: var(--s3); }
.article-head h1 em { color: var(--red); }
.article-head .dek { font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.5; max-width: 32em; color: var(--ink-2); margin: 0; font-variation-settings: "opsz" 18, "SOFT" 20; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: var(--s4); padding-top: var(--s3); border-top: var(--bw) solid var(--ink); flex-wrap: wrap; }
.byline .who { display: grid; line-height: 1.3; }
.byline .who b { color: var(--ink); }
.byline .who span { font-size: var(--fs-small); color: var(--muted); }
.byline .meta { margin-left: auto; font-size: var(--fs-small); color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }

.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--ink); background: var(--sun); border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-variation-settings: "wdth" 84; overflow: hidden; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.9rem; }
.avatar.sky { background: var(--sky); } .avatar.pink { background: var(--pink); } .avatar.mint { background: var(--mint); } .avatar.rose { background: var(--rose); } .avatar.lilac { background: var(--lilac); } .avatar.peach { background: var(--peach); }

/* Poster: drawn in SVG, never a stock or generated photo ------------------ */
.poster { margin: 0; border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.poster svg { width: 100%; height: auto; display: block; }
.poster-cap { font-size: .84rem; color: var(--muted); margin: var(--s2) 0 0; }

/* Article grid: body in the middle column, sticky aside on the right ------ */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38rem) minmax(0, 1fr); gap: 0 clamp(20px, 4vw, 56px); padding-block: clamp(40px, 6vw, 80px); }
.article-grid > * { grid-column: 2; }
.article-grid .wide { grid-column: 1 / -1; }
.article-grid .body { grid-row: 1; }
.article-grid .aside { grid-column: 3; grid-row: 1; align-self: start; position: sticky; top: 96px; }
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid > *, .article-grid .aside, .article-grid .wide { grid-column: 1; grid-row: auto; position: static; }
  .article-grid .aside { order: 2; max-width: 340px; margin-top: var(--s5); }
}

/* Reading text ----------------------------------------------------------- */
.body { font-family: var(--serif); font-size: clamp(1.12rem, 1.05rem + .3vw, 1.28rem); line-height: 1.68; color: var(--ink-2); font-variation-settings: "opsz" 18, "SOFT" 0; }
.body p { margin: 0 0 1.15em; }
.body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 1.8em 0 .5em; }
.body > p:first-of-type::first-letter { font-family: var(--display); font-weight: 900; float: left; font-size: 4.6em; line-height: .82; margin: .06em .12em 0 0; color: var(--red); font-variation-settings: "wdth" 84; }
.body sup a { font-family: var(--sans); font-size: .62em; font-weight: 700; color: var(--red); padding-inline: 1px; }
.body a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent); text-underline-offset: .18em; }

.pull { margin: 1.6em 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); line-height: 1.18; color: var(--ink); background: var(--lemon); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px) clamp(20px, 3vw, 32px); font-variation-settings: "opsz" 72, "SOFT" 60; }

.figure { margin: 2em 0; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--shadow); padding: clamp(16px, 2.4vw, 26px); }
.figure figcaption { font-family: var(--sans); font-size: .86rem; color: var(--muted); margin-top: 12px; }
.figure .fig-title { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 10px; }
.figure svg { width: 100%; height: auto; }

/* Side card: the Learn version ------------------------------------------- */
.learn-card { border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--lemon); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; color: inherit; }
.learn-card .label { margin: 0; font-size: var(--fs-label); }
.learn-card .phone { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: var(--bw) solid var(--ink); background: var(--paper); position: relative; }
.learn-card .phone svg { width: 100%; height: 100%; }
.learn-card p { margin: 0; font-size: .9rem; color: var(--ink); }
.learn-card .link-arrow { font-size: .9rem; }

/* Fact check, sources, corrections --------------------------------------- */
.checked { margin-top: 2.4em; border-radius: var(--r); background: var(--mint); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); font-family: var(--sans); font-size: .96rem; color: var(--ink-2); }
.checked h3 { margin-bottom: .5em; display: flex; align-items: center; gap: 10px; }
.checked p { margin: 0; }
.checked .table-wrap { margin-top: 12px; }
.checked table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.checked th, .checked td { text-align: left; padding: 8px 10px 8px 0; border-top: 1.5px solid rgba(21,19,26,.18); vertical-align: top; }
.checked th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-top: 0; }
.ok { display: inline-block; font-weight: 700; color: var(--green); white-space: nowrap; }
.note-mark { display: inline-block; font-weight: 700; color: var(--orange); white-space: nowrap; }
@media (max-width: 560px) {
  .checked thead { display: none; }
  .checked tr { display: grid; gap: 2px; padding: 10px 0; border-top: 1.5px solid rgba(21,19,26,.18); }
  .checked td { border: 0; padding: 0; }
  .checked td:nth-child(2) { color: var(--muted); font-size: .84rem; }
}

.sources { font-family: var(--sans); font-size: .9rem; margin-top: 2.2em; color: var(--ink-2); }
.sources ol { padding-left: 1.4em; margin: .6em 0 0; display: grid; gap: 6px; }
.sources li::marker { color: var(--red); font-weight: 700; }
.corrections, .body .corrections { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: 1.4em 0 0; padding-top: 1.2em; border-top: var(--bw) solid var(--ink); }
.corrections b { color: var(--ink); }

/* Author card ------------------------------------------------------------ */
.author-card { display: flex; gap: 20px; align-items: flex-start; margin-top: 2.6em; padding: clamp(20px, 3vw, 30px); border-radius: var(--r); border: var(--bw) solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow); font-family: var(--sans); font-size: var(--fs-body); }
.author-card h3 { margin-bottom: 4px; }
.author-card p { margin: 0 0 8px; font-size: .96rem; }
@media (max-width: 520px) { .author-card { flex-direction: column; } .byline .meta { margin-left: 0; } }

/* Journal front: stories ------------------------------------------------- */
.story { display: grid; gap: 14px; align-content: start; justify-items: start; color: inherit; min-width: 0; }
.story:hover { text-decoration: none; }
.story .thumb { width: 100%; border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.story:hover .thumb { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.story .thumb svg { width: 100%; height: 100%; display: block; }
.story h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); margin: 0; }
.story p { margin: 0; color: var(--muted); font-size: .96rem; }
.story .by { font-size: .86rem; font-weight: 600; color: var(--ink); }
.story.lead-story { grid-column: span 2; grid-row: span 2; }
.story.lead-story .thumb { aspect-ratio: 16 / 9; }
.story.lead-story h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.story.lead-story p { font-size: var(--fs-body); color: var(--ink-2); }
@media (max-width: 980px) { .story.lead-story { grid-column: 1 / -1; grid-row: auto; } }

/* Contributor tiles and the five-step process ----------------------------- */
.voice { justify-items: start; }
.voice .role { font-size: .9rem; font-weight: 700; color: var(--red); }
.voice .avatar { margin-bottom: 4px; }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.process li { counter-increment: step; background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); padding: 18px; font-size: .94rem; color: var(--ink-2); min-width: 0; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--red); line-height: 1; margin-bottom: 10px; font-variation-settings: "wdth" 80; }
.process b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .01em; font-variation-settings: "wdth" 88; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* Good News sample items -------------------------------------------------- */
.news-item { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; font-variation-settings: "opsz" 18, "SOFT" 0; }
.news-item .src { font-family: var(--sans); font-size: .84rem; color: var(--muted); }
