/* ============================================================
   the-bakery — site.css  (components & layout)

   Built on top of theme.css (tokens). This is where reusable
   pieces live — starting with the top bar. Keep tokens in
   theme.css; keep component styles here.
   ============================================================ */

/* ============================================================
   Top bar — ONE modern app bar: brand + inline nav + actions
   on a single kraft-gradient bar that blends into the page
   (soft shadow, no hard line). Nav is merged in, not a separate
   tab strip; it drops to a scrollable row on small screens.
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: clamp(0.6rem, 1.6vw, 1rem) clamp(0.7rem, 3vw, 1.5rem) 0;
}
.topbar__bar {
  max-width: var(--container-max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--grad-kraft);
  border: none;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 200, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 4px 0 var(--edge-kraft),
    0 16px 30px -14px rgba(28, 20, 12, 0.6);
  padding: 0.5rem 0.65rem 0.5rem 0.9rem;
}

/* brand: light app-icon badge (pops on the dark bar) + name/slogan */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__badge {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--grad-paper); border: none;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #C9B896, 0 6px 10px -6px rgba(0, 0, 0, 0.5);
}
.brand__mark { width: 30px; height: 30px; display: block; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.5rem);
  line-height: 1; letter-spacing: -0.01em; color: var(--paper);
}
.brand__slogan {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(247, 241, 230, 0.72); margin-top: 5px;
}

/* inline nav — part of the bar, understated active highlight */
.mainnav {
  display: flex; gap: 0.15rem; margin-inline: auto; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mainnav::-webkit-scrollbar { display: none; }
.navlink {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  color: rgba(247, 241, 230, 0.66); text-decoration: none;
  padding: 0.5rem 0.9rem; border-radius: 10px;
  transition: color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.navlink:hover { color: var(--paper); background: rgba(247, 241, 230, 0.09); }
.navlink:active { transform: scale(0.96); }
.navlink.is-active { color: var(--paper); background: rgba(247, 241, 230, 0.15); }

/* actions */
.header-actions { display: inline-flex; align-items: center; gap: 0.9rem; }
.ticket-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--grad-oxblood); border: none;
  border-radius: 13px; padding: 0.55rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 0 var(--edge-ox), 0 8px 14px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), filter 0.16s ease;
}
.ticket-btn:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 5px 0 var(--edge-ox), 0 12px 18px -8px rgba(0, 0, 0, 0.5);
}
.ticket-btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 var(--edge-ox), 0 2px 6px -4px rgba(0, 0, 0, 0.4);
}
.ticket-btn__ico { width: 1.05rem; height: 1.05rem; flex: none; }
.ticket-btn__count {
  display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem;
  padding: 0 0.35rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.24); color: #fff; font-size: 0.72rem;
}

/* narrow: inline nav hides — the hamburger drawer takes over */
@media (max-width: 60rem) {
  .mainnav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 30rem) {
  .brand__slogan { display: none; }
  .ticket-btn__label { display: none; }
}

/* ---- page body + temporary placeholder panels --------------- */
.pagepad {
  padding-top: clamp(1.2rem, 3vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero { text-align: center; max-width: 44rem; margin-inline: auto; }
.hero .h-hero { color: var(--ink); }
.hero .lede { color: var(--ink-soft); max-width: 34rem; margin: var(--space-5) auto 0; }

.holder { max-width: 44rem; }
.holder .lede { color: var(--ink-soft); max-width: 40rem; margin-top: var(--space-4); }

.rule {
  width: 3rem; height: 2px; border: 0;
  background: var(--border); margin: var(--space-5) auto;
}
.status {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-6);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); color: var(--sage);
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sage); }

/* ============================================================
   Catalogue — product cards, detail page, options
   (mock Cakes page; carries over to the real catalogue)
   ============================================================ */

/* primary CTA — a pressable oxblood KEY (it physically depresses) */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 14px;
  background: var(--grad-oxblood);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.65rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 5px 0 var(--edge-ox), 0 12px 22px -10px rgba(94, 34, 34, 0.55);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), filter 0.16s ease;
}
.btn-primary:hover {
  filter: brightness(1.06); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 7px 0 var(--edge-ox), 0 18px 28px -10px rgba(94, 34, 34, 0.55);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 0 var(--edge-ox), 0 4px 8px -6px rgba(94, 34, 34, 0.5);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* GF (and other) badge */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 3px 6px;
  background: var(--sage);
  color: #fff;
}

/* image slot — locked 4/3 so real photos swap in later with zero reflow;
   the line-icon stub sits centred on the paper-alt surface */
.imgstub {
  display: grid;
  place-items: center;
  aspect-ratio: var(--img-ratio);
  background: linear-gradient(145deg, #F3EAD6 0%, #E4D7BC 100%);
  border: 1px solid rgba(220, 207, 182, 0.6);
  border-radius: 12px;
  color: var(--kraft);
  overflow: hidden;
}
.imgstub svg { width: 34%; height: auto; opacity: 0.55; }
.imgstub--lg {
  border-radius: 22px; box-shadow: var(--shadow-md);
  background: linear-gradient(155deg, #F1E8D5 0%, #DBC9A4 100%);
  aspect-ratio: 4 / 3;
}
.imgstub--lg svg { width: 34%; opacity: 0.5; }

/* MOCK product photo (temporary design-review layer): a real photo fills the
   locked slot and object-fit:covers it, so cards + detail get zero reflow. The
   slot containers (.ccard__media / .imgstub / .chooseitem__media) already
   clip with overflow:hidden, so the photo inherits their rounded corners. */
.mediafill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ccard__media .mediafill {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ccard:hover .ccard__media .mediafill { transform: scale(1.06); }

/* intro block above a grid */
.catalog__intro { max-width: 44rem; margin-bottom: var(--space-6); }
.catalog__intro .lede { color: var(--ink-soft); margin-top: var(--space-3); }

/* product grid: 2-up mobile, 3-up desktop */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 48rem) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}

/* product card — flat, bordered, no shadow (paper feel) */
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--grad-paper);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--mat-paper);
  transition: transform 0.18s var(--spring);
}
.pcard:hover { transform: translateY(-4px); }
.pcard__media { position: relative; display: block; }
.pcard__media .badge { position: absolute; top: 0.55rem; left: 0.55rem; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding-top: var(--space-3); }
.pcard__title { color: var(--ink); }
.pcard__blurb {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
}
.pcard__cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--oxblood);
}

