:root {
  color-scheme: dark;
  --bg-0: #10151c;
  --bg-1: #171d26;
  --bg-2: #1e2633;
  --bg-community: #1c1b17;
  --sidebar: #0c1117;
  --text-0: #e8ebf2;
  --text-1: #9aa3b5;
  --text-2: #8b95a8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #4fa3b3;
  --accent-2: #6cb8c6;
  --accent-soft: rgba(79, 163, 179, 0.14);
  --amber: #d3b26a;
  --amber-soft: rgba(211, 178, 106, 0.14);
  --rose: #ee6b57;
  --emerald: #5fc79a;
  --note: #162420;
  --note-text: #8fb8a8;
  --note-em: #a8cfc2;
  --heat: #ff5d4f;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --feed: 760px;
  --rail: 208px;
  --top-h: 56px;
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --fs-0: 11px;
  --fs-1: 12px;
  --fs-2: 13px;
  --fs-3: 14px;
  --fs-4: 16px;
  --fs-5: 18px;
  --fs-6: 22px;
  --shadow-rail: 8px 0 24px rgba(0, 0, 0, 0.35);
}

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

html,
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font);
}

html {
  scroll-padding-top: calc(var(--top-h) + 8px);
}

body {
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-2);
}

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

::selection {
  background: rgba(79, 163, 179, 0.35);
  color: var(--text-0);
}

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

@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;
  }
}
