:root {
  --paper: #f3efe6;
  --ink: #1b1712;
  --muted: #5c564c;
  --line: #d8d0c3;
  --lacquer: #8f2d1f;
  --note: #ebe4d6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, #faf7f1 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.75;
}

.frame {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 12vh 0 8vh;
  border-left: 3px solid var(--lacquer);
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
}

.masthead { margin-bottom: 3.25rem; }

.mark {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--lacquer);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

h1 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

.entity {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--lacquer);
  margin-bottom: 0.55rem;
}

h2 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 36em;
}

.note {
  margin-top: 2rem;
  padding: 1.1rem 1.15rem;
  background: var(--note);
  border: 1px solid var(--line);
  max-width: 36em;
}

.note p { color: var(--muted); font-size: 0.95rem; }

.note strong { color: var(--ink); font-weight: 600; }

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--lacquer);
}

footer {
  margin-top: 4.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--lacquer);
}

footer a:hover { color: var(--lacquer); }

@media (max-width: 520px) {
  body { line-height: 1.7; }
  .frame { width: calc(100% - 1.5rem); padding-top: 8vh; }
  .lead, .note p { font-size: 0.98rem; }
}

.note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--lacquer);
}
