/* ===========================================================================
   Section 3 - save the dates.

   Frame left, words right, which is the reference's composition. Asymmetric on
   purpose: the frame is the heavier element, so it takes the smaller column and
   the type gets the room.

   All text here is at --fs-lg or larger, because cream on --ground-olive
   measures 3.72:1 and clears WCAG AA at large-text size only.
   =========================================================================== */

.section--save-the-dates {
  background-color: var(--ground-olive);
  color: var(--ink-reversed);
}

.save-the-dates__layout {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.save-the-dates__frame {
  width: 100%;
  max-width: 22rem;
  height: auto;
  /* The painting is the anchor, so it keeps its own proportions absolutely:
     a stretched frame would be the most visible failure on the site. */
  object-fit: contain;
  /* A painting hung on a wall casts a shadow. Tinted to the olive it sits on,
     never pure black. */
  filter: drop-shadow(0 10px 22px color-mix(in srgb, #2b2d1a 38%, transparent));
}

.save-the-dates__words {
  display: grid;
  gap: var(--space-2xs);
  justify-items: center;
}

.save-the-dates__article {
  font-family: var(--font-script);
  font-size: var(--fs-xl);
  line-height: 1.1;
  margin: 0;
  max-width: none;
  color: var(--ink-reversed);
}

.save-the-dates__title {
  font-size: var(--fs-2xl);
  font-weight: 400;
  margin-block-end: var(--space-md);
  color: var(--ink-reversed);
}

.save-the-dates__copy {
  font-family: var(--font-display);
  /* The 1.5rem floor is the contrast requirement, not a preference. */
  font-size: var(--fs-lg);
  line-height: 1.42;
  max-width: 24ch;
  color: var(--ink-reversed);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

/* Two columns once there is room for both to breathe. */
@media (min-width: 48rem) {
  .save-the-dates__layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    text-align: start;
  }

  .save-the-dates__words {
    justify-items: start;
  }

  .save-the-dates__frame {
    max-width: 24rem;
  }
}
