:root {
  --ink: #2e1b12;
  --ink-2: #5b4638;
  --muted: #8a7565;
  --faint: #b3a394;
  --paper: #f7f2e7;
  --paper-deep: #f1e9d8;
  --paper-warm: #fbf7ee;
  --card: #ffffff;
  --line: #e5d9c4;
  --line-soft: #efe6d5;
  --brand: #7a2e1d;
  --brand-dark: #5e2013;
  --brand-soft: #f4e3dc;
  --gold: #c9a227;
  --gold-soft: #f6ebc8;
  --gold-deep: #8c6b12;
  --sidebar-1: #3a2318;
  --sidebar-2: #2b1414;
  --sidebar-ink: #e8dcc8;
  --sidebar-dim: #a8977f;
  --ok: #3f7a56;
  --ok-soft: #e4f0e7;
  --warn: #b23a2e;
  --warn-soft: #f8e3df;
  --info: #3b6ea5;
  --info-soft: #e5eef7;
  --violet: #6a5491;
  --violet-soft: #ede8f5;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(58, 35, 24, 0.05);
  --sh-2: 0 2px 10px rgba(58, 35, 24, 0.06);
  --sh-3: 0 16px 48px rgba(32, 18, 12, 0.3);

  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;

  --sidebar-w: 232px;
  --topbar-h: 60px;
  --gap: 18px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(201, 162, 39, 0.1), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(122, 46, 29, 0.07), transparent 30%),
    repeating-linear-gradient(0deg, rgba(122, 46, 29, 0.018) 0 1px, transparent 1px 4px);
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  padding: 0;
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--gold-soft);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(122, 46, 29, 0.2);
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.serif {
  font-family: var(--font-serif);
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}