/* Titles belong to the moment of arrival. The street stays in view once the visitor moves. */
:root{--lantern:#f0ca87;--vermilion:#ad513a;--foot:clamp(82px,10vh,112px)}
.mast{z-index:4}
#town-mark{position:absolute;top:calc(76px + env(safe-area-inset-top));left:var(--pad);pointer-events:none;color:#f4d9aa;text-shadow:0 1px 5px #10141c;font:14px var(--serif);letter-spacing:.12em}
#town-mark:not(:empty){border-left:2px solid #ad6849;padding-left:9px;animation:arrive-ink .3s ease-out}
.reading #town-mark,body:not([data-quiet]) #town-mark{visibility:hidden}
@keyframes arrive-ink{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:none}}
.mast .wordmark i{position:relative;border:0;box-shadow:inset 0 0 0 1px #e6ae7480,inset 0 0 0 4px #84412c,inset 0 0 0 5px #d29c615e}
.topnav button{font:14px var(--serif);text-shadow:0 1px 4px #09101a}
.topnav button:first-child::before{width:12px;height:11px;transform:skewY(-9deg);border:1px solid #d8b683;background:linear-gradient(90deg,transparent 45%,#d8b683 45% 55%,transparent 55%)}
.walk-key-hint{font:12px var(--serif);background:none;border:0;color:#eee3cf}
.walk-key-hint kbd{border-color:#d0bfa655;background:#0d152088;color:#f3dfbb}
body[data-walk=lite] #walk-card .walk-actions{display:none}
body[data-east]:not([data-walk]):not(:has(#full-city[data-state=loading])) #east-flat{display:inline-block}
.scene-copy,.east-guide{bottom:var(--foot);max-width:min(440px,72vw)}
.scene-copy .eyebrow,.east-suptitle{font:12px/1.4 var(--serif);letter-spacing:.16em;color:var(--lantern)}
.scene-copy .rule{width:26px;height:2px;background:linear-gradient(90deg,#ab4936 60%,transparent 60%,transparent 71%,#cb9369 71%)}
.scene-copy h1{font-size:clamp(44px,5.35vw,82px);font-weight:500;letter-spacing:.10em;margin:9px 0 10px}
.scene-copy p{font:clamp(14px,1.1vw,17px)/1.68 var(--serif);max-width:24em;letter-spacing:.055em;color:#f5e7d2;text-wrap:pretty;white-space:pre-line}
#follow-lamp{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:8px 0 0;padding:0 2px;min-height:44px;color:#ffe8bf;font:15px var(--serif);letter-spacing:.08em;background:linear-gradient(90deg,#d3a66a,#d3a66a00) left 87%/100% 1px no-repeat;text-shadow:0 1px 5px #000}
#follow-lamp span{font:19px/1 Georgia;color:#f6c37e;transition:transform .2s}
#follow-lamp:hover span{transform:translate(2px,-2px)}
.shade{background:linear-gradient(180deg,#05101c76,transparent 18%,transparent 60%,#080f19a8),radial-gradient(ellipse at 0 89%,#080d17bc,transparent 45%)}
body[data-walk] .shade{opacity:.82;transition:opacity .45s}
body[data-quiet] .shade{opacity:.48}
#walk-card,.east-guide :is(.east-suptitle,h2,p,.trail-ruler),.walk-key-hint{transition:opacity .32s,transform .32s}
body[data-quiet] #walk-card,body[data-quiet] .east-guide :is(.east-suptitle,h2,p,.trail-ruler){opacity:0;visibility:hidden;transform:translateY(5px)}
body[data-quiet] .walk-key-hint{opacity:0}
body[data-quiet] .east-handles{opacity:0;pointer-events:none}
body[data-quiet] .east-handles button{pointer-events:none}
body[data-quiet] .east-handles:focus-within{opacity:1}
body[data-quiet] .east-handles:focus-within button{pointer-events:auto}
#pins.projected .pin{border-radius:0;padding:2px 10px 2px 3px;min-height:44px;gap:7px;font:14px var(--serif);background:linear-gradient(90deg,transparent 3%,#111a207d 28%,#111a2022);letter-spacing:.06em}
#pins.projected .pin i{width:7px;height:10px;border:0;box-shadow:0 0 9px #ffbb6188}
#pins.projected .pin:hover,#pins.projected .pin:focus-visible{background:#152029d9;color:#ffe4a8}
#pins.projected .pin>span{border-bottom:1px solid #cbab7244;padding-bottom:2px}
#pins.projected .pin[data-tie=down]::after,#pins.projected .pin[data-tie=up]::after{content:"";position:absolute;left:6px;height:22px;width:1px;background:#e3bd7799;pointer-events:none}
#pins.projected .pin[data-tie=down]::after{top:calc(50% + 8px)}#pins.projected .pin[data-tie=up]::after{bottom:calc(50% + 8px)}
.itinerary{z-index:2;justify-content:space-between;gap:clamp(16px,4vw,76px);border-color:#e9cf9b54}
.route-caption{font:13px/1.25 var(--serif);letter-spacing:.18em}
.route-caption small{font-size:8px;color:#d4c2a8}
#stops{flex:0 1 auto;gap:clamp(15px,3.4vw,58px);margin-right:auto}
#stops button{font:15px var(--serif);color:#edddc5;min-width:44px}
#stops [aria-current=true]::after{height:2px;bottom:3px;background:linear-gradient(90deg,#d69c63 76%,transparent 76%,transparent 84%,#e6bf83 84%)}
#quiet-view{display:flex;align-items:center;justify-content:end;gap:8px;min-height:44px;padding:0 1px 0 6px;color:#e5d8c3;font:13px var(--serif);white-space:nowrap}
#quiet-view i{width:12px;height:9px;border:1px solid #cdaa72;border-top:2px solid #dbbb89;transform:skewX(-8deg)}
#quiet-view[aria-expanded=false] i{height:5px}
#lamp-trail{position:absolute;z-index:2;bottom:var(--foot);left:var(--pad);display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,#141c25dc,#141c2580 80%,transparent);border-left:2px solid #b78952;padding:5px 5px 5px 12px;max-width:calc(100% - var(--pad)*2)}
.trail-emblem{width:24px;height:24px;display:grid;place-items:center;border:1px solid #caaa7166;border-radius:50%}
.trail-emblem i{width:9px;height:15px;background:#e9b86c;clip-path:polygon(50% 0,100% 100%,50% 75%,0 100%);transform:rotate(var(--bearing))}
.trail-text{display:grid;gap:3px}.trail-text b{font:15px/1.25 var(--serif);letter-spacing:.06em}.trail-text small{color:#ead7b5;font:11px/1.25 var(--sans)}
#end-trail{min-width:44px;min-height:44px;color:#e3ccb0;font-size:19px}
.reading #lamp-trail,.reading .itinerary{visibility:hidden}
body.reading[data-walk=lite] :is(#full-city,#scenery){transform:none}
.view-modes{display:flex;gap:16px;border-top:1px solid #b18f6e55;margin-top:1.4em}
.view-modes button{padding:4px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;font:13px var(--serif)}
#quality-dial{max-height:calc(100dvh - clamp(65px,10vh,98px) - 10px);overflow:auto}
@media(pointer:coarse){
  #city:has(> #walk-stick:not([hidden])) :is(#walk-card,.east-guide){left:var(--pad);bottom:max(168px,calc(145px + env(safe-area-inset-bottom)))}
  #city:has(> #walk-stick:not([hidden])) #lamp-trail{left:calc(var(--stick-left) + var(--stick-size) + 12px);bottom:max(82px,calc(69px + env(safe-area-inset-bottom)));max-width:calc(100% - var(--stick-left) - var(--stick-size) - 20px);gap:5px;padding:2px 0 2px 8px}
  #city:has(> #walk-stick:not([hidden])) .east-guide{max-width:min(75vw,400px)}
}
@media(max-width:680px){
  :root{--pad:clamp(14px,4.6vw,26px);--foot:78px}
  .scene-copy{max-width:min(86vw,344px)}
  .scene-copy h1{font-size:clamp(36px,10.1vw,52px);margin:6px 0}
  .scene-copy p{font-size:14px;max-width:21em}
  .topnav{gap:7px}.topnav button{font-size:13px;min-width:40px}
  .itinerary{gap:5px;padding-top:2px}#stops{flex:1;margin:0;gap:0;justify-content:space-between}
  #stops button{font-size:13px;min-width:44px;min-height:46px}#stops button small{display:block;margin:0 0 2px;font-size:10px}
  #quiet-view{font-size:11px;padding-inline:6px;min-width:44px}#quiet-view i{display:none}
  #follow-lamp{font-size:14px;min-height:44px;margin-top:1px}
}
@media(max-height:600px) and (pointer:coarse){
  #city:has(> #walk-stick:not([hidden])) :is(#walk-card,.east-guide){left:calc(var(--stick-left) + var(--stick-size) + 12px);bottom:65px;max-width:min(52%,350px)}
  #walk-card h1{font-size:30px;margin:3px 0}#walk-card .eyebrow{font-size:10px}#walk-card p{font-size:12px;line-height:1.38}
  .east-guide h2{display:block;font-size:23px}
}
@media(max-width:360px){.wordmark{gap:6px}.topnav{gap:3px}.scene-copy p{font-size:13px}}
@media(pointer:coarse) and (max-width:440px) and (max-height:600px){
  #city:has(> #walk-stick:not([hidden])) #walk-card{right:var(--pad);max-width:none}
  #walk-card .rule{width:14px;flex:none}#walk-card .eyebrow{gap:6px;letter-spacing:.04em}
}
@media (pointer:coarse) and (max-width:640px) and (min-height:601px){
  #city:has(> #walk-stick:not([hidden])) #walk-card{top:max(78px,calc(65px + env(safe-area-inset-top)));bottom:auto;max-width:80vw}
  #walk-card h1{font-size:clamp(34px,9.2vw,48px)}#walk-card p{font-size:13px}
}
@media(prefers-reduced-motion:reduce){#walk-card,.east-guide *,body[data-walk] .shade,#follow-lamp span,.walk-key-hint{transition:none}}
