/* Miga v3: loud flat poster. Cream ground, oven red, one drawn mascot and the bakery's vichy cloth. */
:root {
  --cream: #f7eedd;
  --red: #c62a25;
  --red-deep: #a61e1b;
  --ink: #2b1710;
  --mustard: #f4b42a;
  --crumb: #f3d9a8;
  --display: 'Bagel Fat One', 'Arial Black', sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --bar-font: var(--body);
  --bar-bg: var(--ink);
  --bar-fg: var(--cream);
  --toast-bg: var(--ink);
  --toast-radius: 999px;
  --vichy: linear-gradient(90deg, rgba(214, 47, 42, 0.5) 50%, transparent 50%), linear-gradient(rgba(214, 47, 42, 0.5) 50%, transparent 50%);
}

body { background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--body); }
body.has-bar { padding-bottom: 84px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 3px solid var(--ink); transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms; }
.btn:active { transform: translateY(2px); }
.btn-red { background: var(--red); color: var(--cream); box-shadow: 0 4px 0 var(--ink); }
.btn-ink { background: var(--cream); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
@media (hover: hover) { .btn-red:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--cream); border-bottom: 3px solid var(--ink); }
.top-brand { font: 400 26px/1 var(--display); color: var(--red); text-decoration: none; }
.top-status { margin-right: auto; padding: 4px 10px; border-radius: 999px; background: #1f7a3a; color: #fff; font-size: 13px; font-weight: 800; }
.top-status.is-closed { background: var(--ink); }
.top-cta { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 800; font-size: 14px; text-decoration: none; }

/* Hero: the name as a monument with the mascot peeking over it */
.hero { padding: 40px 16px 56px; text-align: center; overflow-x: clip; }
.hero-mark { position: relative; padding-top: 30vw; }
.hero-mascot { position: absolute; left: 50%; top: 0; width: 46vw; max-width: 380px; height: auto; aspect-ratio: 280 / 190; transform: translateX(-50%); z-index: 0; }
.wordmark { position: relative; z-index: 1; font: 400 clamp(5.5rem, 33vw, 22rem)/0.8 var(--display); color: var(--red); letter-spacing: -0.02em; text-shadow: 0 6px 0 var(--ink); }
.hero-kicker { margin-top: 22px; font-weight: 800; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.hero-line { max-width: 34ch; margin: 10px auto 0; font-size: clamp(1.15rem, 4.6vw, 1.5rem); font-weight: 600; line-height: 1.35; }
.hero-actions { display: grid; justify-items: center; gap: 14px; margin-top: 26px; }
.hero-oven { font-size: 14px; font-weight: 600; opacity: 0.8; }

.js .hero-mascot { animation: peek 900ms 250ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.js .m-arm { transform-origin: 236px 132px; animation: wave 1.6s 1.2s ease-in-out 2; }
@keyframes peek { from { transform: translate(-50%, 55%); } to { transform: translate(-50%, 0); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } }

@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-mark { padding-top: 15vw; }
  .hero-mascot { width: 26vw; }
}

/* Carta on the vichy cloth */
.carta { padding: 64px 16px 72px; background-color: var(--cream); background-image: var(--vichy); background-size: 44px 44px; border-block: 3px solid var(--ink); }
.carta-head { max-width: 640px; margin: 0 auto 28px; padding: 22px 20px; background: var(--red); color: var(--cream); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); text-align: center; }
.carta-head h2 { font: 400 clamp(2.4rem, 11vw, 4.5rem)/0.95 var(--display); }
.carta-head p { max-width: 46ch; margin: 10px auto 0; font-weight: 600; }

.cats { display: flex; justify-content: center; gap: 8px; margin: 0 auto 22px; }
.cats button { min-height: 48px; padding: 0 22px; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; font: 400 1.25rem/1 var(--display); color: var(--ink); }
.cats button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.breads { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 640px) { .breads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .breads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bread { display: grid; gap: 6px; padding: 16px 18px 18px; background: var(--cream); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); transition: background 200ms; }
.bread.is-picked { background: var(--crumb); }
/* Real photographs, framed like the rest of the page: ink border, warm grade, a sticker on top. */
.bread-photo { position: relative; margin-bottom: 6px; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--crumb); }
.bread-photo img { width: 100%; aspect-ratio: 25 / 18; object-fit: cover; filter: saturate(1.12) contrast(1.04) sepia(0.12); transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.bread.is-picked .bread-photo img { transform: scale(1.04); }
.bread-tag { position: absolute; top: 10px; left: 10px; padding: 5px 10px; background: var(--mustard); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; transform: rotate(-4deg); }
.bread h3 { font: 400 1.6rem/1 var(--display); color: var(--red-deep); }
.bread p { font-size: 15px; }
.bread-buy { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.bread-buy b { font-size: 1.3rem; font-weight: 800; }
.stepper { display: flex; align-items: center; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; }
.stepper button { width: 46px; height: 44px; font-size: 22px; font-weight: 800; }
.stepper button:last-child { background: var(--red); color: var(--cream); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }

/* The oven band */
.horno { position: relative; padding: 72px 16px 80px; background: var(--red); color: var(--cream); text-align: center; overflow: clip; }
.horno-mascot { width: 140px; height: auto; aspect-ratio: 280 / 190; margin: 0 auto 10px; }
.horno h2 { font: 400 clamp(2.1rem, 9.2vw, 6rem)/0.95 var(--display); }
.horno h2 span { display: block; color: #ffe08a; }
.horno-text { max-width: 36ch; margin: 20px auto 0; font-size: 1.1rem; font-weight: 600; }
.hours { display: grid; gap: 10px; max-width: 520px; margin: 34px auto 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; font-weight: 800; }
.hours dd { font-variant-numeric: tabular-nums; }
.horno-place { margin-top: 26px; font: 400 1.6rem/1 var(--display); }

/* Order bar and sheet */
.order-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: var(--ink); color: var(--cream); border-radius: 999px; box-shadow: 0 10px 30px rgba(43, 23, 16, 0.35); }
.order-bar p { display: grid; line-height: 1.2; }
.order-bar b { font-weight: 800; }
.order-bar span { font-size: 14px; opacity: 0.85; }
.order-bar .btn { min-height: 46px; padding: 0 18px; border-color: var(--cream); }
@media (min-width: 760px) { .order-bar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); } }

