.ingredients-grid {
  position: relative;
  overflow: hidden;
  background-color: rgba(var(--color-media-background));
  border-block-end: 1px solid rgba(var(--color-entry-line));
}

.ingredients-grid__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.ingredients-grid__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 8, calc(var(--ingredients-grid-overlay, 85%)));
}

.ingredients-grid__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ingredients-grid__eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(var(--color-light-text));
  margin-block-end: 20px;
}

.ingredients-grid__heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 0.95;
  color: rgba(var(--color-text));
  margin-block-end: 52px;
}

.ingredients-grid__heading em {
  font-style: italic;
  color: rgba(var(--color-light-text));
}

.ingredients-grid__pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-block-end: 52px;
}

.ingredients-grid__pill {
  border: 1px solid rgba(var(--color-text), 0.18);
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}

.ingredients-grid__pill-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: rgba(var(--color-text));
}

.ingredients-grid__pill-detail {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--color-light-text));
}

.ingredients-grid__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  max-width: 100%;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background-color: rgba(var(--color-button-background));
  color: rgba(var(--color-button-text));
  transition: opacity 0.15s ease;
}

.ingredients-grid__button:hover {
  opacity: 0.82;
}

@media (max-width: 959px) {
  .ingredients-grid__pill {
    min-width: 0;
    flex: 1 1 140px;
  }
}
