/* Camelback Flowershop: one raspberry field, one column, everything rounded. */

/* ---------- properties ---------- */
:root {
  --colour-of-the-page: #B11750;
  --colour-of-the-type: #FFF3DE;
  --colour-of-the-pills: #211942;
  --face-for-headlines: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --face-for-reading: 'Zilla Slab', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --size-of-reading-type: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --size-of-a-page-title: clamp(2.125rem, 1.9rem + 1vw, 2.625rem);
  --size-of-a-section-heading: 1.875rem;
  --size-of-a-product-line: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --width-of-the-column: 35rem;
  --width-of-the-contents-line: 62rem;
  --space-at-the-page-edge: 1.5rem;
  --space-between-sections: clamp(2.5rem, 9vh, 6.5rem);
  --space-between-paragraphs: 1.1em;
  --corner-of-a-photograph: clamp(2rem, 1rem + 4.5vw, 3.5rem);
  --corner-of-a-panel: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --corner-of-a-pill: 62rem;
  --tilt-of-the-sticker: 8deg;
  --width-of-the-sticker: clamp(5.5rem, 4.75rem + 3vw, 6.75rem);
  --time-to-settle: 800ms;
  --ease-with-weight: cubic-bezier(0.22, 0.7, 0.2, 1);
  --thickness-of-an-outline: 0.125rem;
}

/* ---------- elements ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--colour-of-the-page);
  color: var(--colour-of-the-type);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--face-for-reading);
  font-size: var(--size-of-reading-type);
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--face-for-headlines);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}
h1 { font-size: var(--size-of-a-page-title); }
h2 { font-size: var(--size-of-a-section-heading); }
h3 { font-size: 1.5rem; }
p { margin-block: 0 var(--space-between-paragraphs); }
strong, b, dt, th { font-weight: 400; }
img, video, svg { display: block; max-inline-size: 100%; block-size: auto; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.125em; }
:focus-visible {
  outline: 0.1875rem solid var(--colour-of-the-type);
  outline-offset: 0.1875rem;
}
::selection { background: var(--colour-of-the-type); color: var(--colour-of-the-pills); }
address { font-style: normal; }
ul, ol { margin-block: 0 var(--space-between-paragraphs); padding-inline-start: 1.25em; }

/* ---------- pieces ---------- */

/* caf-col = column: the single centred 560px column every block of a page sits in */
.caf-col {
  inline-size: 100%;
  max-inline-size: calc(var(--width-of-the-column) + 2 * var(--space-at-the-page-edge));
  margin-inline: auto;
  padding-inline: var(--space-at-the-page-edge);
}

/* caf-blk = block: one section of a page, spaced from its neighbours; add to a caf-col */
.caf-blk { padding-block: var(--space-between-sections) 0; }
.caf-blk > * + * { margin-block-start: 1.25rem; }

/* caf-shf = shelf: the page opening; caf-ttl = title (the h1), caf-slo = slogan line under it */
.caf-shf { padding-block: clamp(0.75rem, 2.5vh, 1.75rem) 0; }
.caf-ttl { font-size: var(--size-of-a-page-title); }
.caf-slo { margin-block: 0.375rem 0; font-size: var(--size-of-a-product-line); }

/* caf-sh = section heading: 30px Bodoni italic, for an h2 (or an h3 that needs the same weight) */
.caf-sh { font-size: var(--size-of-a-section-heading); }

/* caf-txt = text: running copy, with its paragraphs, lists, links and legal headings */
.caf-txt > * + * { margin-block-start: var(--space-between-paragraphs); }
.caf-txt > p { margin-block-end: 0; }
.caf-txt h2, .caf-txt h3 { margin-block-start: 2.25rem; }
.caf-txt li + li { margin-block-start: 0.375em; }

/* caf-say = saying: a sentence of the owner's, first person, set large in Zilla Slab (blockquote or p) */
.caf-say {
  margin: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  line-height: 1.3;
}

/* caf-pas = the pass (the recurring device): a figure holding caf-pic, an optional caf-stk and a caf-tag; caf-sm makes the smaller crop */
.caf-pas {
  position: relative;
  margin: 0;
  padding-block-start: 1rem;
}
.caf-pas.caf-sm { inline-size: min(100%, 27rem); }

