:root {
  color-scheme:light;
  --paper:#f7f5ef; --panel:#efece2; --ink:#262d26; --muted:#575e54;
  --line:#d3d1c4; --accent:#3f5649;
  --serif:"Songti SC","Noto Serif CJK SC","STSong","SimSun",Georgia,serif;
  --sans:Inter,"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:18px}
body {margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 var(--sans)}
a {color:inherit;text-underline-offset:.25em}
button,select {font:inherit;color:inherit}
button,a {touch-action:manipulation}
button {cursor:pointer}
:focus-visible {outline:3px solid #396848;outline-offset:3px}
img {display:block;max-width:100%}
.wrap {width:min(1392px,calc(100% - clamp(36px,8vw,144px)));margin-inline:auto}
.skip {position:absolute;top:-70px;left:18px;padding:10px 18px;z-index:5;background:#fff}
.skip:focus {top:12px}
.mast {border-bottom:1px solid var(--line);background:#fcfbf6}
.mast-inner,.mast nav,.brand {display:flex;align-items:center}
.mast-inner {min-height:66px;justify-content:space-between;gap:24px}
.brand {gap:12px;text-decoration:none;color:#263a2e;font-weight:680;letter-spacing:.07em;white-space:nowrap}
.brand i {font-style:normal;font-weight:400;color:#9b9c8c}
.mast nav {gap:clamp(12px,2vw,32px);white-space:nowrap}
.mast nav a {text-decoration:none;color:var(--muted);font-size:14px}
.mast a:hover,.end a:hover {color:var(--accent);text-decoration:underline}
.intro {display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:42px 0 24px}
h1,h2,h3,p,figure {margin:0}
.intro h1 {font:560 clamp(36px,4.2vw,68px)/1.18 var(--serif);letter-spacing:-.045em}
.intro h1 em {font-family:Georgia,serif;font-style:italic;font-weight:400;color:#55654f}
.intro p,.section-head p,.scheme p,.view-menu h3,.references p,.end,.caption-type {color:var(--muted)}
.style-picker {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.style-choice {border:1px solid var(--line);border-radius:3px;padding:8px 13px;background:transparent;display:inline-flex;align-items:center;gap:9px;font-size:14px;line-height:1.5}
.style-choice[aria-pressed=true] {background:var(--ink);color:#fff;border-color:var(--ink)}
.style-choice:hover {border-color:var(--accent)}
.swatch {width:16px;height:16px;display:inline-block;border:1px solid #0002;border-radius:50%;background:var(--chip)}
.feature {display:grid;grid-template-columns:minmax(0,3.6fr) minmax(228px,1fr);gap:20px;align-items:stretch}
.plate,.scheme,.space-grid>* {min-width:0}
.surface {display:block;position:relative;overflow:hidden;background:var(--panel);text-decoration:none}
.zoom {cursor:zoom-in}
.surface img {width:100%;height:auto}
.hero .surface img {aspect-ratio:1.78;object-fit:cover}
.expand {position:absolute;right:12px;bottom:12px;border-radius:50%;background:#fbfaf4ea;width:34px;height:34px;display:grid;place-content:center;font-size:19px;color:#303a32;line-height:1}
.plate figcaption {padding:8px 0;display:flex;gap:10px;align-items:baseline;justify-content:space-between;font-size:13px;line-height:1.6}
.plate figcaption strong,.hero figcaption span:first-child {font-weight:650}
.scheme {border-top:2px solid #606f60;border-bottom:1px solid var(--line);padding:22px 4px 16px;display:flex;justify-content:space-between;flex-direction:column;gap:20px;margin-bottom:36px}
.scheme-letter,.caption-type {font-size:12px;letter-spacing:.05em}
.scheme-letter {color:var(--accent)}
.scheme h2 {font:550 clamp(25px,2.4vw,39px)/1.28 var(--serif);margin:8px 0 15px}
.scheme p {line-height:1.85}
.palette {display:flex;gap:5px;margin-top:17px}
.palette span {height:15px;width:35px;border:1px solid #0001;border-radius:1px}
.view-note {border-top:1px solid var(--line);padding-top:13px}
.view-note h3 {font-size:14px}
.view-note p {font-size:13px;margin-top:5px}
.thumbs {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(8px,1.3vw,20px);margin-top:7px}
.thumb {min-width:0;padding:0 0 5px;border:0;border-bottom:2px solid transparent;text-align:left;background:transparent;color:var(--muted)}
.thumb img {width:100%;height:auto;aspect-ratio:2.75;object-fit:cover;filter:saturate(.84)}
.thumb span {display:block;padding:5px 0 0;font-size:13px}
.thumb[aria-pressed=true] {border-color:var(--accent);color:var(--ink);font-weight:670}
.thumb[aria-pressed=true] img,.thumb:hover img {filter:none}
.segment {margin-top:clamp(50px,6vw,90px);padding-top:24px;border-top:1px solid var(--line)}
.section-head {display:flex;justify-content:space-between;gap:24px;align-items:baseline;margin-bottom:21px}
.section-head h2 {font:560 clamp(26px,2.8vw,42px)/1.3 var(--serif)}
.section-head p {max-width:47em;font-size:14px}
.space-grid {display:grid;grid-template-columns:minmax(195px,.85fr) minmax(0,3.15fr);gap:24px;align-items:start}
.menu-group + .menu-group {margin-top:16px}
.view-menu h3 {margin:0 0 5px;font-weight:650;font-size:13px}
.menu-buttons {display:flex;flex-wrap:wrap;gap:5px}
.menu-buttons button {padding:4px 9px;font-size:13px;line-height:1.65;background:#fdfcf8;border:1px solid var(--line);border-radius:3px}
.menu-buttons button[aria-pressed=true] {background:var(--accent);color:white;border-color:var(--accent)}
.model .surface img {aspect-ratio:1.68;object-fit:contain;background:#e9e8e1}
.model figcaption {justify-content:flex-start;align-items:baseline}
.model figcaption span,.door-pair figcaption span {color:var(--muted)}
.model figcaption strong {white-space:nowrap}
.door-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.door-pair .surface img {aspect-ratio:1.67;object-fit:contain}
.drawing {border-block:1px solid var(--line);margin-top:15px}
.drawing summary {cursor:pointer;padding:14px 3px;font-size:14px}
.drawing img {margin:0 auto 18px;width:min(1030px,100%);height:auto}
.references {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px}
.reference {max-width:610px}
.reference .surface img {aspect-ratio:1.48;object-fit:cover}
.reference figcaption {padding-top:8px}
.reference strong {font-size:15px}
.reference p {font-size:13px;margin-top:3px;max-width:49em}
.end {margin-top:65px;border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:22px 0 38px;font-size:13px}
#viewer {background:#1b211d;color:#fbfaf6;border:0;border-radius:5px;padding:9px 13px 13px;max-width:96vw;max-height:94dvh}
#viewer::backdrop {background:rgba(15,20,16,.8)}
#viewer-img {max-width:91vw;max-height:calc(91dvh - 55px);width:auto;height:auto;margin:auto;object-fit:contain}
.viewer-bar {display:flex;align-items:center;justify-content:space-between;gap:22px;padding-bottom:7px;font-size:14px}
.viewer-bar button {background:transparent;border:0;color:white;padding:5px 8px}
.viewer-bar button span {font-size:18px;margin-left:5px}
@media(max-width:920px) {
  .wrap {width:calc(100% - 44px)}
  .feature {grid-template-columns:minmax(0,2.6fr) minmax(195px,1fr);gap:14px}
  .intro {padding-top:28px}
  .section-head {align-items:start;flex-direction:column;gap:6px}
  .scheme {padding-top:12px}
  .scheme p {font-size:14px}
}
@media(max-width:700px) {
  .wrap {width:calc(100% - 28px)}
  .mast-inner {min-height:0;align-items:flex-start;flex-direction:column;gap:0}
  .brand {min-height:45px;font-size:14px;gap:8px}
  .brand img {width:23px;height:23px}
  .mast nav {width:100%;justify-content:space-between;gap:6px;padding:2px 0 9px}
  .mast nav a {font-size:12px}
  .intro {display:block;padding:23px 0 14px}
  .intro p {font-size:13px;margin-top:6px}
  .style-picker {gap:5px;margin-bottom:13px}
  .style-choice {padding:5px 7px;font-size:12px;gap:5px}
  .swatch {width:11px;height:11px}
  .feature {display:flex;flex-direction:column;gap:8px}
  .hero .surface img {aspect-ratio:1.5}
  .scheme {border:0;border-left:2px solid #74816d;padding:0 10px;margin:0}
  .scheme-letter {font-size:11px}
  .scheme h2 {font-size:24px;display:inline;margin:0 0 0 8px}
  .scheme p {font-size:13px;line-height:1.65;margin-top:4px}
  .palette,.view-note {display:none}
  .thumbs {grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:13px}
  .thumb img {aspect-ratio:1.6}
  .thumb span {font-size:11px;line-height:1.4}
  .segment {margin-top:40px;padding-top:16px}
  .space-grid {grid-template-columns:1fr;gap:11px}
  .menu-group {display:flex;align-items:baseline;gap:6px}
  .menu-group + .menu-group {margin-top:5px}
  .view-menu h3 {flex:0 0 45px;font-size:11px;line-height:1.4}
  .menu-buttons {gap:4px}
  .menu-buttons button {font-size:12px;padding:3px 6px}
  .door-pair {gap:7px}
  .door-pair figcaption {display:block;font-size:12px}
  .door-pair figcaption strong,.door-pair figcaption span {display:block}
  .expand {right:7px;bottom:7px;width:26px;height:26px;font-size:16px}
  .references {grid-template-columns:1fr;gap:17px}
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}}
