.route-button,.route-forward{cursor:pointer;color:#201c16;background:#d9bf90;border:1px solid #eed7ae;border-radius:3px;padding:13px 18px;font:600 12px Manrope,Arial,sans-serif;min-height:44px}
.route-forward{position:absolute;bottom:112px;right:6%;pointer-events:auto}
#last-stops{position:absolute;left:6vw;width:min(420px,88vw);max-height:calc(100svh - 200px);overflow:auto;pointer-events:auto;padding:28px 30px;border:1px solid #b89c625e;border-radius:4px;background:linear-gradient(120deg,#10181bf5,#10181bee);box-shadow:0 16px 54px #0005}
#last-stops h2{font:500 clamp(32px,4vw,54px)/1.03 'Cormorant Garamond',Georgia,serif;margin:0 0 16px}
#last-stops h2 em,.signature{color:var(--gold);font-weight:400}
#last-stops p{font-size:14px;line-height:1.65;color:#d7d3ca}
#last-stops p.signature{font:italic 30px 'Cormorant Garamond',Georgia,serif;color:var(--gold)}
.schedule{margin:22px 0}.schedule div{border-top:1px solid #cfb9894d;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.schedule dt{font:22px Georgia,serif}.schedule dd{margin:0;color:#dcc9a4;font-size:12px}
#last-stops small{font:11px/1.5 Manrope,Arial,sans-serif;color:#b9b5aa;display:block}
.stop-actions{display:flex;align-items:stretch;gap:8px;margin-top:18px}.stop-actions .replay{margin:0;font-size:11px;min-height:44px}
#guest-form{display:grid;gap:10px}#guest-form label{display:grid;gap:4px;font-size:12px;color:#ded3be}#guest-form :is(input,select,textarea){font:16px Manrope,Arial,sans-serif;color:#efe7da;background:#132023;border:1px solid #6e6859;border-radius:2px;padding:8px;width:100%}#guest-form textarea{resize:vertical}
#farewell-wish{margin:16px 0;white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid #ac9166;padding-left:12px;font:italic 18px Georgia,serif}
body.late-stop main{min-height:100svh}body.late-stop .intro{display:none}body.late-stop footer{position:fixed;top:auto;bottom:0}
@media(max-width:800px){.route-forward{right:50%;transform:translateX(50%);bottom:77px;min-height:36px;padding:7px 14px}.memory-bottom{bottom:122px}#last-stops{bottom:82px;left:5%;width:90%;max-height:54svh;padding:18px 20px}#last-stops h2{font-size:34px;margin-bottom:9px}#last-stops p{margin:8px 0}.stop-actions{margin-top:12px}.schedule{margin:8px 0}.schedule div{padding:8px 0}}
@media(max-height:550px){#last-stops{max-height:65svh;bottom:64px}.route-forward{right:12px;bottom:78px;transform:none}.memory-heading p,.memory-hint{display:none}}
#route-status{position:fixed;bottom:13%;left:50%;transform:translateX(-50%);pointer-events:none;white-space:nowrap;z-index:4;margin:0;background:#0d171ee8;border:1px solid #a690634a;border-radius:32px;padding:11px 20px;color:#e9d8bc;font:13px Georgia,serif}
#route-status:empty{display:none}
body.simple.late-stop #world{background:linear-gradient(#08142055,#08142099),url(assets/lakeshore.jpg) center / cover}

/* The camera fits its photo composition into the same free row as the UI. */
.memory-scene{display:grid;grid-template-rows:auto minmax(0,1fr) auto;inset:90px 5% 95px;row-gap:10px}
.memory-heading,.memory-bottom{position:static}
.memory-heading h2{margin:9px 0 5px}.memory-heading p{margin:0}
#memory-window{min-height:0;pointer-events:none}
.memory-bottom{align-self:end}
.memory-actions{margin:6px 0 3px}
.memory-scene .route-forward{right:0;bottom:0}
.memory-nav button,.memory-actions .replay,.route-forward,.sound,.garden-controls button{min-height:44px}
.memory-nav button,.memory-actions .replay,.garden-controls button{font-size:11px}
.memory-hint,.memory-disclaimer{font-size:9px;letter-spacing:1.2px}
#memory-caption{margin:0 0 5px}.memory-hint{margin:0 0 8px}
#asset-status{position:fixed;z-index:5;top:78px;right:5%;background:#10191eeb;border:1px solid #aa93684d;border-radius:4px;padding:8px 12px;font:12px/1.4 Manrope,Arial,sans-serif;color:#e3d6c2}
#asset-retry{background:transparent;border:0;color:#f2d29d;text-decoration:underline;min-height:44px;margin-left:8px}
.gazebo-prints{display:none}
body.simple .gazebo-prints{position:absolute;inset:31% 8% 31%;display:flex;align-items:center;justify-content:center;gap:2%}
.gazebo-prints img{max-width:30%;max-height:100%;object-fit:contain;border:3px solid #927249}
body.simple #garden-view{display:none}
#event-map{display:inline-flex;align-items:center;min-height:44px;color:#e9ce9c;font-size:13px}
@media(max-width:800px){
  .memory-scene{inset:84px 5% 80px;grid-template-rows:auto minmax(0,1fr) auto auto;row-gap:6px}
  .memory-heading .eyebrow,.garden-heading .eyebrow{font-size:9px}
  .memory-heading h2 em{display:inline}.memory-heading h2{max-width:none;font-size:29px}
  .memory-heading p{font-size:11px}.memory-bottom{padding:0}
  .memory-scene .route-forward{position:static;transform:none;justify-self:center;min-height:44px}
  .memory-nav,.memory-actions{gap:5px}.memory-nav button,.memory-actions .replay{padding:7px 10px}
  .garden-controls{display:grid;grid-template-columns:repeat(2,minmax(0,145px));bottom:84px;padding:0 15px}
  .garden-controls .next-scene{grid-row:1;grid-column:1/-1}
  .garden-controls button{line-height:1.35;padding:6px}
  #last-stops{bottom:76px;max-height:46svh;padding:14px 16px}
  #guest-form{grid-template-columns:1fr 1fr;gap:7px}
  #guest-form label:nth-child(3),#guest-status{grid-column:1/-1}
  #guest-form button{grid-column:1/-1}
  .stop-actions button{flex:1}
}
@media(max-height:680px){
  .memory-heading p,.memory-hint,.memory-disclaimer{display:none}
  .memory-scene{top:66px;bottom:66px}
  .garden-heading{top:68px}.garden-heading h2{margin:6px 0}
  .garden-controls{bottom:70px}
}
@media(max-height:490px) and (min-width:580px){
  header{padding:6px 4%}body.arrived footer{display:none}
  .memory-scene{inset:52px 4% 8px;grid-template-rows:auto minmax(0,1fr) auto}
  .memory-bottom{display:flex;align-items:center;justify-content:center;gap:12px}
  #memory-caption,.memory-disclaimer,.memory-hint{display:none}
  .memory-scene .route-forward{position:absolute;right:0;bottom:54px}
  #last-stops{left:3%;width:39%;max-height:80svh;bottom:8px}
  .garden-controls{bottom:8px;display:flex}.garden-heading{top:53px}
}

/* Native controls share the ink plane's origin, dimensions and projection. */
#last-stops[data-surface]{
  --ink:#402d20;--faint:#715942;--rule:#866e5085;--accent:#674626;
  position:fixed;inset:0 auto auto 0;width:360px;height:var(--page-height);max-height:none;
  padding:15px 13px 7px;transform-origin:0 0;display:flex;flex-direction:column;
  border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ink);
  text-shadow:none;overflow:visible;color-scheme:light;
}
#last-stops[data-surface="sign"]{--ink:#fff3cd;--faint:#ebdcb9;--rule:#d4b97a88;--accent:#ffdc98;color-scheme:dark}
#last-stops[data-surface] article{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--rule) transparent;overscroll-behavior:contain}
#last-stops[data-surface] h2{color:inherit;font:normal 38px/1.03 Georgia,serif;margin:4px 0 14px}
#last-stops[data-surface] h2 em,#last-stops[data-surface] .signature{color:var(--accent)}
#last-stops[data-surface] p{font:19px/1.42 Georgia,serif;color:var(--ink);margin:11px 0}
#last-stops[data-surface] small{font:15px/1.3 Georgia,serif;color:var(--faint)}
#last-stops[data-surface="letter"] article{padding:16px 7px 0}
#last-stops[data-surface] .signature{font:italic 27px Georgia,serif}
#last-stops[data-surface] blockquote{border-color:var(--rule);margin:13px 0;font:italic 19px/1.35 Georgia,serif}
#last-stops[data-surface] .stop-actions{flex:none;align-items:center;justify-content:space-between;gap:6px;margin:5px 0 0;border-top:1px solid var(--rule)}
#last-stops[data-surface] .stop-actions button{
  flex:0 1 auto;min-height:48px;margin:0;padding:4px 1px;background:transparent;box-shadow:none;
  border:0;border-radius:0;letter-spacing:0;color:var(--ink);font:16px/1.25 Georgia,serif;text-align:left;
}
#last-stops[data-surface] .stop-actions button:last-child{text-align:right;color:var(--accent)}
#last-stops[data-surface="book"] h2{font-size:33px;margin:1px 0 10px}
#last-stops[data-surface] #guest-form{display:flex;flex-direction:column;gap:7px}
#last-stops[data-surface] #guest-form label{gap:0;color:var(--faint);font:16px/1.15 Georgia,serif}
#last-stops[data-surface] #guest-form :is(input,select,textarea){
  width:100%;max-width:100%;min-width:0;color:var(--ink);background:transparent;
  font:italic 20px/1.3 Georgia,serif;border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:4px 0;
}
#last-stops[data-surface] #guest-form :is(input,select){min-height:39px}
#last-stops[data-surface] #guest-form textarea{height:64px;resize:none;background:repeating-linear-gradient(transparent 0 28px,var(--rule) 29px,transparent 30px);line-height:30px;border:0}
#last-stops[data-surface] #guest-form select option{background:#f1e7d1;color:#34291f}
#last-stops[data-surface] #guest-form button{
  align-self:flex-start;padding:6px 14px;min-height:41px;background:transparent;color:#4c3220;
  border:1px solid #886c4b;border-radius:2px;font:italic 19px Georgia,serif;
}
#last-stops[data-surface] :is(input,select,textarea,button,a):focus-visible{outline:2px solid var(--accent);outline-offset:1px}
#last-stops[data-surface] .stop-actions button:hover,#last-stops[data-surface] #event-map:hover{text-decoration:underline}
#last-stops[data-surface] #event-map{color:var(--accent)}
body.late-stop:not(.simple) .shade{opacity:.13}
body.late-stop:not(.simple) footer{display:none}

