:root {
  color-scheme: light;
  --paper: #f5f2ed;
  --ink: #262422;
  --muted: #645d54;
  --rule: #d9d3c8;
  --link: #6b5238;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif;
}

a { color: var(--link); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.masthead, main { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 7vw, 82px) 0 32px;
  border-bottom: 1px solid var(--rule);
}
.credit { color: var(--muted); font-size: 14px; }
h1, h2 { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }
h1 {
  margin: 12px 0 20px;
  font-size: clamp(32px, 4.3vw, 58px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.025em;
}
.intro p:last-child { max-width: 35em; margin-bottom: 0; }
figure { margin: 0; }
figure img { width: 100%; height: auto; border-radius: 4px; background: var(--rule); }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, 200px);
  gap: clamp(30px, 6vw, 84px);
  padding: 40px 0 64px;
}
.contents { grid-area: 1 / 2; display: flex; position: sticky; top: 24px; align-self: start; flex-direction: column; align-items: start; gap: 6px; padding: 0 0 0 17px; border-left: 1px solid var(--rule); font-size: 14px; }
.contents h2 { margin: 0 0 3px; font-family: inherit; font-size: 14px; font-weight: 700; }
.contents a { padding: 3px 0; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.copy { grid-area: 1 / 1; max-width: 48rem; min-width: 0; }
.copy section { scroll-margin-top: 24px; }
.copy section + section { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rule); }
.copy section:target > h2 { color: var(--link); }
h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 31px); line-height: 1.4; }
h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.5; }
p, dl, ol, ul { margin: 0 0 14px; }
ol, ul { padding-inline-start: 1.6em; }
li + li { margin-top: 5px; }
.case-meta { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.source-links { color: var(--muted); font-size: 14px; }
.source-links a { display: inline-block; margin-inline-end: 14px; }
.copy figure { margin: 20px 0; }
.table-scroll { overflow-x: auto; margin: 14px 0 18px; }
.table-scroll:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
table { width: 100%; min-width: 33rem; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
caption { margin-bottom: 7px; color: var(--muted); text-align: left; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { background: #ede7dd; }
tbody th { font-weight: 600; }
.tabular { font-variant-numeric: tabular-nums; white-space: nowrap; }
code { font-family: "IBM Plex Mono", Consolas, "Microsoft YaHei", monospace; font-size: .92em; }
p code, li code, td code { background: #eae4da; border-radius: 3px; padding: 2px 4px; overflow-wrap: anywhere; }
pre { overflow-x: auto; padding: 15px 18px; border: 1px solid #38332d; border-radius: 6px; background: #282622; color: #f7eee0; line-height: 1.65; }
.callout { padding: 9px 15px; border-left: 2px solid #aa8d69; color: var(--muted); background: #ede7dd; }
.shot-checks > div { display: grid; grid-template-columns: minmax(105px, 1fr) 5fr; gap: 10px; padding: 9px 0; }
.shot-checks > div + div { border-top: 1px solid var(--rule); }
dt { font-weight: 700; }
dd { margin: 0; }
.article-footer { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }

@media (max-width: 760px) {
  .masthead, main { width: calc(100% - 36px); }
  .opening, .body-grid { grid-template-columns: minmax(0, 1fr); }
  .body-grid { gap: 24px; padding-block-start: 24px; }
  .contents { position: static; grid-area: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 5px 18px; }
  .contents h2 { flex-basis: 100%; }
  .copy { grid-area: auto; }
  .shot-checks > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
