/* Luke Shannon, Zero 10: page styles over the kit's chrome (ui.css).
 * The gallery's face (Jost, for the site's Futura), a neutral palette with no tinted accent,
 * and the few things this page adds: the Screens switch, the way back, the work sheet. */
:root{
  --ui-display:"Jost","Futura PT","Century Gothic",system-ui,sans-serif;
  --ui-mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --ui-bg:#0b0b0b; --ui-fg:#f6f5f2; --ui-fg2:#d9d7d2; --ui-fg3:#a3a09a; --ui-dim:#6b6964; --ui-accent:#f6f5f2;
  --ui-line:rgba(255,255,255,.18); --ui-line-hi:rgba(255,255,255,.45); --ui-scrim:rgba(12,12,12,.74);
}
#start h1{font-weight:500;letter-spacing:-.01em}
#start h1 .b{font-style:italic;font-weight:400;color:var(--ui-fg)}
#start .note{max-width:54ch}
#topbar .brand{letter-spacing:.14em;text-transform:uppercase;font-size:11px;font-weight:500}

/* The stand is pale: a white wall, a white plinth, a light floor. The kit's type is light and
   set straight on the picture, so the lower third is darkened further than the kit does. */
body.tour #vig::after{height:44vh;background:linear-gradient(to top,rgba(10,10,10,.8),rgba(10,10,10,.4) 42%,transparent)}
#vig::before{background:linear-gradient(to bottom,rgba(10,10,10,.6),rgba(10,10,10,.16) 60%,transparent)}
#caption h2{font-weight:500}
#caption .sub{color:var(--ui-fg2)}

#topbar nav a#z10-back{padding:6px 11px;font-size:.76rem;font-weight:500;color:var(--ui-fg);text-decoration:none;border-radius:3px;white-space:nowrap}
#topbar nav a#z10-back::before{content:'← '}
#topbar nav a#z10-back:hover{background:rgba(240,236,230,.08)}

#z10-note{position:fixed;right:calc(14px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));z-index:6;
  font-family:var(--ui-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.72);
  text-shadow:0 1px 8px rgba(0,0,0,.7);pointer-events:none;opacity:0;transition:opacity .5s}
body.ready.walk #z10-note{opacity:1}
body.p #z10-note,body.embed #z10-note{opacity:0}

/* the work sheet */
#drawer h2{font-weight:500}
#drawer h2 em{font-style:italic}
#drawer h2 .z10-sub{display:block;font-size:.92rem;font-weight:400;color:var(--ui-fg2);margin-top:.2rem}
#drawer figure img{background:#cfcdc8}
#drawer dl{grid-template-columns:72px 1fr}
#drawer a.z10-cta{display:flex;align-items:center;justify-content:space-between;margin-top:1.4rem;padding:.85rem 1rem;min-height:44px;
  border:1px solid var(--ui-line);color:var(--ui-fg);text-decoration:none;font-size:.9rem;font-weight:500;transition:border-color .2s,background .2s}
#drawer a.z10-cta:hover{border-color:var(--ui-line-hi);background:rgba(255,255,255,.07)}
.kit-label-caption{flex-direction:column;align-items:center;gap:2px;padding:9px 14px;border-radius:3px;background:var(--ui-scrim);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:.84rem;color:var(--ui-fg);text-align:center;max-width:min(80vw,46ch)}
.kit-label-title{font-style:italic;font-weight:500}
.kit-label-line,.kit-label-hint{font-size:.72rem;color:var(--ui-fg3)}

body.touch #z10-note,body.touch #drawer h2,body.touch .kit-label-caption{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#topbar nav button,#topbar nav a{white-space:nowrap}
/* a phone has no full screen to offer (iOS refuses it for a page), and the bar has no room for it */
body.touch #btn-full{display:none}
@media (max-width:640px){
  #topbar .brand{display:none}
  #topbar nav{width:100%;justify-content:space-between}
  #btn-full{display:none}
  #z10-note{display:none}
}
#place canvas{border-radius:4px}
/* A small frame (the exhibition page on a phone gives the booth about 330 x 415): the start screen
   keeps its title and its two doors, and a tour stop keeps its title; the long lines are for a full page. */
@media (max-height:520px){
  #start .note{display:none}
  #start h1{font-size:1.5rem}
  #start .sub{font-size:.8rem}
  .choices button{padding:.7rem 1rem}
  #caption p,#caption .readbtn,#caption .num{display:none}
  #caption.bl,#caption.br{bottom:calc(var(--safe-b) + 46px)}
  body.tour #vig::after{height:38vh}
}
