:root {
  color-scheme: dark;
  --dark: #211510;
  --ink: #f8ecda;
  --gold: #e8b875;
  --muted: #cdbba6;
  --line: #604733;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}
* {box-sizing:border-box}
body {
  margin:0; min-height:100vh; color:var(--ink); background:radial-gradient(ellipse at 75% 0%,#38251c 0,transparent 52rem),var(--dark);
  font:1rem/1.65 var(--sans);
}
a {color:inherit}
a,summary {touch-action:manipulation}
a:focus-visible,summary:focus-visible {outline:2px solid #ffdb91;outline-offset:4px}
.wrap {width:min(70rem,calc(100% - 5rem)); margin-inline:auto}
.skip {position:absolute;left:1rem;top:-15rem;z-index:2;padding:.5rem 1rem;color:var(--dark);background:var(--ink)}
.skip:focus {top:.75rem}
.top {border-bottom:1px solid var(--line)}
.mast {min-height:4.75rem; display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand,.mast nav,.download,.meta {display:flex;align-items:center}
.brand {gap:.65rem;text-decoration:none;color:#f8e5bd;font:600 1.35rem/1.1 var(--serif);letter-spacing:.045em}
.brand img {width:2.375rem;height:2.375rem}
.mast nav {gap:1.65rem}
.mast nav a,footer a {color:#e6d6bf;text-decoration:none;font-size:.925rem}
.mast nav a:hover,footer a:hover {color:#ffda98;text-decoration:underline;text-underline-offset:.3em}
.intro {padding:clamp(2.6rem,6vw,4.6rem) 0 2.25rem}
h1,h2,h3,p {margin:0}
h1,h2 {font-family:var(--serif);color:var(--ink)}
h1 {font-size:clamp(2.4rem,5vw,4rem);line-height:1.22;font-weight:600;letter-spacing:.035em}
.intro p {margin:.7rem 0 0;color:var(--muted);font-size:1.06rem}
.shelf {border-top:1px solid #9a7550}
article {border-bottom:1px solid var(--line)}
.entry {padding:1.55rem 0 .2rem;display:grid;grid-template-columns:9rem minmax(0,1fr) auto;gap:1.7rem;align-items:center}
.sample {width:9rem;height:6.7rem;display:grid;place-content:center;overflow:hidden;border:1px solid #806347}
.sample-qr {background:#50342a}
.sample-table {background:#3b3b2b}
.sample-slide {background:#51362a}
.paper {background:#f5e6bd;color:#38291c;box-shadow:3px 5px 0 #22191255;line-height:1.2}
.qr-paper {padding:4px 5px 5px;background:white;text-align:center;transform:rotate(-5deg)}
.qr-paper img {display:block;width:4.2rem;height:4.2rem;image-rendering:pixelated}
.qr-paper span {font:500 .58rem/1.2 ui-monospace,monospace;display:block}
.table-paper,.slide-paper {width:5.5rem;padding:.42rem .5rem .55rem;transform:rotate(-6deg)}
.paper-label {display:block;font:600 .55rem/1.2 ui-monospace,monospace;color:#695539;letter-spacing:.035em}
.paper strong {display:block;margin:.22rem 0 .25rem;font:600 .74rem/1.3 var(--serif)}
.grid-paper {display:grid;grid-template-columns:1.5fr 1fr 1fr;border-top:1px solid #978d66;border-left:1px solid #978d66}
.grid-paper i {height:6px;border-right:1px solid #978d66;border-bottom:1px solid #978d66}
.slide-paper {transform:rotate(5deg);padding:.55rem .55rem .63rem;background:#f3d6aa}
.slide-paper i {display:block;height:1px;margin:.33rem 0 0;background:#a77c4f}
.slide-paper i:nth-last-child(1) {width:66%}
.meta {gap:.5em;color:var(--gold);font-size:.875rem;line-height:1.45}
.meta b {font-weight:400}
h2 {margin:.25rem 0 .3rem;font-size:clamp(1.55rem,2.6vw,2.02rem);line-height:1.32;font-weight:600}
.copy>p:last-child {color:#ddcdbb;max-width:43rem}
.download {align-self:center;justify-content:center;min-height:2.75rem;padding:.52rem 1.3rem;border:1px solid #b58b5d;color:#f6dfb5;background:#3b2a1e;border-radius:.3rem;text-decoration:none;white-space:nowrap;font-weight:600;font-size:.94rem}
.download:hover {background:#e6bd84;border-color:#e6bd84;color:#25180f}
details {margin:0 0 .6rem 10.7rem}
summary {width:fit-content;min-height:2.7rem;cursor:pointer;display:flex;align-items:center;gap:.55rem;color:var(--gold);font-size:.92rem}
summary::-webkit-details-marker {display:none}
summary::before {content:"";width:.42rem;height:.42rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-left:.12rem}
details[open]>summary::before {transform:rotate(45deg) translateY(-2px)}
summary:hover {color:#ffe4ad}
.instructions {margin:.25rem 0 1rem;padding:clamp(.75rem,2vw,1.35rem);border-left:2px solid #997345;background:#2c2019;overflow-wrap:anywhere}
.instructions p {color:#e3d4bd}
.instructions h3 {margin:1rem 0 .35rem;color:#ecd0a1;font:600 .875rem/1.45 var(--sans)}
code {font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.94em}
pre {margin:.35rem 0 .8rem;padding:.65rem .8rem;background:#1c1511;color:#f6e8c8;overflow-x:auto;line-height:1.62;font-size:.89rem}
footer {display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:center;padding:1.7rem 0 2.5rem;color:#bea78d}
footer span {font:400 .94rem/1.35 Georgia,serif;letter-spacing:.035em}
@media(max-width:760px){
  .wrap {width:calc(100% - 2.75rem)}
  .entry {grid-template-columns:6.75rem minmax(0,1fr);gap:.8rem 1.1rem;align-items:start}
  .sample {width:6.75rem;height:6.4rem}
  .download {grid-column:2;justify-self:start}
  details {margin-left:7.85rem}
}
@media(max-width:530px){
  .wrap {width:calc(100% - 2.25rem)}
  .mast {min-height:4.15rem}
  .mast nav {gap:1rem}
  .mast .brand {gap:.4rem;font-size:1.2rem}
  .brand img {width:1.95rem;height:1.95rem}
  .intro {padding:2.4rem 0 1.6rem}
  .entry {position:relative;grid-template-columns:minmax(0,1fr) 3.75rem;gap:.55rem .7rem;padding:1.3rem 0 .4rem}
  .copy {grid-column:1/-1;grid-row:1}
  .copy .meta,.copy h2 {max-width:calc(100% - 4.4rem)}
  .copy h2 {font-size:1.45rem;margin:.28rem 0 .85rem}
  .sample {grid-column:2;grid-row:1;z-index:1;width:3.75rem;height:3.55rem;align-self:start}
  .sample .paper {scale:.57;flex-shrink:0}
  .sample-qr .paper {scale:.58}
  .download {grid-column:1;min-height:2.75rem;padding:.45rem .95rem}
  details {margin:0 0 .45rem}
  .meta {font-size:.86rem}
  footer {padding:1.35rem 0 2rem}
}
@media(forced-colors:active){.paper,.sample{border:1px solid CanvasText}}