/* The visible lettering, including directions, is printed on the sign.
   HTML provides keyboard focus and touch targets at the printed locations. */
#last-stops[data-surface="letter"] #farewell-stop > *,
#last-stops[data-surface="sign"] #event-stop > :not(a){
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;
}
#last-stops:is([data-surface="sign"],[data-surface="letter"]) .stop-actions{
  position:absolute;left:13px;right:13px;bottom:7px;height:49px;border:0;margin:0;
}
#last-stops:is([data-surface="sign"],[data-surface="letter"]) .stop-actions button,
#last-stops:is([data-surface="sign"],[data-surface="letter"]) .stop-actions button:last-child,
#last-stops[data-surface="sign"] #event-map{color:transparent;text-decoration:none}
#last-stops[data-surface="sign"] #event-map{
  position:absolute;bottom:58px;left:15%;width:70%;height:44px;
}
#last-stops[data-surface="sign"] :is(a,button):hover{outline:1px solid #d4b97a99}
@media(min-width:850px){
  body:not(.simple) .garden-heading{left:5vw;right:auto;top:94px;max-width:28vw;text-align:left}
  body:not(.simple) .garden-heading .eyebrow{justify-content:flex-start}
  body:not(.simple) .garden-heading h2{font-size:clamp(27px,2.45vw,42px)}
}

