:root {
  --font-ui: "DM Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-muted: #78716c;
  --color-border: #e7e5e4;
  --color-accent: #b4232c;
  --color-accent-soft: #fbeced;
  --color-correct: #15803d;
  --color-correct-soft: #e9f7ee;
  --color-wrong: #b91c1c;
  --color-wrong-soft: #fdecec;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(28 25 23 / 5%), 0 1px 3px rgb(28 25 23 / 4%);
  --shadow-raised: 0 2px 4px rgb(28 25 23 / 6%), 0 6px 16px rgb(28 25 23 / 7%);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[lang="zh-Hans"] {
  font-family: var(--font-zh);
}

button {
  font-family: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
