.gift-hero {
  aspect-ratio: 390 / 594;
}

@media (min-width: 1024px) {
  .gift-hero {
    aspect-ratio: 1728 / 750;
  }
}

.gift-intro {
  background: var(--color-cream);
  color: var(--color-olive);
  padding: var(--space-xl) var(--space-section-x);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gift-intro__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-section-title);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  /* 1.05, not 1.1 — matches the line-height used elsewhere for this same
     --fs-section-title token (e.g. .our-story__title). */
  line-height: 1.05;
  max-width: 30ch;
}

.gift-intro__body {
  font-size: var(--fs-body);
  line-height: 1.5;
  max-width: 40ch;
}

.gift-intro__text .btn {
  /* .gift-intro__text is a flex column with no align-items set, so its
     default (stretch) was forcing this button to fill the column's full
     width instead of sizing to its own content. */
  align-self: flex-start;
}

.gift-intro__card {
  align-self: center;
  width: 100%;
  max-width: 28rem;
  margin-top: var(--space-sm);
}

.gift-intro__card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

@media (min-width: 1024px) {
  .gift-intro {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-section-x);
  }

  .gift-intro__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1 1 40%;
  }

  .gift-intro__title {
    /* Narrow enough to force the 3-line wrap Figma shows at desktop
       widths ("...GIFT CARD" / "...TO REDEEM" / "...RESTAURANT"). Measured
       against the rendered font (not `ch`, which was wrapping too early). */
    max-width: 38.5rem;
  }

  .gift-intro__card {
    /* Top-aligned (not the row's own align-items: center, which the text
       column still uses) and bigger — was 44rem, and centered, which left
       a visibly bigger gap above the card than below it since the text
       column is the taller of the two and pulls the row's own height.
       Pulled up further still with a negative margin so it reads as
       sitting slightly above the text, not just level with it. */
    align-self: flex-start;
    flex: 1 1 50%;
    max-width: 54rem;
    margin-top: calc(-1 * var(--space-md));
  }
}
