/* Shared public-site palette and geometric scale, including pages opened from old articles. */
:root {
  --site-paper-dark: #26332e;
  --site-paper: light-dark(#f8f9f6,var(--site-paper-dark));
  --site-surface: light-dark(#fcfdf9,#304039);
  --site-ink: light-dark(#263831,#dae2df);
  --site-muted: light-dark(#52685d,#b7c2bd);
  --site-accent: light-dark(#356e5b,#b8d3ca);
  --site-purple: var(--site-accent);
  --site-line: light-dark(#d5e2d8,#45594f);
  --site-tint: light-dark(#e1efe6,#394c42);
  --site-frame: 1320px;
  --site-gutter: clamp(20px, 4vw, 58px);
  --site-heading: clamp(38px, 4.1vw, 57px);
  --site-type: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body[data-page] {
  font-family: var(--site-type);
  --ink: var(--site-ink);
  --muted: var(--site-muted);
  --accent: var(--site-accent);
  --line: var(--site-line);
}
body[data-page]:not(.night) { background-color: var(--site-paper); color: var(--site-ink); }
body[data-page] > header {
  color: var(--site-ink);
  background: var(--site-surface);
  border-bottom: 1px solid var(--site-line);
}
body[data-page] > header .top, body[data-page] > footer {
  width: min(var(--site-frame), 100%);
  padding-inline: var(--site-gutter);
}
body[data-page] > header nav a.chosen::after { background: var(--site-purple); }
body[data-page] > header .brand { letter-spacing: -.025em; }
body[data-page] .mag, body[data-page] .rd-page, body[data-page] .th-page {
  max-width: var(--site-frame);
  padding-inline: var(--site-gutter);
}
body[data-page] .th-head h1, body[data-page] .rd-titleline h1 { font-size: var(--site-heading); }
body[data-page] .article {
  width: min(100%, 850px); padding-inline: var(--site-gutter);
  margin-inline: auto; line-height: 1.8;
}
body[data-page] .article h1 { font-size: clamp(32px,3.5vw,48px); line-height: 1.23; }
body[data-page] .article p { color: light-dark(#314b3e,#cdd9d3); }
body[data-page] .article h2 { margin-top: 1.5em; line-height: 1.4; }
body[data-page] .article .articlecover { margin-block: 6px 16px; }
body[data-page] :is(.filters,.th-tabs) button:focus-visible, body[data-page] a:focus-visible {
  outline-color: var(--site-purple);
}
@media(max-width:660px) {
  :root { --site-gutter: 16px; --site-heading: 35px; }
  body[data-page] .article { width: 100%; }
}
body[data-page] .mb-wrap { width: min(var(--site-frame), 100%); padding-inline: var(--site-gutter); }
body[data-page] .mb-strip { border-radius: 12px; }
body[data-page] .bj-page { max-width:var(--site-frame); padding-inline:var(--site-gutter); }
body[data-page] .bj-mast h1 { font-size:var(--site-heading); }
body[data-page] .module-side-rail .mb-side {width:100%; padding:0; margin:0; max-width:100%}
