/* pewtercrow.com: the page's stylesheet */

@font-face { font-family: "Libertinus Mono"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/h/LibertinusMono-Regular.8b37137a29.woff2") format("woff2"); }
/* Crow Script is Parisienne, trimmed and renamed (fonts-src/README.md) */
@font-face { font-family: "Crow Script"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/h/CrowScript-Regular.4429554985.woff2") format("woff2"); }

/* The reset, at no specificity */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(.frame *) { margin: 0; padding: 0; }
:where(.frame) { font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
body { margin: 0; }
.defs { position: absolute; }   /* the night crow's gradients, drawn nowhere themselves */

/* ---------- Day, and the sizes everything takes from the width ---------- */
:root {
  --pewter: #52515b; --crow: #1b1e22; --text: #2c2c33; --rule: #8e8f99; --sheen: #e6e6f0;
  --sky: linear-gradient(180deg, #a5a9b1 0%, #b9bdc3 50%, #cdd0d3 100%);
  --bird: var(--crow);
  /* CUSTOM SOFTWARE and the shown address, darker than Pewter */
  --line: #42414b;
  /* What else night changes, as custom properties, so the night is one set of them (below) */
  --fog: 1; --stars: none; --crow-fill: var(--bird); --crow-stroke: none; --legs: var(--bird); --legs-width: 2.6;

  /* The name's size, from the width and the height, and the space under Crow */
  --wm-floor: min(44px, (100cqi + 72px) / 6.69);
  --wm-size: clamp(var(--wm-floor, 44px), min(10cqi, (100cqb - 126px) / 2.66, max(96px, 7.407cqi)), 180px);
  --gap-max: clamp(90px, 6.944cqi, 168.75px);
  --foot-gap: clamp(24px, 100cqb - 102px - 2.66 * var(--wm-size), var(--gap-max, 90px));

  /* The opening's clock */
  --crow-dur: 3.5s; --ink-at: 1.9s; --arrive: .8s; --land-at: calc(var(--ink-at) + var(--crow-dur) * .57); --sheen-gap: .75s;
}

/* ---------- Night, one set of custom properties ---------- */
html.night {
  --pewter: #8b8b95; --crow: #eceeeb; --text: #d0d0db; --rule: #52515b; --sheen: #f2f2fc;
  --sky: linear-gradient(180deg, #111317 0%, #1a1d22 50%, #262a31 100%);
  --bird: #6e6e78;
  /* lighter than Pewter, for the night sky */
  --line: #c7c7d1;
  /* the fog at a fifth, the crow slate grey with a silver outline */
  --fog: .2; --stars: block; --crow-fill: url(#crow-slate); --crow-stroke: url(#crow-silver); --legs: #9ca2ab; --legs-width: 2.2;
}
@media (prefers-color-scheme: dark) {
  html:not(.js) {
  --pewter: #8b8b95; --crow: #eceeeb; --text: #d0d0db; --rule: #52515b; --sheen: #f2f2fc;
  --sky: linear-gradient(180deg, #111317 0%, #1a1d22 50%, #262a31 100%);
  --bird: #6e6e78;
  /* lighter than Pewter, for the night sky */
  --line: #c7c7d1;
  /* the fog at a fifth, the crow slate grey with a silver outline */
  --fog: .2; --stars: block; --crow-fill: url(#crow-slate); --crow-stroke: url(#crow-silver); --legs: #9ca2ab; --legs-width: 2.2;
}
}

/* ---------- The frame: the window ---------- */
.frame {
  /* clipped rather than hidden, so neither a link to a phrase nor a script can scroll it */
  position: fixed; inset: 0; overflow: clip; container-type: size;
  color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* kept clear of a phone's notch and home bar */
  padding: max(44px, env(safe-area-inset-top, 0px)) max(52px, env(safe-area-inset-right, 0px))
           max(44px, env(safe-area-inset-bottom, 0px)) max(52px, env(safe-area-inset-left, 0px));
}
/* The space under the name matches the space above it; the box below holds the drops */
.frame::before { content: ""; flex: 1 1 0; }
.low { flex: 1 1 auto; align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; }

/* Below 331px tall the page keeps its 331px layout and scrolls */
@media (max-height: 330px) {
  .frame { overflow: hidden auto; justify-content: flex-start; }
  /* Nothing reaches past the frame's sides, so it can't be scrolled sideways: first the fog and Crow's padding */
  .frame .sky, .frame .wm .l2wrap { overflow-x: clip; }
  /* the rain ends at the frame's right edge, and its drizzle stays where it was */
  .frame .rain { width: calc(150cqi + 50% + max(52px, env(safe-area-inset-right, 0px))); }
  .frame .rain .drops { left: -30cqi; width: 360cqi; }
  /* the crow's spaces and the end padding after the name still run past, so a sideways scroll snaps back */
  .frame { scroll-snap-type: x mandatory; scroll-padding-inline-start: max(52px, env(safe-area-inset-left, 0px)); }
  .frame .low { scroll-snap-align: none start; }
}
@container (height < 243px) {
  .frame .wm { margin-top: -11px; }      /* 11px into the padding at the top, as at 331px */
  .frame .low { margin-bottom: -11px; }  /* and at the bottom, so the address ends 6px from the edge */
  /* sticky's offsets count from inside the padding, so -44px holds it at the frame's top edge, and none at the sides */
  .frame .sky { position: sticky; inset: auto; top: -44px; order: -1; flex: none; align-self: stretch;
                height: calc(100cqb + 88px); margin: -44px -52px calc(-100cqb - 44px); }
  .frame .rain { height: calc(100cqb + 55px - 1.82em); }   /* to the bottom of the window, not 30em on */
  .frame .glass { bottom: -33px; overflow: clip; }          /* a drop by the bottom edge never makes the page longer */
}

/* ---------- Sky ---------- */
.sky { position: absolute; inset: 0; background: var(--sky); }
/* The fog, drifting on the script, standing still without it */
.sky .layer { position: absolute; top: 0; bottom: 0; left: 0; will-change: transform; pointer-events: none; }
.fg {
  width: calc(100% + 1200px); background-size: 1200px 520px; background-repeat: repeat;
  animation: drift-tile 60s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='520'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0022 0.0075' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2.4 -0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  opacity: var(--fog);
  -webkit-mask-image: linear-gradient(to bottom, transparent 28%, #000 66%, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, transparent 28%, #000 66%, #000 84%, transparent);
}
@keyframes drift-tile { to { transform: translateX(-1200px); } }

/* Night: stars that stay put while the fog drifts across them */
.stars { display: var(--stars); position: absolute; inset: 0;
         -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 97%);
                 mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 97%); }
/* Without the script, made-up stars, still, in place of the real sky */
.stars .field { position: absolute; inset: 0; background-image:
    radial-gradient(1.2px 1.2px at 49.4% 18.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 29.2% 59.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 40.0% 73.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 49.7% 14.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 40.4% 22.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 14.4% 35.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 54.9% 56.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 97.7% 54.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 38.3% 19.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 9.1% 13.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 65.5% 2.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 82.4% 15.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 28.6% 12.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 53.4% 49.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 32.2% 10.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 85.2% 76.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 65.2% 59.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 45.8% 69.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 94.3% 54.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 55.8% 32.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 39.6% 39.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 40.2% 16.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 97.5% 35.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 11.8% 48.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 11.0% 45.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 53.6% 76.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 61.1% 6.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 21.4% 30.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 63.2% 76.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 60.0% 38.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 12.3% 39.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 96.8% 39.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 31.6% 12.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 74.5% 59.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 47.9% 55.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 51.6% 17.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 94.3% 29.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 68.6% 73.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 75.3% 24.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 64.0% 8.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 83.9% 42.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 90.0% 29.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 22.8% 43.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 50.3% 51.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 61.1% 63.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 75.3% 16.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 24.5% 32.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 79.7% 16.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 49.3% 58.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 98.0% 63.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 47.3% 16.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 60.3% 28.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 80.2% 58.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 35.3% 78.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 8.9% 9.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 47.1% 27.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 48.3% 78.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 60.8% 1.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 90.1% 28.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 64.0% 66.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 12.8% 31.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 70.7% 16.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 88.1% 35.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 63.3% 7.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 93.7% 58.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 46.4% 59.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 9.3% 13.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 98.3% 3.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 58.9% 37.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 65.3% 49.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.8px 1.8px at 59.4% 33.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 92.9% 11.8%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 54.7% 2.5%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 79.3% 51.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 11.1% 52.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 14.6% 69.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 20.1% 61.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 3.7% 15.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 50.1% 53.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 32.9% 38.6%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 82.8% 5.2%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 73.5% 62.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 65.9% 57.2%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 51.6% 58.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 87.1% 10.0%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 15.9% 36.2%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 86.5% 54.6%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 60.6% 54.5%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 15.7% 10.8%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 61.7% 9.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 7.1% 48.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 53.0% 34.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 77.1% 61.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 6.6% 14.2%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 5.1% 7.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 45.3% 2.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 88.6% 5.4%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 32.9% 68.2%, rgb(235 238 250 / 0.8), transparent); }
/* Bigger screens without the script get more made-up stars, from two tiles that repeat */
.stars .more { display: none; position: absolute; inset: 0; }
.stars .more::before, .stars .more::after { content: ""; position: absolute; inset: 0; }
.stars .more::before { background-size: 431px 431px; background-image:
    radial-gradient(2.6px 2.6px at 73.7% 93.2%, rgb(246 247 255 / 0.9), transparent),
    radial-gradient(2.6px 2.6px at 11.9% 57.8%, rgb(246 247 255 / 0.9), transparent),
    radial-gradient(1.8px 1.8px at 43.3% 27.0%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 85.3% 33.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 96.4% 36.4%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 55.3% 76.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 77.6% 5.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 72.9% 11.4%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 34.6% 10.2%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 60.3% 20.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 19.8% 52.8%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.2px 1.2px at 42.6% 53.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 52.3% 69.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 89.0% 96.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 58.8% 62.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 59.0% 34.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 93.0% 47.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 74.6% 68.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 8.8% 42.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 73.6% 41.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 65.7% 5.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 82.8% 75.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 9.9% 74.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 70.7% 79.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 77.5% 26.5%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 58.9% 95.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 24.8% 37.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 63.3% 84.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 3.7% 52.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 10.8% 85.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 35.2% 86.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 7.8% 28.3%, rgb(235 238 250 / 0.55), transparent); }
.stars .more::after { background-size: 587px 587px; background-image:
    radial-gradient(2.6px 2.6px at 78.8% 95.0%, rgb(246 247 255 / 0.9), transparent),
    radial-gradient(2.6px 2.6px at 35.1% 29.4%, rgb(246 247 255 / 0.9), transparent),
    radial-gradient(2.6px 2.6px at 58.4% 42.9%, rgb(246 247 255 / 0.9), transparent),
    radial-gradient(1.8px 1.8px at 53.7% 74.6%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 86.3% 11.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 25.7% 42.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 8.2% 73.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 21.1% 79.8%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 33.6% 67.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 49.0% 83.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 91.6% 36.9%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 68.3% 95.1%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 2.5% 25.4%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 26.1% 33.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 98.5% 11.3%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 49.6% 60.8%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 52.5% 22.7%, rgb(235 238 250 / 0.8), transparent),
    radial-gradient(1.2px 1.2px at 79.7% 87.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 94.3% 29.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 10.8% 62.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 49.3% 34.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 19.2% 61.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 42.6% 7.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 43.9% 92.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 15.6% 16.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 96.1% 71.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 58.9% 30.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 62.8% 88.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 29.9% 81.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 8.4% 52.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 21.9% 24.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 6.8% 82.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 63.1% 2.0%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 52.7% 5.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 70.1% 12.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 70.6% 39.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 88.6% 51.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 95.3% 60.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 35.2% 89.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 21.4% 92.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 73.5% 21.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 14.7% 44.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 4.1% 45.8%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 67.0% 76.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 10.1% 28.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 54.7% 96.9%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 12.5% 90.6%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 72.0% 64.1%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 45.4% 18.2%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 19.7% 50.7%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 1.5% 92.3%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 81.5% 76.4%, rgb(235 238 250 / 0.55), transparent),
    radial-gradient(1.2px 1.2px at 32.7% 13.3%, rgb(235 238 250 / 0.55), transparent); }
@container ((min-width: 760px) and (min-height: 400px)) or ((min-width: 600px) and (min-height: 800px)) {
  html:not(.js) .stars > .more { display: block; }
}
/* Each made-up star is placed and sized by its spot (--s), written by the build */
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #f4f6ff;
           box-shadow: 0 0 calc(var(--s) * 2) rgb(220 228 255 / .8); }
/* The brighter ones: bigger and softer, a glow rather than a point */
.stars i.big { width: calc(var(--s) * 3.4); height: calc(var(--s) * 3.4); margin: calc(var(--s) * -1.2) 0 0 calc(var(--s) * -1.2); box-shadow: none;
               background: radial-gradient(circle, #f6f7ff 0 13%, rgb(236 240 255 / .6) 22%, rgb(220 228 255 / .18) 42%, transparent 70%); }
/* The real sky, with the script: drawn on a canvas, so the made-up ones are not shown */
.stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars > .field, .stars > i:not(.tw) { display: none; }
/* The twinkling stars, placed by the script: a slow fade, 2s each way, each a little faster or slower */
.stars i.tw { margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); opacity: var(--a);
              animation: tw-fade calc(2s * 2 * var(--m)) ease-in-out calc(2s * -2 * var(--m) * var(--ph)) infinite; }
.stars i.tw.big { margin: calc(var(--s) * -1.7) 0 0 calc(var(--s) * -1.7); }
/* The pointer goes through them to a constellation's lines */
.stars > i.tw { pointer-events: none; }
@keyframes tw-fade { 0%, 100% { opacity: calc(var(--a) * .35); transform: scale(.85); } 50% { opacity: calc(var(--a) * 1.5); transform: scale(1.08); } }
/* No stars until the catalogue arrives or fails, then a 1s fade */
html.js .stars { opacity: 0; }
html.js .stars.real, html.js .stars.made { opacity: 1; transition: opacity 1s ease-out; }
/* The made-up stars, when the catalogue fails, comes late or is not asked for */
.stars.made > .field, .stars.made > i:not(.tw) { display: block; }
.stars.made > canvas, .stars.made > .cst { display: none; }
@container ((min-width: 760px) and (min-height: 400px)) or ((min-width: 600px) and (min-height: 800px)) {
  .stars.made > .more { display: block; }
}
/* A made-up star in a toggle's corner, hidden */
.stars > i.hush { visibility: hidden; }

/* Constellations, with the script: their lines and name show on hover or a tap */
.cst { position: absolute; inset: 0; pointer-events: none; }
.cst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* A constellation's lines, shown while it is lit, each over a wide one the pointer finds */
.cst .cg > line { stroke: rgb(214 220 238); stroke-width: 1; stroke-linecap: round; opacity: 0; transition: opacity .6s ease; }
.cst .cg.lit > line { opacity: .48; }
.cst .hit line { stroke: transparent; stroke-width: 30px; stroke-linecap: round; pointer-events: stroke; cursor: default; }
.cst-name { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .35s ease;
            font: 11px/1 "Libertinus Mono", monospace; letter-spacing: .24em; text-transform: uppercase; color: rgb(214 220 238 / .75); }
.cst-name.shown { opacity: 1; }
/* At night the pointer goes through the words to the constellations, not the controls */
.night .wm, .night .low, .night .foot, .night .foot p { pointer-events: none; }
.night .bird, .night .foot a, .night .foot .addr { pointer-events: auto; }

/* ---------- Rain, and the drops on the glass ---------- */
.rain { visibility: hidden; position: absolute; z-index: -1; pointer-events: none; overflow: hidden;
        top: calc(1em - .03em + .85em); left: -100cqi; width: 300cqi; height: 30em;
        -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.1em, #000 calc(100% - 2em), transparent);
                mask-image: linear-gradient(to bottom, transparent, #000 1.1em, #000 calc(100% - 2em), transparent); }
.rain .drops { display: block; position: absolute; left: -10%; width: 120%; will-change: transform; animation: fall linear infinite; }
.rain .near { top: -320px; height: calc(100% + 320px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg stroke='rgb%2862 68 86 / .34%29' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='52.8' y1='220.7' x2='50.7' y2='237.8'/%3E%3Cline x1='52.8' y1='-99.3' x2='50.7' y2='-82.2'/%3E%3Cline x1='153.3' y1='69.1' x2='151.1' y2='87.5'/%3E%3Cline x1='153.3' y1='-250.9' x2='151.1' y2='-232.5'/%3E%3Cline x1='258.5' y1='164.0' x2='256.6' y2='180.0'/%3E%3Cline x1='258.5' y1='-156.0' x2='256.6' y2='-140.0'/%3E%3Cline x1='75.5' y1='1.0' x2='73.7' y2='16.0'/%3E%3Cline x1='75.5' y1='-319.0' x2='73.7' y2='-304.0'/%3E%3Cline x1='187.3' y1='22.2' x2='185.1' y2='40.5'/%3E%3Cline x1='187.3' y1='-297.8' x2='185.1' y2='-279.5'/%3E%3Cline x1='74.3' y1='74.5' x2='72.8' y2='86.8'/%3E%3Cline x1='74.3' y1='-245.5' x2='72.8' y2='-233.2'/%3E%3Cline x1='319.2' y1='236.4' x2='316.9' y2='255.4'/%3E%3Cline x1='319.2' y1='-83.6' x2='316.9' y2='-64.6'/%3E%3Cline x1='197.1' y1='10.9' x2='195.3' y2='25.5'/%3E%3Cline x1='197.1' y1='-309.1' x2='195.3' y2='-294.5'/%3E%3Cline x1='159.2' y1='37.1' x2='156.9' y2='56.7'/%3E%3Cline x1='159.2' y1='-282.9' x2='156.9' y2='-263.3'/%3E%3Cline x1='117.9' y1='49.5' x2='115.7' y2='68.1'/%3E%3Cline x1='117.9' y1='-270.5' x2='115.7' y2='-251.9'/%3E%3Cline x1='40.0' y1='296.9' x2='38.1' y2='312.6'/%3E%3Cline x1='40.0' y1='-23.1' x2='38.1' y2='-7.4'/%3E%3Cline x1='176.6' y1='109.7' x2='174.7' y2='125.6'/%3E%3Cline x1='176.6' y1='-210.3' x2='174.7' y2='-194.4'/%3E%3Cline x1='59.8' y1='11.9' x2='57.5' y2='30.8'/%3E%3Cline x1='59.8' y1='-308.1' x2='57.5' y2='-289.2'/%3E%3Cline x1='75.2' y1='249.7' x2='73.5' y2='263.4'/%3E%3Cline x1='75.2' y1='-70.3' x2='73.5' y2='-56.6'/%3E%3Cline x1='310.0' y1='286.1' x2='307.8' y2='304.1'/%3E%3Cline x1='310.0' y1='-33.9' x2='307.8' y2='-15.9'/%3E%3Cline x1='244.1' y1='185.8' x2='242.0' y2='203.7'/%3E%3Cline x1='244.1' y1='-134.2' x2='242.0' y2='-116.3'/%3E%3Cline x1='39.2' y1='152.4' x2='37.0' y2='171.0'/%3E%3Cline x1='39.2' y1='-167.6' x2='37.0' y2='-149.0'/%3E%3Cline x1='64.3' y1='295.4' x2='62.1' y2='314.5'/%3E%3Cline x1='64.3' y1='-24.6' x2='62.1' y2='-5.5'/%3E%3Cline x1='131.1' y1='116.9' x2='129.2' y2='132.5'/%3E%3Cline x1='131.1' y1='-203.1' x2='129.2' y2='-187.5'/%3E%3Cline x1='123.4' y1='318.3' x2='121.6' y2='333.4'/%3E%3Cline x1='123.4' y1='-1.7' x2='121.6' y2='13.4'/%3E%3Cline x1='8.6' y1='29.8' x2='6.5' y2='47.6'/%3E%3Cline x1='8.6' y1='-290.2' x2='6.5' y2='-272.4'/%3E%3Cline x1='317.7' y1='158.7' x2='315.8' y2='174.7'/%3E%3Cline x1='317.7' y1='-161.3' x2='315.8' y2='-145.3'/%3E%3Cline x1='176.1' y1='239.4' x2='174.5' y2='253.2'/%3E%3Cline x1='176.1' y1='-80.6' x2='174.5' y2='-66.8'/%3E%3Cline x1='194.8' y1='178.1' x2='192.8' y2='195.1'/%3E%3Cline x1='194.8' y1='-141.9' x2='192.8' y2='-124.9'/%3E%3Cline x1='57.8' y1='54.4' x2='56.0' y2='69.2'/%3E%3Cline x1='57.8' y1='-265.6' x2='56.0' y2='-250.8'/%3E%3Cline x1='296.7' y1='110.9' x2='294.7' y2='127.7'/%3E%3Cline x1='296.7' y1='-209.1' x2='294.7' y2='-192.3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 320px 320px repeat; --tile: 320px; animation-duration: .7s; opacity: .55; }
.rain .far { top: -220px; height: calc(100% + 220px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg stroke='rgb%2862 68 86 / .2%29' stroke-width='0.8' stroke-linecap='round'%3E%3Cline x1='67.5' y1='22.7' x2='66.7' y2='29.0'/%3E%3Cline x1='67.5' y1='-197.3' x2='66.7' y2='-191.0'/%3E%3Cline x1='179.0' y1='170.9' x2='178.1' y2='178.8'/%3E%3Cline x1='179.0' y1='-49.1' x2='178.1' y2='-41.2'/%3E%3Cline x1='150.3' y1='148.7' x2='149.1' y2='159.2'/%3E%3Cline x1='150.3' y1='-71.3' x2='149.1' y2='-60.8'/%3E%3Cline x1='210.8' y1='89.5' x2='209.5' y2='100.5'/%3E%3Cline x1='210.8' y1='-130.5' x2='209.5' y2='-119.5'/%3E%3Cline x1='211.5' y1='129.9' x2='210.3' y2='140.3'/%3E%3Cline x1='211.5' y1='-90.1' x2='210.3' y2='-79.7'/%3E%3Cline x1='108.0' y1='82.6' x2='107.1' y2='89.9'/%3E%3Cline x1='108.0' y1='-137.4' x2='107.1' y2='-130.1'/%3E%3Cline x1='192.8' y1='35.7' x2='192.0' y2='42.1'/%3E%3Cline x1='192.8' y1='-184.3' x2='192.0' y2='-177.9'/%3E%3Cline x1='177.2' y1='170.3' x2='176.2' y2='178.7'/%3E%3Cline x1='177.2' y1='-49.7' x2='176.2' y2='-41.3'/%3E%3Cline x1='184.1' y1='11.5' x2='183.3' y2='18.8'/%3E%3Cline x1='184.1' y1='-208.5' x2='183.3' y2='-201.2'/%3E%3Cline x1='63.8' y1='92.3' x2='63.0' y2='99.2'/%3E%3Cline x1='63.8' y1='-127.7' x2='63.0' y2='-120.8'/%3E%3Cline x1='15.3' y1='74.4' x2='14.0' y2='84.9'/%3E%3Cline x1='15.3' y1='-145.6' x2='14.0' y2='-135.1'/%3E%3Cline x1='216.4' y1='164.1' x2='215.4' y2='172.5'/%3E%3Cline x1='216.4' y1='-55.9' x2='215.4' y2='-47.5'/%3E%3Cline x1='55.5' y1='211.0' x2='54.5' y2='219.6'/%3E%3Cline x1='55.5' y1='-9.0' x2='54.5' y2='-0.4'/%3E%3Cline x1='160.3' y1='6.2' x2='159.4' y2='13.3'/%3E%3Cline x1='160.3' y1='-213.8' x2='159.4' y2='-206.7'/%3E%3Cline x1='184.4' y1='174.9' x2='183.2' y2='185.4'/%3E%3Cline x1='184.4' y1='-45.1' x2='183.2' y2='-34.6'/%3E%3Cline x1='132.3' y1='93.7' x2='131.2' y2='102.6'/%3E%3Cline x1='132.3' y1='-126.3' x2='131.2' y2='-117.4'/%3E%3Cline x1='186.9' y1='67.8' x2='185.8' y2='76.4'/%3E%3Cline x1='186.9' y1='-152.2' x2='185.8' y2='-143.6'/%3E%3Cline x1='60.7' y1='169.0' x2='60.0' y2='175.1'/%3E%3Cline x1='60.7' y1='-51.0' x2='60.0' y2='-44.9'/%3E%3Cline x1='150.8' y1='209.9' x2='150.0' y2='216.0'/%3E%3Cline x1='150.8' y1='-10.1' x2='150.0' y2='-4.0'/%3E%3Cline x1='130.6' y1='141.6' x2='129.4' y2='151.9'/%3E%3Cline x1='130.6' y1='-78.4' x2='129.4' y2='-68.1'/%3E%3Cline x1='128.6' y1='56.6' x2='127.6' y2='64.6'/%3E%3Cline x1='128.6' y1='-163.4' x2='127.6' y2='-155.4'/%3E%3Cline x1='210.9' y1='199.2' x2='210.1' y2='205.9'/%3E%3Cline x1='210.9' y1='-20.8' x2='210.1' y2='-14.1'/%3E%3Cline x1='20.9' y1='20.7' x2='20.1' y2='26.8'/%3E%3Cline x1='20.9' y1='-199.3' x2='20.1' y2='-193.2'/%3E%3Cline x1='98.3' y1='31.0' x2='97.1' y2='41.3'/%3E%3Cline x1='98.3' y1='-189.0' x2='97.1' y2='-178.7'/%3E%3Cline x1='144.2' y1='27.8' x2='143.1' y2='36.5'/%3E%3Cline x1='144.2' y1='-192.2' x2='143.1' y2='-183.5'/%3E%3Cline x1='71.3' y1='108.7' x2='70.5' y2='115.7'/%3E%3Cline x1='71.3' y1='-111.3' x2='70.5' y2='-104.3'/%3E%3Cline x1='36.5' y1='40.5' x2='35.6' y2='48.4'/%3E%3Cline x1='36.5' y1='-179.5' x2='35.6' y2='-171.6'/%3E%3Cline x1='156.2' y1='121.0' x2='155.4' y2='127.2'/%3E%3Cline x1='156.2' y1='-99.0' x2='155.4' y2='-92.8'/%3E%3Cline x1='156.4' y1='192.3' x2='155.2' y2='202.1'/%3E%3Cline x1='156.4' y1='-27.7' x2='155.2' y2='-17.9'/%3E%3Cline x1='174.0' y1='1.7' x2='173.0' y2='10.0'/%3E%3Cline x1='174.0' y1='-218.3' x2='173.0' y2='-210.0'/%3E%3Cline x1='14.0' y1='168.1' x2='13.1' y2='174.9'/%3E%3Cline x1='14.0' y1='-51.9' x2='13.1' y2='-45.1'/%3E%3Cline x1='156.5' y1='55.6' x2='155.4' y2='65.1'/%3E%3Cline x1='156.5' y1='-164.4' x2='155.4' y2='-154.9'/%3E%3Cline x1='69.0' y1='9.2' x2='68.0' y2='17.2'/%3E%3Cline x1='69.0' y1='-210.8' x2='68.0' y2='-202.8'/%3E%3Cline x1='68.1' y1='198.2' x2='67.2' y2='205.6'/%3E%3Cline x1='68.1' y1='-21.8' x2='67.2' y2='-14.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px repeat; --tile: 220px; animation-duration: 1.05s; opacity: .8; }
@keyframes fall { to { transform: translate(calc(var(--tile) * -.12), var(--tile)); } }
.glass { visibility: hidden; position: absolute; top: calc(var(--foot-gap) - .5em); left: -52px; right: -52px; bottom: -44px; z-index: 3; pointer-events: none; font-size: 15px; }
/* By day, moving, once the drops script has checked the glass */
html.js:not(.night):not(.still) .rain, html.js:not(.night):not(.still) .glass.checked { visibility: visible; }
/* Drops hide with visibility, never display */
.glass > i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: calc(var(--s) * 1.08); }
/* A still drop lands with a splash, sits and dries, on its own clock */
.glass > i:not(.run) {
  border-radius: 50% 50% 48% 48% / 46% 46% 54% 54%;
  background:
    radial-gradient(circle at 34% 30%, rgb(255 255 255 / .95) 0 9%, transparent 16%),
    radial-gradient(ellipse at 50% 80%, rgb(255 255 255 / .42), transparent 62%);
  box-shadow: inset 0 calc(var(--s) * .12) calc(var(--s) * .14) rgb(40 44 58 / .32),
              inset 0 calc(var(--s) * -.08) calc(var(--s) * .1) rgb(255 255 255 / .5),
              0 1px 1.5px rgb(40 44 58 / .16);
  opacity: 0; transform: scale(0);
  animation: bead var(--t) ease-out calc(var(--land-at) + var(--arrive) + var(--d)) infinite; }
.glass > i:not(.run)::after { content: ""; position: absolute; inset: -55%; border-radius: 50%; border: 1px solid rgb(255 255 255 / .65); opacity: 0;
  animation: splash var(--t) ease-out calc(var(--land-at) + var(--arrive) + var(--d)) infinite; }
@keyframes bead { 0% { opacity: 0; transform: scale(.3, .2); } 1.5% { opacity: 1; transform: scale(1.25, .8); } 4% { transform: scale(.95, 1.05); }
                  6% { transform: none; } 50% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes splash { 0% { opacity: .85; transform: scale(.35); } 7% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; } }
/* A drop within 4px of the copied address's line is left out */
.glass > .near { visibility: hidden; }
/* The running drops are the morph runners, .m; the edge-fade runners are not used */
.glass > i.run { display: none; }
.glass > .m { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: calc(var(--s) * 1.08); }
/* A runner not started, under save data */
.glass > .m.off { visibility: hidden; }
.glass .m svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glass .m .mb { position: absolute; left: 0; width: 100%; }
/* The blur behind each drop, only while it can show */
html.js:not(.night):not(.still) .glass.checked > i:not(.run):not(.near),
html.js:not(.night):not(.still) .glass.checked > .m:not(.near):not(.off) .mb {
  -webkit-backdrop-filter: blur(1.3px) brightness(1.06); backdrop-filter: blur(1.3px) brightness(1.06); }

/* ---------- Wordmark: an h1 here, a div in the mockup ---------- */
.wm {
  --track: .01em; --indent: 5.75; --gap: -.03; --ratio: 1.7; --kernsum: -.085em;
  position: relative; z-index: 1;
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: "Libertinus Mono", ui-monospace, monospace; font-size: var(--wm-size); font-weight: normal;
  line-height: 1; white-space: pre;
}
.wm .l1 > span { margin-right: var(--k, 0em); }
/* Pewter's kerning */
.wm .l1 > :nth-child(1) { --k: -.01em; }
.wm .l1 > :nth-child(4) { --k: -.05em; }
.wm .l1 > :nth-child(5) { --k: -.025em; }
.wm .l2wrap { display: block; padding-left: calc(var(--indent) * (1ch + var(--track)) + var(--kernsum)); margin-top: calc(var(--gap) * 1em); }
.wm .l2 { display: block; font-family: "Crow Script", cursive; font-size: calc(var(--ratio) * 1em); color: var(--crow); line-height: 1;
          padding: .3em .4em; margin: -.3em -.4em; }

/* ---------- The opening ---------- */
/* Pewter types itself, then catches the light once */
.wm .l1 {
  display: block; letter-spacing: var(--track); color: transparent;
  background: linear-gradient(100deg, var(--pewter) 42%, var(--sheen) 50%, var(--pewter) 58%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(-.25em 100% -.25em -.25em);
  animation: type 1.02s steps(1, end) .45s forwards,
             sheen 1.65s ease-in-out calc(var(--land-at) + var(--arrive) + var(--sheen-gap));
}
@keyframes type {
  0%      { clip-path: inset(-.25em 100% -.25em -.25em); }
  16.667% { clip-path: inset(-.25em calc(5ch - .025em) -.25em -.25em); }
  33.333% { clip-path: inset(-.25em calc(4ch - .035em) -.25em -.25em); }
  50%     { clip-path: inset(-.25em calc(3ch - .045em) -.25em -.25em); }
  66.667% { clip-path: inset(-.25em calc(2ch - .005em) -.25em -.25em); }
  83.333% { clip-path: inset(-.25em calc(1ch + .01em) -.25em -.25em); }
  100%    { clip-path: inset(-.25em -.25em -.25em -.25em); }
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.caret { position: absolute; top: .14em; height: .78em; width: .065em; left: 0; background: var(--pewter);
         animation: caret-move 1.02s steps(1, end) .45s forwards, blink .55s steps(1) infinite, caret-off 1ms 2.6s forwards; }
@keyframes caret-move {
  0% { left: 0; } 16.667% { left: 1ch; } 33.333% { left: calc(2ch + .01em); } 50% { left: calc(3ch + .02em); }
  66.667% { left: calc(4ch - .02em); } 83.333% { left: calc(5ch - .035em); } 100% { left: calc(6ch - .025em); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes caret-off { to { visibility: hidden; } }
/* Crow is written in a soft sweep */
.wm .l2 {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: sweep var(--crow-dur) cubic-bezier(.45, .05, .35, 1) var(--ink-at) forwards;
}
@keyframes sweep { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* Held at the start until the fonts are in; once finished, it stays finished */
html.js:not(.ready) .wm .l1, html.js:not(.ready) .wm .l2, html.js:not(.ready) .caret, html.js:not(.ready) .bird,
html.js:not(.ready) .foot { animation-play-state: paused !important; }
/* The rain and the fog wait with the opening */
html.js:not(.ready) .rain .drops, html.js:not(.ready) .sky .layer { animation-play-state: paused !important; }
.opened .wm .l1, .opened .wm .l2, .opened .caret, .opened .bird, .opened .foot { animation-duration: 0s !important; animation-delay: 0s !important; }

/* ---------- The crow, perched on the flat top of the C (the placeholder drawing) ---------- */
/* The crow is already on the C, and clicking it does nothing */
.bird {
  --perch-x: calc(5.75 * (1ch + .01em) - .085em + .67em + .24em);
  --perch-y: calc(1.07em - .096em);
  position: absolute; width: 1.2em; height: 1.2em; z-index: 2; cursor: default;
  left: calc(var(--perch-x) - .55 * 1.2em); top: calc(var(--perch-y) - .92 * 1.2em);
  opacity: 0; animation: perch-in var(--arrive) ease-out var(--land-at) forwards;
}
@keyframes perch-in { from { opacity: 0; } to { opacity: 1; } }
.bird svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--bird); }
.bird .perch { position: absolute; inset: 0; display: block; transform-origin: 56% 91%; }
.sit .body { fill: var(--crow-fill); stroke: var(--crow-stroke); stroke-width: 1.7; stroke-linejoin: round; }
.sit .legs { fill: none; stroke: var(--legs); stroke-width: var(--legs-width); stroke-linecap: round; }
.wing { transform-box: view-box; transform-origin: 58px 46px; }
.wing.far { opacity: .55; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }

/* ---------- Under the wordmark ---------- */
/* CUSTOM SOFTWARE, Portland, Oregon and Send an Inquiry, stacked and centred, growing with the name */
.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: var(--foot-gap);
        flex-direction: column; align-items: center;
        font-family: "Libertinus Mono", monospace; font-size: 15px; letter-spacing: .02em;
        opacity: 0; animation: rise .9s ease-out calc(var(--ink-at) + var(--crow-dur) * .6) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot p { margin: 0; }
.foot a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .25em; }
.foot .what { text-align: center; }
/* cqi is the frame inside its padding; the second term keeps 16px from the edge */
.foot .cs { display: block; white-space: nowrap; font-size: min(max(17.5px, 1.3503cqi), (100cqi + 72px) / 13.4, 32.8px);
            letter-spacing: .24em; text-transform: uppercase; color: var(--line); padding-left: .24em; }
.foot .where { display: block; white-space: nowrap; margin-top: .3em; font-family: "Crow Script", cursive; font-size: clamp(25.5px, 1.9676cqi, 47.8px);
               line-height: 1; letter-spacing: 0; color: var(--crow); }
.foot .mail { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: .5em; font-size: clamp(16px, 1.2346cqi, 30px); }

/* Send an Inquiry, with a small crow that flaps on hover and focus and flies off when pressed */
.foot .ask { display: inline-flex; flex-direction: column; align-items: center; gap: .3em; text-decoration: none; color: var(--text); }
.foot .ask-t { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .25em; transition: text-decoration-color .2s; }
.foot .ask:hover .ask-t, .foot .ask:focus-visible .ask-t { text-decoration-color: currentColor; }
.ask-crow { width: 1.9em; height: calc(1.9em * 58 / 90); overflow: visible; margin-top: 0; transition: transform .35s ease-out;
            fill: var(--crow-fill); stroke: var(--crow-stroke); stroke-width: 2.2; stroke-linejoin: round; }
.ask-crow .wing { animation: none; transform: scaleY(.85); }
.ask:hover .ask-crow, .ask:focus-visible .ask-crow { transform: translate(.12em, -.12em); }
.ask:hover .ask-crow .wing, .ask:focus-visible .ask-crow .wing, .ask.sent .ask-crow .wing { animation: flap .3s ease-in-out infinite alternate; }
.ask.sent .ask-crow { animation: ask-off 1.6s ease-in-out; }
@keyframes ask-off { 0% { transform: translate(.12em, -.12em); opacity: 1; }
                     40% { transform: translate(5em, -2.6em) rotate(-8deg) scale(.8); opacity: 0; }
                     55% { transform: translate(-.5em, .25em); opacity: 0; }
                     100% { transform: none; opacity: 1; } }
/* Its focus ring, for the keyboard only, round the words and not the crow */
.foot .ask:focus-visible { outline: none; }
.foot .ask:focus-visible .ask-t { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 3px; }
/* The address hangs under the link without taking up room */
.foot .addr { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: .55em; white-space: nowrap;
              font-size: clamp(13px, 1.003cqi, 24.4px); color: var(--line); letter-spacing: .02em; opacity: 0; transition: opacity .4s; }
.foot .addr.shown { opacity: 1; }
/* Too wide for one line, it wraps 16px in from the window's sides, its lines centred */
.foot .addr.wrap { white-space: normal; width: max-content; max-width: calc(100cqi + 72px); text-align: center; }
/* Once it wraps, copied takes a line of its own */
.foot .addr .copied { display: block; white-space: nowrap; }

/* ---------- The toggles, top left and top right ---------- */
.motion { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); z-index: 6;
          display: inline-flex; align-items: center; justify-content: center;
          width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--pewter); cursor: pointer; }
.motion svg { width: 20px; height: 20px; fill: currentColor; }
.motion .play, .still .motion .bars { display: none; }
.still .motion .play { display: inline; }
.mode { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); z-index: 6;
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--pewter); cursor: pointer;
        font: 12px/1 "Libertinus Mono", monospace; letter-spacing: .24em; text-transform: uppercase; }
.motion:focus-visible, .mode:focus-visible { outline: 2px solid var(--pewter); outline-offset: 2px; }
.mode.icon svg { width: 22px; height: 22px; overflow: visible; transition: transform .5s ease; }
.mode.icon:hover svg, .mode.icon:focus-visible svg { transform: rotate(-14deg); }
.mode .orb, .mode .rays, .mode .cut { transform-box: view-box; transform-origin: 12px 12px; transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
.mode .rays { opacity: 0; transform: rotate(-60deg) scale(.4); }
.night .mode .orb { transform: scale(.6); }
.night .mode .cut { transform: translate(9px, -9px); }
.night .mode .rays { opacity: 1; transform: none; }
/* On a small, nearly square screen both toggles tuck 8px into their corners */
@container (width < 298px) and (height < 321px) {
  .frame .motion { top: calc(6px + env(safe-area-inset-top, 0px)); left: calc(8px + env(safe-area-inset-left, 0px)); }
  .frame .mode { top: calc(6px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); }
}
/* Day to night crossfades in 0.6s, also when motion is paused */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }

/* ---------- Motion paused ---------- */
.still .sky .layer { animation-play-state: paused !important; }
.still .ask .ask-crow { animation: none !important; transition: none; transform: none !important; }
.still .ask .ask-crow .wing { animation: none !important; }
/* Paused, the stars stop twinkling */
.still .stars i.tw { animation: none; }

/* ---------- Without the script ---------- */
html:not(.js) .rain, html:not(.js) .glass { visibility: hidden !important; }
html:not(.js) .sky .layer { animation-play-state: paused !important; }
/* The hidden drizzle and drops held still too */
html:not(.js) .rain .drops, html:not(.js) .glass > i, html:not(.js) .glass > i::after { animation-play-state: paused !important; }
html:not(.js) .cst, html:not(.js) .stars canvas, html:not(.js) .stars > i.tw { display: none !important; }
html:not(.js) .stars > .field, html:not(.js) .stars > i:not(.tw) { display: block; animation: none !important; }
html:not(.js) .wm .l1, html:not(.js) .wm .l2, html:not(.js) .caret, html:not(.js) .bird, html:not(.js) .foot { animation-duration: 0s !important; animation-delay: 0s !important; }
html:not(.js) .ask .ask-crow { animation: none !important; transition: none; transform: none !important; }
html:not(.js) .ask .ask-crow .wing { animation: none !important; }
html:not(.js) .foot .addr { opacity: 1; transition: none; }
html:not(.js) .motion, html:not(.js) .mode { display: none !important; }

/* ---------- Forced colours, and printed ---------- */
@media (forced-colors: active) {
  /* By day both crows take the text colour */
  :root { --bird: CanvasText; }
  /* No blank lines in the crow's box, whose backplate would hide Crow */
  .wm .bird { white-space: normal; }
}
/* Printed, Pewter has a colour of its own, since a print leaves out backgrounds */
@media print { .wm .l1 { color: var(--pewter); background: none; } }

/* ---------- The spots, written by tools/build.mjs from src/data/: the made-up stars, then the drops ---------- */
.stars > i:nth-of-type(1) { left: 33.4%; top: 11.9%; --s: 2px; --t: 2.6s; --d: -2.3s; }
.stars > i:nth-of-type(2) { left: 37.4%; top: 6.4%; --s: 2px; --t: 2.5s; --d: -2.8s; }
.stars > i:nth-of-type(3) { left: 9.6%; top: 8.4%; --s: 3px; --t: 2.6s; --d: -2.2s; }
.stars > i:nth-of-type(4) { left: 92.1%; top: 40.2%; --s: 2px; --t: 4.2s; --d: -3.0s; }
.stars > i:nth-of-type(5) { left: 94.8%; top: 5.7%; --s: 2px; --t: 3.3s; --d: -4.3s; }
.stars > i:nth-of-type(6) { left: 14.1%; top: 21.2%; --s: 2px; --t: 2.7s; --d: -2.1s; }
.stars > i:nth-of-type(7) { left: 20.7%; top: 8.7%; --s: 2px; --t: 4.1s; --d: -1.9s; }
.stars > i:nth-of-type(8) { left: 49.7%; top: 34.4%; --s: 2.5px; --t: 3.8s; --d: -0.4s; }
.stars > i:nth-of-type(9) { left: 37.0%; top: 17.7%; --s: 2px; --t: 4.6s; --d: -3.8s; }
.stars > i:nth-of-type(10) { left: 57.0%; top: 34.0%; --s: 2.5px; --t: 4.7s; --d: -3.6s; }
.stars > i:nth-of-type(11) { left: 95.1%; top: 10.0%; --s: 3px; --t: 2.9s; --d: -3.3s; }
.stars > i:nth-of-type(12) { left: 90.7%; top: 27.9%; --s: 2px; --t: 4.8s; --d: -2.1s; }
.stars > i:nth-of-type(13) { left: 85.3%; top: 21.5%; --s: 2.5px; --t: 4.2s; --d: -2.1s; }
.stars > i:nth-of-type(14) { left: 45.9%; top: 52.6%; --s: 2.5px; --t: 3.9s; --d: -1.7s; }
.stars > i:nth-of-type(15) { left: 8.7%; top: 44.4%; --s: 3px; --t: 3.3s; --d: -3.1s; }
.stars > i:nth-of-type(16) { left: 65.9%; top: 4.3%; --s: 3px; --t: 3.5s; --d: -1.9s; }
.glass > :nth-child(1) { --x: 66.3%; --y: 46.4%; --s: 8.8px; --t: 9.4s; --d: 0.0s; }
.glass > :nth-child(2) { --x: 71.6%; --y: 10.1%; --s: 16.9px; --t: 10.9s; --d: 1.3s; --run: 50px; }
.glass > :nth-child(3) { --x: 61.5%; --y: 83.7%; --s: 11.9px; --t: 12.0s; --d: 2.4s; }
.glass > :nth-child(4) { --x: 94.3%; --y: 36.7%; --s: 12.8px; --t: 13.0s; --d: 3.7s; }
.glass > :nth-child(5) { --x: 81.0%; --y: 68.4%; --s: 13.2px; --t: 9.1s; --d: 4.7s; }
.glass > :nth-child(6) { --x: 21.1%; --y: 20.0%; --s: 16.2px; --t: 11.6s; --d: 5.6s; --run: 41px; }
.glass > :nth-child(7) { --x: 92.8%; --y: 4.4%; --s: 13.9px; --t: 10.7s; --d: 7.1s; }
.glass > :nth-child(8) { --x: 89.9%; --y: 21.1%; --s: 11.8px; --t: 10.6s; --d: 7.9s; }
.glass > :nth-child(9) { --x: 14.1%; --y: 53.5%; --s: 11.2px; --t: 12.5s; --d: 9.0s; }
.glass > :nth-child(10) { --x: 81.0%; --y: 87.8%; --s: 7.4px; --t: 9.9s; --d: 9.5s; }
.glass > :nth-child(11) { --x: 36.1%; --y: 72.7%; --s: 12.1px; --t: 9.5s; --d: 9.3s; }
.glass > :nth-child(12) { --x: 4.9%; --y: 85.7%; --s: 11.0px; --t: 10.7s; --d: 9.9s; }
.glass > :nth-child(13) { --x: 7.3%; --y: 24.4%; --s: 15.3px; --t: 10.7s; --d: 8.2s; --run: 49px; }
.glass > :nth-child(14) { --x: 29.5%; --y: 49.3%; --s: 10.4px; --t: 13.5s; --d: 4.6s; }
.glass > :nth-child(15) { --x: 13.6%; --y: 5.7%; --s: 12.5px; --t: 9.0s; --d: 8.7s; }
.glass > :nth-child(16) { --x: 2.7%; --y: 55.4%; --s: 8.1px; --t: 12.3s; --d: 9.3s; }
.glass > :nth-child(17) { --x: 54.6%; --y: 72.1%; --s: 11.6px; --t: 11.9s; --d: 6.3s; }
.glass > :nth-child(18) { --x: 81.7%; --y: 38.1%; --s: 12.3px; --t: 10.8s; --d: 3.0s; }
.glass > :nth-child(19) { --x: 81.5%; --y: 19.4%; --s: 10.9px; --t: 11.6s; --d: 1.7s; }
.glass > :nth-child(20) { --x: 71.6%; --y: 10.1%; --s: 16.9px; --t: 10.9s; --d: 1.3s; --run: 50px; }
.glass > :nth-child(20) > .mb { top: -10.14px; height: 83.77px; -webkit-mask: url(#mbc1); mask: url(#mbc1); }
.glass > :nth-child(21) { --x: 21.1%; --y: 20.0%; --s: 16.2px; --t: 11.6s; --d: 5.6s; --run: 41px; }
.glass > :nth-child(21) > .mb { top: -9.72px; height: 73.10px; -webkit-mask: url(#mbc2); mask: url(#mbc2); }
.glass > :nth-child(22) { --x: 7.3%; --y: 24.4%; --s: 15.3px; --t: 10.7s; --d: 8.2s; --run: 49px; }
.glass > :nth-child(22) > .mb { top: -9.18px; height: 79.72px; -webkit-mask: url(#mbc3); mask: url(#mbc3); }
