/* ============================================================
   ARTICLE THEME — newspaper typography & palette (articles only)
   Loaded after styles.css on pages with <body class="newsprint">.
   Fonts: Playfair Display (display), Source Serif 4 (body),
          Libre Franklin (kickers, bylines, UI).
   ============================================================ */

.newsprint {
  --paper: #FCFBF8;
  --ink: #121212;
  --ink-soft: #3A3A3A;
  --ink-mute: #6B6B6B;
  --rule: #D8D4CB;
  --rule-strong: #121212;
  --link: #1A4FED;
  --serif-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

html:has(body.newsprint) {
  background: #FCFBF8;
}

/* ---- Masthead-ish top bar: keep brand bar, but black/paper below ---- */
.newsprint .tutorial-topbar {
  background: var(--ink);
}

.newsprint .tb-brand { font-family: var(--sans); font-weight: 700; letter-spacing: 0.01em; }
.newsprint .tb-link  { font-family: var(--sans); }

/* ---- Article column ---- */
.newsprint .article-page {
  max-width: 700px;
  padding: 52px 22px 90px;
}

.newsprint .article-kicker {
  font-family: var(--sans);
  background: transparent;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--rule-strong);
  border-radius: 0;
  display: inline-block;
  margin-bottom: 22px;
}

.newsprint .article-page h1 {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 18px;
}

.newsprint .article-deck {
  font-family: var(--serif-body);
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.newsprint .byline {
  font-family: var(--sans);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin-bottom: 30px;
}

.newsprint .byline img { width: 44px; height: 44px; }
.newsprint .byline .who strong { font-size: 0.9rem; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.newsprint .byline .who span   { font-size: 0.8rem; color: var(--ink-mute); }
.newsprint .byline .meta       { font-size: 0.78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Hero as a figure with caption ---- */
.newsprint .article-hero {
  border-radius: 2px;
  box-shadow: none;
  margin: 0;
}

.newsprint figure {
  margin: 0 0 40px;
}

/* ---- In-article figures ---- */
.newsprint .article-body figure {
  margin: 30px 0 34px;
}

.newsprint .article-body figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Floated figure: text wraps around it, newspaper-style */
.newsprint .article-body figure.wrap-right {
  float: right;
  width: min(340px, 46%);
  margin: 6px 0 16px 28px;
}

.newsprint .article-body::after {
  content: '';
  display: block;
  clear: both;
}

@media (max-width: 620px) {
  .newsprint .article-body figure.wrap-right {
    float: none;
    width: 100%;
    margin: 24px 0 28px;
  }
}

.newsprint figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-mute);
  padding-top: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}

/* ---- Body copy ---- */
.newsprint .article-body {
  font-family: var(--serif-body);
  font-size: 1.19rem;
  line-height: 1.72;
  color: var(--ink);
}

.newsprint .article-body p { margin: 0 0 1.3em; }

.newsprint .article-body p.lede::first-letter {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 4.1em;
  line-height: 0.8;
  color: var(--ink);
  padding: 0.1em 0.1em 0 0;
}

.newsprint .article-body h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.1em 0 0.55em;
  letter-spacing: -0.005em;
}

.newsprint .article-body strong { color: var(--ink); font-weight: 700; }
.newsprint .article-body em { font-style: italic; }
.newsprint .article-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.newsprint .article-body .emph-line {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}

.newsprint .article-body blockquote {
  margin: 2.2em 0;
  padding: 18px 0;
  border-left: 0;
  border-top: 3px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
}

.newsprint .article-body hr {
  background: var(--rule);
}

.newsprint .article-cta {
  font-family: var(--sans);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-left-width: 1px;
  border-radius: 0;
  padding: 16px 20px;
  font-size: 0.98rem;
  margin-top: 2.4em;
}

/* ---- Engagement ---- */
.newsprint .engage { font-family: var(--sans); }

.newsprint .react-bar {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}

.newsprint .react-bar .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.newsprint .react-btn {
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
}

.newsprint .react-btn:hover { background: #F1EFE9; color: var(--ink); border-color: var(--ink); }
.newsprint .react-btn.on   { background: var(--ink); color: #fff; border-color: var(--ink); }

.newsprint .comments h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--ink);
}

.newsprint .comments .sub { font-size: 0.92rem; color: var(--ink-mute); }

.newsprint .comment-form {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.newsprint .comment-form input,
.newsprint .comment-form textarea {
  font-family: var(--sans);
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
}

.newsprint .comment-form input:focus,
.newsprint .comment-form textarea:focus { border-color: var(--ink); }

.newsprint .comment-form .btn-primary {
  font-family: var(--sans);
  background: var(--ink);
  border-radius: 4px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 11px 20px;
}

.newsprint .comment-form .btn-primary:hover { background: #000; }
.newsprint .comment-form .hint { font-size: 0.78rem; }

.newsprint .comment { border-bottom: 1px solid var(--rule); }
.newsprint .comment .avatar { background: var(--ink); border-radius: 2px; font-family: var(--sans); font-size: 0.85rem; }
.newsprint .comment .head strong { font-family: var(--sans); color: var(--ink); font-size: 0.92rem; }
.newsprint .comment .head time { font-family: var(--sans); color: var(--ink-mute); font-size: 0.78rem; }
.newsprint .comment .text { font-family: var(--serif-body); color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.newsprint .comment .c-like { border-radius: 4px; border-color: var(--rule); color: var(--ink-mute); }
.newsprint .comment .c-like:hover, .newsprint .comment .c-like.on { border-color: #B91C1C; color: #B91C1C; background: #FBF1F0; }
.newsprint .comments .empty { font-family: var(--serif-body); font-style: italic; color: var(--ink-mute); }

/* ---- Footer ---- */
.newsprint .site-footer { font-family: var(--sans); color: var(--ink-mute); border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 28px; }
.newsprint .site-footer a { color: var(--ink); }

@media (max-width: 600px) {
  .newsprint .article-body { font-size: 1.08rem; }
  .newsprint .article-body blockquote { font-size: 1.3rem; }
}
