/* THE STREET's skin on every inner page (11/12). street_skin.py puts the strip on the page; this file is its look, and
   the few things every page shares with the street: its two faces, its keys, its sticker edge, one colour per place.
   Each page keeps its own layout. Run stamp.py after editing. */
@font-face{font-family:"VP Deadeye";src:url(../../reliquary/fonts/vpdeadeye.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Potta One";src:url(../../reliquary/fonts/pottaone.woff2) format("woff2");font-display:swap}

html[data-place]{--sk:#ff8fd8;--sk-ink:#150b14}
html[data-place="booth"]{--sk:#ff6aa8}
html[data-place="stand"]{--sk:#ffb547}
html[data-place="bar"]{--sk:#b892ff}
html[data-place="door"]{--sk:#5ae0d0}
html[data-place="box"]{--sk:#ffd479}
html[data-place="kit"]{--sk:#7fd3ff}
html[data-place="bites"]{--sk:#ff4f8b}

/* the strip: the back key top left, the place's name, the keys top right. The page starts under it. */
.sk-top{position:relative;z-index:8999;display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;
  min-height:calc(56px + env(safe-area-inset-top,0px));
  padding:max(6px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 6px calc(max(12px,env(safe-area-inset-left,0px)) + 138px)}
.sk-back{position:fixed;left:max(12px,env(safe-area-inset-left,0px));top:max(6px,env(safe-area-inset-top,0px));z-index:9000;
  display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;min-width:82px;min-height:44px;padding:0 14px;border-radius:999px;
  background:linear-gradient(#3d3b45,#25232b);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 4px 0 #08070b,0 6px 12px rgba(0,0,0,.5);
  color:#f1eef6;font:700 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sk-back span{font-size:18px;line-height:1}
.sk-back:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 2px 0 #08070b}
.sk-back:focus-visible,.sk-snd:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* the place's name: a neon word in the place's colour */
.sk-place{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  font:400 15px/1 "Potta One","VP Deadeye",system-ui,sans-serif;letter-spacing:.03em;color:var(--sk);   /* small names go in Potta One (his rule) */
  text-shadow:0 0 10px color-mix(in srgb,var(--sk) 55%,transparent),0 1px 0 #000}
.sk-keys{flex:none;display:inline-flex;align-items:center;gap:8px}
/* the sound key: one switch for the whole site, the street's own setting */
.sk-snd{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-width:44px;min-height:44px;margin:0;padding:0 10px;
  border:0;border-radius:12px;background:linear-gradient(#3d3b45,#25232b);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 4px 0 #08070b;
  color:#f1eef6;font:700 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sk-snd svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sk-snd[aria-pressed="false"]{color:#a79fb3}
.sk-snd[aria-pressed="false"] .on{display:none}
.sk-snd:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 2px 0 #08070b}

/* the street's faces on the page's own headings (the layout stays the page's) */
html[data-place] h1{font-family:"VP Deadeye","Potta One",system-ui,sans-serif;font-weight:400;font-style:normal;letter-spacing:.02em}
html[data-place] ::selection{background:var(--sk);color:var(--sk-ink)}
html[data-place] a:focus-visible,html[data-place] button:focus-visible{outline-color:var(--sk)}
/* a sticker edge for anything that asks for it */
.sk-sticker{filter:drop-shadow(0 0 0 #fff) drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(2px 3px 0 rgba(17,17,17,.4))}
/* a chunky key for anything that asks for it */
.sk-key{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:52px;padding:0 16px;border:0;border-radius:10px;
  background:linear-gradient(color-mix(in srgb,var(--sk) 70%,#fff),var(--sk));color:var(--sk-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 6px 0 color-mix(in srgb,var(--sk) 55%,#000),0 8px 14px rgba(0,0,0,.45);
  font:700 13px/1.05 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.07em;text-transform:uppercase;text-decoration:none;cursor:pointer}
.sk-key:active{transform:translateY(4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 0 color-mix(in srgb,var(--sk) 55%,#000)}

/* THE TAKE's page keeps the old home's markup switched off (take.css); the strip sits above it */
html[data-take] .sk-top{position:fixed;left:0;top:0}
/* A phone, on a page that also carries the bag: the place's name has to fit between the back key and two keys, and at a
   real 375 px it was cut to "PHOT..." (11/12). There the name starts right after its own back key (--sk-bk is that
   key's width, measured: Coven 91, Stand 90, Booth 92, Street 96, Love Bites 123, Box Office 126), the sound key drops
   its word (its icon loses its waves and greys when sound is off, its label still says which), the gaps close up and the name goes a size
   down. Change a back key's word in street_skin.py and its width here goes with it. */
html[data-place]{--sk-bk:126px}
html[data-place="door"]{--sk-bk:91px}
html[data-place="stand"]{--sk-bk:90px}
html[data-place="booth"]{--sk-bk:92px}
html[data-place="street"]{--sk-bk:96px}
@media (max-width:480px){
  .sk-top:has(.bn-chip){gap:6px;padding-left:calc(max(12px,env(safe-area-inset-left,0px)) + var(--sk-bk) + 10px)}
  .sk-top:has(.bn-chip) .sk-keys{gap:6px}
  .sk-top:has(.bn-chip) .sk-snd{padding:0}
  .sk-top:has(.bn-chip) .sk-snd small{display:none}
  .sk-top:has(.bn-chip) .sk-place{font-size:13px;letter-spacing:0}
}
@media (max-width:389px){
  .sk-top:has(.bn-chip) .sk-place{font-size:12px}
}
@media (max-width:374px){
  .sk-top:has(.bn-chip){padding-left:calc(max(12px,env(safe-area-inset-left,0px)) + var(--sk-bk) + 6px)}
  .sk-top:has(.bn-chip) .sk-place{font-size:11px;letter-spacing:-.02em}
}
@media (prefers-reduced-motion:reduce){.sk-back:active,.sk-snd:active,.sk-key:active{transform:none}}

/* THE iPHONE PASS (11/14). Turned on its side, Safari grows a page's text unless it is told not to. */
html[data-place]{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* The night pages' photo viewer (newevent.py writes its rules into every night page; these win over them and are the
   same 18 px where a phone reports no inset). Opened from the home screen icon a page is drawn under the status bar
   and the home bar: the Close key sat under the clock, FULL RES and the count under the home bar. */
html[data-place="booth"] .lb-x{top:calc(18px + env(safe-area-inset-top,0px))}
html[data-place="booth"] .lb-dl,html[data-place="booth"] .lb-count{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
html[data-place="booth"] .lb-looks{bottom:calc(44px + env(safe-area-inset-bottom,0px))}      /* the look chips sit over the count: they go up with it, or the count runs into them */
/* ⛔ NIGHT PAGES ONLY (the photo booth's pages). The video page, the work page and the ink page have viewers of their
   own, with the same class names and their own measures: written for every skinned page, the three rules above moved
   the video page's close key 14 px and the work page's 2 px (11/14, put right the same day).
   THE COUNT CLEARS THE KEY: the count ("1 / 255 . SUSPIRIA") sat centred on the foot and FULL RES at its left, so on
   every phone from 320 to 430 px wide the count's first figures were under the key. Up to 640 px the count sits at
   the right, beside the key (the key is 114 px wide and 18 px in: 158 px are kept for it and a gap), on ONE line: a
   second line would run into the look chips above it. So that the longest count of today (24 letters) fits a 320 px
   screen, its letters close up below 375 px (the spacing goes from nothing at 320 to its own .2em at 375 and up); a
   count longer than that on a narrow screen ends in three dots instead of running into anything. From 641 px the
   count is centred as it was. */
@media (max-width:640px){
  html[data-place="booth"] .lb-count{left:auto;right:18px;transform:none;max-width:calc(100% - 158px);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:clamp(0px,calc((100vw - 320px) * .04),.2em)}
}
/* UP TO 640 px WIDE FULL RES and the count sit 10 px lower (8 px from the foot plus the inset, not 18), and the look
   chips stay where they were before today's lifts (44 px plus the inset). The chips' lowest row and the top of the
   FULL RES key shared 9 px of height, so wherever that row reached left of the key's end a chip lay over the key:
   measured on four nights with two to five looks, it did at 320 to 430 px wide (24 of 72 cases), 402 among them.
   Moving the key and the count down, not the chips up, leaves the photo exactly as uncovered as it was: a tall photo
   already reaches under the chips, and lifting them covered more of it (the photo is what people came for). The key
   is 35 px tall: its press reaches from the foot (or the top of the home bar) up to the chips' foot, 44 px. From
   641 px wide nothing changed. (Earlier on 11/14 the chips were lifted instead, 15 px under 375 px and then 10 px up
   to 640 px: both are gone.) */
@media (max-width:640px){
  html[data-place="booth"] .lb-dl,html[data-place="booth"] .lb-count{bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  html[data-place="booth"] .lb-dl::after{content:"";position:absolute;left:-1px;right:-1px;top:-2px;bottom:-9px}
}
/* the sound key's word (On, Off) was 9.2 px: nothing a person reads is under 11 */
.sk-snd small{font-size:11px}

/* THE CAP BEHIND THE STATUS BAR (11/14, the iPhone pass). Opened from the home screen icon the status bar is see
   through, so a scrolled page ran under the clock. Once the page has moved (street-skin.js puts sk-capped on <html>
   past 2 px) a cap the height of the status bar is drawn behind it, in the page's own night colour (the script reads
   it; a light page such as the font's gets the house's dark, because the phone's clock is always white). At the very
   top there is none. Where a phone reports no inset it has no height: nothing is drawn. It lies over the strip as the
   strip scrolls away and under the back key (same level, the key comes later), under a photo viewer and the
   wallpaper viewer (9001, 9100), and it steps aside while MY COLLECTION is up. Not on the Take: its cloth is fixed
   and already covers the bar. An eighth of a second in and out, at once under Reduce Motion. */
html[data-place]:not([data-take])::before{content:"";position:fixed;left:0;right:0;top:0;z-index:9000;height:env(safe-area-inset-top,0px);background:var(--sk-cap,#0a0a0d);opacity:0;pointer-events:none;transition:opacity .12s linear}
html[data-place].sk-capped:not([data-take])::before{opacity:1;pointer-events:auto}      /* while it is up it also takes a press: nothing under the clock can be pressed by accident */
html[data-place].bn-open-sheet:not([data-take])::before{opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){html[data-place]::before{transition:none}}