/* caf-pic = picture: the rounded crop (div or a) around one img or video; set --shape-of-the-crop to change 16/9 */
.caf-pic {
  display: block;
  overflow: hidden;
  border-radius: var(--corner-of-a-photograph);
  background: var(--colour-of-the-pills);
}
.caf-pic img, .caf-pic video {
  inline-size: 100%;
  aspect-ratio: var(--shape-of-the-crop, 16 / 9);
  object-fit: cover;
}

/* caf-stk = sticker: round aubergine notice tilted eight degrees (a or span); inside caf-pas it sits on the crop's upper-right corner; caf-lft tilts it the other way */
.caf-stk {
  display: inline-grid;
  place-items: center;
  inline-size: var(--width-of-the-sticker);
  aspect-ratio: 1;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--colour-of-the-pills);
  color: var(--colour-of-the-type);
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transform: rotate(var(--tilt-of-the-sticker));
}
.caf-stk.caf-lft { --tilt-of-the-sticker: -8deg; }
a.caf-stk:hover { box-shadow: 0 0 0 var(--thickness-of-an-outline) var(--colour-of-the-type); }
.caf-pas > .caf-stk {
  position: absolute;
  z-index: 1;
  inset-block-start: 0;
  inset-inline-end: -0.75rem;
}
/* data-press on a caf-pas: the sticker settles once from 1.12 when the picture has loaded (home page only) */
.js .caf-pas[data-press] > .caf-stk { transform: rotate(var(--tilt-of-the-sticker)) scale(1.12); }
.js .caf-pas.caf-press-on > .caf-stk {
  transform: rotate(var(--tilt-of-the-sticker)) scale(1);
  transition: transform var(--time-to-settle) var(--ease-with-weight);
}

/* caf-tag = name-and-price line under the crop (figcaption or p): caf-nam = name, caf-prc = price, dotted leader between */
.caf-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
  margin: 0;
  padding-block-start: 0.75rem;
  font-size: var(--size-of-a-product-line);
  line-height: 1.3;
}
.caf-tag::before {
  content: "";
  order: 2;
  flex: 1 1 1.5rem;
  min-inline-size: 1.5rem;
  border-block-end: var(--thickness-of-an-outline) dotted currentColor;
}
.caf-nam { order: 1; }
.caf-nam:only-child { flex: 1 1 100%; }
.caf-tag:has(.caf-nam:only-child)::before { display: none; }
.caf-prc { order: 3; white-space: nowrap; }

/* caf-kin = kindred line: one sentence under a caf-tag saying what the thing is for */
.caf-kin { margin-block: 0.375rem 0; }

