/* A pane of glass: the chrome that stands over the page with no bar behind it,
   the header's three and the face at the foot. The page passes under it and
   the blur keeps it out of the words.

   A view-transition-name makes its element a backdrop root, and the blur of
   anything inside then sees only that element. So #header and #footer wear
   none, and cross-fade with the page. */
@layer components {
  .glass {
    --btn-size: 2.25rem;

    min-block-size: var(--btn-size);
    background-color: var(--color-glass);
    border-radius: 100vmax;
    -webkit-backdrop-filter: blur(0.75rem);
    backdrop-filter: blur(0.75rem);

    /* A button paints from its own properties. */
    &.btn {
      --btn-background: var(--color-glass);
      --btn-background-hover: var(--color-glass);
      --btn-radius: 100vmax;
    }
  }
}
