/*
 * Product listings (the shop's home page): the title link under each picture.
 *
 * Calder's note: "Can this font match banner font or be larger/bolder? Hot
 * pink to yellow hyperlink." So the title is set in the banner's display
 * font (Changa One, heavy italic, loaded for this theme by the Asset Injector
 * stylesheet "Calder Shop"), much larger, in hot pink, and it turns the
 * shop's button yellow on hover, keyboard focus and tap.
 *
 * Readability: the pink is #e6007e, 4.4:1 on the cream plate (#fffdf7) it
 * sits on, and the type is well over 24px, where WCAG asks for 3:1. Yellow
 * text needs a dark ground (#f6c900 on white is 1.6:1), so the link takes an
 * ink pill behind it when it turns yellow: 10:1.
 */

.calder-shop .views-view-responsive-grid .views-field-title {
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
}

.calder-shop .views-view-responsive-grid .views-field-title a {
  display: inline-block;
  padding: 0.08em 0.55em 0.16em;
  border-radius: 999px;

  color: var(--color-pink, #e6007e);
  font-family: "Changa One", "Arial Black", Impact, sans-serif;
  font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-decoration: none;

  -webkit-tap-highlight-color: transparent;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.calder-shop .views-view-responsive-grid .views-field-title a:hover,
.calder-shop .views-view-responsive-grid .views-field-title a:focus-visible,
.calder-shop .views-view-responsive-grid .views-field-title a:active {
  color: var(--color-accent, #f6c900);
  background-color: var(--color-ink, #242015);
  transform: rotate(-1.5deg);
}

.calder-shop .views-view-responsive-grid .views-field-title a:focus-visible {
  outline: 0.18rem solid var(--color-pink, #e6007e);
  outline-offset: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .calder-shop .views-view-responsive-grid .views-field-title a {
    transition: none;
  }

  .calder-shop .views-view-responsive-grid .views-field-title a:hover,
  .calder-shop .views-view-responsive-grid .views-field-title a:focus-visible,
  .calder-shop .views-view-responsive-grid .views-field-title a:active {
    transform: none;
  }
}
