/* Gifts.
   The grid, rail and cards come from the Fine Jewellery stylesheet, which this
   page loads before this one — only what is particular to gifting lives here:
   the category tiles and the personalisation panel. */

.gift-main { padding-top: 0; }

/* The banner file is already 16:9, so the band matches it exactly and there is
   nothing left to crop. Every other page's banner holds a 3:2 source and keeps
   84%; this one keeps all of it. */
.pg-banner--gifts { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
  /* On a phone the copy needs more room under the subject than 16:9 leaves,
     and the bangle sits right of centre so a squarer crop keeps it. */
  .pg-banner--gifts { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------- personalisation */

.gift-note {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(48px, 8vh, 96px) var(--gutter);
  background: var(--ground, #f7f5f2);
}
@media (min-width: 1000px) {
  /* copy, then the form, then the card it produces — left to right in the
     order somebody actually moves through it */
  .gift-note { grid-template-columns: 0.9fr 1.1fr 0.8fr; align-items: start; }
}

.gift-note-copy .pg-lede { margin: 12px 0 0; max-width: 42ch; }
.gift-note-fine {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 20px;
  color: var(--muted);
  max-width: 40ch;
}

.gift-form { display: grid; gap: 16px; align-content: start; }
/* `.pg-form label` sets uppercase letter-spaced type for field labels, and the
   helper line inside a label inherits it — which made a character counter
   shout. Put it back to ordinary sentence text. */
.gift-form small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

/* -- the card preview */

.gift-card { align-self: start; display: grid; gap: 10px; }
.gift-card-inner {
  display: grid;
  gap: 14px;
  align-content: start;
  /* a card is wider than it is tall, and seeing that shape is most of what
     tells somebody how much message will fit */
  aspect-ratio: 7 / 5;
  padding: clamp(18px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--rule, #e6e2dc);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.5);
}
.gift-card-mark {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.gift-card-to,
.gift-card-from {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.gift-card-from { align-self: end; }
.gift-card-msg {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--ink);
  /* the message is what grows; the names stay pinned top and bottom */
  align-self: start;
  overflow-wrap: anywhere;
}
.gift-card-cap { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }
