/* Webfonts for the Furo theme. These load the families referenced by
   `font-stack` / `font-stack--monospace` in docs/conf.py. If CDN access is
   blocked (air-gapped build), the stacks fall back to the system fonts. */

@import url("https://fonts.googleapis.com/css2?family=Fustat:wght@200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap");

/* ── Heading size consistency ──────────────────────────────────────────
   Sphinx + autodoc emit API pages with deeply nested sections (package →
   subpackage → module). Some browsers / themes render nested `<section>`
   headings smaller than top-level ones, which makes autogen pages like
   `udaan.utils` look subtly larger or smaller than the hand-written
   guides. Pin each level to an explicit size so every page renders the
   same regardless of nesting. */

article h1 { font-size: 2.00rem;  line-height: 1.25; }
article h2 { font-size: 1.50rem;  line-height: 1.3; }
article h3 { font-size: 1.25rem;  line-height: 1.35; }
article h4 { font-size: 1.10rem;  line-height: 1.4; }
article h5 { font-size: 1.00rem;  line-height: 1.45; }
article h6 { font-size: 0.95rem;  line-height: 1.5; }

/* Don't let nested <section> shrink headings further. */
article section section h1,
article section section h2,
article section section h3 { font-size: unset; }

/* Keep autodoc object signatures a sensible size (they sometimes render
   in a bigger font via `sig sig-object`). */
article dl.py > dt.sig,
article dl.py .sig-name,
article dl.py .sig-prename { font-size: 0.95rem; }
