@font-face {
  font-family: "Noto Music";
  src: url("/static/fonts/noto-music/NotoMusic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/**
 * Site typography
 * - English / Latin  → Inter  (x.ai / modern tech UI feel)
 * - Chinese          → Noto Sans TC / SC + PingFang (openai.com/zh-Hant feel)
 *
 * Unicode fallback: browser uses Inter for Latin glyphs, then Noto/PingFang for CJK.
 */
:root {
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-zh: "Noto Sans TC", "Noto Sans SC", "PingFang TC", "PingFang SC", "Hiragino Sans CNS",
    "Microsoft JhengHei", "Microsoft YaHei", "Heiti TC", sans-serif;
  --font-sans: "Inter", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "PingFang SC",
    "Hiragino Sans CNS", "Microsoft JhengHei", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Music", "Apple Symbols", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-music: "Noto Music", "Apple Symbols", "Bravura", serif;
}

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
.btn,
.home-button,
.home-nav,
.home-account,
.site-lang-select {
  font-family: var(--font-sans);
}

/* Headings: same stack, slightly tighter tracking like modern product sites */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

code,
pre,
kbd,
samp,
.mono {
  font-family: var(--font-mono);
}
