:root {
  --paper: #fff;
  --rule: color-mix(in srgb, var(--ink), white 83%);
  --muted: color-mix(in srgb, var(--ink), white 30%);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.72 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }
h1 { margin: 0 0 .55em; font-size: clamp(29px, 4.5vw, 54px); letter-spacing: -.035em; }
h2 { margin: .3em 0 .55em; font-size: clamp(23px, 3.1vw, 37px); letter-spacing: -.02em; }
h3 { margin: .45em 0 .4em; font-size: clamp(18px, 2vw, 24px); }
h4 { margin: .6em 0 .4em; font-size: 1.05em; }
p, ul, ol, dl, figure { margin: .5em 0 1em; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1140px, calc(100% - 56px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; min-height: 59px; }
.site-name { color: var(--ink); font-size: 19px; font-weight: 750; text-decoration: none; }
.review-label { color: var(--muted); font-size: .84rem; margin-inline-start: 12px; white-space: nowrap; }
.site-nav { padding: 11px 0; display: flex; column-gap: 19px; row-gap: 6px; flex-wrap: wrap; font-size: .91rem; }
.site-nav a { display: inline-flex; align-items: center; padding: 4px 0; min-height: 31px; }
.reading { margin-block: 12px 42px; }
.reading [id] { scroll-margin-top: 16px; }
.chapter { background: var(--paper); border-inline: 1px solid var(--rule); padding: clamp(24px, 4vw, 54px) clamp(20px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.chapter:first-of-type { border-top: 4px solid var(--accent); }
.chapter > :last-child, .chapter > div > :last-child { margin-bottom: 0; }
.chapter a { display: inline-block; }
.chapter picture { display: block; margin-bottom: 24px; }
.chapter img { border-radius: 4px; }
.chapter figure { max-width: 920px; }
.chapter figcaption { padding-top: 5px; color: var(--muted); font-size: .92rem; }
.chapter svg { vertical-align: middle; max-width: 72px; max-height: 72px; width: auto; }
.chapter div:has(> article + article) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; margin-block: 12px; }
.chapter div:has(> article + article) > :not(article) { grid-column: 1 / -1; }
.chapter article { background: var(--base); border: 1px solid var(--rule); padding: 14px 17px; border-radius: 5px; }
.chapter article article { background: var(--paper); }
.chapter details { border-block-end: 1px solid var(--rule); padding: 10px 0; }
.chapter summary { cursor: pointer; font-weight: 700; }
.chapter table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 12px; }
.chapter td, .chapter th { border: 1px solid var(--rule); padding: 7px 11px; }
.chapter pre { background: var(--base); padding: 12px; overflow: auto; }
.chapter blockquote { border-inline-start: 3px solid var(--rule); margin: 12px 0; padding-inline-start: 16px; }
.original-action { color: var(--muted); }
.image-note, .source-note { display: inline-block; color: var(--muted); font-size: .85rem; }
.original-footer { color: var(--muted); padding: 12px 0 20px; font-size: .9rem; }
.original-footer img { max-height: 64px; max-width: 160px; }
.site-page-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 14px 0; font-size: .89rem; color: var(--muted); }
.site-page-footer .shell { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.index { padding: 47px 0 70px; }
.index header > p { margin-top: 10px; color: var(--muted); }
.index .totals { color: var(--ink); font-weight: 750; margin-bottom: 22px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 256px), 1fr)); gap: 15px; align-items: start; }
.index-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
.index-card img { width: 100%; height: 126px; object-fit: cover; }
.index-card header { padding: 12px 13px 0; }
.index-card h2 { font-size: 1.22rem; }
.index-card ul { padding-inline: 31px 13px; font-size: .91rem; }
.index-card small { color: var(--muted); margin-inline-start: 6px; }
@media (max-width: 690px) {
  .shell { width: calc(100% - 28px); }
  .masthead-inner { font-size: .88rem; }
  .site-nav { column-gap: 13px; }
  .chapter div:has(> article + article) { grid-template-columns: minmax(0, 1fr); }
  .index { padding-top: 29px; }
}