/* caf-lst = list: passes stacked down the column in price order (ul or div, no bullets) */
.caf-lst {
  display: grid;
  gap: clamp(2rem, 6vh, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* caf-pil = pill: full-radius aubergine action (a or button); caf-out = ivory-outlined pill; caf-wid = full column width */
.caf-pil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.625rem 1.5rem;
  border: var(--thickness-of-an-outline) solid var(--colour-of-the-pills);
  border-radius: var(--corner-of-a-pill);
  background: var(--colour-of-the-pills);
  color: var(--colour-of-the-type);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.caf-pil:hover { border-color: var(--colour-of-the-type); }
.caf-pil.caf-out { border-color: var(--colour-of-the-type); background: transparent; }
.caf-pil.caf-out:hover,
.caf-pil[aria-selected="true"] {
  border-color: var(--colour-of-the-type);
  background: var(--colour-of-the-type);
  color: var(--colour-of-the-pills);
}
.caf-pil.caf-wid { display: flex; inline-size: 100%; justify-content: flex-start; text-align: start; }

/* caf-duo = pair: two equal-size pills side by side (Call to order / Email the shop) */
.caf-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-block-start: 1rem;
}
.caf-duo > .caf-pil { padding-inline: 0.75rem; }

/* caf-rnd = round control: a circular aubergine button for one sign or numeral */
.caf-rnd {
  display: inline-grid;
  place-items: center;
  inline-size: 3.25rem;
  aspect-ratio: 1;
  padding: 0;
  border: var(--thickness-of-an-outline) solid var(--colour-of-the-pills);
  border-radius: 50%;
  background: var(--colour-of-the-pills);
  color: var(--colour-of-the-type);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.caf-rnd:hover { border-color: var(--colour-of-the-type); }

/* caf-dl = facts: a dl of product facts, each pair wrapped in a div, dt left and dd right */
.caf-dl { margin: 0; }
.caf-dl > div {
  display: flex;
  gap: 1rem;
  padding-block: 0.625rem;
  border-block-end: var(--thickness-of-an-outline) dotted currentColor;
}
.caf-dl dt { flex: 0 0 34%; }
.caf-dl dd { flex: 1; margin: 0; }

/* caf-pan = panel: a rounded aubergine surface with ivory type; caf-rim = the same shape as an ivory outline on raspberry */
.caf-pan, .caf-rim {
  padding: clamp(1.25rem, 0.9rem + 2vw, 2rem);
  border-radius: var(--corner-of-a-panel);
}
.caf-pan { background: var(--colour-of-the-pills); color: var(--colour-of-the-type); }
.caf-rim { border: var(--thickness-of-an-outline) solid var(--colour-of-the-type); }
.caf-pan > :last-child, .caf-rim > :last-child { margin-block-end: 0; }

/* caf-fwd = forward: the last block before the footer; a heading, a line and a caf-duo or links to the next page */
.caf-fwd { padding-block: var(--space-between-sections) 0; }
.caf-fwd > * + * { margin-block-start: 0.875rem; }

/* caf-dot = dotted rule: an hr in the manner of the contents leaders */
.caf-dot {
  block-size: 0;
  margin-block: 1.5rem;
  border: 0;
  border-block-start: var(--thickness-of-an-outline) dotted currentColor;
}

/* caf-vh = visually hidden: text for screen readers only */
.caf-vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* caf-ris = rise: one slow 10px rise for a photo or panel below the fold; --place-in-the-turn (0,1,2...) staggers a run */
.caf-ris {
  transition:
    opacity var(--time-to-settle) var(--ease-with-weight),
    transform var(--time-to-settle) var(--ease-with-weight);
  transition-delay: calc(var(--place-in-the-turn, 0) * 140ms);
}
.caf-ris.caf-wait-on { opacity: 0; transform: translateY(0.625rem); }

/* ---------- chrome ---------- */

/* caf-jmp = jump: the keyboard link to the page's main content */
.caf-jmp {
  position: absolute;
  z-index: 30;
  inset-block-start: -6rem;
  inset-inline-start: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--corner-of-a-pill);
  background: var(--colour-of-the-type);
  color: var(--colour-of-the-pills);
}
.caf-jmp:focus { inset-block-start: 0.75rem; }

/* caf-top = header; caf-toc = the numbered contents line with dotted leaders: one line where the window is wide enough; on a phone the shop name takes a row of its own over a dotted rule and the numbered links sit under it three to a row, all in view; caf-nm = shop name link; caf-lg = logo mark */
.caf-top { padding-block: 0.5rem 0; }
.caf-toc {
  position: relative;
  max-inline-size: var(--width-of-the-contents-line);
  margin-inline: auto;
  padding: 0.25rem var(--space-at-the-page-edge);
}
.caf-toc ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.caf-toc li { display: flex; flex: 0 0 auto; align-items: center; max-inline-size: 100%; }
.caf-toc li + li { flex: 1 0 auto; }
.caf-toc li + li::before {
  content: "";
  flex: 1 0 1.25rem;
  margin-inline: 0.5rem;
  border-block-end: var(--thickness-of-an-outline) dotted currentColor;
}
.caf-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  font-size: 1.0625rem;
  white-space: nowrap;
  text-decoration: none;
}
.caf-toc a:focus-visible { outline-offset: -0.0625rem; border-radius: 0.5rem; }
.caf-toc a:hover,
.caf-toc a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.35em;
}
.caf-nm { font-size: 1rem; }
.caf-lg { flex: none; inline-size: 2rem; block-size: 2rem; transform: rotate(8deg); }

