/* The meal image leads, with two quieter ways into the menu. */
.home-shortcut-region {
  container-type: inline-size;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, 1.35vw, 15px);
  align-items: stretch;
}

.home-shortcuts[data-layout="grid"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
}

.home-shortcuts[data-layout="links"] {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
}

.home-shortcuts[hidden], .home-shortcut[hidden], .home-shortcut img[hidden] { display: none; }

.home-shortcut {
  --shortcut-color: #f7eee4;
  --shortcut-ink: #0d002c;
  --shortcut-font: 1;
  --shortcut-image: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 64px;
  gap: clamp(6px, 1vw, 16px);
  padding: 8px clamp(8px, 1.5vw, 18px);
  overflow: hidden;
  border: 1px solid #2e17351c;
  border-radius: clamp(13px, 1.6vw, 21px);
  background: var(--shortcut-color);
  color: var(--shortcut-ink);
  text-align: start;
  text-decoration: none;
}

.home-shortcut[data-slot="meals"] { --shortcut-color: #fff3cf; }
.home-shortcut[data-slot="chicken"] { --shortcut-color: #faedf4; }
.home-shortcut[data-background="false"] {
  background: transparent;
  border-color: transparent;
  color: #2e1735;
}

.home-shortcut-name {
  min-width: 0;
  font: 780 calc(clamp(.86rem, 2.25cqi, 1.14rem) * var(--shortcut-font))/1.45 var(--type-text, sans-serif);
  overflow-wrap: anywhere;
}

.home-shortcut img {
  display: block;
  flex: none;
  width: min(42%, calc(104px * var(--shortcut-image)));
  height: calc(clamp(34px, 7cqi, 62px) * var(--shortcut-image));
  object-fit: contain;
  border-radius: 10px;
  transform-origin: center;
}

.home-shortcuts[data-layout="feature"] .home-shortcut[data-slot="meals"],
.home-shortcuts[data-shortcut-count="1"] .home-shortcut {
  grid-column: 1 / -1;
}

.home-shortcuts[data-layout="feature"] .home-shortcut[data-slot="meals"] {
  min-height: clamp(92px, 29cqi, 195px);
  padding-inline: clamp(15px, 4cqi, 46px);
}

.home-shortcuts[data-layout="feature"] .home-shortcut[data-slot="meals"] .home-shortcut-name {
  font-size: calc(clamp(1.35rem, 5.6cqi, 2.45rem) * var(--shortcut-font));
}

.home-shortcuts[data-layout="feature"] .home-shortcut[data-slot="meals"] img {
  width: min(51%, calc(320px * var(--shortcut-image)));
  height: calc(clamp(87px, 30cqi, 177px) * var(--shortcut-image));
}

.home-shortcuts[data-layout="feature"] .home-shortcut[data-slot="meals"][data-image="false"] {
  min-height: 65px;
}

.home-shortcuts[data-layout="links"] .home-shortcut {
  min-height: 44px;
  padding: 4px 7px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #81004a;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-shortcuts a.home-shortcut:hover { border-color: currentColor; }
.home-shortcuts a.home-shortcut:focus-visible {
  outline: 2px solid #990053;
  outline-offset: 2px;
}

@container (max-width: 485px) {
  .home-shortcuts[data-layout="grid"] .home-shortcut {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 2px;
    padding-inline: 5px;
    text-align: center;
  }

  .home-shortcuts[data-layout="grid"] .home-shortcut img {
    width: min(94%, calc(92px * var(--shortcut-image)));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-shortcuts[data-motion="true"] a.home-shortcut img { transition: transform .25s ease; }
  .home-shortcuts[data-motion="true"] a.home-shortcut:hover img { transform: scale(1.035); }

  .home-shortcuts[data-motion="true"][data-entered] .home-shortcut {
    animation: home-shortcut-enter .32s ease-out both;
  }
  .home-shortcuts[data-motion="true"][data-entered] .home-shortcut[data-slot="beef"] { animation-delay: 45ms; }
  .home-shortcuts[data-motion="true"][data-entered] .home-shortcut[data-slot="chicken"] { animation-delay: 90ms; }
}

@keyframes home-shortcut-enter {
  from { opacity: .72; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The category sheet shares the storefront's warm paper and dark ink. */
#home-category-picker {
  width: min(620px, calc(100% - 28px));
  max-height: min(85vh, 720px);
  max-height: min(85dvh, 720px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fffaf4;
  color: #190e2b;
  border: 1px solid #e7dfd8;
  border-radius: 22px;
  box-shadow: 0 18px 72px #190e2b38;
}
#home-category-picker::backdrop { background: rgb(20 11 28 / 58%); }
.home-picker-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #fffaf4;
  border-bottom: 1px solid #e7dfd8;
}
.home-picker-heading h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.home-picker-heading button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ded5ce;
  border-radius: 50%;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font-size: 1.4rem;
}
.home-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}
.home-picker-item {
  display: grid;
  align-content: start;
  min-height: 48px;
  border: 1px solid #e8e1dc;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  color: inherit;
  text-decoration: none;
}
.home-picker-item img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #faf6ef; }
.home-picker-item span { align-self: center; padding: 10px 12px; font-weight: 700; line-height: 1.35; }
.home-picker-item:is(:hover, :focus-visible) { border-color: #a92965; }
@media (max-width: 540px) {
  #home-category-picker { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .home-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-picker-all {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0 16px 16px;
  border-radius: 12px;
  background: #211429;
  color: #fffaf4;
  font-weight: 700;
  text-decoration: none;
}
