:root {
  color-scheme: light;
  --ink: #203830;
  --body: #273933;
  --muted: #53645a;
  --red: #813e36;
  --rule: #cbd0c5;
  --paper: #fbfaf5;
  --panel: #f0f1e9;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  font: 16px/1.7 var(--sans);
  color: var(--body);
  background: var(--paper);
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: var(--red); text-decoration: underline; text-underline-offset: .19em; text-decoration-thickness: 1px }
a:hover { color: #56251e }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #9d5c33; outline-offset: 4px }
button, input, select { font: inherit }
[hidden] { display: none !important }
h1,h2,h3,p,ol,ul,figure { margin: 0 }
h1,h2,h3 { color: var(--ink) }
h1,h2 { font-family: var(--serif); font-weight: 700; line-height: 1.33 }
figure img { display: block; max-width: 100%; height: auto }
.skip { position: absolute; transform: translateY(-160%); padding: 7px 14px; background: white; z-index: 2 }
.skip:focus { left: 16px; top: 4px; transform: translateY(0) }
.site-header { border-top: 5px solid var(--red); color: var(--ink); border-bottom: 1px solid var(--rule) }
.header-inner,.footer-inner,.home-wrap,.article-wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(18px, 5vw, 72px) }
.header-inner,.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px }
.header-inner { min-height: 72px }
.brand { color: var(--ink); font: bold 24px/1.35 var(--serif); text-decoration: none; white-space: nowrap; letter-spacing: .01em }
.brand span { padding-left: .45em; margin-left: .45em; border-left: 1px solid var(--rule); font: 500 15px/1 var(--sans); vertical-align: 2px }
.site-header nav { display:flex; gap: clamp(10px, 2.9vw, 34px) }
.site-header nav a { display: inline-block; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; padding: 7px 0; border-bottom: 2px solid transparent }
.site-header nav [aria-current=page] { color: var(--red); border-color: var(--red) }
.overline { color: var(--red); font: 600 14px/1.5 var(--sans); letter-spacing: .12em; margin-bottom: .67em }
.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0,.97fr); gap: clamp(20px,4vw,64px); align-items: center; padding: clamp(36px,6vw,80px) 0 clamp(32px,5vw,64px) }
.hero h1 { font-size: clamp(32px,3.65vw,53px); letter-spacing: .015em }
.lead { font-size: clamp(18px,1.55vw,22px); line-height: 1.65; margin-top: 20px; color: var(--ink); max-width: 32em }
.intro,.section-intro { color: var(--muted); margin-top: 12px; font-size: 16px; line-height: 1.75 }
.hero-actions,.download-inline,.plate-links { display:flex; flex-wrap: wrap; align-items: center; gap: 10px 15px }
.hero-actions { margin-top: 24px }
.primary,.secondary { display:inline-block; min-height: 42px; padding: 7px 18px; border-radius: 3px; font-weight: 600; text-decoration: none; font-size: 16px; cursor: pointer }
.primary { border: 1px solid var(--red); background: var(--red); color: #fffdf7 }
.primary:hover { background: #623029; color: white }
.secondary { border: 1px solid #919d90; background: transparent; color: var(--ink) }
.secondary:hover { background: #edf0e9; color: var(--ink) }
.hero-figure { overflow: hidden; border: 1px solid var(--rule); border-radius: 3px; background: #f0f1e9 }
.hero-image { display:block; position:relative; overflow:hidden; aspect-ratio: 1.46; background: #f0f1e9 }
.hero-image img { position: absolute; width: 170%; max-width:none; left: -35%; top: 0; transform: none; }
.hero-figure figcaption { position:relative; padding: 9px 14px; background: #f7f7ef; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; align-items:center; color: var(--muted); font-size: 14px }
.hero-figure figcaption a { white-space:nowrap; font-size:14px }
.summary-section { display:grid; grid-template-columns: 135px minmax(0,1fr); column-gap: 18px; row-gap: 7px; padding: clamp(18px,2.9vw,33px); border-left: 4px solid var(--red); background: var(--panel) }
.summary-section h2 { font-size: 25px }
.summary-section p { font-size: 17px; line-height: 1.8 }
.summary-section a { grid-column: 2; justify-self:start; font-size: 15px }
.section { padding-top: clamp(52px,6vw,76px); scroll-margin-top: 14px }
.section:last-child { padding-bottom: 62px }
.section-title { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin-bottom: 20px }
.section-title h2,.article-head h1 { font-size: clamp(28px,3.25vw,42px) }
.section-title .overline { margin-bottom: 5px }
.section-title>a { font-size:15px; text-align:right }
.section-intro { margin: -8px 0 20px; max-width: 57em }
.samples-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 34px; border-bottom: 1px solid var(--rule) }
.sample { display:grid; grid-template-columns: 86px 1fr; gap: 12px; border-top: 1px solid var(--rule); padding: 16px 0 }
.sample h3,.extension h3 { font: 700 24px/1.5 var(--serif) }
.sample p { line-height: 1.65; font-size: 16px }
.sample .focus { color: var(--ink); font-weight:600; margin-bottom: 5px }
.sample .sample-refs { margin-top: 5px; color:var(--muted); font-size: 14px }
.extension { margin-top: 18px; padding: 17px 20px; background: #f2ede4; display:grid; grid-template-columns: 146px 1fr; gap:14px; align-items:center }
.extension .overline { margin:0; letter-spacing:.04em }
.extension p:last-child { font-size: 16px }
.extension a { white-space: normal }
.gallery { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:20px }
.plate { border: 1px solid var(--rule); border-radius: 3px; overflow:hidden; background:#fdfcf7 }
.plate-image { display:block; border-bottom:1px solid var(--rule) }
.plate-image img { width: 100% }
.plate figcaption { padding:14px 17px 17px }
.plate h3 { font: 700 21px/1.5 var(--serif) }
.plate p { font-size: 16px; color:var(--muted); margin:3px 0 7px }
.plate-links a,.download-inline a,.source-meta,.source-meta a { font-size: 14px }
.source-tools { display: grid; grid-template-columns: minmax(200px,540px) minmax(170px,230px); gap: 12px }
.source-tools label { color: var(--ink); font-size: 15px; font-weight:600 }
.source-tools input,.source-tools select { display:block; width:100%; margin:4px 0 0; padding:9px 11px; border:1px solid #9ba899; background:#fffef9; border-radius:3px; color:var(--ink); font-size:16px; min-height:45px }
#source-status { color:var(--muted); font-size:15px; margin:10px 0 }
.sources-list { list-style: none; padding:0; border-top:1px solid var(--rule) }
.sources-list li { display:grid; grid-template-columns: 38px 1fr; gap:12px; padding:14px 0; border-bottom:1px solid var(--rule); scroll-margin-top:17px }
.source-no { color:var(--red); font: 600 18px/1.6 var(--serif) }
.sources-list h3 { font:600 17px/1.55 var(--sans); overflow-wrap:anywhere }
.sources-list p { color:var(--muted); font-size:16px; margin:3px 0; overflow-wrap:anywhere }
.source-meta { display:flex; flex-wrap:wrap; color:var(--muted); gap:2px 14px; align-items:baseline }
#source-more { margin-top:14px; font-size:15px }
.docs-links { margin:4px 0 16px }
.docs-links a,.download-inline a { padding:5px 11px; border:1px solid var(--rule); border-radius:3px; background:#fffef9; font-size:15px; text-decoration:none }
.file-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px }
.file-list a { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 0; border-block-start:1px solid var(--rule); color:var(--ink); text-decoration:none }
.file-list a:hover strong { text-decoration:underline }
.file-list small,.file-list b { font-size:14px; font-weight:normal; color:var(--muted) }
.file-list small { display:block }
.file-list b { white-space:nowrap; color:var(--red) }
footer { border-top:1px solid var(--rule); color:var(--muted); font-size:14px }
.footer-inner { padding-block:20px }
.article-head { padding:clamp(32px,5vw,65px) 0 26px; border-bottom:1px solid var(--rule) }
.article-head h1 { max-width:25em }
.publication { display:flex; flex-wrap:wrap; gap:0 18px; color:var(--muted); margin:12px 0; font-size:15px }
.reading-grid { display:grid; grid-template-columns:minmax(180px,225px) minmax(0,1fr); gap:clamp(25px,4.5vw,64px); align-items:start; padding:26px 0 54px }
.toc { position: sticky; top: 17px; max-height:calc(100vh - 34px); overflow:auto; padding: 11px 12px 11px 0; scrollbar-width: thin }
.toc summary { color:var(--ink); font-weight:700; cursor:pointer; font-size:16px }
.toc ul { list-style:none; padding:5px 0 0 }
.toc a { display:block; padding:5px 0; font-size:14px; line-height:1.55; color:var(--muted); text-decoration:none }
.toc a:hover,.toc a[aria-current=location] { color:var(--red); text-decoration:underline }
.paper { min-width:0; line-height:1.85; font-size:17px }
.chapter { margin-bottom:36px }
.chapter h2 { font-size:clamp(25px,2.5vw,33px); margin:28px 0 12px; border-top:1px solid var(--rule); padding-top:22px; scroll-margin:15px }
.chapter:first-child h2 { border-top:0; padding-top:0; margin-top:9px }
.chapter h3 { font-size:20px; margin:23px 0 7px; line-height:1.55; scroll-margin:16px }
.chapter>p { margin:0 0 13px }
.citation { color:var(--red); font-size:14px; font-family:var(--sans); white-space:normal }
.citation a { text-decoration:none; border-bottom:1px solid #c4aaa0; padding-inline:1px }
.table-scroll { overflow-x:auto; max-width:100%; margin:14px 0 17px; scrollbar-width:thin; }
.table-scroll table { width:100%; border-collapse:collapse; min-width:400px; font:16px/1.65 var(--sans) }
.table-scroll table:has(th:nth-child(3)) { min-width:520px }
.table-scroll table:has(th:nth-child(4)) { min-width:630px }
th,td { padding:8px 10px; text-align:left; vertical-align:top; border-bottom:1px solid var(--rule) }
th { background:var(--panel); border-top:2px solid #778879; font-weight:600 }
.article-figure { border:1px solid var(--rule); margin:18px 0 24px; background: #fffef9 }
.article-figure img { width:100% }
.article-figure figcaption { border-top:1px solid var(--rule); padding:10px 13px; font-size:16px }
.paper-sources h3 { margin:0; font-size:17px }
:target { scroll-margin-top:15px }
.sources-list li:target { background:#f1eee1; box-shadow:inset 3px 0 0 var(--red); padding-left:8px }
.not-found { min-height:60vh; display:grid; align-content:center; gap:16px }
@media(max-width:900px) {
  .header-inner,.footer-inner,.home-wrap,.article-wrap { padding-inline:clamp(18px,3vw,32px) }
  .sample { grid-template-columns:66px 1fr; gap:9px }
  .samples-grid { column-gap:20px }
}
@media(max-width:760px) {
  .hero { gap:23px; grid-template-columns:1fr }
  .hero h1 { font-size:clamp(32px,6.5vw,48px) }
  .hero-image { aspect-ratio:2.2 }
  .hero-image img { width:110%; left:-5%; top:0; transform:none }
  .summary-section { grid-template-columns:1fr }
  .summary-section a { grid-column:1 }
  .reading-grid { grid-template-columns:1fr; gap:13px; padding-top:17px }
  .toc { position:static; max-height:none; padding:8px 12px; border:1px solid var(--rule); background:var(--panel) }
  .toc ul { columns:2; column-gap:14px }
  .toc li { break-inside:avoid }
}
@media(max-width:600px) {
  .header-inner { min-height:60px }
  .brand { font-size:20px }
  .brand span { font-size:14px; vertical-align:1px; padding-left:5px; margin-left:5px }
  .site-header nav { gap:12px }
  .site-header nav a { font-size:14px }
  .samples-grid,.gallery,.file-list { grid-template-columns:1fr }
  .sample { grid-template-columns:76px 1fr }
  .extension { grid-template-columns:1fr; gap:5px }
  .section-title { display:block }
  .section-title>a { display:inline-block; text-align:left; margin-top:5px }
  .source-tools { grid-template-columns:1fr }
  .file-list small { line-height:1.55 }
  .paper { font-size:16px }
  .footer-inner { align-items:start }
  .footer-inner a { white-space:nowrap }
}
@media(max-width:360px) {
  .site-header nav { gap:8px }
  .header-inner { gap:6px }
  .brand span { display:none }
  .toc ul { columns:1 }
}

.peak-plate { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:center }
.peak-plate .plate-image { border:0; border-right:1px solid var(--rule) }
.peak-plate .plate-credit { font-size:14px; margin-top:14px }
.geodata { margin-top:24px; padding-top:16px; border-top:1px solid var(--rule) }
.geodata h3 { font:700 21px/1.5 var(--serif) }
.geodata p { color:var(--muted); margin:4px 0 10px }
.toc .toc-sub { padding-left:12px; color:var(--red) }
@media(max-width:760px) {
  .peak-plate { display:block }
  .peak-plate .plate-image { border-right:0; border-bottom:1px solid var(--rule) }
}