/* caf-end = footer; caf-dor = the door board; caf-hrs = hours, the board's main statement; caf-own = shop name; caf-adr = address in two lines; caf-way = link rows on an even grid (three to a row; caf-w2 = two to a row; caf-ml = the email, on a row of its own; caf-law = the legal links, a wrapping inline list); caf-yr = year line */
.caf-end {
  max-inline-size: calc(var(--width-of-the-column) + 2 * var(--space-at-the-page-edge));
  margin-inline: auto;
  padding: var(--space-between-sections) var(--space-at-the-page-edge) clamp(1.5rem, 5vh, 3rem);
}
.caf-dor {
  padding: clamp(1.5rem, 1rem + 3vw, 2.5rem);
  border-radius: var(--corner-of-a-panel);
  background: var(--colour-of-the-pills);
}
.caf-dor > .caf-sh { font-size: 1.5rem; }
.caf-hrs {
  margin-block: 0.75rem 1.5rem;
  font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.25rem);
  line-height: 1.2;
}
.caf-hrs > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
.caf-hrs > div + div { margin-block-start: 0.25rem; }
.caf-hrs dd { margin: 0; }
.caf-own { margin-block-end: 0; }
.caf-adr { margin-block-end: 1.25rem; }
.caf-adr span { display: block; }
.caf-way {
  display: grid;
  grid-template-columns: repeat(var(--links-to-a-row, 3), minmax(0, 1fr));
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.25;
}
.caf-way.caf-w2 { --links-to-a-row: 2; }
.caf-way li { min-inline-size: 0; }
.caf-way + .caf-way {
  margin-block-start: 0.5rem;
  padding-block-start: 0.5rem;
  border-block-start: var(--thickness-of-an-outline) dotted currentColor;
}
.caf-way a, .caf-way button {
  display: inline-flex;
  align-items: center;
  max-inline-size: 100%;
  min-block-size: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
/* the email takes a whole row of the board and is set a shade smaller, so it never breaks mid-word */
.caf-way .caf-ml { grid-column: 1 / -1; }
.caf-way .caf-ml a {
  font-size: 0.9375rem;
  overflow-wrap: normal;
  word-break: normal;
}
/* the legal links: one wrapping inline run, so no label sits alone on a row of its own */
.caf-way.caf-law {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}
.caf-way.caf-law li { flex: 0 0 auto; }
.caf-way.caf-law a { white-space: nowrap; }
.caf-yr { margin-block: 1rem 0; font-size: 0.9375rem; }

/* #notice = the cookie plate, ivory, lower left; caf-chs = its stacked choices; caf-ch = one choice */
#notice {
  position: fixed;
  z-index: 20;
  inset-block-end: 1.25rem;
  inset-inline-start: 1.25rem;
  inline-size: min(19rem, calc(100% - 2.5rem));
  padding: 1.125rem;
  border-radius: 1.75rem;
  background: var(--colour-of-the-type);
  color: var(--colour-of-the-pills);
  font-size: 1rem;
  line-height: 1.35;
}
#notice[hidden], #invite[hidden] { display: none; }
#notice p { margin-block-end: 0.75rem; }
#notice :focus-visible { outline-color: var(--colour-of-the-pills); }
.caf-chs { display: grid; gap: 0.5rem; }
.caf-ch {
  min-block-size: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: var(--thickness-of-an-outline) solid var(--colour-of-the-pills);
  border-radius: var(--corner-of-a-pill);
  background: var(--colour-of-the-pills);
  color: var(--colour-of-the-type);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.15;
  cursor: pointer;
}
.caf-ch:hover { background: var(--colour-of-the-type); color: var(--colour-of-the-pills); }

