@font-face {
  font-family: "Kaiti SC";
  src: url("/fonts/STKaiti.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --chrome: #fcfcfc;
  --sidebar: #f3f3f3;
  --surface: #fcfcfc;
  --ink: #141414;
  --body: #141414;
  --muted: #141414b3;
  --faint: #14141452;
  --hover: #14141414;
  --border: #1414140d;
  --border-strong: #1414141f;

  --radius-sm: 4px;
  --radius-base: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --font-ui: "Kaiti SC", 楷体, KaiTi, STKaiti, "Kaiti TC", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--chrome);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
a:hover { background: var(--hover); }

.bar {
  height: 36px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--chrome);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
}

.mark {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
}

.bar-nav { display: flex; gap: 16px; }
.bar-nav a { font-size: 14px; line-height: 22px; color: var(--muted); border-bottom: 0; padding: 0 2px; }
.bar-nav a:hover { color: var(--ink); background: var(--hover); border-radius: var(--radius-sm); }

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  flex: 1 0 auto;
}

.lead { padding: 16px 0 24px; }

h1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.lede {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  max-width: 62ch;
}

h2 {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--muted);
  margin: 32px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

section { border-top: 1px solid var(--border-strong); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 16px;
}

.card h3 {
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.card p { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }

.facts { margin: 0; }

.facts > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.facts > div:last-child { border-bottom: 0; }

dt {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  margin: 0;
}

dd { margin: 0; font-size: 14px; line-height: 22px; }

.mono { font-family: var(--font-mono); }

footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-strong);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  main { padding: 16px; }
  .bar { padding: 0 16px; }
  .bar-nav { gap: 12px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  footer { padding: 16px; flex-direction: column; gap: 4px; }
}