/* product detail */
.pdetail__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: var(--space-5);
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  color: var(--kraft); text-decoration: none;
  background: var(--slab-paper); border: none;
  border-radius: var(--radius-pill); padding: 0.55rem 1.05rem;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--edge-paper), 0 8px 14px -10px rgba(43, 33, 25, 0.35);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring);
}
.pdetail__back:hover { transform: translateX(-2px); }
.pdetail__back:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 var(--edge-paper);
}
.pdetail__grid { display: grid; gap: var(--space-6); }
@media (min-width: 44rem) {
  .pdetail__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.pdetail__media { position: relative; }
.pdetail__media .badge { position: absolute; top: 0.9rem; left: 0.9rem; box-shadow: var(--shadow-sm); }
@media (min-width: 44rem) { .pdetail__media { position: sticky; top: 7rem; } }
.pdetail__info {
  background: var(--grad-paper); border: none;
  border-radius: 22px; box-shadow: var(--mat-paper);
  padding: clamp(1.4rem, 3vw, 2rem);
}
/* build-your-own box is a single-column pdetail — give it a card too */
.pdetail.builder {
  max-width: 46rem;
  background: var(--grad-paper); border: none;
  border-radius: 22px; box-shadow: var(--mat-paper);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.pdetail__name { color: var(--ink); margin-top: 0.2rem; }
.pdetail__desc { color: var(--ink-soft); margin: var(--space-4) 0; }

/* option groups (size, quantity) */
.opt { margin: var(--space-5) 0; }
.opt__label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}
.sizes { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* choice pill — a small paper KEY; the selected one sits pressed DOWN */
.pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink);
  border: none;
  background: var(--slab-paper);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--edge-paper), 0 6px 10px -8px rgba(43, 33, 25, 0.3);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring),
    background 0.16s ease, color 0.16s ease;
}
.pill:hover { filter: brightness(1.02); }
.pill:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 0 0 var(--edge-paper); }
.pill__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.pill.is-active {
  background: var(--oxblood-tint);
  color: var(--oxblood-dark);
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(122, 46, 46, 0.28), 0 1px 0 var(--edge-paper);
}
.pill.is-active .pill__sub { color: var(--oxblood-dark); }

/* quantity stepper — a pressed-in tray with reactive buttons */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  overflow: hidden;
  box-shadow: inset 0 2px 3px rgba(43, 33, 25, 0.07);
}
.qty__btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--kraft);
  cursor: pointer;
  transition: background 0.14s ease, transform 0.14s var(--spring);
}
.qty__btn:hover { background: var(--paper-alt); }
.qty__val {
  min-width: 2.2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.pdetail__buy {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}
.price--lg { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }

/* unit suffix on a price (e.g. "£3.00 each") */
.priceunit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 2px;
}
.unitnote {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* preset-box contents list */
.contents {
  margin: 0 0 var(--space-2);
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.contents li { margin-bottom: 3px; }

/* subhead above a sub-grid (e.g. "Ready-made boxes") */
.catalog__subhead { display: block; margin-bottom: var(--space-3); }

/* ---- feature card (Build your own) -------------------------- */
.feature {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--card);
  border: none;
  border-left: 4px solid var(--mustard);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--mat-paper);
  transition: transform 0.18s var(--spring);
}
.feature:hover { transform: translateY(-3px); }
.feature__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  color: var(--kraft);
}
.feature__icon svg { width: 60%; height: auto; }
.feature__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.feature__text .h-card-title { color: var(--ink); }
.feature__sub { font-size: 0.85rem; color: var(--ink-soft); }
.feature__cta {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--oxblood);
}
@media (max-width: 30rem) { .feature__cta { display: none; } }

/* ---- build-your-own box filler ------------------------------ */
.builder__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-5);
}
.builder__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
}
.builder__count strong { color: var(--oxblood); }
.builder__meter {
  flex: 1;
  height: 8px;
  background: var(--paper-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.builder__meterfill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mustard);
  transition: width 0.2s ease;
}
.chooser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 40rem) { .chooser { grid-template-columns: repeat(3, 1fr); } }
.chooseitem {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  background: var(--card);
  border: none;
  border-radius: 18px;
  box-shadow: var(--mat-paper);
  overflow: hidden;
  transition: transform 0.18s var(--spring);
}
.chooseitem:hover { transform: translateY(-3px); }
.chooseitem__media {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(155deg, #F1E8D5 0%, #DBC9A4 100%); color: var(--kraft);
}
.chooseitem__media svg { width: 42%; height: auto; opacity: 0.5; }
.chooseitem__name {
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  text-align: center; padding: 0 0.7rem; line-height: 1.25;
}
.chooseitem .qty { align-self: center; }
.imgstub--sm { border-radius: 8px; }
.imgstub--sm svg { width: 58%; }
.qty--sm .qty__btn { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; }
.qty--sm .qty__val { min-width: 1.7rem; }
.qty__btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============================================================
   Enquiry page (Weddings & Custom) — form styling
   ============================================================ */
.enq { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) {
  .enq { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.enq__aside {
  background: var(--slab-kraft); color: var(--paper);
  border-radius: 22px; box-shadow: var(--mat-kraft);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.enq__aside .eyebrow { color: var(--mustard); }
.enq__aside .h-section { color: var(--paper); }
.enq__aside .lede { color: rgba(247, 241, 230, 0.82); margin-top: var(--space-3); }
.enq .form {
  max-width: none;
  background: var(--grad-paper); border: none;
  border-radius: 20px; box-shadow: var(--mat-paper);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.ticks { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.ticks li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: var(--space-2);
  color: rgba(247, 241, 230, 0.9);
  font-size: 0.9rem;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mustard);
  font-weight: 700;
}

.form { max-width: 42rem; }
.form__top-error {
  margin: 0 0 var(--space-4);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--oxblood-tint);
  color: var(--oxblood-dark);
  font-size: 0.85rem;
}
.formrow { display: grid; gap: var(--space-4); }
@media (min-width: 34rem) { .formrow--2 { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: var(--space-4); }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}
.field__label .req { color: var(--oxblood); }
.field__hint { font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  /* pressed INTO the paper (fields are debossed, buttons are embossed) */
  box-shadow: inset 0 2px 3px rgba(43, 33, 25, 0.07);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--kraft);
  box-shadow: inset 0 2px 3px rgba(43, 33, 25, 0.07), 0 0 0 3px rgba(192, 138, 46, 0.22);
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
/* a bold brand caret so it's always obvious where you're typing */
.input, .textarea { caret-color: var(--oxblood); cursor: text; }

.field--error .input,
.field--error .select,
.field--error .textarea { border-color: var(--oxblood); }
.field__err {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--oxblood);
}

/* ============================================================
   Admin CMS
   ============================================================ */
.adminbar { background: var(--kraft); border-bottom: 1px solid var(--kraft-dark); }
.adminbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-3); flex-wrap: wrap;
}
.adminbar__brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.adminbar__brand span {
  font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--mustard); vertical-align: middle; margin-left: 4px;
}
.adminnav { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.adminnav a {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  color: rgba(247, 241, 230, 0.75); text-decoration: none;
}
.adminnav a:hover, .adminnav a.is-active { color: var(--paper); }
.linkbtn {
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  color: var(--mustard); padding: 0;
}
.adminmain { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.loginmain { min-height: 80vh; display: grid; place-items: center; }
.loginwrap { width: 100%; max-width: 22rem; text-align: center; }
.loginwrap .form { text-align: left; margin-top: var(--space-4); }

.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap;
}
.admin-subhead { margin-top: var(--space-6); }

/* dashboard */
.dashgrid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.dashcard {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-4); background: var(--card);
  border: none; border-radius: var(--radius-md);
  box-shadow: var(--mat-paper);
  text-decoration: none; color: inherit; transition: transform 0.16s var(--spring);
}
.dashcard:hover { transform: translateY(-2px); }
.dashcard__num { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--kraft); }
.dashcard__label { font-size: 0.85rem; color: var(--ink-soft); }
.dashcard__sub {
  margin-top: 4px; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--oxblood); font-weight: 700;
}

