@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/baloo-2-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/assets/fonts/baloo-2-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout idea: the 5-step poster turned into a form. One column on a phone with the
   price in a bar that sticks to the bottom; two columns on a wide screen with the
   cake and the price pinned on the right. No vh units and no fixed positioning, so
   an in-app browser's top and bottom bars cannot cover or cut anything.
   Every rule starts with .cp and every class is cp-prefixed so style.css cannot leak in. */
.cp {
  /* the colours of the printed price list: dark chocolate, brown cells, peach for the picked choice */
  --paper: #2b1d18;
  --panel: #3b2821;
  --card: #5c4036;
  --peach: #f5c6a8;
  --text: #fff6ee;
  --muted: #d8c0b3;
  --ink: #2b1d18;      /* dark text and lines on peach and cream */
  --ink-soft: #6b4a3d; /* secondary text on peach */
  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --edge: 2px solid var(--card);
  background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 1rem; line-height: 1.45;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; margin: 0; padding: 0; }
.cp h1, .cp h2, .cp .cp-price, .cp .cp-btn { font-family: var(--display); font-weight: 700; }
.cp h1, .cp h2 { text-wrap: balance; line-height: 1.05; }

.cp .cp-page {
  max-width: 1040px; margin: 0 auto; padding: 20px 16px 28px;
  display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr);
}
.cp .cp-top { display: grid; gap: 10px; }
.cp .cp-top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* the page has no site header, so this is the way back to the site */
.cp .cp-home {
  font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center;
}
.cp h1 { font-size: clamp(2rem, 8vw, 3.1rem); font-weight: 800; color: var(--text); }
.cp .cp-lede { max-width: 46ch; color: var(--muted); }

.cp .cp-alt {
  width: 100%; max-width: 46ch; background: var(--panel); border: var(--edge); border-radius: var(--radius);
  padding: 14px 16px; display: grid; gap: 4px;
}
.cp .cp-alt h2 { font-size: 1.25rem; color: var(--text); }
.cp .cp-alt p { color: var(--muted); }
.cp .cp-alt a { color: var(--peach); font-weight: 800; display: inline-flex; align-items: center; min-height: 48px; }

/* the aside's children join the page grid on a phone, so the cake can sit above the steps */
.cp .cp-side { display: contents; }
.cp .cp-preview { order: 1; }
.cp .cp-steps { order: 2; display: grid; gap: 26px; align-self: start; }
.cp .cp-send { order: 3; }

