/* =====================================================================
   Food tickets (js/food-show.js): a deli order ticket. Paper card,
   shop-blue ink, script kicker, Veneer name, note and a menu link.
   Enter: the card grows in, the name letters rise in a quick stagger.
   Exit is faster than entry.
   ===================================================================== */
.hero-tag {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  filter: drop-shadow(6px 12px 16px rgba(16, 26, 67, .22)) drop-shadow(1px 2px 2px rgba(16, 26, 67, .12));
}
.hero-tag__card {
  position: relative;
  display: grid;
  justify-items: start;
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  padding: 14px 18px 12px 30px;
  background: var(--paper-3);
  color: var(--shop-blue);
  text-align: left; /* the hero centres its text on phones */
  border-radius: 6px;
  /* ticket stub: a notch cut from the left edge, with a perforation beside it */
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000);
  mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000);
  rotate: -2deg;
  opacity: 0;
  scale: .94;
  filter: blur(3px);
  pointer-events: none;
  transition: opacity .14s ease, scale .14s ease, filter .14s ease;
}
.hero-tag__card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  border-left: 1.5px dashed var(--shop-line);
}
.hero-tag.is-shown .hero-tag__card {
  opacity: 1;
  scale: 1;
  filter: none;
  pointer-events: auto;
  transition: opacity .18s ease-out .08s, scale .32s var(--tag-ease) .08s, filter .24s ease-out .08s;
}
.hero-tag__kicker {
  font-family: var(--monday);
  font-size: 22px;
  line-height: 1;
  color: var(--shop-blue);
  margin-bottom: 2px;
}
.hero-tag__name {
  display: flex;
  overflow: hidden;
  padding-top: 2px;
  font-family: var(--veneer);
  font-size: clamp(30px, 2.4vw, 38px);
  line-height: .95;
  letter-spacing: -.01em;
}
.hero-tag__ch {
  display: inline-block;
  translate: 0 105%;
  transition: translate .12s ease-in;
}
.hero-tag.is-shown .hero-tag__ch {
  translate: none;
  transition: translate .42s var(--tag-ease) calc(.12s + var(--c) * 22ms);
}
.hero-tag__note {
  max-width: 24ch;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--shop-ink);
  text-wrap: pretty;
}
.hero-tag__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--shop-blue);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size .25s var(--tag-ease);
}
.hero-tag__link svg {
  width: 14px;
  height: 14px;
  transition: translate .25s var(--tag-ease);
}
@media (hover: hover) and (pointer: fine) {
  .hero-tag__link:hover {
    background-size: 100% 1.5px;
  }
  .hero-tag__link:hover svg {
    translate: 2px -2px;
  }
}
@media (pointer: coarse) {
  .hero-tag__link {
    min-height: 44px;
  }
}

/* Moving from one tag straight to the next: no entrance, it is already "open". */
.hero-tag.is-instant .hero-tag__card,
.hero-tag.is-instant .hero-tag__ch {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* ---- the foods themselves ---- */

@media (forced-colors: active) {
  
  .hero-tag__card {
    border: 1px solid ButtonText;
  }
}


@media (max-width: 767px) {
  .hero-tag__card {
    max-width: min(220px, calc(100vw - 24px));
    padding: 12px 14px 10px 26px;
  }
  .hero-tag__card::before {
    left: 13px;
  }
  .hero-tag__kicker {
    font-size: 19px;
  }
  .hero-tag__name {
    font-size: 28px;
  }
}

/* ---- reduced motion: no draw, no growth, no stagger; a plain fade ---- */
@media (prefers-reduced-motion: reduce) {
  
  .hero-tag__card,
  .hero-tag.is-shown .hero-tag__card {
    scale: 1;
    filter: none;
    transition: opacity .15s ease;
  }
  .hero-tag__ch,
  .hero-tag.is-shown .hero-tag__ch {
    translate: none;
    transition: none;
  }
  
  
  .hero-tag__link,
  .hero-tag__link svg {
    transition: none;
  }
}
