/*
 * Article body typography — matched to Apple coremltools docs
 * (pydata-sphinx-theme: system font, 16px, line-height 1.65, SF Mono code).
 *
 * Loaded on every page by scripts/inject-custom-css.js.
 * The selector mirrors the theme's `article.article .content`, so these rules
 * win by source order (this file is linked after the theme stylesheet) — no
 * !important needed. Tweak the values below freely.
 */

/* ---------- Body text ---------- */
article.article .content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "Arial", "PingFang SC", "Microsoft YaHei", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;        /* coremltools body = 1rem @ 16px root (Icarus root is 14px) */
  font-weight: 400;
  line-height: 1.65;      /* coremltools body line-height */
  color: #323232;         /* coremltools --pst-color-text-base (light mode) */
}

/* Comfortable paragraph rhythm, like the docs page */
article.article .content p {
  margin-bottom: 1.15em;
}

/* ---------- Headings: system font, tight leading, generous top spacing ---------- */
article.article .content h1,
article.article .content h2,
article.article .content h3,
article.article .content h4,
article.article .content h5,
article.article .content h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 2.5rem 0 1.05rem;
  color: #1a1a1a;
}

/* ---------- Code: SF Mono stack, like coremltools ---------- */
article.article .content code,
article.article .content pre,
article.article .content kbd,
article.article .content tt {
  font-family: "SFMono-Regular", "Menlo", "Consolas", "Monaco",
               "Liberation Mono", "Lucida Console", monospace;
}