/* admin tables */
.atable { width: 100%; border-collapse: collapse; }
.atable th {
  text-align: left; font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border);
}
.atable td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.atable__slug {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft);
}
.atable__order { display: flex; gap: 4px; }
.atable__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.atable__empty { color: var(--ink-soft); text-align: center; padding: var(--space-5); }
.atable--enq .enq-msg {
  max-width: 22rem; font-size: 0.85rem; color: var(--ink-soft);
}

.iconbtn {
  width: 1.7rem; height: 1.7rem; border: none;
  background: var(--slab-paper); border-radius: var(--radius-sm); cursor: pointer;
  color: var(--kraft); font-size: 0.8rem; line-height: 1;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--edge-paper);
  transition: transform 0.14s var(--spring), box-shadow 0.14s var(--spring);
}
.iconbtn:hover { filter: brightness(1.03); }
.iconbtn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 0 0 var(--edge-paper); }

.btn-small {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.75rem; color: var(--ink); text-decoration: none;
  border: none; background: var(--slab-paper);
  border-radius: var(--radius-pill); padding: 0.35rem 0.75rem; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--edge-paper);
  transition: transform 0.14s var(--spring), box-shadow 0.14s var(--spring);
}
.btn-small:hover { filter: brightness(1.03); }
.btn-small:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 0 0 var(--edge-paper); }
.btn-small--danger { color: var(--oxblood); border-color: var(--oxblood-tint); }
.btn-small--danger:hover { border-color: var(--oxblood); }

.tag {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 5px;
}
.tag--live { background: var(--sage); color: #fff; }
.tag--hidden { background: var(--paper-alt); color: var(--ink-soft); }

/* size rows + inline forms */
.sizerow { display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: var(--space-2); margin-bottom: var(--space-2); }
.checkline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.inlineform { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.input--sm { width: auto; max-width: 6rem; display: inline-block; padding: 0.4rem 0.5rem; }
.select--sm { width: auto; padding: 0.35rem 0.5rem; font-size: 0.8rem; }

@media (max-width: 40rem) {
  .sizerow { grid-template-columns: 1fr 1fr; }
  .atable--enq .enq-msg { max-width: 12rem; }
}

/* temporary 'this is mock data' note */
.mocknote {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* add-to-ticket confirmation toast */
.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: var(--kraft-dark);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* the small fine-print line under a product's buy controls */
.finenote {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* header ticket badge dims when the cart is empty */
.ticket-btn__count.is-empty {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   The order ticket — cart, checkout summary & confirmation.
   Sharp 2px corners, ruled paper, mono numbers, dashed dividers
   (the "Loaf & Co." signature; everything else stays pill-round).
   ============================================================ */
.cartwrap { max-width: 46rem; }
.cartwrap--empty { max-width: 34rem; margin-inline: auto; text-align: center; }
.cartwrap--empty .lede { color: var(--ink-soft); margin: var(--space-4) 0 var(--space-5); }

.ticket {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 3px 0 var(--edge-paper), var(--shadow-lg);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  margin-top: var(--space-5);
}
/* perforated receipt top edge — the signature */
.ticket::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -2px; height: 9px;
  background-image: radial-gradient(circle at 7px -1px, transparent 5px, var(--paper) 5.5px);
  background-size: 14px 9px;
}
.ticket__head {
  display: flex; flex-direction: column; gap: 2px; text-align: center;
  padding-bottom: var(--space-3); margin-bottom: var(--space-2);
  border-bottom: 2px dashed var(--border);
}
.ticket__brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink);
}
.ticket__sub {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-soft);
}
.ticket__lines { display: flex; flex-direction: column; }
.ticket__line {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px dashed var(--border);
}
.ticket__line--ro { grid-template-columns: 1fr auto; }
.ticket__name {
  display: flex; flex-direction: column; gap: 2px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.ticket__detail, .ticket__unit {
  font-family: var(--font-mono); font-weight: 400; color: var(--ink-soft);
}
.ticket__detail { font-size: 0.72rem; }
.ticket__unit { font-size: 0.7rem; }
.ticket__qty { font-family: var(--font-mono); color: var(--ink-soft); font-weight: 400; }
.ticket__amt {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-family: var(--font-mono); font-weight: 700; color: var(--kraft); white-space: nowrap;
}
.ticket__amt .linkbtn { font-size: 0.66rem; color: var(--ink-soft); font-weight: 600; }
.ticket__amt .linkbtn:hover { color: var(--oxblood); }
.ticket__line--gone .ticket__name { color: var(--ink-soft); }
.ticket__flag {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 400; color: var(--oxblood);
}

/* inline +/- stepper (server-backed, one click per press) */
.stepper {
  display: inline-flex; align-items: center; background: var(--card);
  border: 1.5px solid var(--border); border-radius: var(--radius-pill); overflow: hidden;
  box-shadow: inset 0 2px 3px rgba(43, 33, 25, 0.07);
}
.stepper__btn {
  width: 2rem; height: 2rem; border: 0; background: transparent;
  color: var(--kraft); font-size: 1rem; line-height: 1; cursor: pointer;
  transition: background 0.14s ease, transform 0.14s var(--spring);
}
.stepper__btn:hover { background: var(--paper-alt); }
.stepper__val {
  min-width: 1.9rem; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
}

.ticket__foot {
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 2px dashed var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.ticket__row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink);
}
.ticket__row span:last-child { font-weight: 700; }
.ticket__row--muted, .ticket__row--muted span:last-child { color: var(--ink-soft); font-weight: 400; }
.ticket__row--total {
  font-size: 1.05rem; border-top: 1px solid var(--border);
  padding-top: 8px; margin-top: 2px;
}
.ticket__warn {
  margin-top: var(--space-3); padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--oxblood-tint); color: var(--oxblood-dark); font-size: 0.8rem;
}
.cart__actions { margin-top: var(--space-5); display: flex; }
.cart__actions .btn-primary { flex: 1; text-align: center; padding-block: 1rem; font-size: 1rem; }
.cart__actions .btn-primary.is-disabled { flex: 1; text-align: center; }
.btn-primary.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---- checkout ---- */
.checkout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 52rem) { .checkout { grid-template-columns: 1.3fr 0.7fr; } }
.checkout__form .form { max-width: none; }
.checkout__window {
  margin: var(--space-4) 0 var(--space-5); padding: var(--space-4) var(--space-5);
  background: var(--paper-alt); border-left: 4px solid var(--mustard);
  border-radius: var(--radius-md);
}
.checkout__window .eyebrow { color: var(--kraft); }
.checkout__window p { margin: 4px 0 0; font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.checkout__window strong { color: var(--kraft); }
.checkout__legend {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink);
  margin: var(--space-6) 0 var(--space-3);
}
.checkout__legend:first-of-type { margin-top: var(--space-4); }