.cp .cp-preview {
  background: var(--panel); border: var(--edge); border-radius: var(--radius);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
}
.cp .cp-preview svg { width: 132px; height: auto; flex: none; }
.cp .cp-preview-text { display: grid; gap: 2px; min-width: 0; }
.cp .cp-label { font-size: 0.85rem; color: var(--muted); }
/* one short line each, never wrapping: a choice must not change the block's height and push the page */
.cp .cp-choice { font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The longest stack name needs two lines beside the drawing. The list keeps room for six lines, so the
   card never changes height and the spare line of a short name falls at the end, above "starts at". */
.cp .cp-choices { display: grid; gap: 2px; align-content: start; min-width: 0; min-height: calc(7.5em + 8px); }
.cp .cp-preview [data-out=size] { white-space: normal; }
.cp .cp-price { font-weight: 800; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp .cp-from { font-size: 0.8rem; color: var(--muted); }

.cp fieldset { border: 0; min-width: 0; display: grid; gap: 12px; }
.cp legend, .cp .cp-step-title {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: inherit;
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px;
}
.cp .cp-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--peach); color: var(--ink);
  display: inline-grid; place-items: center; font-size: 0.95rem; flex: none;
}
.cp .cp-options { display: grid; gap: 10px; }
/* five tier cards in three columns: two rows */
.cp .cp-options.cp-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
/* two columns at every width; a last card with no partner takes the whole row, so no cell is left empty */
.cp .cp-options.cp-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.cp .cp-sizes .cp-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cp .cp-options.cp-heights { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.cp .cp-options.cp-combos { grid-auto-rows: 1fr; }

.cp .cp-opt { position: relative; display: block; }
.cp .cp-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.cp .cp-face {
  height: 100%; background: var(--card); border: var(--edge); border-radius: var(--radius);
  padding: 12px; display: grid; gap: 4px; min-height: 64px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.cp .cp-opt input:checked + .cp-face { box-shadow: 4px 4px 0 #150d0a; transform: translate(-2px, -2px); background: var(--peach); color: var(--ink); }
.cp .cp-opt input:checked + .cp-face .cp-from, .cp .cp-opt input:checked + .cp-face .cp-desc { color: var(--ink-soft); }
.cp .cp-opt input:focus-visible + .cp-face { outline: 3px solid var(--text); outline-offset: 3px; }
/* a cake the sheet does not sell: faded, not selectable, and still the same height */
.cp .cp-opt input:disabled { cursor: default; }
.cp .cp-opt input:disabled + .cp-face { opacity: 0.5; }
/* "from Not sold" reads wrong; hidden keeps the card's height */
.cp .cp-opt input:disabled + .cp-face .cp-from { visibility: hidden; }
.cp .cp-opt input:disabled ~ .cp-tick { display: none; }
.cp .cp-tick {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--muted); background: transparent; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 800; color: transparent; pointer-events: none;
}
.cp .cp-opt input:checked ~ .cp-tick { background: var(--ink); border-color: var(--ink); color: var(--peach); transform: translate(-2px, -2px); }

.cp .cp-tiers .cp-face, .cp .cp-sizes .cp-face, .cp .cp-heights .cp-face { justify-items: center; text-align: center; }
.cp .cp-tiers .cp-face { padding: 10px 4px 8px; }
.cp .cp-sizes .cp-face { padding: 14px 6px 10px; }
.cp .cp-tiers svg, .cp .cp-sizes svg { width: 100%; max-width: 84px; height: 64px; }
/* taller than a size card's drawing: the five tier cards share one scale, and 5 tiers need the room */
.cp .cp-tiers svg { height: 82px; }
.cp .cp-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
/* two lines reserved: a long stack name wraps without changing any card's height */
.cp .cp-sizes .cp-name { min-height: 2.3em; }
.cp .cp-tiers .cp-amt, .cp .cp-heights .cp-amt, .cp .cp-sizes .cp-amt { white-space: nowrap; }
.cp .cp-tiers .cp-amt { font-size: 1.05rem; }
.cp .cp-desc { font-size: 0.88rem; color: var(--muted); padding-right: 26px; }
.cp .cp-amt { font-family: var(--display); font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
/* fixed price column: a longer price must not re-wrap the name and change the card's height */
.cp .cp-combo .cp-face { grid-template-columns: minmax(0, 1fr) 4.75rem; align-items: center; column-gap: 12px; padding-right: 40px; }
.cp .cp-words { display: grid; gap: 2px; }
.cp .cp-cost { text-align: right; }
.cp .cp-swatches { display: flex; gap: 4px; margin-top: 4px; }
.cp .cp-swatches i { width: 18px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; }

.cp .cp-send {
  background: var(--panel); color: var(--text); border: var(--edge); border-radius: var(--radius);
  padding: 18px 16px; display: grid; gap: 12px;
  scroll-margin-top: 16px;
}
.cp .cp-send .cp-step-title { margin: 0; }
.cp .cp-send p { color: var(--muted); font-size: 0.95rem; }
.cp .cp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 8px 16px; border-radius: 12px; border: 2px solid var(--peach);
  font-size: 1.05rem; text-decoration: none; cursor: pointer; text-align: center;
  background: transparent; color: var(--text);
}
.cp .cp-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
/* stacked, so the buttons are always the same size */
.cp .cp-branches { display: grid; gap: 8px; }
.cp .cp-branches .cp-btn { background: var(--peach); color: var(--ink); border-color: var(--peach); }
.cp .cp-fine { font-size: 0.85rem; color: var(--muted); }
.cp .cp-send .cp-more { color: var(--peach); display: inline-flex; align-items: center; min-height: 48px; }

/* in normal flow, so it rests above any browser toolbar instead of under it */
.cp .cp-bar {
  position: sticky; bottom: 0; z-index: 5;
  background: var(--panel); border-top: var(--edge);
  padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
}
/* the bar may wrap: with large text the button drops under the price instead of covering it */
.cp .cp-sum { display: grid; flex: 1 1 7rem; min-width: 0; }
/* room for the widest price, so the bar wraps at the same point for every choice */
.cp .cp-bar [data-out=price] { display: inline-block; min-width: 3.6em; }
/* always two lines tall, so a long choice shows in full and the bar never changes height */
.cp .cp-what {
  font-size: 0.82rem; line-height: 1.25; min-height: 2.5em; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* nowrap: whether the label fits must not depend on how long the price is, or the bar changes height */
.cp .cp-bar .cp-price { order: -1; white-space: nowrap; }
/* the label sits on its own line at every width: the price must not make the bar wrap */
.cp .cp-bar .cp-from { display: block; font-family: var(--body); font-weight: 600; }
.cp .cp-bar .cp-price { font-size: 1.45rem; }
.cp .cp-bar .cp-btn { background: var(--peach); color: var(--ink); border-color: var(--peach); flex: none; margin-left: auto; }

@media (max-width: 359px) {
  .cp .cp-preview svg { width: 96px; }
  /* a slimmer button leaves the longest choice room to fit on its two lines */
  .cp .cp-bar .cp-btn { padding: 8px 10px; font-size: 0.95rem; }
  .cp .cp-sizes .cp-amt { font-size: 1.05rem; }
}
@media (min-width: 620px) {
  .cp .cp-options.cp-combos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp .cp-combo .cp-face { grid-template-columns: minmax(0, 1fr); align-content: space-between; padding-right: 12px; }
  .cp .cp-combo .cp-cost { text-align: left; margin-top: 8px; }
  .cp .cp-combo .cp-name { padding-right: 26px; }
}
/* two columns only where the sticky card fits the screen: a phone held sideways keeps one column and the bar */
@media (min-width: 900px) and (min-height: 600px) {
  .cp .cp-page { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 36px; padding-top: 36px; }
  .cp .cp-top { grid-column: 1 / -1; }
  /* the steps and the branch card run down the left; the cake and price stay in view on the right.
     The left side is the taller one, which is what gives the sticky card room to travel. */
  .cp .cp-steps { grid-column: 1; grid-row: 2; }
  .cp .cp-send { grid-column: 1; grid-row: 3; }
  .cp .cp-preview { grid-column: 2; grid-row: 2 / span 2; align-self: start; position: sticky; top: 16px; }
  /* drawing beside the text, as on a phone: under a 5-tier drawing the price would fall off a laptop screen */
  .cp .cp-preview { padding: 18px; }
  .cp .cp-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cp, .cp * { transition: none !important; scroll-behavior: auto !important; } }
