:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fffdf8;
  --ink: #272922;
  --muted: #62665c;
  --line: #d9d9ce;
  --accent: #a43d22;
  --wash: #eee8dc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Avenir Next', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px 20px; background: var(--surface); z-index: 10; }
.skip:focus { top: 12px; }
.shell { width: min(1120px, 100%); margin: auto; padding: 30px 40px 44px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.disc { width: 36px; height: 36px; border-radius: 50%; background: repeating-radial-gradient(circle, #35382e 0 2px, #23261f 3px 4px); display: grid; place-items: center; flex-shrink: 0; }
.disc::after { content: ''; width: 12px; height: 12px; background: #d56c44; border: 4px solid #d56c44; border-radius: 50%; box-shadow: inset 0 0 0 2px #f5f2eb; }
.masthead > a:last-child { font-size: 14px; }
.nav { display: flex; gap: 8px 26px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); padding: 3px 0; }
.nav a[aria-current] { color: var(--accent); box-shadow: 0 2px var(--accent); }
.hero { padding: 52px 0 34px; max-width: 820px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .15em; margin: 0 0 16px; }
h1 { font-family: 'Iowan Old Style', 'Baskerville', 'Songti SC', 'STSong', serif; font-size: clamp(36px, 6vw, 60px); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; margin: 0 0 20px; }
.intro { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
.date { font-size: 13px; color: var(--muted); }
.layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 40px; }
.toc { position: sticky; top: 24px; font-size: 13px; padding-top: 20px; }
.toc h2 { text-transform: uppercase; font-size: 11px; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0 0 8px; }
.toc a { color: var(--muted); text-decoration: none; display: block; line-height: 1.55; padding: 3px 0; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
article { min-width: 0; border-top: 3px solid var(--ink); background: var(--surface); padding: 26px 34px 34px; }
.summary { padding: 18px 20px; background: var(--wash); border-left: 3px solid var(--accent); margin-bottom: 12px; }
.summary p { margin: 0; }
section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.5; letter-spacing: -.02em; }
h3 { margin: 22px 0 8px; font-size: 17px; line-height: 1.5; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 10px 0 16px; }
li { margin: 8px 0; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }
.table-scroll { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.75; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 12px 10px; min-width: 105px; }
th { background: var(--wash); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 650; line-height: 1.65; }
details > div { padding-top: 14px; }
details p:last-child { margin-bottom: 0; }
.contact-link { display: inline-block; font-size: clamp(17px, 3vw, 24px); font-weight: 600; margin: 4px 0 12px; }
.footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; font-size: 12px; color: var(--muted); }
@media (max-width: 780px) {
  .shell { padding: 22px 22px 32px; }
  .hero { padding-top: 36px; }
  .layout { grid-template-columns: 1fr; gap: 22px; }
  .toc { position: static; padding: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .toc li { margin: 0; }
  article { padding: 22px; }
}
@media (max-width: 380px) {
  .shell { padding-inline: 16px; }
  article { padding: 20px 16px; }
  .nav { gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #1c201b; --surface: #242821; --ink: #eeeee4; --muted: #b3b8ab; --line: #454b3d; --accent: #f0a581; --wash: #30362a; }
}
@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #111; --muted: #444; --line: #ccc; --accent: #111; --wash: #f5f5f5; }
  body { font-size: 11pt; }
  .shell { width: 100%; padding: 0; }
  .nav, .toc, .skip, .masthead > a:last-child { display: none; }
  .layout { display: block; }
  .hero { padding-top: 24px; }
  article { padding: 16px 0; }
  h2, h3, summary { break-after: avoid; }
  details > div { display: block !important; }
}