.choices { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.choice {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--card);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.choice:hover { border-color: var(--kraft); box-shadow: var(--shadow-sm); }
.choice:active { transform: scale(0.995); }
.choice input { margin-top: 0.28rem; accent-color: var(--oxblood); flex: none; }
.choice__body { display: flex; flex-direction: column; gap: 2px; }
.choice__t { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.choice__sub { font-size: 0.82rem; color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--oxblood); background: var(--oxblood-tint); }
.choice--disabled { opacity: 0.55; cursor: not-allowed; }
.choice--disabled:hover { border-color: var(--border); }
.soon {
  font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--mustard); border: 1px solid var(--mustard);
  border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.deliverfields {
  display: none; margin: 0 0 var(--space-4); padding: var(--space-4);
  background: var(--paper-alt); border-radius: var(--radius-md);
}
.deliverfields.is-open { display: block; }
.input--pc { max-width: 12rem; text-transform: uppercase; }
.textarea--sm { min-height: 4.5rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: var(--space-5); }
.checkout__notice {
  margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4);
  background: var(--paper-alt); border-radius: var(--radius-sm);
  font-size: 0.82rem; color: var(--ink-soft);
}

.checkout__summary .ticket { margin-top: 0; }
.sumlines { display: flex; flex-direction: column; gap: var(--space-2); }
.sumline {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2);
  align-items: baseline; font-size: 0.88rem;
}
.sumline__qty { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.sumline__name { color: var(--ink); }
.sumline__detail { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.sumline__amt { font-family: var(--font-mono); font-weight: 700; color: var(--kraft); white-space: nowrap; }
.sumfoot {
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 2px dashed var(--border); display: flex; flex-direction: column; gap: 5px;
}
.sumfoot__row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.85rem; }
.sumfoot__row span:last-child { font-weight: 700; color: var(--kraft); }
.sumfoot__row--muted span:last-child { font-weight: 400; color: var(--ink-soft); }
@media (min-width: 52rem) { .checkout__summary { position: sticky; top: 6.5rem; } }

/* ---- order confirmation ---- */
.confirm { max-width: 40rem; margin-inline: auto; }
.confirm__head { text-align: center; margin-bottom: var(--space-5); }
.confirm__tick {
  width: 3rem; height: 3rem; margin: 0 auto var(--space-3); display: grid; place-items: center;
  border-radius: 50%; background: var(--sage); color: #fff; font-size: 1.4rem;
}
.confirm__head .lede { color: var(--ink-soft); margin-top: var(--space-3); }
.orderref { font-family: var(--font-mono); }
.ordermeta {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 2px dashed var(--border); display: flex; flex-direction: column; gap: var(--space-2);
}
.ordermeta__row { display: grid; grid-template-columns: 8rem 1fr; gap: var(--space-3); font-size: 0.88rem; }
.ordermeta__k {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft);
}
.ordermeta__v { color: var(--ink); }
.confirm__actions { text-align: center; margin-top: var(--space-5); }

/* ---- admin: orders + settings ---- */
.ostat {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 7px; border-radius: 5px;
  background: var(--paper-alt); color: var(--ink-soft);
}
.ostat--new { background: var(--oxblood-tint); color: var(--oxblood-dark); }
.ostat--confirmed { background: #E7EDDD; color: var(--sage); }
.ostat--ready { background: #FBEFD6; color: var(--mustard); }
.ostat--completed { background: var(--sage); color: #fff; }
.ostat--cancelled { background: var(--paper-alt); color: var(--ink-soft); }
.ogrid { display: grid; gap: var(--space-5); }
@media (min-width: 46rem) { .ogrid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.ocard {
  background: var(--card); border: none;
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: var(--mat-paper);
}
.ocard .h-card-title { margin-bottom: var(--space-3); }
.ocard .ticket__foot { border-top-color: var(--border); }
.ometa { display: flex; flex-direction: column; gap: var(--space-2); }
.ometa__row { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-2); font-size: 0.88rem; }
.ometa__k {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-soft);
}
.form__saved {
  margin: 0 0 var(--space-4); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
  background: #E7EDDD; color: var(--sage); font-size: 0.85rem; font-weight: 600;
}

/* full-width muted caption under the summary subtotal (delivery estimate) */
.sumfoot__note {
  margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--ink-soft); line-height: 1.45;
}

/* fulfilment-day pickers in admin settings */
.daypicks { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 var(--space-5); }
.daypick {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); background: var(--card);
  font-size: 0.82rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.daypick input { accent-color: var(--oxblood); }
.daypick:active { transform: scale(0.97); }
.daypick:has(input:checked) {
  border-color: var(--oxblood); background: var(--oxblood-tint); color: var(--oxblood-dark);
}

/* ============================================================
   Customer accounts — header link, auth pages, account area
   ============================================================ */

/* header: account link sits beside the ticket button */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.acct-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.acct-link:hover { color: var(--paper); }
.acct-link--in::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--sage);            /* a small "you're signed in" dot */
  vertical-align: middle;
}

