:root {
  --bg: #f4f1eb;
  --paper: #fffcf8;
  --ink: #1c1917;
  --muted: #5f5953;
  --line: #e4ddd2;
  --accent: #0c5f56;
  --accent-ink: #08443e;
  --accent-soft: #e5f3f1;
  --topbar-h: 7.5rem;
  --shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
  color-scheme: light;
}

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

html {
  scroll-padding-top: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei", "WenQuanYi Micro Hei", "Droid Sans Fallback", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a,
input {
  font: inherit;
}

:focus {
  outline: none;
}

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

::selection {
  background: #cfe6e2;
}

[data-spy] {
  scroll-margin-top: calc(var(--topbar-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