.sheet { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 3px solid var(--ink); border-radius: 26px; background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.sheet::backdrop { background: rgba(43, 23, 16, 0.55); }
.sheet-form { display: grid; gap: 16px; padding: 22px 20px; }
.sheet h2 { font: 400 2.2rem/1 var(--display); color: var(--red); }
.sheet-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px dashed rgba(43, 23, 16, 0.25); }
.sheet-list .sheet-total { border: 0; font-weight: 800; font-size: 1.1rem; }
.sheet-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.sheet-fields label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.sheet-fields select, .sheet-fields input { min-height: 46px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 14px; background: #fff8ec; font-size: 16px; width: 100%; }
.bubble { padding: 12px 14px; background: #dcf5c9; border-radius: 16px 16px 16px 4px; font-size: 15px; }
.bubble-head { font-size: 12px; font-weight: 800; color: #1f7a3a; }
.bubble-text { white-space: pre-line; }
.sheet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.sheet-note { font-size: 13px; opacity: 0.75; }

/* Footer */
.foot { background: var(--ink); color: var(--cream); padding: 40px 16px 28px; overflow: clip; }
.foot-mark { font: 400 clamp(5rem, 30vw, 18rem)/0.8 var(--display); color: transparent; -webkit-text-stroke: 2px var(--red); text-align: center; }
.foot-row { display: grid; gap: 14px; max-width: 1080px; margin: 28px auto 0; font-size: 15px; }
.foot-cta { font-weight: 800; color: var(--mustard); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
body > .consent-settings { margin-top: 20px; }
.foot-row p { max-width: 68ch; }

.pitch-close { --pitch-bg: var(--red); --pitch-fg: var(--cream); --pitch-accent: #ffe08a; --pitch-font: 400 clamp(2.4rem, 11vw, 5.6rem)/0.95 var(--display); border-top: 3px solid var(--ink); }
.pitch-close a { border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