/* ---- auth pages (sign up / sign in) ---- */
.authwrap { max-width: 30rem; margin-inline: auto; }
.authwrap__head { text-align: center; margin-bottom: var(--space-5); }
.authwrap__head .lede {
  color: var(--ink-soft); margin-top: var(--space-3); font-size: 0.95rem;
}
.authwrap .form {
  max-width: none;
  background: var(--grad-paper); border-radius: 20px;
  box-shadow: var(--mat-paper);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.authalt {
  margin-top: var(--space-5); text-align: center;
  font-size: 0.88rem; color: var(--ink-soft);
}
.authalt a { color: var(--oxblood); font-weight: 600; text-decoration: none; }
.authalt a:hover { text-decoration: underline; }

/* ---- account area ---- */
.account { max-width: 48rem; }
.account__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4);
}
.account__head .h-section { margin-top: 2px; }
.account__logout { flex: none; }
.account__body { margin-top: var(--space-5); }
.account__body .form {
  max-width: none;
  background: var(--grad-paper); border: none;
  border-radius: 20px; box-shadow: var(--mat-paper);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.account__body .form .checkout__legend:first-child { margin-top: 0; }
.account__hint {
  margin: -0.25rem 0 var(--space-4); font-size: 0.85rem; color: var(--ink-soft);
}
.account__empty {
  text-align: center; padding: var(--space-6) var(--space-4);
  border: 1px dashed var(--border); border-radius: var(--radius-md);
}
.account__empty p { color: var(--ink-soft); margin: 0 0 var(--space-4); }

/* profile tabs — a modern segmented control (real routes) */
.acctabs {
  display: inline-flex; gap: 0.25rem; padding: 0.3rem; max-width: 100%;
  background: var(--paper-alt); border: none;
  border-radius: var(--radius-pill);
  /* a pressed-in TRAY that the active tab-key sits raised inside */
  box-shadow: inset 0 2px 4px rgba(43, 33, 25, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.6);
  overflow-x: auto; scrollbar-width: none;
}
.acctabs::-webkit-scrollbar { display: none; }
.acctab {
  flex: 0 0 auto; white-space: nowrap;
  padding: 0.5rem 1.15rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
.acctab:hover { color: var(--ink); }
.acctab:active { transform: scale(0.96); }
.acctab.is-active {
  background: var(--slab-paper); color: var(--oxblood);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--edge-paper), 0 4px 8px -4px rgba(43, 33, 25, 0.3);
}

/* order history rows (with a re-order action) */
.orderlist { display: flex; flex-direction: column; gap: var(--space-2); }
.orderrow {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: var(--space-3) var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--card); border: none;
  border-radius: var(--radius-md); box-shadow: var(--mat-paper);
}
.orderrow:hover { transform: translateY(-2px); }
.orderrow__main {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  text-decoration: none; color: inherit;
}
.orderrow__ref {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--ink);
}
.orderrow__main:hover .orderrow__ref { color: var(--oxblood); }
.orderrow__meta { font-size: 0.8rem; color: var(--ink-soft); }
.orderrow__total {
  font-family: var(--font-mono); font-weight: 700; color: var(--kraft); white-space: nowrap;
}
.orderrow__reorder { flex: none; }
@media (max-width: 34rem) {
  .orderrow { display: flex; flex-wrap: wrap; align-items: center; }
  .orderrow__main { flex: 1 1 100%; margin-bottom: var(--space-2); }
  .orderrow__total { margin-left: auto; }
}

/* warning variant of the saved-note strip */
.form__saved--warn { background: #FBEFD6; color: var(--mustard); }

/* ============================================================
   Homepage — bold / contemporary (direction C)
   Dark blocky hero → stat strip → colour-blocked bento → CTA.
   Namespaced .hm-* so it can't disturb other pages.
   ============================================================ */
.hm { max-width: 76rem; margin-inline: auto; }
.hm-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--oxblood);
}

/* hero — a physical kraft SLAB sitting on the counter */
.hm-hero {
  position: relative; overflow: hidden;
  background: var(--slab-kraft); color: var(--paper);
  border-radius: 28px; margin-top: 0;
  padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3.2rem, 6vw, 4.6rem);
  box-shadow:
    inset 0 2px 0 rgba(255, 235, 200, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.4),
    0 6px 0 var(--edge-kraft),
    0 30px 60px -28px rgba(28, 20, 12, 0.65);
}
/* decorative wheat, tucked bottom-right INSIDE the slab */
.hm-hero__deco {
  position: absolute; right: clamp(0.5rem, 4vw, 3.4rem); bottom: 12px;
  width: clamp(110px, 16vw, 190px); height: auto; opacity: 0.45;
  pointer-events: none; z-index: 0;
}
@media (max-width: 560px) { .hm-hero__deco { opacity: 0.25; right: -12px; width: 110px; } }
.hm-hero__in { position: relative; z-index: 2; max-width: 24ch; }
.hm-hero .hm-eyebrow { color: var(--mustard); }
.hm-h1 {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02;
  letter-spacing: -0.01em; margin: var(--space-3) 0 0; color: var(--paper);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.hm-h1 em { font-style: italic; color: #E0B45C; }
/* the "100% gluten free" sticker — stuck on the slab, slightly crooked */
.hm-sticker {
  position: absolute; top: 1.2rem; right: clamp(1.2rem, 5vw, 2.4rem);
  width: 88px; height: 88px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; text-align: center; transform: rotate(5deg);
  background: radial-gradient(circle at 35% 30%, #D29A3E, #B07E28);
  color: var(--kraft-dark); font: 700 0.72rem/1.15 var(--font-body);
  box-shadow: 0 0 0 5px var(--paper), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 10px 18px -8px rgba(43, 33, 25, 0.5);
}
.hm-sticker b { display: block; font: 700 1.4rem/1 var(--font-display); font-variation-settings: 'SOFT' 100; }
@media (max-width: 560px) {
  .hm-sticker { width: 68px; height: 68px; top: 1rem; right: 1rem; font-size: 0.6rem; }
  .hm-sticker b { font-size: 1.05rem; }
}
.hm-lede {
  color: rgba(247, 241, 230, 0.82); font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-top: var(--space-4); max-width: 40ch;
}
.hm-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

/* the order-cutoff chip — the ONE deadline, impossible to miss */
.hm-cutoff {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: var(--space-4);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--kraft-dark); background: var(--slab-mus);
  border-radius: 12px; padding: 0.6rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.45), 0 3px 0 var(--edge-mus), 0 8px 14px -8px rgba(176, 126, 40, 0.5);
}
.hm-cutoff svg { width: 1rem; height: 1rem; flex: none; }
.hm-cutoff--sm { margin-top: 0; font-size: 0.7rem; padding: 0.45rem 0.75rem; white-space: nowrap; }
.hm-cutoff--sm svg { width: 0.85rem; height: 0.85rem; }

/* large + paper-key secondary buttons */
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; border-radius: 16px; }
.btn-hero-out {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 1rem; padding: 0.95rem 1.9rem; border-radius: 16px;
  background: var(--slab-paper); color: var(--kraft);
  border: none; text-decoration: none; cursor: pointer; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 5px 0 var(--edge-paper), 0 12px 22px -12px rgba(43, 33, 25, 0.35);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), filter 0.16s ease;
}
.btn-hero-out:hover {
  filter: brightness(1.03); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 0 var(--edge-paper), 0 18px 28px -12px rgba(43, 33, 25, 0.35);
}
.btn-hero-out:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 var(--edge-paper), 0 4px 8px -8px rgba(43, 33, 25, 0.3);
}

