@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-017F, U+0192, U+0218-021B, U+0237, U+02BB-02BC, U+02C6-02C7, U+02C9, U+02D8-02DD, U+0300-0308, U+030A-030C, U+0326-0329, U+1E9E, U+2000-206F, U+20AC, U+20B9, U+20BD, U+2113, U+2116, U+2122, U+2126, U+212E, U+2190-21FF, U+2212, U+2215, U+2219, U+221E, U+2248, U+2260, U+2264-2265, U+2303, U+2318, U+2325, U+232B, U+238B, U+23CE, U+25A0-25FF, U+2713, U+2715, U+FB01-FB02, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "OpenTUI Mono";
  src: url("./opentui-mono-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-200D, U+2010-2029, U+202F-2064, U+20AC, U+2190-21E6, U+21E8-21FF, U+2212, U+25??;
}

@font-face {
  font-family: "OpenTUI Mono";
  src: url("./opentui-mono-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-200D, U+2010-2029, U+202F-2064, U+20AC, U+2190-21E6, U+21E8-21FF, U+2212, U+25??;
}

@font-face {
  font-family: "Panel Noto Sans SC";
  src: url("./noto-sans-sc-panel.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+3000-303F, U+3400-9FFF, U+FF00-FFEF;
}

:root {
  --font-cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Panel Noto Sans SC";
  --font-sans: Inter, var(--font-cjk), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "OpenTUI Mono", Menlo, "DejaVu Sans Mono", Consolas, "Courier New", var(--font-cjk), ui-monospace, monospace;
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
}

button, input, select, textarea, option, optgroup {
  font-family: inherit;
}

h1, h2, h3, code, kbd, pre, samp, output, time,
:root input:is([type="date"], [type="datetime-local"], [type="number"], [type="time"]) {
  font-family: var(--font-mono);
}
