/* Qingdao. Design card: DESIGN.md. Radius 2px, hairline rules, no shadows on surfaces. */
@font-face{font-family:"QD Brush";src:url("../img/mashanzheng-subset.woff2") format("woff2");font-display:swap}
:root{
  --paper:#f3efe4; --ink:#1d2730; --sea:#6f8b9b; --roof:#b4512e; --cream:#fffcf5;
  --rule:rgba(29,39,48,.28); --r:2px;
  --brush:"QD Brush","Kaiti SC","STKaiti","KaiTi","BiauKai",serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --zh:"Kaiti SC","STKaiti","KaiTi","BiauKai","Songti SC","Noto Serif CJK SC",serif;
  --en:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--en);font-size:17px;line-height:1.55}
img{max-width:100%;display:block}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:1.5px solid currentColor;outline-offset:3px}
[hidden]{display:none!important}
.zhg{font-family:var(--zh);fill:currentColor}

/* language switch: Chinese first; English on request */
[data-lang="zh"] .t-en{display:none}
[data-lang="en"] .t-zh{display:none}
.t-zh{font-family:var(--zh)}

/* chrome */
.chrome{position:fixed;z-index:30;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right),1.4vw);display:flex;gap:6px;color:var(--ink);transition:color .4s,opacity .8s}
.chrome-btn{width:44px;height:44px;display:grid;place-items:center}
/* language mark: 文 / A in plain sans, the language in use at full strength */
.lang{display:flex;align-items:baseline;justify-content:center;gap:2px;width:auto;min-width:52px;padding:0 6px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:44px;letter-spacing:0}
.lang .lg-sl{opacity:.5;font-weight:300;padding:0 1px}
.lang .lg-en{font-size:17px}
[data-lang="zh"] .lang .lg-en,[data-lang="en"] .lang .lg-zh{opacity:.55}
[data-lang="zh"] .lang .lg-zh,[data-lang="en"] .lang .lg-en{font-weight:600}
.on-opening .lang{text-shadow:0 0 4px rgba(20,30,40,.6)}
.menu-open .lang{text-shadow:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.menu{transform:translateX(102%);visibility:hidden;transition:transform .55s var(--ease),visibility 0s .55s;position:fixed;z-index:29;top:0;right:0;width:min(340px,100vw);height:100dvh;background:var(--paper);border-left:1px solid var(--rule);padding:86px 34px 28px;overflow:auto;display:flex;flex-direction:column}
.menu.open{transform:none;visibility:visible;transition:transform .55s var(--ease)}
.menu ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.menu li>a{display:block;padding:13px 0;border-bottom:1px solid var(--rule);text-decoration:none;font-size:19px}
.menu-places a{display:flex!important;justify-content:space-between;align-items:baseline;padding:9px 0 9px 18px!important;font-size:16px!important}
.menu-places .zh{font-family:var(--brush);font-size:22px;white-space:nowrap}.menu-places a span:last-child{text-align:right}
.menu-foot{margin-top:auto;padding-top:28px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;font-size:15px}
.menu-foot button{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.on-opening .chrome{color:var(--cream)}
.on-opening .chrome svg{filter:drop-shadow(0 0 3px rgba(20,30,40,.55))}
.menu-open .chrome{color:var(--ink)}
.menu-open .chrome svg{filter:none}

/* opening */
.opening{position:relative;height:60svh;min-height:400px;overflow:hidden;background:#a9bfcf;color:var(--cream)}
.stage{position:absolute;left:0;top:0;width:1920px;height:2360px;transform-origin:0 0;will-change:transform}
.stage>*{position:absolute;left:0;top:0;max-width:none}
/* one photograph in two layers (_tools/hero.py): the whole picture behind, its city alone in front, 青岛 written between them */
.l-sky,.l-city{top:0!important;width:1920px;height:1161px;transform-origin:50% 0}
.l-ink{left:530px;top:50px;width:840px;height:480px;transform-origin:50% 0}
.l-hand{width:340px;height:469px;transform-origin:1.1px 328px;pointer-events:none}
.stage.tall .l-sky,.stage.tall .l-city{scale:1.6;top:-70px!important;left:280px}   /* tall screens: closer in, the pavilion kept in frame under the title */
.opening.pre .l-sky,.opening.pre .l-city,.opening.pre .l-hand{opacity:0}
.side{position:absolute;z-index:3;top:max(22px,env(safe-area-inset-top));margin:0;display:flex;flex-direction:column;align-items:center;font-family:var(--brush);font-size:clamp(22px,2.6vw,34px);line-height:1.12;text-shadow:0 0 6px rgba(20,30,40,.5)}
.side .num{font-family:var(--en);font-size:.62em;line-height:1.25}
.side-l{left:max(18px,env(safe-area-inset-left),2vw)}
.side-r{right:max(26px,env(safe-area-inset-right),2vw);top:calc(max(14px,env(safe-area-inset-top)) + 58px)}
.side span:nth-child(3).num{margin-top:.35em}
/* the new opening photograph has a pale sky: what sits on it is ink, not cream */
.side{color:#0e1318;text-shadow:none}
body.on-opening:not(.menu-open) .chrome{color:#0e1318}
body.on-opening .chrome svg{filter:none}
body.on-opening .lang{text-shadow:none}
.skip{position:absolute;z-index:3;left:max(20px,2vw);bottom:max(22px,env(safe-area-inset-bottom));font-size:14px;letter-spacing:.04em;color:var(--cream);text-shadow:0 0 5px rgba(20,30,40,.7);border-bottom:1px solid currentColor;padding-bottom:1px}
.opening .side{opacity:0;transition:opacity 1s}
.opening.done .side{opacity:1}
.opening.done .skip{display:none}
body.playing .chrome{opacity:0;pointer-events:none}

/* under the banner, to his sketch: his words, then the six places as a moving row of pictures, then the two maps */
.intro{max-width:1500px;margin:0 auto;padding:clamp(28px,3.4vw,48px) clamp(20px,5vw,72px) clamp(22px,2.6vw,36px)}
.where-text{max-width:46em}
.prose p{margin:0 0 .5em}
.prose .t-zh{font-size:clamp(22px,2.3vw,30px);line-height:1.7}
.prose .t-en{font-size:clamp(18px,1.6vw,22px)}
.reel{position:relative;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:clamp(16px,1.6vw,24px) 0 14px}
.reel-window{overflow:hidden;cursor:grab;touch-action:pan-y}
.reel-window.is-dragging{cursor:grabbing;user-select:none}
.reel-window.is-dragging img{pointer-events:none}
.reel-track{display:flex;gap:clamp(12px,1.3vw,20px);width:max-content;padding-left:clamp(20px,5vw,72px);will-change:transform}
.card{position:relative;flex:none;width:clamp(260px,30.4vw,520px);text-decoration:none;display:block}
.card .ph{display:block;aspect-ratio:3/2;overflow:hidden;border:1px solid var(--rule);background:#e4dfd2}
.card .ph img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s var(--ease),opacity .9s ease}
.card:hover .ph img,.card:focus-visible .ph img{transform:scale(1.045)}
.card .cap .en{transition:opacity .4s}
.card:hover .cap .en{opacity:1}
.card .cap{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:.5em 0 .1em}
.card .zh{font-family:var(--brush);font-size:clamp(24px,2.2vw,32px);line-height:1.1;white-space:nowrap}
.card .en{font-style:italic;font-size:14px;text-align:right;opacity:.8}
.reel-nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:6px clamp(20px,5vw,72px) 0}
.reel-nav button{min-width:44px;height:40px;padding:0 8px;display:grid;place-items:center;border-radius:var(--r)}
.reel-nav button:hover{background:rgba(29,39,48,.07)}
/* preview: a plate under the picture you point at: main picture with his words, three more at the side */
.preview{position:absolute;z-index:6;top:100%;margin-top:-34px;width:min(680px,calc(100vw - 40px));display:grid;grid-template-columns:1fr 31%;gap:8px;padding:8px;background:var(--cream);border:1px solid var(--ink);border-radius:var(--r);pointer-events:none;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .28s ease,transform .5s var(--ease),visibility 0s .3s,left .45s var(--ease)}
.preview.show{opacity:1;visibility:visible;transform:none;transition:opacity .35s ease,transform .5s var(--ease),left .45s var(--ease)}
.preview::before{content:"";position:absolute;left:var(--tick,50%);bottom:100%;width:1px;height:16px;background:var(--ink)}
.pv-main{position:relative;min-height:0}
.pv-main>img{width:100%;aspect-ratio:3/2;object-fit:cover;border:1px solid var(--rule)}
.pv-text{padding:8px 4px 4px}
.pv-name{margin:0 0 .25em;display:flex;align-items:baseline;gap:14px}
.pv-name .zh{font-family:var(--brush);font-size:30px;line-height:1}
.pv-name .en{font-style:italic;font-size:15px}
.pv-desc p{margin:0;font-size:17px;line-height:1.5}
.pv-desc .t-zh{font-size:20px;line-height:1.6}
.pv-desc .none{font-style:italic;opacity:.65;font-size:15px}
.pv-side{display:grid;grid-template-rows:repeat(3,1fr);gap:8px;min-height:0}
.pv-side>*{position:relative;overflow:hidden;border:1px solid var(--rule);min-height:0;background:#e4dfd2}
.pv-side img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pv-side .mini .pin{width:11px;height:11px}
/* the two real maps */
.where{max-width:1500px;margin:0 auto;padding:clamp(36px,4.6vw,68px) clamp(20px,5vw,72px) clamp(40px,6vw,80px);display:grid;grid-template-columns:minmax(0,.62fr) auto minmax(0,1fr);gap:clamp(12px,2.4vw,40px);align-items:center}
.map{margin:0}
.map-box{position:relative;border:1px solid var(--rule);overflow:hidden}
.map-box img{width:100%;height:auto;filter:saturate(.82)}
.map figcaption{font-size:12.5px;opacity:.72;padding-top:6px}
.pin{position:absolute;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;background:var(--roof);border:1.5px solid var(--cream);transition:opacity .25s,transform .25s}
.pin.on{transform:scale(1.35)}
a.pin{cursor:pointer;z-index:1}a.pin::before{content:"";position:absolute;inset:-15px;border-radius:50%}
a.pin:hover,a.pin:focus-visible{transform:scale(1.35);outline:0}a.pin:focus-visible{box-shadow:0 0 0 3px var(--cream),0 0 0 4.5px var(--ink)}
.pin.on::after{content:"";position:absolute;inset:-9px;border:1.5px solid var(--roof);border-radius:50%}
.soft .pin.on::after{animation:ping 2.2s var(--ease) infinite}
@keyframes ping{0%{transform:scale(.55);opacity:0}25%{opacity:1}100%{transform:scale(1.35);opacity:0}}
#pins.has-on .pin:not(.on){opacity:.4}
.pin-name{position:absolute;transform:translate(-50%,14px);font-style:italic;font-size:14px;line-height:1;padding:2px 5px;background:rgba(255,252,245,.86)}
#pinLabels>span{position:absolute;transform:translate(18px,-50%);white-space:nowrap;font-family:var(--brush);font-size:clamp(18px,1.6vw,23px);line-height:1;padding:1px 6px 2px;background:rgba(255,252,245,.9);border:1px solid var(--rule);opacity:0;transition:opacity .25s;pointer-events:none}
#pinLabels>span.on{opacity:1}
#pinLabels>span.left{transform:translate(calc(-100% - 18px),-50%)}
.arrow{color:var(--ink)}

/* tips, ending */
.tips,.ending{max-width:1500px;margin:0 auto;padding:clamp(40px,6vw,80px) clamp(20px,5vw,72px)}
.tips{border-top:1px solid var(--rule);display:grid;grid-template-columns:minmax(140px,.3fr) 1fr;gap:clamp(16px,4vw,60px)}
.tips h2,.sources h1,.sources h2{font-weight:400;font-style:italic;font-size:clamp(20px,1.8vw,26px);margin:0}
.tips ol{margin:0;padding:0;list-style:none;counter-reset:t;border-top:1px solid var(--rule)}
.tips li{counter-increment:t;display:grid;grid-template-columns:2.2em 1fr;padding:.75em 0;border-bottom:1px solid var(--rule)}
.tips li::before{content:counter(t);font-style:italic;opacity:.6}
.tips li p{margin:0}
.ending{border-top:1px solid var(--rule);padding-bottom:clamp(60px,9vw,130px)}
.ending .prose{max-width:30em;margin-left:auto}
.ending .t-zh{font-size:clamp(26px,3vw,40px);line-height:1.6}
.foot{border-top:1px solid var(--rule);padding:18px clamp(20px,5vw,72px);display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:14px}
.foot .mark{font-family:var(--brush);font-size:34px;line-height:1;text-decoration:none;margin-right:auto}
.foot .mark+span{margin-right:auto}
.sources .mark{font-family:var(--brush);font-size:clamp(56px,8vw,96px);line-height:1;margin:0 0 .3em}

/* place page */
.place{min-height:100svh}
.banner{position:relative;height:clamp(240px,46vh,520px);overflow:hidden;background:#c9d2d4}
.banner img{width:100%;height:100%;object-fit:cover}
.banner::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(243,239,228,0) 38%,rgba(243,239,228,.72) 78%,var(--paper) 100%)}
.banner.empty{height:150px;background:none}
.place-head{position:relative;margin:calc(-1 * clamp(64px,9vw,120px)) auto 0;max-width:1500px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.place-head h1{margin:0;font-family:var(--brush);font-weight:400;font-size:clamp(64px,10vw,150px);line-height:1}
.place-head .en{font-style:italic;font-size:clamp(18px,1.8vw,26px);padding-bottom:.6em}
.back{position:fixed;z-index:20;top:max(14px,env(safe-area-inset-top));left:max(14px,2vw);height:44px;display:flex;align-items:center;gap:8px;padding:0 12px 0 8px;text-decoration:none;font-size:15px;background:var(--paper);border:1px solid var(--rule);border-radius:var(--r)}
.place-body{max-width:1500px;margin:0 auto;padding:clamp(24px,4vw,56px) clamp(20px,5vw,72px) clamp(48px,7vw,96px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4.5vw,72px);align-items:start}
.gallery figure{margin:0}
.gallery .main{border:1px solid var(--rule);aspect-ratio:4/3;max-height:60vh;width:100%;overflow:hidden;background:#e4dfd2}
.words{align-self:center}
.gallery .main img{width:100%;height:100%;object-fit:cover}
.gallery figcaption{font-size:12.5px;opacity:.72;padding-top:6px;min-height:1.6em}
.gallery figcaption a{text-underline-offset:3px}
.thumbs{display:flex;gap:10px;margin-top:6px;flex-wrap:wrap}
.thumbs button{width:clamp(72px,9vw,128px);aspect-ratio:4/3;border:1px solid var(--rule);overflow:hidden;opacity:.72}
.thumbs button[aria-current="true"]{opacity:1;border-color:var(--ink)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.slot{border:1px dashed var(--rule);aspect-ratio:4/3;display:grid;place-items:center;text-align:center;font-style:italic;opacity:.7;padding:20px}
.clip{margin-top:18px;border:1px solid var(--rule)}
.clip video{display:block;width:100%}
.words .prose .t-zh{font-size:clamp(24px,2.5vw,34px)}
.listen{display:inline-flex;align-items:center;gap:10px;margin:0 0 1.2em;padding:9px 16px 9px 12px;border:1px solid var(--ink);border-radius:var(--r);font-size:15px}
.listen svg{flex:none}
.listen[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.apparatus{margin-top:clamp(24px,3vw,44px);border-top:1px solid var(--ink)}
.apparatus dl{margin:0}
.apparatus .row{display:grid;grid-template-columns:minmax(5.5em,auto) 1fr;gap:18px;align-items:baseline;padding:.55em 0;border-bottom:1px solid var(--rule)}
.apparatus dt{font-family:var(--zh);font-size:24px}
.apparatus .row.name dt{font-family:var(--brush);font-size:30px}
.apparatus dd{margin:0;font-style:italic}
.apparatus h2{font-size:13px;font-weight:400;letter-spacing:.09em;text-transform:uppercase;margin:0;padding:.7em 0 .3em;opacity:.7}
.pager{max-width:1500px;margin:0 auto;padding:0 clamp(20px,5vw,72px) clamp(40px,6vw,80px);display:flex;justify-content:space-between;gap:20px}
.pager a{text-decoration:none;display:flex;align-items:baseline;gap:12px;border-top:1px solid var(--ink);padding-top:10px;min-width:38%}
.pager a.next{justify-content:flex-end;text-align:right}
.pager .zh{font-family:var(--brush);font-size:30px}
.pager .en{font-style:italic;font-size:14px}

/* sources */
.sources{max-width:900px;margin:0 auto;padding:110px clamp(20px,5vw,72px) 80px}
.sources h1{font-size:clamp(28px,3vw,40px);margin-bottom:.6em}
.src-map{margin:0 0 clamp(20px,3vw,36px);border:1px solid var(--rule)}
.src-map img{width:100%;height:auto}
.sources h2{margin:2em 0 .5em;padding-top:.8em;border-top:1px solid var(--rule)}
.sources ul{list-style:none;margin:0;padding:0;font-size:15px}
.sources li{padding:.42em 0;border-bottom:1px solid var(--rule)}
.sources p{max-width:40em}

/* his handwritten titles: every file is 1.42 characters tall with the ink centred, so one height rule fits all and width follows */
.has-ink .ink-title{height:auto!important;width:auto!important;max-width:100%;max-height:1.42em}
.place-head h1{max-width:100%;min-width:0}
.card .zh .ink-title{max-height:1.9em;margin:-.2em 0 -.25em}
#pinLabels .ink-title{max-height:1.7em}
.pv-name .zh .ink-title{max-height:1.7em}
.foot .mark .ink-title{max-height:1.7em}

/* soft motion (class "soft" is set only when the reader has not asked for reduced motion) */
.soft .rv{opacity:0;transform:translateY(22px);transition:opacity 1s ease,transform 1.1s var(--ease)}
.soft .rv.in{opacity:1;transform:none}
.soft .card .ph img,.soft .banner img,.soft .gallery .main img,.soft .pv-main>img,.soft .pv-side img,.soft .map-box>img,.soft .src-map img,.soft .thumbs img{opacity:0;transition:opacity .9s ease,transform 1.1s var(--ease)}
.soft img.ld{opacity:1!important}
.soft .banner img{animation:settle 2.8s var(--ease) both}
@keyframes settle{from{transform:scale(1.07)}to{transform:none}}
.soft .t-zh,.soft .t-en{transition:opacity .22s ease}
.soft.swap .t-zh,.soft.swap .t-en{opacity:0}
.thumbs button{transition:opacity .35s,border-color .35s}
.listen{transition:background .3s,color .3s}
.back,.reel-nav button,.pager a{transition:background .3s,border-color .3s,transform .5s var(--ease)}
.pager a:hover{transform:translateX(-4px)}.pager a.next:hover{transform:translateX(4px)}
.menu li>a,.menu-places a{transition:padding-left .45s var(--ease),opacity .3s}
.menu li>a:hover{padding-left:8px}
.l-sky{translate:0 calc(var(--sy,0) * .34px)}
.l-ink{translate:0 calc(var(--sy,0) * .2px)}
.l-city{translate:0 calc(var(--sy,0) * .08px)}
::view-transition-old(root){animation:vt-out .32s ease both}
::view-transition-new(root){animation:vt-in .7s ease both}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0}}

/* one hand for the whole site (3 Dec, Andrew: too much wide spacing, parts looked like different websites):
   every block starts at the same left edge, body statements share one size, sections sit one step apart */
:root{--pad:clamp(20px,5vw,72px);--step:clamp(34px,4.2vw,64px);--say:clamp(24px,2.5vw,36px);--say-en:clamp(20px,2vw,28px)}
.intro,.ending{max-width:none;border:0;padding:var(--step) var(--pad)}
.intro .where-text,.ending .prose{max-width:none;margin:0;padding:0}
.intro .t-zh,.ending .t-zh,.words .prose .t-zh{font-size:var(--say);line-height:1.6;max-width:24em}
.intro .t-en,.ending .t-en,.words .prose .t-en{font-size:var(--say-en);line-height:1.4;max-width:30em}
.ending{padding-bottom:calc(var(--step) * 1.5)}
/* the row of places: one unbroken strip, edge to edge */
.reel{border:0;padding:0 0 4px}
.reel-track{gap:0;padding-left:0}
.card .ph{border:0}
.card .cap{padding:.55em 14px .1em var(--pad)}
.card+.card .cap{padding-left:14px}
.reel-nav{gap:2px;padding:0 calc(var(--pad) - 10px) 0;margin-top:-4px}
.reel-nav button{min-width:36px;height:36px;padding:0;opacity:.5;transition:opacity .3s}
.reel-nav button:hover,.reel-nav button:focus-visible{background:none;opacity:1}
.reel-nav svg{width:18px;height:auto}
.reel-nav #reelMotion svg{width:9px}
.where{max-width:none;padding:var(--step) var(--pad)}
/* tips: a short walk, one numbered stop after another, footprints between */
.tips{max-width:none;border:0;border-top:1px solid var(--rule);margin:0 var(--pad);padding:var(--step) 0;display:grid;grid-template-columns:minmax(120px,.2fr) 1fr;gap:clamp(16px,3vw,48px)}
.tips h2{font-size:clamp(20px,1.8vw,26px);font-style:italic;font-weight:400;margin:.5em 0 0;line-height:1.2;letter-spacing:0}
.tips ol{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:clamp(14px,2.4vw,40px);row-gap:28px;border:0;margin:0;padding:0;list-style:none}
.tips li{display:block;border:0;padding:0;margin:0}
.tips li::before{content:none}
.tips li:nth-child(even){margin-top:clamp(40px,4.6vw,72px)}
.tips .n{display:inline-block;font-family:var(--zh);font-size:clamp(44px,4.6vw,72px);line-height:1;color:var(--roof)}
.tips .tx{margin-top:.5em}
.tips li .t-zh{font-size:clamp(20px,1.75vw,26px);line-height:1.55}
.tips li .t-en{font-size:clamp(17px,1.4vw,21px);line-height:1.4}
.tips li>*{transition:opacity .7s ease,transform .8s var(--ease)}
.steps{position:absolute;inset:0;pointer-events:none}
.steps i{position:absolute;width:9px;height:20px;margin:-10px 0 0 -4.5px;opacity:.36;transition:opacity .4s ease;color:var(--ink)}
.steps svg{display:block;width:100%;height:100%;fill:currentColor}
.soft .tips ol:not(.walk) .steps i{opacity:0}
.soft .tips ol:not(.walk) li>*{opacity:0;transform:translateY(10px)}

/* place page, same hand */
.place-body{padding:var(--step) var(--pad);gap:clamp(20px,3.4vw,56px);align-items:end}
.gallery .main{border:0;aspect-ratio:3/2}
.thumbs button{border:0;border-bottom:2px solid transparent;padding-bottom:5px;width:clamp(64px,7vw,104px)}
.thumbs button[aria-current="true"]{border-color:var(--roof)}
.apparatus{border-top:0;margin-top:clamp(20px,2.6vw,36px)}
.apparatus h2{font-size:clamp(20px,1.8vw,26px);letter-spacing:0;text-transform:none;font-style:italic;opacity:1;padding:0 0 .4em;color:var(--roof)}
.apparatus .row{border-bottom:0;padding:.3em 0;grid-template-columns:minmax(4.5em,auto) 1fr}
/* each new word is a button; its pinyin drops open beneath it (hover, tap or keyboard), closed by default */
.apparatus dt{display:flex;flex-direction:column;align-items:flex-start}
.wd{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;border-bottom:1px dotted rgba(29,39,48,.45);line-height:1.25}
.wd:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
.py{display:grid;grid-template-rows:0fr;font-family:var(--en);font-size:.66em;letter-spacing:.02em;color:var(--roof);opacity:0;transition:grid-template-rows .32s ease,opacity .32s ease}
.py i{overflow:hidden;font-style:normal;min-height:0}
.wd[aria-expanded="true"]+.py{grid-template-rows:1fr;opacity:1}
@media (hover:hover){.apparatus .row:hover .py{grid-template-rows:1fr;opacity:1}}
.feat .others .ph{display:block}.feat .others .ph img{display:block;width:100%;height:auto}
.pager{padding:0 0 var(--step);margin:0 var(--pad);max-width:none;border-top:1px solid var(--rule);padding-top:clamp(16px,2vw,28px)}
.pager a{border-top:0;padding-top:0;min-width:0}
.pager .zh{font-size:clamp(28px,2.8vw,40px);white-space:nowrap}
.pager a{flex-wrap:wrap}

/* feature page (Andrew's sketch, 3 Dec): a picture-brochure. The cutout stands on the paper as the spine of the page
   and runs off the bottom; his words sit under its left wing, two pictures under its right */
.place.feature .place-head{margin-top:clamp(84px,8vw,112px);justify-content:center;align-items:baseline;gap:clamp(14px,2.4vw,36px);flex-wrap:nowrap}
.place.feature .place-head .en{padding-bottom:0}
.feat{--cw:min(46vw,620px,calc(118vh / var(--ar)));--ch:calc(var(--cw) * var(--ar));position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--cw) minmax(0,1fr);padding:clamp(8px,1.4vw,20px) var(--pad) 0;overflow:hidden}
.feat .cut{grid-column:2;grid-row:1;margin:0;height:calc(var(--ch) * .9);position:relative;clip-path:inset(-400px -600px 0 -600px)}
.feat .cut img{position:relative}
.feat .cut img{width:100%;height:auto;filter:drop-shadow(0 1px 2px rgba(29,39,48,.28))}   /* his hand cutouts carry a white paper edge: a hairline shadow lifts the sticker off the page */
.soft .feat .cut.rv:not(.in){transform:translateY(90px);transition-duration:1.2s,1.5s}
.feat .words,.feat .others{transition:margin .6s var(--ease)}
.feat .words{grid-column:1;grid-row:1;z-index:1;align-self:start;margin-top:calc(var(--ch) * var(--tl,.12));margin-right:calc(var(--cw) * -1 * var(--ml,0));padding-right:clamp(16px,2vw,32px);padding-bottom:0}
.feat .others{grid-column:3;grid-row:1;z-index:1;align-self:start;margin-top:calc(var(--ch) * var(--tr,.12));margin-left:calc(var(--cw) * -1 * var(--mr,0));padding-left:clamp(16px,2vw,32px);display:flex;flex-direction:column;gap:clamp(18px,2.4vw,36px)}
.feat .others figure{margin:0;width:76%}
.feat .others figure:nth-child(2){width:58%;align-self:flex-end}
.feat .others img{width:100%;aspect-ratio:3/2;object-fit:cover;border:1px solid var(--rule)}
.feat figcaption,.cut-cap{font-size:12px;opacity:.7;padding-top:5px;line-height:1.35}
.feat figcaption a,.cut-cap a{text-underline-offset:3px}
.cut-cap{position:absolute;left:var(--pad);bottom:10px;margin:0;max-width:calc(50% - var(--cw) * .2 - var(--pad))}
.soft .feat .others img{opacity:0;transition:opacity .9s ease}

/* colour and scale (3 Dec, Andrew: "some color spirit of prose or photos"; "it has to feel right").
   The page takes its two colours from the opening photograph: the sea and the roofs. After the picture strip the page
   no longer stays cream: the tips walk across a band of sea, and the closing line stands on the roof red, both at display size. */
:root{--deep:#27566d;--hill:#5d7a48}
.intro .k-hill{color:var(--hill)}.intro .k-sea{color:var(--sea)}.intro .k-roof{color:var(--roof)}
/* strip captions: the name larger, its English directly beneath it */
.card .cap{display:block}
.card .zh{font-size:clamp(30px,3vw,46px)}
.card .zh .ink-title{max-height:2.1em}
.card .en{display:block;text-align:left;font-size:clamp(15px,1.2vw,18px);opacity:.75;margin-top:.15em}
/* maps: no frame; the sea colour is the frame */
.map-box{border:0}
.map-box img{filter:none;display:block}
.where{grid-template-columns:minmax(0,.6fr) auto minmax(0,1fr);align-items:end}
.where .arrow{align-self:center}
.pin-name{background:none;font-size:clamp(15px,1.3vw,19px);transform:translate(-50%,16px)}
/* tips: a band of sea */
.tips{margin:0;padding:calc(var(--step) * 1.5) var(--pad) calc(var(--step) * 1.8);border:0;background:var(--deep);color:var(--cream);display:block}
.tips h2{margin:0 0 clamp(26px,3.4vw,54px);font-size:clamp(26px,2.6vw,40px)}
.tips ol{column-gap:clamp(18px,3vw,56px)}
.tips .n{font-size:clamp(72px,8.6vw,136px);color:var(--sun)}
.tips li:nth-child(even){margin-top:clamp(56px,7vw,112px)}
.tips li .t-zh{font-size:clamp(24px,2.3vw,36px);line-height:1.5}
.tips li .t-en{font-size:clamp(19px,1.7vw,26px)}
.steps i{color:var(--cream);opacity:.5;width:11px;height:24px;margin:-12px 0 0 -5.5px}
body.on-dark:not(.menu-open) .chrome{color:var(--cream)}   /* the corner buttons turn light while a colour band is under them */
.map-china .pin-name{transform:translate(16px,-50%)}.map-china .map-box{overflow:visible}
/* closing: the roofs */
.ending{max-width:none;margin:0;border:0;background:var(--roof);color:var(--cream);padding:calc(var(--step) * 2) var(--pad) calc(var(--step) * 2.4)}
.ending .prose{margin:0;max-width:none}
.ending .t-zh{font-size:clamp(32px,4.3vw,68px);line-height:1.45;max-width:17em}
.ending .t-en{font-size:clamp(24px,3vw,46px);line-height:1.3;max-width:22em}
.foot{border-top:0}
/* feature page: the words sit with the cutout, larger */
.feat .apparatus dt{font-size:clamp(24px,2.1vw,31px)}.feat .apparatus dd{font-size:clamp(17px,1.4vw,21px)}
.feat .words .prose .t-zh{font-size:clamp(28px,2.9vw,44px);line-height:1.5}
.feat .words .prose .t-en{font-size:clamp(21px,2.1vw,30px)}
/* hover preview on the picture strip: no box, no rules (Andrew: "too blocky, I think it's the lines").
   The pictures are paper prints with a white edge, a little askew and overlapping; the panel is only a soft shadow on paper. */
.preview{border:0;border-radius:4px;padding:16px 16px 14px;gap:0;background:#fbf8ef;box-shadow:0 22px 48px rgba(29,39,48,.2),0 3px 8px rgba(29,39,48,.1);grid-template-columns:1fr 30%}
.preview::before{content:none}
.pv-main>img{border:6px solid #fff;box-sizing:border-box;rotate:-1.2deg;box-shadow:0 1px 3px rgba(29,39,48,.28)}
.pv-text{padding:14px 6px 2px}
.pv-side{gap:0;margin-left:-14px;padding-top:6px;position:relative;z-index:1}
.pv-side>*{border:5px solid #fff;box-sizing:border-box;box-shadow:0 1px 3px rgba(29,39,48,.28);background:#fff}
.pv-side>*:nth-child(1){rotate:2.4deg}
.pv-side>*:nth-child(2){rotate:-1.8deg;margin-top:-8px;translate:6px 0}
.pv-side>*:nth-child(3){rotate:1.4deg;margin-top:-8px}
#pinLabels>span{border:0;box-shadow:0 1px 2px rgba(29,39,48,.25)}
/* hairlines are off by default now; the only rules left are inside lists (menu, sources) where they separate rows */
.back{border:0;background:none}
.pager,.pager a{border-top:0}
.gallery .main,.thumbs button,.feat .others img,.clip,.src-map{border:0}
/* the map as a collage: the old map is printed into the paper itself (multiplied, fading out on every side, no edge, no frame);
   only the stickers, his names and the footprints sit on top. Everything that looks like a marker opens its place. */
.where.collage{display:block;padding:0;position:relative;overflow-x:clip}
.where.collage>.map,.where.collage>.arrow{display:none}
.board{position:relative}
.sheet{position:relative}
.sheet .paper{display:block;width:100%;height:100%;mix-blend-mode:multiply;filter:saturate(.7) contrast(.92);
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 18%,#000 88%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 16%,#000 82%,transparent 100%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,#000 18%,#000 88%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 16%,#000 82%,transparent 100%);mask-composite:intersect}
.soft .sheet .paper{opacity:0;transition:opacity 1.4s ease}.soft .sheet .paper.ld{opacity:.78!important}
.sheet .paper.ld,.sheet .paper{opacity:.78}
.leads{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.leads line{stroke:var(--ink);stroke-width:1.1}
.board .dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--roof);border:1.5px solid var(--cream);z-index:2;cursor:pointer;transition:transform .25s}
.board .dot::before{content:"";position:absolute;inset:-16px}
.board .dot:hover,.board .dot.on{transform:scale(1.5)}
.stop{position:absolute;z-index:2;translate:-50% -50%;display:flex;flex-direction:column;align-items:center;min-width:44px;min-height:44px;text-decoration:none;color:var(--ink);transition:opacity .3s}
.stop .stk{display:block;width:calc(clamp(60px,7.6vw,116px) * var(--k,1));height:auto;rotate:var(--tip,-4deg);filter:drop-shadow(0 1px 2px rgba(29,39,48,.32));transition:transform .4s var(--ease)}
.stop:nth-of-type(even) .stk{--tip:3deg}
.stop.photo .stk{aspect-ratio:1;object-fit:cover;border:4px solid #fff;border-radius:2px}
.stop .nm{margin-top:-.25em;position:relative;font-family:var(--brush);font-size:clamp(19px,2.3vw,34px);line-height:1;white-space:nowrap;background:#fbf7ec;padding:.16em .42em .2em;box-shadow:0 1px 2px rgba(29,39,48,.28);rotate:calc(var(--tip,-4deg) * -.5)}
.stop .nm canvas{display:block}
@media (hover:hover){.stop:hover .stk{transform:translateY(-6px) scale(1.05)}}
.stop:focus-visible{outline:1.5px solid var(--ink);outline-offset:6px}
.board.has-on .stop.on .stk{transform:translateY(-6px) scale(1.05)}
.stop .nm{transition:translate .35s var(--ease),box-shadow .35s}
.stop:hover .nm,.stop.on .nm,.stop:focus-visible .nm{translate:0 -4px;box-shadow:0 7px 14px rgba(29,39,48,.3)}
.stop{cursor:pointer}
.stop.away{left:auto;right:var(--pad);translate:0 -50%;width:13%}
.stop.away::before{content:"";position:absolute;left:-22%;top:36%;width:20%;height:10px;background:linear-gradient(var(--ink),var(--ink)) left center/100% 1.2px no-repeat;clip-path:none}
.stop.away::after{content:"";position:absolute;left:-6%;top:36%;width:8px;height:8px;margin-top:1px;border-top:1.2px solid var(--ink);border-right:1.2px solid var(--ink);rotate:45deg}
.stamp.own{overflow:visible;background:none;border:0;outline:0;box-shadow:none;border-radius:0}.stamp.own img{object-fit:contain}
.stamp{position:absolute;z-index:3;left:var(--pad);bottom:9%;cursor:default;width:clamp(84px,10.5vw,156px);aspect-ratio:1;border-radius:50%;overflow:hidden;rotate:-9deg;background:#bcd3d6;border:1.5px solid var(--ink);outline:1px solid var(--ink);outline-offset:4px;box-shadow:0 2px 5px rgba(29,39,48,.22)}
.stamp img{width:100%;height:100%;object-fit:cover;object-position:62% 50%;display:block}
.stamp i{position:absolute;left:82.3%;top:48.6%;width:9px;height:9px;margin:-4.5px;border-radius:50%;background:var(--roof);border:1.5px solid var(--cream)}
.walk-steps{position:absolute;inset:0;pointer-events:none;z-index:1}
.walk-steps i{position:absolute;width:10px;height:22px;margin:-11px 0 0 -5px;color:var(--roof);opacity:.9;transition:opacity .4s ease}
.walk-steps svg{display:block;width:100%;height:100%;fill:currentColor}
.soft .board:not(.walk) .walk-steps i{opacity:0}
.collage-cap{font-size:12.5px;opacity:.72;margin:0;padding:0 var(--pad) calc(var(--step) * .7);text-align:right;position:relative}
.collage-cap a{text-underline-offset:3px}
/* a printed backdrop (the Pictures lane's map scrap) is too busy to read over: words and side pictures stay out of the cutout column,
   and step back by however far the scrap overhangs it (the scrap is never narrower than 400px, the bottle is) */
@media (min-width:821px){
  [data-look="scrap"] .feat{--over:calc((max(var(--cw) * 1.02,400px) - var(--cw)) / 2 + clamp(26px,2.6vw,44px))}
  [data-look="scrap"] .feat .words{margin-right:0;padding-right:var(--over)}
  [data-look="scrap"] .feat .others{margin-left:0;padding-left:var(--over)}
  [data-look="scrap"] .feat .words,[data-look="scrap"] .feat .others{margin-top:calc(var(--ch) * .08)}
}
/* the map (Andrew, 3 Dec): large, no box. The coastline is the shape; the sea tint washes out into the paper on every side.
   Points are the six places, each under his handwritten name; the preview is a loose print laid on the map beside the point. */
.live{position:relative;padding:0;margin:calc(var(--step) * -.35) 0 0}
.live-map{position:relative;container-type:inline-size;width:100%;aspect-ratio:1600/990}
.live-map .chart{display:block;width:100%;height:100%;
  }
.soft .live-map .chart{opacity:1!important;transform:none!important}
.live .leads line{stroke:var(--ink);stroke-width:1;opacity:.55;transition:opacity .25s}
.live .leads line.on{opacity:1;stroke-width:1.4}
.pt{position:absolute;width:0;height:0;color:var(--ink);text-decoration:none;z-index:2;outline:0}
.pt .d{position:absolute;left:-6.5px;top:-6.5px;width:13px;height:13px;border-radius:50%;background:var(--roof);border:1.5px solid var(--cream);box-sizing:border-box;transition:transform .25s var(--ease)}
.pt .d::before{content:"";position:absolute;inset:-7px;border-radius:50%}
.pt .d::after{content:"";position:absolute;inset:-8px;border:1.5px solid var(--roof);border-radius:50%;opacity:0;transition:opacity .25s}
.pt:hover .d,.pt.on .d,.pt:focus-visible .d{transform:scale(1.3)}
.pt.on .d::after,.pt:focus-visible .d::after{opacity:1}
.pt .nm{position:absolute;left:calc(var(--fx) * 1cqw);top:calc(var(--fy) * 1cqw);display:flex;flex-direction:column;white-space:nowrap;padding:8px 10px;transition:translate .35s var(--ease)}
.pt.to-l .nm{translate:0 -50%;align-items:flex-start}
.pt.to-r .nm{translate:-100% -50%;align-items:flex-end}
.pt.to-b .nm{translate:-50% -100%;align-items:center}
.pt .zh{font-family:var(--brush);font-size:clamp(22px,2.15cqw,36px);line-height:1}
/* every name is written at the same size per character, whatever the crop of its file */
.pt .zh .ink-title{width:calc(var(--n,2) * 1.08em)!important;height:auto!important;max-height:none!important;max-width:none!important;display:block}
.pt .en{font-style:italic;font-size:clamp(12px,.95cqw,15px);line-height:1.2;margin-top:.25em;opacity:.78}
#pts.has-on .pt:not(.on){opacity:.5}
.pt{transition:opacity .3s}
.pt:focus-visible .nm{outline:1.5px solid var(--ink);outline-offset:0}
.live-cap{font-size:12.5px;opacity:.72;margin:0;padding:0 var(--pad) calc(var(--step) * .5);text-align:right;position:relative;margin-top:-2.2em}
.live-cap a{text-underline-offset:3px}
.live .preview{top:0;left:0;margin:0;width:min(540px,38vw);transform:translateY(8px)}
.live .preview.show{transform:none;transition:opacity .3s ease,transform .45s var(--ease)}
.reel-track.from-map .card:not(.on) .ph{opacity:.55}
.card .ph{transition:opacity .35s}
/* the collage layer on the minimal map: sticker, his name under it, footprints between */
#pts{position:absolute;inset:0}
.pt .nm,.pt.to-l .nm,.pt.to-r .nm,.pt.to-b .nm{translate:-50% -50%;align-items:center;padding:6px 8px}
.pt .stk{display:block;width:calc(clamp(44px,5.3cqw,86px) * var(--k,1));height:auto;margin-bottom:.15em;rotate:var(--tip,-4deg);filter:drop-shadow(0 1px 2px rgba(19,42,62,.34));transition:transform .4s var(--ease)}
.pt:nth-child(even) .stk{--tip:3deg}
.pt:hover .stk,.pt.on .stk,.pt:focus-visible .stk{transform:translateY(-6px) scale(1.06)}
.pt .zh{font-size:clamp(19px,1.75cqw,29px)}
.pt .en{margin-top:.1em}
#pts .walk-steps{position:absolute;inset:0;pointer-events:none;z-index:1}
#pts .walk-steps i{position:absolute;width:9px;height:20px;margin:-10px 0 0 -4.5px;color:var(--roof);opacity:.85;transition:opacity .4s ease}
.soft #pts:not(.walk) .walk-steps i{opacity:0}
.live .leads line{opacity:.4}
/* pins and string: each sticker hangs from its pin on a length of twine */
/* a sticker straight above its pin carries its name on top, so the string reaches the sticker without crossing the writing */
.pt.up .nm{flex-direction:column-reverse}.pt.up .stk{margin:.2em 0 0}.pt.up .en{order:1;margin:0 0 .1em}.pt.up .zh{order:2}
.live .leads path,.live .leads ellipse{fill:none;stroke-linecap:round}
.live .leads .sh{stroke:rgba(12,26,40,.34);translate:2px 4px}
.live .leads .core{stroke:#6b4a26}
.live .leads .ply path{stroke-linecap:round}
.live .leads .hair path{stroke:#c9ab78;stroke-width:.5;opacity:.8}
.live .leads .lit{stroke:rgba(255,248,226,.3);stroke-width:1;translate:-.6px -1px}
.live .leads g{transition:opacity .25s}
.pin-svg{position:absolute;left:-14.7px;top:-36.7px;width:44px;height:44px;overflow:visible;pointer-events:none;transition:translate .25s var(--ease)}
.pt:hover .pin-svg,.pt.on .pin-svg{translate:0 -1.5px}
.pt .d{background:none;border:0;width:22px;height:22px;left:-11px;top:-11px}
.pt .d::after{inset:1px}
.pt:hover .d,.pt.on .d,.pt:focus-visible .d{transform:none}
.pin-img{position:absolute;max-width:none;height:auto;filter:drop-shadow(1px 2px 1.5px rgba(19,42,62,.35));pointer-events:none}
.pin-draw{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none}
.pin-draw::before{content:"";position:absolute;left:-1px;top:-14px;width:2px;height:14px;background:linear-gradient(90deg,#c9ccd0,#6d737a);transform-origin:50% 100%;rotate:18deg;border-radius:1px;box-shadow:1.5px 1px 1.5px rgba(19,42,62,.3)}
.pin-draw::after{content:"";position:absolute;left:-3.5px;top:-23px;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff8a70 0,var(--roof) 42%,#a12a16 100%);box-shadow:1.5px 2.5px 2.5px rgba(19,42,62,.38)}
.pt:hover .pin-draw,.pt.on .pin-draw,.pt:hover .pin-img,.pt.on .pin-img{translate:0 -1px}
/* ---- colours, rethought (Andrew, 3 Dec: "summer vacation vibes but not overly pastel"). A sunlit coast taken from his 栈桥 photograph:
   few colours, each at full strength, the paper kept bright. This one line is the whole palette; to go back, delete it
   (the old set: paper #f3efe4, ink #1d2730, sea #6f8b9b, roof #b4512e, cream #fffcf5, deep #27566d, hill #5d7a48, numerals #f0b08c). */
:root{--paper:#fbf7ee;--ink:#132a3e;--sea:#17698c;--deep:#0e4a66;--roof:#d8432a;--hill:#2e6b4f;--sun:#f4b23c;--cream:#fffdf7;--rule:rgba(19,42,62,.26)}
.pt .d::after{border-color:var(--sun);border-width:2px}
.preview{background:var(--cream)}
/* the strip, slimmer (Andrew, 3 Dec: "The lettering could sit on the photo itself"): his name for each place is written on its
   photograph in cream, lower left, over only as much shade as it needs; no caption row, so the strip is pictures edge to edge */
.reel{padding:0}
.card .cap,.card+.card .cap{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:baseline;justify-content:flex-start;gap:.9em;flex-wrap:wrap;
  padding:clamp(52px,6vw,96px) clamp(16px,1.6vw,26px) clamp(12px,1.2vw,18px);color:var(--cream);
  background:linear-gradient(to top,rgba(9,24,36,.64),rgba(9,24,36,.4) 28%,rgba(9,24,36,.16) 58%,rgba(9,24,36,.04) 82%,rgba(9,24,36,0));pointer-events:none}
.card .zh{font-size:clamp(28px,2.7vw,42px);line-height:1}
.card .zh .ink-title{max-height:none;height:1.35em!important;margin:0}
.card .en{display:block;margin:0;font-size:clamp(14px,1.1vw,17px);opacity:.92;text-align:left}
.card:hover .cap .en{opacity:1}
.reel-nav{margin-top:0;padding-top:6px}
/* ---- bigger lettering, prouder stickers, and a wobble (Andrew, 3 Dec: "bigger lettering on carousel and map for figures, stickers
   could also be more pronounced. I want things to shake, side to side whenever toggled/hovered") */
.card .zh{font-size:clamp(40px,4.5vw,70px)}
.card .en{font-size:clamp(15px,1.25vw,19px)}
.card .cap,.card+.card .cap{padding-top:clamp(70px,8vw,130px);gap:1em}
.pt .zh{font-size:clamp(25px,2.55cqw,41px)}
.pt .en{font-size:clamp(13px,1.05cqw,16.5px)}
.pt .stk{width:calc(clamp(54px,6.7cqw,108px) * var(--k,1));transform-origin:50% 8%;
  filter:drop-shadow(0 0 1.2px #fffdf7) drop-shadow(0 0 1.2px #fffdf7) drop-shadow(0 2px 2px rgba(19,42,62,.4)) drop-shadow(0 9px 12px rgba(19,42,62,.26))}
@media (prefers-reduced-motion:no-preference){
  /* like a sticker on a string: a few swings side to side, dying away */
  @keyframes wobS{0%{rotate:var(--tip,0deg)}18%{rotate:calc(var(--tip,0deg) - 8deg)}40%{rotate:calc(var(--tip,0deg) + 6deg)}62%{rotate:calc(var(--tip,0deg) - 3.5deg)}82%{rotate:calc(var(--tip,0deg) + 1.5deg)}100%{rotate:var(--tip,0deg)}}
  @keyframes wob{0%{rotate:0deg;translate:0 0}18%{rotate:-6deg;translate:-2px 0}40%{rotate:4.5deg;translate:1.5px 0}62%{rotate:-2.5deg;translate:-1px 0}82%{rotate:1.2deg;translate:.5px 0}100%{rotate:0deg;translate:0 0}}
  @keyframes sway{0%{translate:0 0}18%{translate:-9px 0}40%{translate:7px 0}62%{translate:-4px 0}82%{translate:2px 0}100%{translate:0 0}}
  .pt:hover .stk,.pt.on .stk,.pt:focus-visible .stk{animation:wobS .62s ease-out}
  .pt:hover .nm>.zh,.pt.on .nm>.zh{animation:wob .62s ease-out .04s}
  @keyframes wobC{0%{rotate:0deg}18%{rotate:-3.2deg}40%{rotate:2.4deg}62%{rotate:-1.4deg}82%{rotate:.6deg}100%{rotate:0deg}}
  .card{transform-origin:50% 0}.card:hover,.card:focus-visible,.card.on{animation:wobC .7s ease-out;z-index:2}   /* the whole card swings from its top edge, photo and name together */
  .card:hover .cap .zh,.card:focus-visible .cap .zh,.card.on .cap .zh{animation:wob .6s ease-out;transform-origin:0 100%}
  .chrome-btn:hover,.reel-nav button:hover,.wd:hover,.thumbs button:hover,.wob{animation:wob .55s ease-out}
  .wd{display:inline-block}
  .card .cap .zh,.pt .nm>.zh{display:inline-block}
}
/* footer mark: the same brush 青岛 as the opening, in ink, with room under it (Andrew, 3 Dec: "check lower left page logo") */
.foot{padding-top:30px;padding-bottom:38px}
.foot .mark{font-size:40px;display:block;line-height:0}
.foot .mark .ink-title{height:50px!important;width:auto!important;max-height:none!important;max-width:none!important}
/* twine in the colours of a real sisal photograph (Pictures lane's sampling); its shadow falls left, like the photographed pin's */
.live .leads .sh{translate:-2px 4px}
.live .leads .core{stroke:#82674b}
.live .leads .hair path{stroke:#b9a487}
.pin-img{filter:none}
/* no string (Andrew, 3 Dec: "Drop the strings"): each sticker sits close to its own pin, and pointing at either one lifts both */
.live .leads{display:none}
.pt:hover .pin-img,.pt.on .pin-img,.pt:focus-visible .pin-img{translate:0 -3px;scale:1.12}
.pin-img{transition:translate .25s var(--ease),scale .25s var(--ease)}
@media (max-width:820px){
  .chrome{right:max(8px,env(safe-area-inset-right))}
  .side{top:auto;bottom:max(22px,env(safe-area-inset-bottom));font-size:21px}
  .side-l{color:var(--cream);text-shadow:0 0 5px rgba(20,30,40,.85),0 0 12px rgba(20,30,40,.6)}
  .side-r{right:auto;bottom:auto;left:6vw;top:30vw;font-size:5.4vw}   /* his name over the sea, left of 青, like a signature */
  .card{width:76vw}
  .live{overflow:hidden}
  .live-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.live-scroll::-webkit-scrollbar{display:none}
  .live-map{width:780px;margin-left:36px}
  .pt .zh{font-size:21px}.pt .en{font-size:12px}
  .card .zh{font-size:44px}
  #pts.has-on .pt:not(.on){opacity:1}
  .pin-img{scale:.8}
  .pin-svg{scale:.78;transform-origin:14.7px 36.7px}
  #pts .walk-steps i{width:6px;height:13px;margin:-6.5px 0 0 -3px}
  .live-cap{text-align:left;margin-top:0;padding-bottom:16px}
  .live .preview{position:relative;display:none;width:auto;margin:6px 16px 14px;pointer-events:auto;cursor:pointer;grid-template-columns:1fr 28%;padding:12px}
  .live .preview.show{display:grid}
  .live .pv-desc .t-en{display:none}
  .soft .rv{transform:translateY(14px)}
  .where{grid-template-columns:1fr}
  .where.collage{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .where.collage .board{width:820px}
  .stop .stk{width:calc(70px * var(--k,1))}.stop .nm{font-size:22px}
  .stop.away{width:104px;right:20px}
  .walk-steps i{width:8px;height:18px;margin:-9px 0 0 -4px;opacity:.8}
  .stamp{width:88px;left:20px}
  .collage-cap{text-align:left;position:sticky;left:0;padding-bottom:20px}
  .map-china{width:min(78%,340px);margin:0 auto}
  .arrow{height:64px;display:grid;place-items:center;justify-self:center}
  .arrow svg{transform:rotate(90deg);width:56px}
  .tips{display:block}
  .tips h2{margin:0 0 20px}
  .tips ol{grid-template-columns:1fr;row-gap:30px}
  .tips li:nth-child(even){margin-top:0}
  .tips li:nth-child(odd) .n{margin-left:96px}
  .tips li:nth-child(even) .n{margin-left:150px}
  .place-body{grid-template-columns:1fr}
  .place.feature .place-head{margin-top:84px;justify-content:flex-start;flex-wrap:wrap}
  .feat{--cw:min(100vw,calc(74vh / var(--ar)));display:block;padding-top:0}
  .feat .cut{width:var(--cw);margin:0 auto;height:calc(var(--ch) * .86);position:relative;left:0}
  .feat .words{margin:22px 0 0;padding:0}
  [data-look="scrap"] .feat .cut{margin-top:30px}   /* the tilted scrap rises a little above the cutout: keep it off the words */
  .feat .others{margin:26px 0 0;padding:0;flex-direction:row;align-items:flex-start;gap:12px}
  .feat .others figure,.feat .others figure:nth-child(2){width:auto;flex:1;align-self:auto}
  .cut-cap{position:static;max-width:none;padding:14px 0 18px}
  .back span{display:none}.back{padding:0 10px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
/* 3 Dec: the asides (China, Shandong, the whole city) stand on the open sea, as Alaska and Hawaii do on a map of the States */
.asides{position:absolute;inset:0;pointer-events:none}
.aside{position:absolute;margin:0;background:var(--paper);box-shadow:0 0 0 1px rgba(19,42,62,.5),0 2px 7px rgba(19,42,62,.16)}
.aside img{display:block;width:100%;height:auto}
.aside figcaption{position:absolute;left:0;bottom:100%;padding:0 0 .35em;font-style:italic;font-size:clamp(11px,.95cqw,15px);line-height:1;letter-spacing:.02em;opacity:.8}
.a-cn{left:9.5%;top:75.5%;width:13.2%}
.a-sd{left:25%;top:75.5%;width:16%}
.aside .here{position:absolute;box-sizing:border-box;border:1.5px solid var(--roof);background:rgba(216,67,42,.14)}
.pt.sm .stk{width:calc(clamp(36px,4.3cqw,70px) * var(--k,1))}
.pt.sm .zh{font-size:clamp(18px,1.75cqw,28px)}.pt.sm .en{font-size:clamp(11px,.85cqw,13.5px)}
/* 3 Dec, Andrew: "On Guide and sources expand that photo to a fading hero": the old map runs edge to edge at the top and fades into the paper */
body{overflow-x:clip}
.sources .src-map{border:0;width:100vw;margin:-110px 0 calc(clamp(70px,13vh,150px) * -1) calc(50% - 50vw);height:clamp(320px,66vh,700px);position:relative;z-index:0;
  -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 42%,rgba(0,0,0,.5) 72%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 42%,rgba(0,0,0,.5) 72%,transparent 100%)}
.sources .src-map img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.sources .mark,.sources h1{position:relative;z-index:1}

/* 3 Dec (late), Andrew: "tone down the orange ... pause and push for the carousel be center and the arrows to be pointed mini tsingtao bottles. have the map fade in sooner/be more pronounced" */
:root{--clay:#ad4e38}
.ending{background:var(--clay)}
.reel-nav{justify-content:center;gap:clamp(14px,2vw,30px);padding:14px var(--pad) 6px}
.reel-nav button{min-width:108px;height:52px;opacity:1}
.reel-nav .btl{display:block;width:clamp(78px,7vw,100px);height:auto;filter:drop-shadow(0 1px 2px rgba(19,42,62,.3));transition:translate .3s var(--ease)}
.reel-nav .btl.flip-right{transform:scaleX(-1)}
.reel-nav #reelPrev:hover .btl{translate:-4px 0}.reel-nav #reelNext:hover .btl{translate:4px 0}
.reel-nav #reelMotion{min-width:48px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--ink)}
.reel-nav #reelMotion svg{width:16px}
.soft .live-map.mapin .chart{opacity:0!important;transition:opacity .5s ease}
.soft .live-map.mapin .asides,.soft .live-map.mapin #pts{opacity:0;transition:opacity .5s ease .15s}
.soft .live-map.mapin.in .chart{opacity:1!important}.soft .live-map.mapin.in .asides,.soft .live-map.mapin.in #pts{opacity:1}
.live-cap{z-index:2}
/* once scrolled, the page fades to paper under the corner buttons, so they never sit on words or credits (no line, no box) */
body::before{content:"";position:fixed;z-index:19;left:0;right:0;top:0;height:96px;pointer-events:none;opacity:0;transition:opacity .35s;
  background:linear-gradient(to bottom,var(--paper) 0,rgba(251,247,238,.92) 46%,rgba(251,247,238,0) 100%)}
body.scrolled:not(.on-opening):not(.on-dark):not(.menu-open)::before{opacity:1}
@media (min-width:821px){.cut-cap{left:auto;right:calc(50% + var(--cw) / 2 + 14px);bottom:16px;text-align:right;max-width:24ch}}
/* 3 Dec (late), Andrew: "move the reference map minis to the left in that big gap": one group on the lower-left sea, with soft edges like the main map (no keyline) */
.aside{background:none;box-shadow:none}
.aside img{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 11%,#000 89%,transparent 100%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 11%,#000 89%,transparent 100%);mask-composite:intersect;
  filter:drop-shadow(0 0 0 transparent)}
.aside{filter:drop-shadow(0 2px 8px rgba(19,42,62,.18))}
.aside figcaption{left:9%;padding-bottom:0;translate:0 60%}
.a-cn{left:6%;top:auto;bottom:5%;width:12.5%}
.a-sd{left:20%;top:auto;bottom:5%;width:15.5%}
.reel-nav button{min-width:120px}
.reel-nav .btl{filter:drop-shadow(0 0 1.2px #fffdf7) drop-shadow(0 2px 2px rgba(19,42,62,.4)) drop-shadow(0 6px 9px rgba(19,42,62,.22))}
/* 3 Dec (final check, "size constancy"): one size for his sentences on all six pages (the lede's), one for the word list, one for every map name */
.feat .words .prose .t-zh{font-size:var(--say);line-height:1.6}
.feat .words .prose .t-en{font-size:var(--say-en)}
.apparatus dt,.feat .apparatus dt{font-size:clamp(24px,2vw,29px)}.apparatus dd,.feat .apparatus dd{font-size:clamp(17px,1.35vw,20px)}
.apparatus .row.name dt{font-size:clamp(24px,2vw,29px)}
.pt.sm .zh{font-size:clamp(25px,2.55cqw,41px)}.pt.sm .en{font-size:clamp(13px,1.05cqw,16.5px)}
@media (max-width:820px){.pt.sm .zh{font-size:21px}.pt.sm .en{font-size:12px}}
/* 3 Dec, Andrew: "China, Shandong, Qingdao should have characters, and there's too much fading": the small maps are crisp paper-edged cards
   with a light shadow, named in his hand beneath; the main map runs nearly to the section's edges */
.aside{background:var(--paper);filter:none;box-shadow:0 0 0 3px var(--cream),0 3px 9px rgba(19,42,62,.3)}
.aside img{-webkit-mask-image:none;mask-image:none;filter:none}
.aside figcaption{left:0;right:0;bottom:auto;top:100%;translate:none;padding:9px 0 0;display:flex;align-items:baseline;gap:.7em;font-style:normal;opacity:1;white-space:nowrap}
.aside figcaption .zh{font-family:var(--brush);font-size:clamp(17px,1.65cqw,26px);line-height:1}
.aside figcaption .zh .ink-title{height:clamp(19px,2cqw,30px)!important;width:auto!important;max-width:none!important;max-height:none!important;display:block}
.aside figcaption .en{font-style:italic;font-size:clamp(11px,.95cqw,15px);opacity:.8}
.a-cn,.a-sd{bottom:8%}
.pt .en{text-shadow:0 0 2px var(--paper),0 0 4px var(--paper),0 0 7px var(--paper)}
.live-cap{text-shadow:0 0 3px var(--paper),0 0 6px var(--paper)}
/* 3 Dec, Andrew: "The mini maps should be on the left side": one column down the left edge, China, Shandong, then the city */
.a-cn{left:3.5%;top:9%;bottom:auto;width:13%}
.a-sd{left:3.5%;top:33.5%;bottom:auto;width:15.5%}
/* 3 Dec, Andrew: "the jiggle for the carousel is still there": the strip is like Enoch's row, which does not wobble; stickers and small toggles keep theirs */
.card,.card:hover,.card:focus-visible,.card.on,.card .ph img,.card .cap .zh,.reel-nav button,.reel-nav button:hover{animation:none!important}
/* 3 Dec, Andrew: "Have the map as enclosed in a real wooden frame": moulding round the whole map, its shadow falling in on the paper, the frame
   hanging on the page with paper round it; no edge fade any more. The photographed frame arrives as a border-image (js/site.js); this is the stand-in. */
.live{padding:calc(var(--step) * .5) 0 0;margin-top:0}
.live-map{width:auto;margin:0 clamp(20px,4.2vw,64px);overflow:hidden;border:clamp(14px,1.9vw,30px) solid;border-color:#bd9160 #a67a49 #8f6538 #b3875a;
  box-shadow:0 1px 0 rgba(255,255,255,.25),0 10px 26px rgba(19,42,62,.3),0 2px 5px rgba(19,42,62,.3)}
.live-map::after{content:"";position:absolute;inset:0;z-index:200;pointer-events:none;box-shadow:inset 0 3px 9px rgba(20,14,6,.42),inset 3px 0 7px rgba(20,14,6,.22),inset 0 0 0 1px rgba(60,40,18,.5)}
.live-cap{margin:10px 0 0;padding:0 clamp(20px,4.2vw,64px) calc(var(--step) * .5);text-shadow:none}
.aside figcaption{top:auto;bottom:100%;padding:0 0 .45em;gap:.8em;align-items:flex-end}
.aside figcaption .zh{font-size:clamp(22px,2.6cqw,38px)}
.aside figcaption .zh .ink-title{height:clamp(26px,3.05cqw,42px)!important}
.aside figcaption .en{font-size:clamp(12px,1.05cqw,16px);padding-bottom:.25em}
.a-cn{top:10.5%;width:12%}
.a-sd{top:37.5%;width:14.5%}
@media (max-width:820px){.live-map{width:780px;margin:0 14px;border-width:11px}.live{padding-top:8px}}
.live-map{box-sizing:content-box}   /* the map keeps its own shape inside the moulding */
/* on the Guide and sources hero the Map button is cream, as on the opening, until the page is scrolled */
body:not(.scrolled) .sources .back{color:var(--cream);text-shadow:0 0 5px rgba(20,30,40,.8)}
body:not(.scrolled) .sources .back svg{filter:drop-shadow(0 0 3px rgba(20,30,40,.7))}
/* 3 Dec, Andrew: "Use this cork board but thinner": a rustic wooden frame, cork inside, and the map a paper sheet pinned on the cork with a band
   of cork showing all round. Stand-ins (brown moulding, flat cork colour) until the photographs arrive through QD_MEDIA.frame. */
.corkboard{position:relative;margin:0 clamp(20px,4.2vw,64px);border:clamp(13px,1.7vw,26px) solid;border-color:#a9763f #93622f #7d5126 #a06d38;padding:clamp(10px,1.25vw,20px);
  background:#b98952;box-shadow:0 1px 0 rgba(255,255,255,.2),0 12px 28px rgba(19,42,62,.3),0 2px 5px rgba(19,42,62,.32)}
.corkboard::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 4px 9px rgba(30,18,6,.5),inset 4px 0 7px rgba(30,18,6,.28),inset 0 0 0 1px rgba(50,30,10,.55)}
.live-map{margin:0;border:0;background:var(--paper);box-shadow:0 2px 5px rgba(40,24,8,.5),0 0 0 1px rgba(40,24,8,.12)}
.live-map::after{display:none}
@media (max-width:820px){.live-map{width:780px;margin:0;border:0}.corkboard{width:max-content;margin:0 10px;border-width:9px;padding:8px}}
/* on the home page the header's paper fade keeps to the corner with the buttons, so it never lies over the frame's top moulding */
body:has(#home:not([hidden]))::before{left:auto;width:150px;height:74px;border-radius:0 0 0 40px;background:radial-gradient(ellipse 100% 100% at 100% 0,var(--paper) 0,rgba(251,247,238,.92) 55%,rgba(251,247,238,0) 100%)}
/* ===== 3 Dec, phone pass (Andrew: "iphone is wack"; "moving between locations is hella messy"; "Why doesn't the English just always sit under
   the Chinese?"; "make all the arrows beer bottles too") ===== */
/* one rule, every width: Chinese on top, its English directly under it, same edge */
.card .cap,.card+.card .cap{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:.25em}
.place-head,.place.feature .place-head{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.4em;flex-wrap:nowrap}
.place.feature .place-head{align-items:center}
.place-head .en,.place.feature .place-head .en{padding-bottom:0}
.aside figcaption{flex-direction:column;align-items:flex-start;gap:.15em;padding-bottom:.35em}
.aside figcaption .en{padding-bottom:0}
.apparatus .row.name{display:block}.apparatus .row.name dd{margin:.2em 0 0}
.menu-places a{flex-direction:column;align-items:flex-start!important;justify-content:flex-start;gap:.1em}.menu-places a span:last-child{text-align:left}
.pv-name{flex-direction:column;align-items:flex-start;gap:.2em}
/* the sheet of paper on the cork */
.mapsheet{position:relative;background:var(--paper);box-shadow:0 2px 5px rgba(40,24,8,.5),0 0 0 1px rgba(40,24,8,.12)}
.live-map{background:none;box-shadow:none}
/* previous and next: one row, bottle and name block each side, equal halves */
.pager{display:grid;grid-template-columns:1fr 1fr;gap:clamp(12px,2vw,28px);align-items:center}
.pager a,.pager a.next{display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(8px,1vw,14px);min-height:56px;min-width:0;text-align:left}
.pager a.next{justify-content:flex-end;text-align:right}
.pager .nmb{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.pager .next .nmb{align-items:flex-end}
.pager .zh{font-size:clamp(21px,2.4vw,34px);line-height:1;white-space:nowrap}
.pager .zh .ink-title{height:clamp(21px,2.6vw,38px)!important;width:auto!important;max-width:none!important;max-height:none!important;display:block}
.pager .en{font-size:clamp(12px,1vw,15px);margin-top:.35em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.btl{display:block;height:auto}
.pager .btl{flex:none;width:clamp(40px,5vw,72px);filter:drop-shadow(0 0 1.2px #fffdf7) drop-shadow(0 2px 2px rgba(19,42,62,.4))}
.btl.flip-right{transform:scaleX(-1)}
.back .btl{width:46px;filter:drop-shadow(0 0 1.2px #fffdf7) drop-shadow(0 2px 2px rgba(19,42,62,.4))}
@media (max-width:820px){
  .opening{height:100svh}
  .place.feature .place-head{align-items:flex-start}
  /* the board fits the screen: moulding and cork on every side, no sideways sheet */
  .live-scroll{overflow:visible}
  .corkboard{width:auto;margin:0 8px;border-width:8px;padding:7px}
  .mapsheet{overflow:hidden;padding-bottom:calc(41.5% + 14px)}
  .live-map{width:166.667%;margin:0 0 0 -50%;overflow:visible}
  .a-cn{left:30.5%;top:113%;width:13%}
  .a-sd{left:45%;top:113%;width:15%}
  .aside{box-shadow:0 0 0 2px var(--cream),0 2px 6px rgba(19,42,62,.3)}
  .aside figcaption .zh .ink-title{height:20px!important}.aside figcaption .en{font-size:10.5px}
  .pt .stk{width:calc(40px * var(--k,1))}.pt .zh{font-size:18px}.pt .en{font-size:11px}
  .pt.sm .stk{width:calc(30px * var(--k,1))}.pt.sm .zh{font-size:18px}.pt.sm .en{font-size:11px}
  .pin-img{scale:.7}
  .pager{margin:0 16px;gap:10px}.pager .btl{width:38px}
  .reel-nav{gap:36px}
}

/* 3 Dec (final pass), Andrew: "Vocab should also not be free floating, there should be a clear end border for movement buttons and
   attribution. Use this photo for the button border, don't fade it but have it sit easy and not harsh" and "can replace the ugly blue
   and orange blocks under the texts". The painted old map (QD_MEDIA.endband; img/oldmap.webp until it arrives) is the end band of
   every place page and the ground of the home page's tips and closing; words sit on plain paper plates. No fades, no overlays. */
:root{--endband:url(../img/oldmap.webp);--plate:0 0 0 1px rgba(19,42,62,.2),0 2px 5px rgba(19,42,62,.22),0 12px 26px -16px rgba(19,42,62,.5)}
.endband{position:relative;z-index:1;margin:clamp(28px,4vw,64px) 0 0;padding:clamp(34px,4.4vw,68px) var(--pad);min-height:clamp(200px,18vw,280px);
  background:var(--endband) var(--endfocus,50% 46%)/cover #cdbf9c;border-top:1px solid var(--ink);box-shadow:inset 0 4px 0 var(--cream),inset 0 5px 0 rgba(19,42,62,.35);
  display:grid;grid-template-columns:1fr;align-content:center;justify-items:center;gap:clamp(14px,1.6vw,22px)}
.endband .pager{width:100%;margin:0;padding:0;border:0;grid-template-columns:auto auto;justify-content:space-between}
.endband .pager a,.endband .pager a.next{background:var(--cream);color:var(--ink);box-shadow:var(--plate);padding:clamp(10px,1.1vw,16px) clamp(14px,1.6vw,24px);min-height:0}
.endband .pager .btl{filter:drop-shadow(0 2px 2px rgba(19,42,62,.35))}
.end-credit{margin:0;background:var(--cream);color:var(--ink);box-shadow:var(--plate);padding:7px 14px;font-size:13px;line-height:1.4;max-width:min(100%,60ch);text-align:center}
.end-credit a{text-underline-offset:3px}
.end-credit span:not(:empty)::after{content:" · "}
.place .decal+.endband{margin-top:0}

.apparatus{background:var(--cream);box-shadow:var(--plate);padding:clamp(16px,1.7vw,26px) clamp(18px,2vw,30px) clamp(12px,1.3vw,20px);margin-top:clamp(24px,2.8vw,40px)}
.apparatus h2{border-bottom:1px solid var(--rule);margin:0 0 .35em;padding:0 0 .35em}
.apparatus .row.name{padding-bottom:.6em}

.painted{position:relative;overflow:clip;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);background:#cdbf9c}
.painted::before{content:"";display:block;position:sticky;top:0;height:100vh;height:100lvh;margin-bottom:-100vh;margin-bottom:-100lvh;background:var(--endband) var(--endfocus,50% 50%)/cover}
.painted>*{position:relative}
.tips,.ending{background:none;color:var(--ink)}
.tips h2{display:inline-block;background:var(--cream);box-shadow:var(--plate);padding:.35em .8em}
.tips li{background:var(--cream);box-shadow:var(--plate);padding:clamp(14px,1.5vw,24px) clamp(16px,1.7vw,26px) clamp(16px,1.8vw,28px);position:relative;z-index:1}
.tips .n{color:var(--roof);font-size:clamp(60px,6.4vw,104px)}
.tips li .t-zh{font-size:clamp(22px,2vw,31px)}
.steps i{color:var(--ink);opacity:.85;filter:drop-shadow(0 0 1.5px var(--cream)) drop-shadow(0 0 1.5px var(--cream))}
.ending{padding-top:0}
.ending .prose{display:inline-block;background:var(--cream);box-shadow:var(--plate);padding:clamp(20px,2.6vw,44px) clamp(22px,3vw,52px)}
@media (max-width:820px){
  .endband{padding:26px 14px;min-height:200px;gap:12px}
  .endband .pager{margin:0;gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .endband .pager a,.endband .pager a.next{padding:9px 10px;gap:7px}
  .endband .pager .btl{width:32px}
  .tips li:nth-child(odd) .n,.tips li:nth-child(even) .n{margin-left:0}
  .tips .steps{display:none}   /* one column of plates leaves the footprints nowhere to walk */
}

/* 3 Dec (Ultron's phone check): the phone hero photograph covers the whole box; it grows about the point that sat mid-screen, so the pavilion stays put */
.stage.tall .l-sky,.stage.tall .l-city{scale:var(--hs,1.6);left:295px;transform-origin:650px 0}
/* the two corner buttons carry their own small paper plate once the page has scrolled; the paper fade behind them is gone, so nothing
   under them is veiled (it lay over the strip's bottle and the top of a place's lead picture) */
body::before,body:has(#home:not([hidden]))::before{content:none}
.chrome{padding:0 4px;transition:color .4s,opacity .8s,background .3s,box-shadow .3s}
body.scrolled:not(.on-opening):not(.menu-open) .chrome{background:var(--cream);box-shadow:var(--plate);color:var(--ink)}
@media (max-width:820px){
  /* phone pager: the bottle rides above the name so the handwriting can be read (about 28px) inside the plate */
  .endband .pager a,.endband .pager a.next{flex-direction:column;align-items:flex-start;gap:6px}
  .endband .pager a.next{flex-direction:column-reverse;align-items:flex-end}
  .pager .zh{font-size:28px}.pager .zh .ink-title{height:28px!important}
  .endband .pager .btl{width:44px}
  /* the place sticker sits clear below the page's last credits and the word card on a phone (it covered two credits on 啤酒博物馆) */
  .place .decal{margin-top:10px;margin-bottom:12px}
}
body.scrolled .back{background:var(--cream);box-shadow:var(--plate)}

/* 3 Dec, Andrew: "icons are too far from their pins too". Each sticker hangs by its pin: its edge a few pixels from the pin's tip,
   the name under the sticker, English under that. s-b below the pin, s-l to its left, s-r to its right (set per place in js/site.js). */
.pt .nm,.pt.to-l .nm,.pt.to-r .nm,.pt.to-b .nm{left:0;top:0;padding:0;--gap:clamp(7px,.95cqw,13px)}
.pt.s-b .nm{translate:-50% var(--gap);align-items:center}
.pt.s-l .nm{translate:calc(-100% - var(--gap)) calc(var(--sh,60px) * -.5);align-items:flex-end}
.pt.s-r .nm{translate:var(--gap) calc(var(--sh,60px) * -.5);align-items:flex-start}
.pt.s-l .en{text-align:right}
/* a tip's plate and its words arrive together: the plate is never shown empty */
.tips li{transition:opacity .7s ease,transform .8s var(--ease)}
.soft .tips ol:not(.walk) li{opacity:0;transform:translateY(10px)}
.soft .tips ol:not(.walk) li>*{opacity:1;transform:none}
@media (max-width:820px){.pt[data-id="jiaozi"] .en{white-space:normal;max-width:5.6em;line-height:1.1}}
.pt.s-bl .nm{translate:-82% var(--gap);align-items:center}
/* laptop: once scrolled, the back-to-map plate is the bottle alone, tucked into the page margin so it never covers the text column */
@media (min-width:821px){
  body.scrolled .back{left:6px;padding:0 5px;gap:0}
  body.scrolled .back span{display:none}
  body.scrolled .back .btl{width:max(26px,min(46px,calc(var(--pad) - 20px)))}
}

/* 3 Dec, Andrew: "Have travel tips keep the brand going". The tips and the closing words are paper notes on one pinned board: real tape
   and the red pin by turns, a small tilt each, a sticker on the corner, the same hairline shadow as the taped photographs. */
:root{--note:0 1px 2px rgba(19,42,62,.3),0 12px 22px -14px rgba(19,42,62,.5)}
.tips ol{row-gap:44px;padding-top:10px}
.tips li,.tips h2,.ending .prose{box-shadow:var(--note);background:var(--cream);position:relative}
.tips li{rotate:var(--rot,0deg);transform-origin:50% 0;padding:clamp(30px,2.6vw,42px) clamp(16px,1.7vw,26px) clamp(54px,5vw,84px)}
.tips h2{rotate:-2deg;padding:.5em .9em .35em;margin-bottom:clamp(34px,3.6vw,58px)}
.ending .prose{rotate:-.5deg;padding-top:clamp(30px,3.2vw,52px)}
.note-tape{position:absolute;z-index:2;top:-15px;left:var(--tl,50%);width:clamp(74px,6.6vw,104px);height:auto;translate:-50% 0;rotate:var(--tr,-4deg);filter:drop-shadow(0 1px 1px rgba(19,42,62,.2));pointer-events:none}
.tips h2 .note-tape{width:64px;top:-13px}
.ending .note-tape{width:clamp(84px,7.4vw,118px);top:-17px}
.note-pin{position:absolute;z-index:2;left:50%;height:auto;filter:drop-shadow(-3px 4px 2px rgba(19,42,62,.3));pointer-events:none}
.note-stk{position:absolute;z-index:2;right:-14px;bottom:-22px;width:calc(clamp(74px,7.2vw,112px) * var(--sw,1));height:auto;rotate:calc(var(--rot,0deg) * -2.2);filter:drop-shadow(0 0 1px var(--cream)) drop-shadow(0 2px 3px rgba(19,42,62,.35));pointer-events:none}
.note-stk.feet{right:10px;bottom:8px;width:clamp(84px,7.6vw,116px);height:clamp(40px,3.6vw,54px);filter:none;rotate:-6deg}
.note-stk.feet i{position:absolute;width:11px;height:24px;color:var(--ink);opacity:.82}
.note-stk.feet svg{display:block;width:100%;height:100%;fill:currentColor}
.tips .steps{display:none}
@media (prefers-reduced-motion:no-preference){
  @keyframes wobN{0%{rotate:var(--rot,0deg)}18%{rotate:calc(var(--rot,0deg) - 2.6deg)}40%{rotate:calc(var(--rot,0deg) + 2deg)}62%{rotate:calc(var(--rot,0deg) - 1.1deg)}82%{rotate:calc(var(--rot,0deg) + .5deg)}100%{rotate:var(--rot,0deg)}}
  .tips li:active{animation:wobN .62s ease-out}
  @media (hover:hover){.tips li:hover{animation:wobN .62s ease-out}}
}
@media (max-width:820px){
  .tips li{rotate:calc(var(--rot,0deg) * .45);padding:30px 18px 58px}
  .tips ol{row-gap:38px}
  .note-stk{right:-6px;bottom:-18px;width:calc(78px * var(--sw,1))}
  .note-stk.feet{right:12px;bottom:10px}
  .ending .prose{rotate:0deg}
}
.ending{padding-top:clamp(26px,3.4vw,54px)}

/* the old town's three stickers a little smaller, and 老房子 above-right of its pin, so no name sits under another place's pin */
.pt.s-tr .nm{translate:calc(var(--gap) + 7px) calc(-100% - 3px);align-items:flex-start}
.pt[data-id="zhanqiao"] .stk,.pt[data-id="laofangzi"] .stk,.pt[data-id="jiaozi"] .stk{zoom:.85}

/* the map sheet: a real paper scan under the drawing (QD_MEDIA.map.paper), the drawing multiplied onto it so the wash sinks into the paper */
.mapsheet,.live-map{background-image:var(--sheet,none);background-size:var(--sheet-size,512px) auto}
.live-map{background-color:var(--paper)}
.live-map .chart{mix-blend-mode:multiply}
/* above-right keeps the sticker itself by the pin: its foot level with the pin's tip, the name under it */
.pt.s-tr .nm{translate:calc(var(--gap) + 7px) calc(var(--sh,60px) * -1 + 3px)}
@media (max-width:820px){.pt.s-tr .nm{translate:calc(var(--gap) + 14px) calc(var(--sh,40px) * -1 + 3px)}}

/* Pictures' check of the richer sheet: the pin stays on top of its own sticker (it pins the cutout), side stickers stand a little
   further off the pin's head, the paper is a warm tan that sits with the painted band, and its creases show (smaller tile) */
.pt .pin-img,.pt .pin-draw,.pt .pin-svg{z-index:3}
.pt .nm{z-index:1}
.pt.s-r .nm{translate:calc(var(--gap) + 9px) calc(var(--sh,60px) * -.5)}
.pt.s-l .nm{translate:calc(-100% - var(--gap) - 5px) calc(var(--sh,60px) * -.5)}
.mapsheet,.live-map{background-color:#f0e2c4;background-blend-mode:multiply;background-size:calc(var(--sheet-size,512px) * .7) auto}
/* the three small maps share the sheet's paper: warm ground under the city map, and the paper scan multiplied over each */
.aside img{background:#f0e2c4}
.aside::after{content:"";position:absolute;left:0;right:0;bottom:0;aspect-ratio:var(--ar,1.5);background:var(--sheet,none) 0 0/calc(var(--sheet-size,512px) * .7) auto;mix-blend-mode:multiply;pointer-events:none}
.a-cn{--ar:1000/818}.a-sd{--ar:600/405}.a-qd{--ar:640/396}

/* his hand, wherever a file is on hand: the numerals on the tip notes, 生词 on the word card, his name in the footer and down the opening */
.tips .n .ink-title{height:1em!important;width:auto!important;max-width:none!important;max-height:none!important;display:block}
.apparatus h2 .t-zh .ink-title{height:1.5em!important;width:auto!important;max-width:none!important;max-height:none!important;display:block}
.foot .who{display:inline-flex;align-items:center;gap:.4em;white-space:nowrap}
.foot .by .ink-title{height:30px!important;width:auto!important;max-width:none!important;max-height:none!important;display:block}
.opening .side-r .ink-title{width:1.2em!important;height:auto!important;max-width:none!important;max-height:none!important;display:block}
.tips .n .ink-title{height:1.55em!important;margin:-.3em 0 -.28em}