/* In the garden, the title and photo captions are painted on hanging plaques. */
body:not(.simple) #story :is(.memory-heading,#memory-caption){
  position:absolute;inset:auto;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
body:not(.simple) .memory-scene{grid-template-rows:minmax(0,1fr) auto}
@media(max-width:800px){
  body:not(.simple) .memory-scene{grid-template-rows:minmax(0,1fr) auto auto}
}
body:not(.simple) #story .memory-hint,
body:not(.simple) #story .memory-nav:not(:focus-within){
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
body:not(.simple):not(.memory-focus) #memory-overview{display:none}

.rotate-note,.dock-prints{display:none}
body.simple .dock-prints{display:flex;gap:6px;margin-bottom:12px}
.dock-prints img{width:calc((100% - 12px)/3);height:90px;object-fit:cover;border:3px solid #ebdfc9}
@media (orientation:portrait) and (pointer:coarse){
  .rotate-note{display:block;margin:12px 0;color:#d8c298;font:12px/1.5 Georgia,serif;max-width:230px}
  .small-note{display:none}
}
@media (orientation:landscape) and (max-height:550px){
  body,body.arrived{overflow:hidden}
  main{height:100svh;min-height:0}
  header{padding:7px max(4vw,env(safe-area-inset-right)) 7px max(4vw,env(safe-area-inset-left))}
  .intro{margin-left:max(6vw,env(safe-area-inset-left));padding:43px 0 8px;max-width:48vw}
  .intro .pretitle{margin:5px 0;font-size:14px}
  .intro h1{font-size:clamp(35px,11vh,55px);margin:4px 0;line-height:1.06}
  .intro h1 br{display:none}
  .intro .description{font-size:10px;line-height:1.4}
  .intro .invitation{margin:10px 0}
  .intro .invitation p{margin:2px 0}
  .intro .small-note,footer{display:none}
  body:not(.simple) .garden-heading{inset:52px auto auto 4vw;width:27vw;text-align:left}
  .garden-heading h2{font-size:clamp(20px,5vh,28px);margin:4px 0}
  .garden-heading p{display:none}
  .garden-controls{display:flex;bottom:max(8px,env(safe-area-inset-bottom));gap:6px}
  .garden-controls button{min-height:36px;padding:5px 10px}
  .memory-scene{inset:44px 4% max(6px,env(safe-area-inset-bottom));grid-template-rows:minmax(0,1fr) auto}
  .memory-scene .route-forward{position:absolute;bottom:0;right:0;transform:none}
  body:not(.simple) .memory-scene{grid-template-rows:minmax(0,1fr) auto}
  .memory-bottom{padding:0}
  .memory-actions{margin:0}
}

body.gallery-stop:not(.simple) #last-stops{
  position:fixed;inset:auto 0 max(16px,env(safe-area-inset-bottom));width:100%;max-height:none;
  padding:0;background:none;border:0;box-shadow:none;pointer-events:none;overflow:visible
}
body.gallery-stop:not(.simple) #gallery-stop h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.gallery-stop:not(.simple) .stop-actions{justify-content:center;margin:0}
body.gallery-stop:not(.simple) .stop-actions button{flex:none;pointer-events:auto}
body.simple #gallery-stop .dock-prints{display:grid;grid-template-columns:repeat(3,1fr)}
body.simple #gallery-stop .dock-prints img{width:100%}

#route-status[data-waiting]{
  top:max(52px,9svh);bottom:auto;width:max-content;max-width:90vw;
  white-space:normal;text-align:center;box-sizing:border-box
}

#scene-veil{position:fixed;inset:0;background:#0b1018;opacity:0;pointer-events:none;z-index:1}
