/* article.css
   In-article typography + imagery overrides for the blog post body.
   Loaded AFTER themolld.css so these rules win on specificity ties.
   Scope is limited to `.article_rich-text` (the rendered markdown body) — it
   does not touch page layout, the 22% body-text indent, or its responsive
   overrides (themolld.css sets margin-left:22% at desktop and margin-left:auto
   at <=991px; we deliberately leave those intact so headings stay aligned). */

/* ---- Headings: make markdown ## / ### look on-system (DM Sans, tight) ---- */
.article_rich-text h2 {
  font-family: inherit;            /* DM Sans, same as body */
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  /* margin-left intentionally NOT set — inherits design's 22% + mobile reset */
}

.article_rich-text h3 {
  font-family: inherit;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  /* margin-left intentionally NOT set — inherits design's 22% + mobile reset */
}

/* ---- In-article images: aligned to the indented body-text column ---- */
.article_rich-text img {
  display: block;
  height: auto;
  border-radius: 10px;
  margin: 2.25rem 0;
  margin-left: 22%;   /* match the paragraph column's left edge */
  width: 78%;         /* 22% + 78% = 100% -> right edge aligns with body text */
  max-width: 78%;
}

/* ---- Mobile: mirror the design, which drops the 22% indent at <=991px ---- */
@media screen and (max-width: 991px) {
  .article_rich-text img {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}
