:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #efeae0;
  --ink: #1c2723;
  --ink-2: #3c4843;
  --muted: #6c7871;
  --line: #e2dccf;
  --line-strong: #cec6b5;
  --accent: #14635a;
  --accent-deep: #0d4a43;
  --accent-soft: #e0efe9;
  --accent-ink: #0c4b44;
  --on-accent: #fffdf8;
  --warm: #b4653a;
  --warm-soft: #f7e9de;
  --shadow-sm: 0 1px 2px rgba(28, 39, 35, 0.06);
  --shadow-md: 0 14px 34px -16px rgba(28, 39, 35, 0.28);
  --radius: 16px;
  --font:
    "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --maxw: 1180px;
  --sidebar-w: 238px;
  --topbar-h: 0px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111614;
    --surface: #171e1b;
    --surface-2: #202824;
    --ink: #eef2ef;
    --ink-2: #c3ccc7;
    --muted: #8d9a93;
    --line: #2a332f;
    --line-strong: #3a453f;
    --accent: #5bb3a3;
    --accent-deep: #3f9485;
    --accent-soft: #18322c;
    --accent-ink: #a8dccf;
    --on-accent: #0b1714;
    --warm: #d08a5f;
    --warm-soft: #33251d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}