:root {
  --bg: #f6f7f9;
  --fg: #1f2329;
  --muted: #6b7280;
  --line: #e5e7eb;
  --link: #2f6f78;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --line: #262b33;
    --link: #86c2c9;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8vh 24px 24px;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-indent: 0.16em; /* 抵掉最后一个字后面多出的字距，保证视觉居中 */
}

.tagline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

footer {
  width: 100%;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer p {
  margin: 0;
}

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

footer a:hover {
  text-decoration: underline;
}
