/*
  Hindi pages only (src/hi/hi.11tydata.js loads this file; English pages never do).

  nirmaan.css's fonts cover Latin only, so Devanagari falls back to Noto Sans Devanagari
  (SIL OFL 1.1, fonts/OFL-notosansdevanagari.txt), self-hosted and subset to the Devanagari
  block by its unicode-range. Latin letters and digits keep Nirmaan's own fonts.

  Devanagari has matras above and below the letters, so the tight Latin display settings
  would clip or collide them: Hindi text gets more line-height, room inside the masked
  headline lines, and no letter-spacing (tracking breaks the joined headline, the shirorekha).
  Like site.css: Nirmaan tokens only, no raw colours, no rounded corners.
*/
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

html:lang(hi) {
  --display: "Archivo", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --body:    "Hanken Grotesk", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", "Noto Sans Devanagari", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* No tracking on Hindi text: positive spacing breaks the headline stroke, negative crowds the matras. */
*:lang(hi) { letter-spacing: 0; }

/* Headlines: room for matras above and below. */
:is(h1, h2, h3, h4, .display, .drop__title, .scope__name, .exam-card__name, .brand__word):lang(hi) { line-height: 1.3; }
.display .line:lang(hi) { padding-block: 0.08em 0.14em; margin-block: -0.08em -0.14em; }
.page-head__title:lang(hi), .section__title:lang(hi), .cta-band__title:lang(hi) { line-height: 1.25; }

/* Small mono labels: Devanagari needs a little more size than Latin capitals to stay legible, and the
   monospace font's wide space (0.6em) reads as a gap between Hindi words, so it is narrowed. */
:is(.mono, .eyebrow, .spec-card dt, .checks__k, .footer__heading, .brand__descriptor, .picker__meta):lang(hi) { font-size: 0.8125rem; word-spacing: -0.3em; }

/* Body copy: a touch more leading for the stacked matras. */
:is(.lede, .copy, .faq__answer, .section__text, .mk-guards li):lang(hi) { line-height: 1.7; }

