/* ============================================================
   Font Imports & Base Typography
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --md-text-font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --md-code-font: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* Orbitron for h1/h2 English headings — Chinese will fallback to Noto Sans SC */
.md-typeset h1,
.md-typeset h2 {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  letter-spacing: 0.02em;
}

/* CJK text should not have extra letter-spacing — it disrupts character rhythm */
:lang(zh) .md-typeset h1,
:lang(zh) .md-typeset h2 {
  letter-spacing: 0;
}

.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: "Noto Sans SC", sans-serif;
}

/* Line heights */
.md-typeset {
  line-height: 1.7;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  line-height: 1.3;
}

.md-typeset pre,
.md-typeset code {
  line-height: 1.6;
}
