:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --background: #11110f;
  --panel: #191915;
  --text: #f3efe3;
  --muted: #c5bcaa;
  --accent: #e3c78d;
  --line: #474135;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.8; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.topbar img { display: block; }
.skip { position: absolute; z-index: 2; inset: .5rem auto auto 1rem; padding: .5rem; background: var(--background); transform: translateY(-150%); }
.skip:focus { transform: none; }
.intro { padding-block: clamp(2.5rem, 7vw, 5.5rem) 2rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .91rem; letter-spacing: .13em; margin: 0 0 .9rem; }
h1 { margin: 0; font-size: clamp(1.95rem, 5.4vw, 4.2rem); line-height: 1.19; letter-spacing: -.04em; }
.lead { margin: 1.25rem 0 1.5rem; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 49rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; }
.reading { max-width: 52rem; }
section { padding-block: 2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
section h2 { font-size: clamp(1.26rem, 2.6vw, 1.75rem); line-height: 1.4; margin: 0 0 1rem; }
p { margin: 0 0 .92rem; }
section > :last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-variant-numeric: tabular-nums; margin: 1.2rem 0; font-size: .95rem; }
caption { text-align: left; color: var(--muted); padding-block-end: .4rem; }
td, th { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
thead, tfoot { color: var(--accent); }
.steps, .refs { padding-inline-start: 1.5rem; }
.steps li + li, .refs li + li { margin-top: .8rem; }
.download { display: inline-block; border: 1px solid var(--accent); border-radius: .2rem; padding: .6rem .85rem; background: var(--panel); }
.privacy { margin-top: .7rem; color: var(--muted); }
footer { padding-block: 1.3rem 2rem; color: var(--muted); }
@media (max-width: 36rem) {
  .shell { width: calc(100% - 2rem); }
  .topbar img { width: 75px; height: auto; }
  td, th { padding: .37rem .27rem; }
  table { font-size: .875rem; }
  section { padding-block: 1.6rem; }
}
@media print {
  :root { color-scheme: light; --background: #fff; --panel: #f5f5f5; --text: #111; --muted: #444; --accent: #171717; --line: #aaa; }
  .shell { width: 100%; }
  .topbar img, .skip, nav { display: none; }
  .intro, section { padding-block: 1rem; }
  table { break-inside: avoid; }
}
