/* Long-form blog posts. Loaded after site.css. */
main { padding: 96px 0 160px; }
article { max-width: 720px; margin: 0 auto; }

.back { font-size: 15px; color: var(--soft); text-decoration: none; }
.back:hover { color: var(--ink); }

article h1 {
  margin-top: 40px;
  font-family: "Newsreader", "Noto Serif SC", "Songti SC", serif;
  font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.3; letter-spacing: 0.02em;
}
.meta { margin-top: 20px; font-size: 15px; color: var(--soft); }

article h2 {
  margin-top: 80px;
  font-family: "Newsreader", "Noto Serif SC", "Songti SC", serif;
  font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.4; letter-spacing: 0.02em;
}
article > p, article blockquote p, .about p { font-size: 18px; line-height: 1.95; }
article > p { margin-top: 28px; }
article .meta + p { margin-top: 56px; }
article h2 + p { margin-top: 24px; }
article a { color: var(--ink); text-underline-offset: 4px; }

blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--ink); }
blockquote p { color: var(--ink); }

figure { margin: 48px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
figure.narrow img { max-width: 560px; margin: 0 auto; }
figure.chart img { max-width: 540px; margin: 0 auto; }
/* a one-line code screenshot: on phones keep it legible and let it scroll sideways */
figure.code .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
figcaption { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--soft); text-align: center; word-break: keep-all; overflow-wrap: anywhere; }

/* lists inside posts, matching the job page */
ul.points, ol.steps { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
ul.points { list-style: none; }
ol.steps { padding-left: 1.6em; }
ul.points li, ol.steps li { font-family: "Newsreader", "Noto Serif SC", "Songti SC", serif; font-size: 18px; line-height: 1.9; letter-spacing: 0.02em; color: #B4B4B4; }
ol.steps li::marker { color: var(--soft); }
ul.points li { position: relative; padding-left: 22px; }
ul.points li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1px; background: var(--soft); }
ul.points b { font-weight: 600; color: var(--ink); }
.article-cta { margin-top: 64px; }

.about { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.about p + p { margin-top: 16px; }
figure.banner { margin-top: 56px; }

@media (max-width: 900px) {
  main { padding-top: 48px; }
  article > p, article blockquote p, .about p, ul.points li, ol.steps li { font-size: 17px; }
  article h2 { margin-top: 64px; }
  figure { margin: 36px 0; }
  figure.code img { width: 600px; max-width: none; }
}
