:root {
  color-scheme: dark;
  --ink: #f4f2f7;
  --muted: #bcb7c6;
  --line: #39353e;
  --accent: #dbc1f1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #141316;
  color: var(--ink);
  font: 16px/1.8 "Inter", "Microsoft YaHei", system-ui, sans-serif;
}
.wrap { width: min(920px, calc(100% - 64px)); margin: auto; }
a { color: var(--accent); text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
header, footer, nav { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
header, footer { justify-content: space-between; padding-block: 23px; }
header { border-bottom: 1px solid var(--line); }
header a, footer a, .back a { text-decoration: none; }
header a:hover, footer a:hover, .back a:hover { text-decoration: underline; }
.brand { color: var(--ink); font-size: 21px; font-weight: 700; }
nav, footer, .back, figcaption, .source { font-size: 14px; }
main { padding: clamp(36px, 6vw, 76px) 0 24px; }
h1, h2, h3 { text-wrap: pretty; }
h1 { max-width: 19em; margin: 0; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1.28; }
h2 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 27px); line-height: 1.45; }
h3 { margin: 0; font-size: 18px; }
p { margin: 0 0 14px; max-width: 50em; }
.back { margin-bottom: 22px; }
.summary { max-width: 45em; margin: 20px 0 38px; color: var(--muted); font-size: 18px; }
section { padding: 30px 0; border-top: 1px solid var(--line); }
section p { color: #d9d5df; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 22px; }
figure { margin: 0; min-width: 0; }
figure.wide { grid-column: 1 / -1; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  background: repeating-conic-gradient(#433f49 0 25%, #534f58 0 50%) 0 0 / 18px 18px;
  border-radius: 6px;
}
figcaption { margin-top: 8px; color: var(--muted); }
.source { margin: 18px 0 0; color: var(--muted); }
ol { padding-left: 1.6em; }
li { padding: 0 0 10px .4em; }
li::marker { color: var(--accent); font-weight: 700; }
li p { margin: 4px 0; }
dl { display: grid; grid-template-columns: 8em 1fr; margin-bottom: 0; }
dt, dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
.action { display: inline-block; margin: 7px 9px 0 0; padding: 8px 16px; border-radius: 6px; background: #e5d4f2; color: #26202e; text-decoration: none; font-weight: 600; }
.action:hover { background: #f1e5fa; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  header, footer { padding-block: 16px; }
  nav { gap: 14px; }
  dl { grid-template-columns: 5.8em 1fr; }
  .summary { font-size: 16px; }
}
