:root {
  --bg-paper: #f6f1e7;
  --bg-paper-deep: #ede4d4;
  --bg-card: #fcf9f3;
  --bg-card-hover: #fffdf8;
  --bg-tint-warm: #f2e8da;
  --bg-tint-sage: #ebf0ec;
  --ink-primary: #231f1b;
  --ink-secondary: #5c5349;
  --ink-muted: #8a7f73;
  --ink-faint: #b3a799;
  --accent-terracotta: #b85d3b;
  --accent-terracotta-deep: #964729;
  --accent-terracotta-soft: rgba(184, 93, 59, 0.12);
  --accent-sage: #4a6b5d;
  --accent-sage-deep: #375347;
  --accent-sage-soft: rgba(74, 107, 93, 0.12);
  --accent-ochre: #b98532;
  --accent-ochre-soft: rgba(185, 133, 50, 0.14);
  --accent-slate: #4c5d70;
  --accent-slate-soft: rgba(76, 93, 112, 0.12);
  --accent-plum: #7a5465;
  --border-hairline: #dfd4c2;
  --border-strong: #c8b9a3;
  --border-ink: #2c2621;
  --shadow-card: 0 2px 10px rgba(35, 31, 27, 0.04), 0 1px 2px rgba(35, 31, 27, 0.05);
  --shadow-float: 0 14px 36px rgba(35, 31, 27, 0.09), 0 3px 10px rgba(35, 31, 27, 0.04);
  --shadow-drawer: -12px 0 40px rgba(35, 31, 27, 0.14);
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "FZShuSong-Z01", "SimSun", "Georgia", "Palatino Linotype", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "Georgia", "Palatino Linotype", "Times New Roman", serif;
  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.35rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.35rem;
  --text-3xl: 3.1rem;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container-max: 1120px;
  --reading-max: 760px;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 460ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; min-height: 100vh; background-color: var(--bg-paper); background-image: radial-gradient(ellipse 80% 50% at 15% -5%, rgba(184, 93, 59, 0.055), transparent 60%), radial-gradient(ellipse 70% 50% at 88% 8%, rgba(74, 107, 93, 0.06), transparent 60%); color: var(--ink-primary); font-family: var(--font-sans); line-height: 1.72; overflow-x: hidden; }
.paper-grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.036; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 700; color: var(--ink-primary); letter-spacing: 0.02em; line-height: 1.3; }
p { margin: 0; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-terracotta); outline-offset: 2px; }
[hidden] { display: none !important; }