/* stat cards — they sit ON the hero's bottom edge (boxes on a counter) */
.hm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin: -1.3rem 0 var(--space-5);
  position: relative; z-index: 6;
  padding-inline: clamp(0.5rem, 2.5vw, 1.8rem);
}
@media (max-width: 680px) { .hm-stats { grid-template-columns: repeat(2, 1fr); } }
.hm-stat {
  background: var(--slab-paper); border: none; text-align: center;
  border-radius: 16px; padding: 1rem 1.15rem;
  box-shadow: var(--mat-paper);
  transition: transform 0.2s var(--spring);
}
.hm-stat:hover { transform: translateY(-3px); }
.hm-stat b {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem;
  display: block; line-height: 1.3; color: var(--kraft);
}
.hm-stat span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* section head */
.hm-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--space-4); margin: var(--space-7) 0 var(--space-4);
}
.hm-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -0.02em; color: var(--ink);
}

/* bento grid */
.hm-bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(8.5rem, auto); grid-auto-flow: dense; gap: var(--space-3);
}
@media (max-width: 860px) { .hm-bento { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; } }
@media (max-width: 460px) { .hm-bento { grid-template-columns: 1fr; } }
.hm-tile {
  border: none; border-radius: 22px; padding: 1.25rem 1.3rem;
  background: var(--slab-paper); box-shadow: var(--mat-paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.55rem;
  text-decoration: none; color: inherit;
  transition: transform 0.22s var(--spring);
}
.hm-tile:hover { transform: translateY(-4px); }
.hm-tile:active { transform: translateY(2px) scale(0.985); }
.hm-tile__k {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; display: block; margin-bottom: 0.35rem;
}
.hm-tile__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.08; }
.hm-tile__blurb { font-size: 0.85rem; opacity: 0.85; line-height: 1.4; }
.hm-tile__price { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; }
.hm-tile__price--big { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
/* mosaic spans — varied sizes for a less "grid of squares" feel */
.hm-tile { grid-column: span 2; }
.hm-tile--feat { grid-column: span 3; grid-row: span 2; }
.hm-tile--tall { grid-column: span 2; grid-row: span 2; }
.hm-tile--wide { grid-column: span 4; }
.hm-tile--w3   { grid-column: span 3; }
.hm-tile--w6   { grid-column: span 6; }
/* full-width row banner (build-your-own + CTA): content left, price/btn right */
.hm-tile--band { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); }
.hm-tile--band .hm-tile__price:not(.hm-tile__price--big) { align-self: center; margin: 0; }
/* the closing-CTA banner tile (lives at the end of the mosaic) */
.hm-tile--cta { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); }
.hm-tile__btn {
  flex: none; display: inline-block;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  color: var(--kraft); background: var(--slab-paper);
  border-radius: 14px; padding: 0.8rem 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 0 var(--edge-paper), 0 10px 18px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring);
}
.hm-tile--cta:active { transform: none; }
.hm-tile--cta:hover .hm-tile__btn {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 0 var(--edge-paper), 0 14px 22px -10px rgba(0, 0, 0, 0.5);
}
.hm-tile--cta:active .hm-tile__btn {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 var(--edge-paper);
}
@media (max-width: 860px) {
  .hm-tile, .hm-tile--feat, .hm-tile--tall, .hm-tile--wide, .hm-tile--w3, .hm-tile--w6 {
    grid-column: span 1; grid-row: span 1;
  }
  .hm-tile--feat, .hm-tile--w6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hm-tile--cta, .hm-tile--band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .hm-tile--feat, .hm-tile--w6 { grid-column: span 1; }
}
.hm-dark { background: var(--slab-kraft); color: var(--paper); box-shadow: var(--mat-kraft); }
.hm-dark .hm-tile__k { color: var(--mustard); }
.hm-dark .hm-tile__price--big { color: #E0B45C; }
.hm-ox { background: var(--slab-ox); color: #fff; box-shadow: var(--mat-ox); }
.hm-ox .hm-tile__k { color: rgba(255, 255, 255, 0.82); }
.hm-mus { background: var(--slab-mus); color: var(--kraft-dark); box-shadow: var(--mat-mus); }
.hm-mus .hm-tile__k { color: var(--kraft-dark); }
.hm-pap { background: var(--slab-paper); }
.hm-pap .hm-tile__k { color: var(--sage); }
/* EVERY tile's price (except the big feature price) is the same extruded
   paper swing-tag — consistent across paper, oxblood and mustard tiles. */
.hm-tile__price:not(.hm-tile__price--big) {
  align-self: flex-start; padding: 0.4rem 0.65rem; border-radius: 9px;
  font-size: 0.85rem; color: var(--kraft); transform: rotate(-1.5deg);
  background: linear-gradient(180deg, #FFFDF8, #F0E6D2);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #CDBD9E, 0 6px 10px -6px rgba(43, 33, 25, 0.3);
}

/* ---- bento tiles WITH a photo (feature slideshow + product under-tiles) ----
   The photo fills the tile behind the text; a per-colour tint keeps each tile's
   identity (oxblood / kraft / mustard) while the bake shows through, and holds
   the white text readable. Content is raised above the photo layer. */
.hm-tile--photo { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.hm-tile--photo > *:not(.hm-tile__media) { position: relative; z-index: 2; }
.hm-tile__media { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; }
.hm-tile__media .mediafill {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hm-tile__tint { position: absolute; inset: 0; }
.hm-tile--photo.hm-dark .hm-tile__tint { background: linear-gradient(150deg, rgba(46, 33, 22, 0.28) 0%, rgba(28, 19, 10, 0.82) 78%); }
.hm-tile--photo.hm-ox   .hm-tile__tint { background: linear-gradient(150deg, rgba(122, 46, 46, 0.34) 0%, rgba(90, 32, 32, 0.88) 80%); }
.hm-tile--photo.hm-pap  .hm-tile__tint { background: linear-gradient(150deg, rgba(74, 56, 38, 0.26) 0%, rgba(43, 33, 25, 0.86) 80%); }
.hm-tile--photo.hm-mus  .hm-tile__tint { background: linear-gradient(150deg, rgba(160, 110, 30, 0.30) 0%, rgba(116, 78, 20, 0.88) 80%); }
/* white text on photo tiles, overriding the per-colour kicker/text colours */
.hm-tile--photo .hm-tile__name,
.hm-tile--photo .hm-tile__blurb { color: #fff; }
.hm-tile--photo .hm-tile__k { color: rgba(255, 255, 255, 0.85); }
.hm-tile--photo .hm-tile__blurb { opacity: 0.95; }

/* feature slideshow: stacked photos crossfade (JS toggles .is-active) */
.hm-slideshow .mediafill { opacity: 0; transition: opacity 1.1s ease; }
.hm-slideshow .mediafill.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hm-slideshow .mediafill { transition: none; }
}

/* piped-icing squiggle divider (between the stats and the menu) */
.hm-icing { display: block; width: min(340px, 60%); margin: 2rem auto 0; opacity: 0.5; }

/* breathing room under the mosaic (it's the last thing on the page now) */
.hm-bento { margin-bottom: var(--space-8); }

/* ============================================================
   Motion — smooth page entrances + tactile press feedback.
   Guarded by prefers-reduced-motion at the end.
   ============================================================ */
html { scroll-behavior: smooth; }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* every page's content fades in smoothly */
.pagepad { animation: pc-fade 0.4s ease both; }

/* homepage bento tiles rise in, gently staggered.
   fill-mode MUST be `backwards`, not `both`: a finished animation that touched
   `transform` keeps overriding :hover/:active (animations outrank normal rules),
   which would silently kill the tiles' hover-lift. `backwards` holds the hidden
   start-state during the stagger delay, then releases transform on completion. */
.hm-bento .hm-tile { animation: pc-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hm-bento .hm-tile:nth-child(2) { animation-delay: 0.05s; }
.hm-bento .hm-tile:nth-child(3) { animation-delay: 0.10s; }
.hm-bento .hm-tile:nth-child(4) { animation-delay: 0.15s; }
.hm-bento .hm-tile:nth-child(5) { animation-delay: 0.20s; }
.hm-bento .hm-tile:nth-child(6) { animation-delay: 0.25s; }
.hm-bento .hm-tile:nth-child(7) { animation-delay: 0.30s; }

/* press feedback on clickable surfaces */
.pcard, .feature, .orderrow {
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease, border-color 0.18s ease;
}
.pcard:active, .feature:active { transform: translateY(-1px) scale(0.993); box-shadow: var(--shadow-sm); }
.orderrow:active { transform: scale(0.995); }
.stepper__btn:active, .qty__btn:active { transform: scale(0.95); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pagepad, .hm-bento .hm-tile { animation: none; }
  .ccard__media svg { transition: none; }
}

/* ============================================================
   Catalogue — large feature cards (cakes / traybakes / boxes).
   A big media zone (gradient + line-icon now, real photo later —
   same locked slot) that blends down into the text. 2-up on
   desktop, full-width on mobile — so the shop reads like home.
   ============================================================ */
.cgrid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 44rem) { .cgrid { grid-template-columns: 1fr 1fr; } }

.ccard {
  position: relative; display: flex; flex-direction: column;
  background: var(--grad-paper); border: none;
  border-radius: 22px; overflow: hidden; box-shadow: var(--mat-paper);
  text-decoration: none; color: inherit;
  transition: transform 0.22s var(--spring);
}
.ccard:hover { transform: translateY(-5px); }
.ccard:active { transform: translateY(1px) scale(0.99); }

.ccard__media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(155deg, #F1E8D5 0%, #DBC9A4 100%);
  color: var(--kraft);
}
.ccard__media svg {
  width: 36%; height: auto; opacity: 0.5;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ccard:hover .ccard__media svg { transform: scale(1.07) rotate(-3deg); }
/* fade the media into the text panel below (blends the "photo" into the text) */
.ccard__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 44%, rgba(251, 244, 230, 0.72) 76%, #FDF7EB 100%);
}
.ccard__media .badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1; box-shadow: var(--shadow-sm);
}

.ccard__body {
  position: relative; z-index: 1; margin-top: -2rem;
  padding: 0 clamp(1.3rem, 3vw, 1.7rem) clamp(1.3rem, 3vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.ccard__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.08; color: var(--ink);
}
.ccard__blurb { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.ccard__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.7rem; gap: var(--space-3);
}
.ccard__foot .price { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.ccard__cta {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--oxblood); white-space: nowrap;
}
.ccard:hover .ccard__cta { text-decoration: underline; }

/* ============================================================
   Menu hub — every category on one page (the order landing)
   ============================================================ */
.menu-jump {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 var(--space-6);
}
.menu-jump a {
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  color: var(--kraft); text-decoration: none;
  background: var(--slab-paper); border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--edge-paper), 0 6px 10px -8px rgba(43, 33, 25, 0.3);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), filter 0.16s ease;
}
.menu-jump a:hover {
  filter: brightness(1.03); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 var(--edge-paper), 0 10px 16px -8px rgba(43, 33, 25, 0.3);
}
.menu-jump a:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 var(--edge-paper);
}

.menu-cat { margin-bottom: var(--space-8); scroll-margin-top: 6rem; }
.menu-cat__head {
  display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-4); padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border);
}
.menu-cat__title {
  font-family: var(--font-display); font-weight: 600;
  font-variation-settings: 'SOFT' 88;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); color: var(--ink);
}
.menu .feature { margin-bottom: var(--space-5); }