/* #invite = the offer, a rounded raspberry plate with an ivory ring, lower right; it settles in once (.is-in) */
#invite {
  position: fixed;
  z-index: 18;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-inline-size: min(21rem, calc(100% - 2.5rem));
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border: 0.1875rem solid var(--colour-of-the-type);
  border-radius: 1.75rem;
  background: var(--colour-of-the-page);
  font-size: 1rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(1.5rem) scale(1.04);
  transition:
    opacity var(--time-to-settle) var(--ease-with-weight),
    transform var(--time-to-settle) var(--ease-with-weight);
}
#invite.is-in { opacity: 1; transform: none; }
#invite p { margin: 0; }
#invite button {
  flex: none;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--colour-of-the-pills);
  color: var(--colour-of-the-type);
  font: inherit;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

/* caf-tel = the pinned call control, phones only: a round aubergine button, lower right */
.caf-tel { display: none; }

@media (max-width: 40rem) {
  /* The contents on a phone: the shop name on a row of its own over a dotted rule (the leader,
     laid flat), then the numbered links three to a row beneath it. Nothing scrolls sideways and
     nothing is cut: a label too long for its cell breaks onto a second line instead. */
  .caf-toc ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 0.5rem;
  }
  .caf-toc li { min-inline-size: 0; }
  .caf-toc li:first-child {
    grid-column: 1 / -1;
    border-block-end: var(--thickness-of-an-outline) dotted currentColor;
  }
  .caf-toc li + li::before { display: none; }
  .caf-toc a {
    max-inline-size: 100%;
    font-size: 1rem;
    line-height: 1.2;
    white-space: normal;
  }

  /* The sticker sits smaller, inside the photo's top-right corner, clear of the page edge. */
  .caf-stk {
    --width-of-the-sticker: 4.75rem;
    padding: 0.375rem;
    font-size: 0.9rem;
  }
  .caf-pas > .caf-stk { inset-inline-end: 0; }

  .caf-end { padding-block-end: 5.5rem; }
  .caf-way { --links-to-a-row: 2; }
  .caf-way.caf-w2 { --links-to-a-row: 1; }
  .caf-dl > div { flex-direction: column; gap: 0; }
  .caf-dl dt { flex: none; }

  /* The cookie plate on a phone: a narrow plate low in the left corner, its two choices one above
     the other; the call float keeps out of the way until the plate has been answered. */
  #notice {
    inset-block-end: 0.5rem;
    inset-inline: 0.5rem auto;
    inline-size: min(17rem, calc(100% - 1rem));
    padding: 0.5rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.2;
  }
  #notice p { margin-block-end: 0.375rem; }
  .caf-chs {
    grid-template-columns: 1fr;
    gap: 0.3125rem;
  }
  .caf-ch { padding-inline: 0.625rem; font-size: 0.9375rem; line-height: 1.1; }
  #invite {
    inset-block-end: 0.5rem;
    inset-inline: 0.5rem 4.75rem;
    max-inline-size: none;
    padding: 0.375rem 0.375rem 0.375rem 0.875rem;
    border-radius: 1.25rem;
    font-size: 0.9375rem;
  }
  .caf-tel {
    position: fixed;
    z-index: 15;
    inset-block-end: 0.5rem;
    inset-inline-end: 0.5rem;
    display: inline-grid;
    place-items: center;
    inline-size: 3.75rem;
    aspect-ratio: 1;
    border: var(--thickness-of-an-outline) solid var(--colour-of-the-type);
    border-radius: 50%;
    background: var(--colour-of-the-pills);
    color: var(--colour-of-the-type);
    font-size: 1rem;
    text-decoration: none;
  }
  /* While the plate is unanswered it takes the corner alone: no call float over the page's text. */
  #notice:not([hidden]) ~ .caf-tel { display: none; }
  /* The offer steps up above the plate rather than stacking on top of it. */
  #notice:not([hidden]) ~ #invite { inset-block-end: 10.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .caf-ris, .caf-pil, #invite { transition: none; }
  .caf-ris.caf-wait-on { opacity: 1; transform: none; }
  .js .caf-pas[data-press] > .caf-stk,
  .js .caf-pas.caf-press-on > .caf-stk {
    transform: rotate(var(--tilt-of-the-sticker));
    transition: none;
  }
}

body, html {
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media screen and (min-width: 1921px) {
  html { font-size: calc(100vw / 120); }
}
header a, header button, nav a, nav button { position: relative; z-index: 2; }
