:root {
  color-scheme: light;
  --font-sans: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  --bg: #EDF5EE;
  --surface: #FCFEFB;
  --sidebar: #F5FAF5;
  --elevated: #E0EEE3;
  --overlay: rgba(17, 43, 26, 0.48);
  --text: #14291D;
  --text-muted: #486353;
  --border: #CFE2D4;
  --border-strong: #7C9E87;
  --accent: #15803D;
  --accent-hover: #126633;
  --accent-fg: #FFFFFF;
  --accent-soft: #D9EDDF;
  --brand: var(--accent);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101B15;
  --surface: #17271D;
  --sidebar: #132218;
  --elevated: #20382A;
  --overlay: rgba(6, 15, 9, 0.68);
  --text: #E9F5EC;
  --text-muted: #B0C7B6;
  --border: #304B39;
  --border-strong: #668876;
  --accent: #86D6A1;
  --accent-hover: #A5E5B9;
  --accent-fg: #112B1B;
  --accent-soft: #244431;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