/* ============================================================
   Hamburger + slide-out drawer menu (pure-CSS checkbox toggle)
   ============================================================ */
.navtoggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; cursor: pointer;
  background: rgba(247, 241, 230, 0.1); border: 1px solid rgba(247, 241, 230, 0.16);
  transition: background 0.16s ease, transform 0.12s ease;
}
.navtoggle:hover { background: rgba(247, 241, 230, 0.18); }
.navtoggle:active { transform: scale(0.94); }
.navtoggle span {
  display: block; height: 2px; width: 100%; background: var(--paper); border-radius: 2px;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}

.navscrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(30, 22, 14, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(86vw, 340px);
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.3rem 1.2rem calc(1.3rem + env(safe-area-inset-bottom, 0px));
  background: var(--grad-kraft); color: var(--paper);
  box-shadow: -24px 0 60px -24px rgba(30, 22, 14, 0.65);
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow-y: auto;
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.2rem 0.35rem 0.9rem; margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(247, 241, 230, 0.14);
}
.drawer__eyebrow {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mustard);
}
.drawer__close {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  font-size: 1.6rem; line-height: 1; color: var(--paper); cursor: pointer;
  background: rgba(247, 241, 230, 0.08); transition: background 0.16s ease;
}
.drawer__close:hover { background: rgba(247, 241, 230, 0.18); }
.drawer__links { display: flex; flex-direction: column; gap: 0.15rem; }
.drawer__link {
  display: block; padding: 0.8rem 0.9rem; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: rgba(247, 241, 230, 0.82); text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.drawer__link:hover { background: rgba(247, 241, 230, 0.1); color: var(--paper); }
.drawer__link:active { transform: scale(0.98); }
.drawer__link.is-active { background: rgba(247, 241, 230, 0.16); color: var(--paper); }
.drawer__foot {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid rgba(247, 241, 230, 0.14);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.drawer__link--sub {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: rgba(247, 241, 230, 0.72);
}
.drawer__signout button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 0.8rem 0.9rem; border-radius: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--mustard);
  transition: background 0.16s ease;
}
.drawer__signout button:hover { background: rgba(247, 241, 230, 0.1); }

