/* ============================================================
   article.css — blog posts styled as a vintage newspaper.
   Loaded after base.css; colours/fonts come from its tokens.
   Works on the existing markup (no per-post edits): the
   .hero-banner becomes the masthead, .hero-tag the dateline,
   and the article turns into a front-page story.
   ============================================================ */

:root { --banner-accent: var(--accent); }

/* ── Masthead (nameplate + dateline) ── */
.hero-banner {
  max-width: 720px; margin: 104px auto 0; padding: 0 22px;
  height: auto; background: none; display: block; text-align: center;
}
.hero-banner::before {
  content: "Du Che Anh";
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 9vw, 76px); line-height: 1; letter-spacing: -0.02em; color: var(--ink);
  border-top: 3px solid var(--ink); padding: 12px 0 6px;
}
.hero-tag {
  display: block; font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink2);
  background: none; padding: 8px 0; border-radius: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.hero-tag::before { content: "Vol. I  \00b7  "; color: var(--ink3); }
.hero-tag::after  { content: "  \00b7  Ho Chi Minh City  \00b7  MMXXVI"; color: var(--ink3); }

/* ── The story ── */
article { max-width: 700px; margin: 0 auto; padding: 20px 22px 90px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink2); margin: 26px 0 30px; transition: color .18s;
}
.back-link:hover { color: var(--accent); }

article h1 {
  font-family: var(--serif); font-weight: 600; text-align: center;
  font-size: clamp(34px, 6.4vw, 56px); line-height: 1.03; letter-spacing: -0.02em;
  margin: 4px 0 16px;
}
article .subtitle {
  font-family: var(--body); font-style: italic; font-size: 20px; line-height: 1.5;
  color: var(--ink2); text-align: center; max-width: 40ch; margin: 0 auto 18px;
}
article .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink3); text-align: center;
  border-top: 1px solid var(--line2); border-bottom: 3px double var(--ink);
  padding: 10px 0; margin-bottom: 34px;
}

/* Body — justified newsprint columns of one, with a drop cap */
article p { font-size: 18px; line-height: 1.7; color: var(--ink); margin-bottom: 18px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
article > hr:first-of-type { display: none; }            /* meta already carries the rule */
.meta + hr + p::first-letter, .meta + p::first-letter {
  float: left; font-family: var(--serif); font-weight: 600; color: var(--accent);
  font-size: 68px; line-height: 0.66; padding: 8px 12px 0 0;
}
article ul, article ol { font-size: 18px; line-height: 1.7; color: var(--ink); margin: 0 0 18px 0; padding-left: 26px; }
article li { margin-bottom: 8px; }
article li p { text-align: left; margin-bottom: 8px; }
article strong { font-weight: 600; }
article em { font-style: italic; }

/* Section breaks become a centered printer's dash */
article hr { border: none; width: 46%; margin: 30px auto; text-align: center; }
article hr::before { content: "\00a7"; color: var(--ink3); font-size: 15px; letter-spacing: 0.3em; }

/* Crossheads — centered, small, in the mono voice */
article h2 {
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  font-size: 12.5px; letter-spacing: 0.12em; color: var(--accent); text-align: center;
  margin: 40px 0 18px;
}

/* Pull quotes, ruled top and bottom like a newspaper */
article blockquote {
  border: none; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 20px 0; margin: 32px 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--ink);
}

article code { font-family: var(--mono); font-size: 15px; background: var(--paper2); padding: 2px 6px; border-radius: 4px; }
article pre { background: var(--ink); color: var(--paper); padding: 22px 24px; border-radius: 4px; overflow-x: auto; margin-bottom: 24px; font-size: 14px; line-height: 1.6; text-align: left; }
article pre code { background: none; padding: 0; color: inherit; }

/* End mark — the classic newsroom "-30-" */
article::after {
  content: "\2014 30 \2014"; display: block; text-align: center; margin-top: 44px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.3em; color: var(--ink3);
}

/* Footer: single row */
.footer-inner.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer-row .footer-name { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.footer-row .footer-links { flex-direction: row; gap: 22px; text-align: left; }

@media (max-width: 720px) {
  .hero-banner { margin-top: 90px; }
  article { padding: 12px 22px 64px; }
  article p, article ul, article ol { font-size: 17px; }
  article p { text-align: left; hyphens: none; }
  .meta + hr + p::first-letter, .meta + p::first-letter { font-size: 56px; }
  .footer-inner.footer-row { flex-direction: column; gap: 16px; text-align: center; }
  .footer-row .footer-links { justify-content: center; }
}
