/* Follow the footer surface. The home and Booking headers have different backgrounds from their footers. */
footer.site-footer {
  --studio-footer-logo: url("studio-noir.png");
}

:is(.press-page, .about-body, .booking-theme) footer.site-footer,
footer .foot,
footer.publication-holding-footer {
  --studio-footer-logo: url("studio-blanc.png");
}

/* Keep the existing home link, its accessible name and its keyboard target. */
@media (forced-colors: none) {
  :is(footer.site-footer a.brand, footer .foot a.brand, footer.publication-holding-footer > a:first-child) {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: none;
    width: 138px;
    max-width: 100%;
    min-height: 44px;
    -webkit-text-fill-color: transparent;
  }

  :is(footer.site-footer a.brand, footer .foot a.brand, footer.publication-holding-footer > a:first-child) > span {
    -webkit-text-fill-color: transparent;
  }

  :is(footer.site-footer a.brand, footer .foot a.brand, footer.publication-holding-footer > a:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    aspect-ratio: 512 / 94;
    background: var(--studio-footer-logo) center left / contain no-repeat;
    pointer-events: none;
  }
}
