/* The spinning ANTH logo pinned to the bottom-left corner: a link to From Anth With Love, on every screen wider than a phone. */

/* The corner inset is the stage's edge spacing (the credit and the open nav
   sit 1.75rem from the edges), plus the safe area, as the credit and panels
   add it. At 108px wide the logo is 66px tall, so its top stays below the
   panels, which stop 6rem (96px) above the bottom plus that same safe area
   (css/panels.css): it never covers content. Nothing else on the
   site is fixed, so z-index 1 is enough to clear the hero, whose stacking
   context sits at 0, and the menu stage, which has none. */
.anth-link {
  --inset: 1.75rem;
  position: fixed;
  left: calc(var(--inset) + var(--safe-left));
  bottom: calc(var(--inset) + var(--safe-bottom));
  z-index: 1;
  display: block;
  width: 108px;
  color: var(--ink); /* the focus ring's color */
  transition: opacity var(--hover) ease;
}

.anth-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* The ring floats over the hero photo as well as the paper, so a paper band
   fills the gap inside it: ink on paper reads on either ground. */
.anth-link:focus-visible {
  box-shadow: 0 0 0 var(--focus-ring-offset) var(--paper);
}

/* The social icons' hover, and on touch screens the pressed look every
   control shares (css/controls.css). */
@media (hover: hover) {
  .anth-link:hover {
    opacity: 0.55;
  }
}

@media (hover: none) {
  .anth-link:active {
    opacity: 0.55;
  }
}

/* Phones, upright or held sideways, have no free corner: the credit runs
   nearly edge to edge. index.html's <source media> matches this, so they
   never download the animation. */
@media (max-width: 720px), (hover: none) and (max-height: 500px) {
  .anth-link {
    display: none;
  }
}
