:root {
  --ink: #f3f0dd;
  --ink-muted: rgba(234, 235, 214, 0.7);
  --ink-faint: rgba(234, 235, 214, 0.46);
  --night: #08110f;
  --night-2: #0e1b18;
  --surface: rgba(9, 19, 17, 0.84);
  --surface-light: rgba(29, 43, 36, 0.62);
  --line: rgba(226, 223, 188, 0.2);
  --line-strong: rgba(238, 225, 170, 0.45);
  --gold: #d8bb72;
  --gold-pale: #fff0b8;
  --silver: #bcd0dc;
  --prismatic: #c5a8ff;
  --danger: #e3a59c;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-medium: 280ms;
  --motion-slow: 400ms;
  --font-body: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; }
body { background: var(--night); color: var(--ink); font-family: var(--font-body); }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link { background: var(--ink); color: var(--night); left: 16px; padding: 10px 16px; position: fixed; top: -60px; z-index: 50; }
.skip-link:focus { top: 12px; }

.button {
  align-items: center; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex;
  justify-content: center; min-height: 44px; padding: 10px 22px; transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform 80ms;
}
.button:active { transform: scale(0.98); }
.button--primary { background: var(--gold-pale); color: #17201c; font-weight: 700; box-shadow: 0 8px 28px rgba(236, 207, 126, .16), inset 0 1px rgba(255,255,255,.6); }
.button--primary:hover { background: #fff6d3; }
.button--secondary { background: rgba(255,255,255,.03); border-color: var(--line-strong); }
.button--secondary:hover { background: rgba(255,255,255,.08); border-color: var(--gold-pale); }
.button--quiet { background: transparent; border-color: var(--line); color: var(--ink-muted); min-height: 38px; padding: 7px 16px; }
.button--quiet:hover { border-color: var(--line-strong); color: var(--ink); }

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