/* caf-sup = supper opening; caf-hln = the label that names the opening, set small in the headline face */
.caf-sup { padding-block-start: clamp(1rem, 3.5vh, 1.875rem); }
.caf-hln {
  margin: 0.5rem 0 0;
  font-family: var(--face-for-headlines);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.015em;
}
.caf-sup .caf-slo { margin-block: 0.75rem 0.375rem; }
/* the opening photograph takes a wide crop so the product line and the call sit inside the first window */
.caf-sup .caf-gft { --shape-of-the-crop: 16 / 9; }
.caf-sup > .caf-pil { margin-block-start: 0.625rem; }

/* caf-gft = gift photograph: the hero's wide crop, the crate's fuller one */
.caf-gft {
  --shape-of-the-crop: 4 / 3;
  --width-of-the-sticker: clamp(5.25rem, 4.75rem + 2vw, 6.125rem);
}
.caf-gft .caf-tag { padding-block-start: 0.125rem; }
.caf-gft .caf-nam,
.caf-row .caf-nam {
  display: inline-block;
  min-block-size: 2.75rem;
  padding-block: 0.625rem;
}

/* caf-srv inside a caf-tag = the pickup note on its own row under the name and price, as on the flowers page */
.caf-gft .caf-tag .caf-srv {
  order: 4;
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-block-start: 0;
}
.caf-gft .caf-tag .caf-srv a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
}

/* caf-row = a box listed as a text row, where its photograph already stands higher on the page */
.caf-row { padding-block-start: 0; }

/* caf-sel = selection: three equal places along the rim of the chooser, solid aubergine, the chosen one ivory */
.caf-sel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.375rem, 1.5vw, 0.75rem);
}
.caf-sel > .caf-pil {
  min-inline-size: 0;
  padding-inline: clamp(0.25rem, 1.25vw, 0.875rem);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
}

/* caf-scr = script plate, a filled panel set clear of the tabs; caf-try = tray that keeps its depth as the choices change */
.caf-blk > .caf-scr { margin-block-start: 1.75rem; }
.caf-try { display: grid; }
.caf-scr > .caf-pil {
  margin-block-start: 1rem;
  border-color: var(--colour-of-the-type);
  background: var(--colour-of-the-type);
  color: var(--colour-of-the-pills);
}

/* caf-tst = tasting note: only the selected note is visible or focusable */
.caf-tst {
  grid-area: 1 / 1;
  min-inline-size: 0;
  visibility: hidden;
}
.caf-tst.caf-pour-on { visibility: visible; }
.caf-tst .caf-tag { padding-block-start: 0; }

/* caf-telq = telephone cue; caf-qte = the words to say aloud */
.caf-telq { margin-block: 1rem 0.25rem; }
.caf-qte { margin-block: 0; }

/* caf-crt = gift crate list: every crop runs the width of the column */
.caf-crt > li { scroll-margin-block-start: 1rem; }

@media (max-width: 40rem) {
  /* On a phone the opening carries the title, one line of lead, the photograph and the call: the label goes */
  .caf-hln { display: none; }
  .caf-sup { padding-block-start: 0.75rem; }
  .caf-sup .caf-slo { margin-block: 0.5rem 0.25rem; }
  .caf-sup .caf-gft { --shape-of-the-crop: 16 / 9; }
  .caf-sup .caf-gft .caf-tag { padding-block-start: 0; }
}