/* open state — driven by the hidden #navcheck checkbox */
.navcheck:checked ~ .navscrim { opacity: 1; pointer-events: auto; }
.navcheck:checked ~ .drawer { transform: translateX(0); }
.navcheck:checked ~ .topbar .navtoggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navcheck:checked ~ .topbar .navtoggle span:nth-child(2) { opacity: 0; }
.navcheck:checked ~ .topbar .navtoggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body:has(.navcheck:checked) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .drawer, .navscrim, .navtoggle span { transition: none; }
}

/* ---- checkout account hint ---- */
.checkout__signin, .checkout__signedin {
  margin: var(--space-3) 0 0; font-size: 0.85rem; color: var(--ink-soft);
}
.checkout__signin a { color: var(--oxblood); font-weight: 600; text-decoration: none; }
.checkout__signin a:hover { text-decoration: underline; }
.checkout__signedin strong { color: var(--ink); }

/* ============================================================
   Tactile finishing layer
   1. GRAIN lives ON the big colour surfaces (printed kraft, not
      flat pixels). Children are raised above it with :where()
      (zero specificity) so any component's own positioning wins.
   2. Fraunces SOFT axis on display type — rounder, hand-made
      letterforms (needs the variable font loaded in layout.py).
   ============================================================ */
.topbar__bar, .hm-hero, .hm-tile.hm-dark, .hm-tile.hm-ox, .hm-tile.hm-mus, .enq__aside {
  position: relative; isolation: isolate;
}
.topbar__bar::after, .hm-hero::after,
.hm-tile.hm-dark::after, .hm-tile.hm-ox::after, .hm-tile.hm-mus::after,
.enq__aside::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.09; mix-blend-mode: overlay;
}
:where(.topbar__bar, .hm-hero, .hm-tile.hm-dark, .hm-tile.hm-ox, .hm-tile.hm-mus, .enq__aside) > * {
  position: relative; z-index: 2;
}

/* soft, baked letterforms on all display type */
.h-hero, .h-section, .h-card-title,
.hm-head h2, .hm-tile__name, .hm-tile__price--big, .ccard__title,
.brand__name, .ticket__brand, .checkout__legend, .drawer__link, .pcard__title {
  font-variation-settings: 'SOFT' 88;
}

/* ============================================================
   Sticky footer, danger key, cancel/cancelled UI, policies page
   ============================================================ */
.pagepad { flex: 1 0 auto; }   /* main grows so the footer sits at the bottom */

.sitefoot {
  margin-top: var(--space-8);
  background: var(--slab-kraft); color: rgba(247, 241, 230, 0.8);
  box-shadow: inset 0 3px 0 var(--edge-kraft), inset 0 1px 0 rgba(255, 235, 200, 0.14);
}
.sitefoot__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5);
}
.sitefoot__brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  font-variation-settings: 'SOFT' 88; color: var(--paper); text-decoration: none;
}
.sitefoot__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.sitefoot__links a {
  color: rgba(247, 241, 230, 0.82); text-decoration: none;
  font-weight: 600; font-size: 0.9rem; transition: color 0.16s ease;
}
.sitefoot__links a:hover { color: var(--paper); }
.sitefoot__note {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(247, 241, 230, 0.55);
}
@media (max-width: 40rem) { .sitefoot__note { margin-left: 0; flex-basis: 100%; } }

/* destructive KEY — paper key with oxblood text, subordinate to the primary */
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  color: var(--oxblood); text-decoration: none; cursor: pointer;
  background: var(--slab-paper); border: none; border-radius: 14px;
  padding: 0.7rem 1.3rem; touch-action: manipulation;
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 #E7C9C0, 0 10px 18px -12px rgba(122, 46, 46, 0.4);
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), filter 0.16s ease;
}
.btn-danger:hover {
  filter: brightness(1.02); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 #E7C9C0, 0 14px 22px -12px rgba(122, 46, 46, 0.4);
}
.btn-danger:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #E7C9C0;
}

.confirm__banner {
  max-width: 40rem; margin: 0 auto var(--space-5); text-align: center;
  padding: 0.9rem 1.2rem; border-radius: var(--radius-md); font-size: 0.95rem;
}
.confirm__banner--cancelled { background: var(--oxblood-tint); color: var(--oxblood-dark); }

.confirm__actions {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
}
.confirm__cancel { display: inline-flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.confirm__cancelnote { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); }

/* policies / legal page */
.legal { max-width: 44rem; }
.legal__sec { margin-top: var(--space-6); }
.legal__h {
  font-family: var(--font-display); font-weight: 600; font-variation-settings: 'SOFT' 88;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); color: var(--ink); margin: 0 0 var(--space-2);
}
.legal p { color: var(--ink-soft); }
.checkout__agree {
  margin: var(--space-3) 0 0; text-align: center;
  font-size: 0.8rem; color: var(--ink-soft);
}
.checkout__agree a { color: var(--oxblood); font-weight: 600; }

/* fully-booked notice at checkout (per-day capacity reached) */
.checkout__soldout {
  margin: var(--space-4) 0; padding: var(--space-4) var(--space-5);
  background: var(--oxblood-tint); color: var(--oxblood-dark);
  border-radius: var(--radius-md); font-size: 0.92rem; line-height: 1.5;
}

/* admin dashboard — money strip + bake-days */
.dashgrid--money { margin-bottom: var(--space-3); }
.dashcard--money { background: var(--slab-kraft); color: var(--paper); box-shadow: var(--mat-kraft); }
.dashcard--money .dashcard__num {
  color: #E0B45C; font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem;
}
.dashcard--money .dashcard__label { color: rgba(247, 241, 230, 0.92); }
.dashcard--money .dashcard__sub { color: rgba(247, 241, 230, 0.6); }
.dash-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin: 0 0 var(--space-6); }
.bakeday--full td { color: var(--oxblood-dark); }
