/* ==========================================================================
   ESQUIRE LOGO
   The emblem's four pieces and the wordmark. The pieces keep Esquire's own
   colours everywhere; the wordmark takes the colour of the text around it.

   Under a pointer the three facets part a few pixels from the star and close
   again, as if the emblem breathed in. The assembly itself (the facets gliding
   in around the star) belongs to the LaunchScreen and the Pass.
   ========================================================================== */

.esquire-logo {
  overflow: visible;
}

.esquire-logo__light {
  fill: var(--silver);
}

.esquire-logo__teal {
  fill: var(--primary-color);
}

.esquire-logo__red {
  fill: var(--tertiary-color);
}

.esquire-logo__gold {
  fill: var(--secondary-color);
}

.esquire-logo__wordmark {
  fill: currentColor;
}

/* On paper the light facet would vanish, so it takes a hairline of ink. */
.esquire-logo__light {
  stroke: color-mix(in srgb, var(--ink) 9%, transparent);
  stroke-width: 1.5;
  paint-order: stroke;
}

/* BREATH */

.esquire-logo__light,
.esquire-logo__teal,
.esquire-logo__red,
.esquire-logo__gold {
  transform-box: view-box;
  transform-origin: 84px 75px;
  transition: transform var(--duration-lg) var(--ease-out);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .esquire-logo .esquire-logo__light {
    transform: translate(-7px, 0);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .esquire-logo .esquire-logo__teal {
    transform: translate(5px, -6px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .esquire-logo .esquire-logo__red {
    transform: translate(5px, 6px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .esquire-logo .esquire-logo__gold {
    transform: rotate(-8deg) scale(0.94);
  }
}
