
/* ===== snow, until January (snow.py) ===== */
#snowc{position:fixed;inset:0;z-index:80;pointer-events:none;
  display:block;opacity:0;transition:opacity .6s ease;}
#snowc.on{opacity:1;}
/* ROOM UNDER THE FOOTER FOR THE SNOW TO LIE IN.
   --snowband is published by size() and is the taller of the near tier
   and the deepest drift, in CSS pixels. 24 more so the last line of the
   footer clears the snow rather than touching it.
   SCOPED TO html.xmas, so the padding arrives and leaves with the
   switch and nothing has to undo it. On a phone the landscape and the
   flakes do not run at all, so there is nothing to clear. */
/* THE SELECTOR WAS WRONG FOR FIVE DAYS AND THE GUARD SAID IT WAS
   FINE. It read `html.xmas body > footer`, and this site's footer is
   not a child of body: it is inside <main class="sheet">. So the rule
   matched nothing, the padding never arrived once, and the snow has
   been lying over the last four lines of the footer the whole time.
   The guard checked that the string "html.xmas body > footer{" was in
   the page, which it always was. A guard that checks a rule EXISTS
   and not that it MATCHES is a guard that cannot fail, and this is the
   third time that has cost something on this site.
   Both shapes are covered now, and check() reads the markup rather
   than the stylesheet. Measured after the change at 1440, 1920 and
   1280: the snow reaches 110, 119 and 98 CSS pixels at its highest,
   and --snowband publishes 130, 140 and 116, so the padding clears it
   everywhere with the 24 to spare that it was always meant to have. */
html.xmas main > footer,
html.xmas body > footer{
  padding-bottom:calc(var(--snowband, 150px) + 24px);
}
@media (max-width:700px){
  html.xmas main > footer,
  html.xmas body > footer{padding-bottom:0;}
}
/* THE SWITCH. Bottom left, as asked, which is also the corner the Ask
   us dock is not in. No border: the ring is a background behind a gap,
   per the standing rule. */
#snowt{position:fixed;left:18px;bottom:18px;z-index:95;
  display:inline-flex;align-items:center;gap:9px;
  padding:9px 15px 9px 12px;border-radius:999px;
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.72);
  font:600 12px/1 'Gotham',system-ui,sans-serif;letter-spacing:1.4px;
  text-transform:uppercase;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background .3s ease,color .3s ease,transform .3s ease;}
#snowt:hover{background:rgba(255,255,255,.14);transform:translateY(-2px);}
/* DRAWN, NOT TYPED. The obvious snowflake is U+2744 and Gotham has no
   glyph for it, so the switch showed whatever the system fell back to,
   which on this machine was a boxy sans-serif asterisk. A mark the
   brand font cannot draw is not a mark this site can use. */
#snowt b{display:block;width:15px;height:15px;line-height:0;
  transition:transform .6s ease;}
#snowt b svg{width:100%;height:100%;display:block;}
/* AND THE SWITCH GETS A GROUND OF ITS OWN ONCE THE DRIFT IS DEEP.
   The pill is a translucent white film over a backdrop blur, which
   is right over the page and wrong over snow: the bank at the left
   edge climbs behind this button, the film goes near white, and aqua
   on white is about 1.6 to 1. The control that turns the snow OFF is
   the last thing that should become unreadable when it is on. A
   solid dark base under the same aqua film, so it reads against the
   page and against a drift. */
#snowt.on{color:var(--aqua,#00eecc);
  background:linear-gradient(var(--aquafilm,rgba(0,238,204,.12)),
                             var(--aquafilm,rgba(0,238,204,.12))),
             var(--ink,#0b0f2e);}
#snowt.on b{transform:rotate(90deg);}
@media (max-width:700px){
  #snowt{left:12px;bottom:12px;padding:8px 12px 8px 10px;font-size:11px;}
}
/* NOT ON A PHONE, switch or snow. Michael, 27 October, on a Pixel: the
   switch sat over the content in the bottom corner of every page, and on
   a 360px screen the flakes read as dust on the glass rather than snow.
   It is a trial for Matt to show on a desk; the script stops drawing too
   (see "phone" below), so a hidden canvas is not burning the battery. */
@media (max-width:700px),(pointer:coarse){
  #snowt,#snowc{display:none !important;}
}
