:root {
  color-scheme: light;
  --paper: #fff7eb;
  --cream: #faebd9;
  --white: #fffcf6;
  --ink: #38231c;
  --muted: #64493e;
  --rose: #923851;
  --rose-dark: #72283d;
  --petal: #f8e3e5;
  --line: #e8cdbd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); letter-spacing: -.045em; }
h3 { font-size: 1.75rem; letter-spacing: -.025em; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, nav, .actions { display: flex; align-items: center; }
.header-inner { min-height: 82px; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: max-content; text-decoration: none; font: 1.55rem/1 var(--serif); letter-spacing: -.04em; }
.brand img { flex: none; }
.brand small { display: block; margin-top: .35rem; font: 700 .61rem/1 var(--sans); letter-spacing: .27em; color: var(--rose); }
nav { gap: clamp(1rem, 3vw, 2.5rem); }
nav > a { font-size: .92rem; font-weight: 600; text-decoration: none; }
nav > a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 50px; padding: .75rem 1.15rem; border: 1px solid var(--rose); border-radius: 7px;
  background: var(--rose); color: #fffdf8; text-decoration: none; font-size: .93rem; font-weight: 650; line-height: 1.25;
}
.button:hover { background: var(--rose-dark); border-color: var(--rose-dark); text-decoration: none; }
.button.small { min-height: 42px; padding: .55rem .9rem; }
.button.outline { background: transparent; color: var(--rose-dark); border-color: #b77884; }
.button.outline:hover { background: #f7dce1; }
.text-link { width: fit-content; color: var(--rose-dark); font-size: .93rem; font-weight: 650; text-underline-offset: .32rem; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link span { margin-left: .2rem; }
.actions { flex-wrap: wrap; gap: 1.1rem 1.35rem; }
.eyebrow { color: var(--rose-dark); font-size: .72rem; font-weight: 750; line-height: 1.35; letter-spacing: .15em; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; margin: 0 .35rem .1rem 0; border-radius: 50%; background: #a4681f; }

.hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(1.7rem, 4.5vw, 4.5rem); padding-block: 40px 43px; }
.hero-copy { padding-block: 1.15rem; }
.hero h1 { margin: 1rem 0 1.3rem; font-size: clamp(3.2rem, 6.6vw, 6.05rem); line-height: .98; letter-spacing: -.068em; }
.hero h1 em { color: var(--rose); font-weight: 400; }
.intro { max-width: 29rem; color: var(--muted); font-size: clamp(1.03rem, 1.6vw, 1.22rem); }
.hero .actions { margin-top: 1.75rem; }
.hero-art {
  position: relative; isolation: isolate; aspect-ratio: 1.2; min-width: 0;
  border: 1px solid #e3a8ae; border-radius: 26px 26px 44px 26px;
  background-color: #fae3dc;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 22px, #c95e792a 22px 44px),
    repeating-linear-gradient(90deg, transparent 0 22px, #c95e792a 22px 44px);
}
.mascot-frame {
  position: absolute; inset: 7% 8% 8% 18%; display: grid; place-items: center;
  border: 1px solid #e8b9a3; border-radius: 48% 48% 38% 38%;
  background: radial-gradient(ellipse at 55% 42%, #fffdf5, #fff2d8 68%, #f7dfbf);
  box-shadow: 0 0 0 6px #fff7eb9c;
}
.mascot { display: block; width: 104%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px #783e362b); }
.hero-figure {
  z-index: 1; position: absolute; left: 3%; bottom: 5%; width: 30%; margin: 0; padding: .33rem;
  border: 1px solid #e1ba9f; border-radius: 9px; transform: rotate(-7deg);
  background: var(--white); box-shadow: 0 6px 20px #6d3a3333;
}
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1.25; border-radius: 5px; object-fit: cover; }
.hero-figure figcaption { padding: .12rem .12rem 0; color: var(--muted); text-align: center; font-size: clamp(.52rem, 1.05vw, .64rem); }
.pickup-bar { background: var(--petal); border-block: 1px solid var(--line); }
.pickup-inner { min-height: 70px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.pickup-inner p { display: flex; gap: .62rem; align-items: center; justify-content: center; padding: .3rem .45rem; font-size: .88rem; color: var(--muted); }
.pickup-inner p + p { border-left: 1px solid var(--line); }
.pickup-inner strong { color: var(--ink); }
.bar-icon { color: var(--rose); font-size: 1.4rem; line-height: 1; }

.section { padding-block: clamp(3.2rem, 7vw, 6rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.section-heading p:last-child:not(.eyebrow) { max-width: 24rem; color: var(--muted); }
.section h2 { margin: .52rem 0 .15rem; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.box { display: flex; flex-direction: column; padding: clamp(1rem, 2.4vw, 1.7rem); border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.box.featured { background: var(--petal); border-color: #d994a5; }
.product-title { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: .7rem 0; }
.product-title span { font: 1.42rem/1 var(--serif); }
.box > p:nth-of-type(2) { flex: 1; color: var(--muted); font-size: .95rem; }
.box .button { justify-content: space-between; margin-top: 1.1rem; }
.flavor-section { margin-top: 2.8rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.flavors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.flavors li { display: flex; gap: .58rem; }
.flavors p { margin-top: .25rem; color: var(--muted); font-size: .88rem; }
.flavors small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.flavor-dot { width: 10px; height: 10px; margin-top: .42rem; flex: none; border-radius: 50%; }
.strawberry { background: #bd635e; }.cookie { background: #b68053; }.chocolate { background: #704d42; }.pumpkin { background: #be7b42; }
.baked-menu { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.baked-menu-grid .box > p { margin-top: .6rem; color: var(--muted); font-size: .93rem; }
.baked-menu-grid .price-list { flex: 1; margin-top: .65rem; }
.bread { display: grid; grid-template-columns: 1.2fr minmax(12rem, .8fr) auto; gap: 1rem 2rem; align-items: center; margin-top: 1rem; padding: 1.4rem 1.65rem; border-radius: 10px; background: var(--cream); }
.bread h3 { margin-block: .27rem; }
.bread p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.price-list { padding: 0; list-style: none; }
.price-list li { display: flex; gap: .65rem; justify-content: space-between; padding-block: .25rem; font-size: .92rem; }
.details { background: var(--petal); }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 2rem; margin-block: 1.5rem; }
.details-grid h3 { margin-bottom: .45rem; font-size: 1.5rem; }
.details-grid p, .allergens, .order-section p:not(.eyebrow) { color: var(--muted); }
.allergens { font-size: .87rem; border-top: 1px solid #ddb3b4; padding-top: 1rem; }
.order-section { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.order-section p:not(.eyebrow) { margin-top: .65rem; }
.footer { padding-block: 2rem; background: #4c2630; color: #fff8ec; }
.footer-inner { display: grid; grid-template-columns: 1.25fr 1fr .7fr; gap: 1.35rem 2rem; }
.footer .brand small { color: #e9ddc2; }
.footer .brand-mascot { width: 58px; height: 58px; border-radius: 50%; background: #f8e3e5; object-fit: contain; }
.footer h2 { margin-bottom: .38rem; font: 700 .74rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.footer p, .footer div > a:not(.brand) { display: block; color: #f0e7d8; font-size: .88rem; }
.footer p { margin-top: .45rem; }
.footer .site-credit { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid #ffffff24; text-align: center; font-size: .75rem; color: #e1cdd1; }
.site-credit a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.site-credit a:hover, .site-credit a:focus-visible { color: #fff8ec; }

dialog { max-width: min(560px, calc(100% - 24px)); width: 100%; max-height: calc(100dvh - 24px); padding: clamp(1rem, 4vw, 1.7rem); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #41202ba8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading h2 { margin-top: .25rem; font-size: clamp(1.9rem, 5vw, 2.65rem); }
.close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.5rem; line-height: 1; }
#order-builder, #request { display: grid; gap: .76rem; }
#order-builder > .button { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1.7fr .7fr; gap: .65rem; }
.form-grid:has(> label[hidden]) { grid-template-columns: 1fr; }
.form-grid.fulfillment { grid-template-columns: 1.1fr 1fr; }
form label, #request label, legend { display: block; font-size: .87rem; font-weight: 680; }
input:not([type=checkbox],[type=radio]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 43px; margin-top: .2rem; padding: .43rem .55rem; border: 1px solid #b8ae9d; border-radius: 5px; background: var(--white); color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; }
fieldset { margin: 0; padding: .35rem .7rem .5rem; border: 1px solid var(--line); border-radius: 6px; }
.hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .13rem .4rem; }
.checks label { display: flex; align-items: center; gap: .35rem; min-height: 30px; font-weight: 500; }
.checks input { width: 1.05rem; height: 1.05rem; margin: 0; flex: none; accent-color: var(--rose); }
.checks label:has(:disabled) { color: var(--muted); }
.baked-fields { padding-bottom: .7rem; }
.baked-line { display: grid; gap: .5rem; padding-block: .5rem .7rem; margin-bottom: .55rem; border-bottom: 1px solid var(--line); }
.baked-line .plain-button { font-size: .82rem; }
.estimate { display: flex; justify-content: space-between; align-items: center; padding: .5rem .65rem; border-radius: 5px; background: var(--cream); }
.estimate output { font-weight: 700; }
.plain-button { padding: 0; border: 0; background: none; text-decoration: underline; }
#copy-status:empty { display: none; }

.shop-page { padding-block: clamp(1.8rem, 5vw, 3.5rem); }
.shop-page h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); letter-spacing: -.05em; }
.shop-page .intro { margin-block: .65rem 1.5rem; max-width: 48rem; }
.shop-title { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: .55rem; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(1rem, 4vw, 3rem); }
.shop-category { margin-top: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.shop-category h3 { font-size: 1.45rem; }
.pick-list { list-style: none; padding: 0; margin-top: .45rem; }
.pick-list li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .45rem 0; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list .hint { display: block; margin-top: .05rem; }
.order-panel { min-width: 0; padding: clamp(.9rem, 2.75vw, 1.45rem); background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.shop-grid .order-panel { position: sticky; top: .8rem; max-height: calc(100dvh - 1.6rem); overflow: auto; }
.order-panel .hint + form { margin-top: .7rem; }
.cart-back { display: none; }
.flow, #checkout-form { display: grid; gap: .85rem; }
.flow > .button, .flow > .plain-button { justify-self: start; }
.cart-item { margin-bottom: .6rem; padding: .55rem; }
.cart-line-controls { display: flex; align-items: end; gap: .65rem; margin-bottom: .35rem; }
.cart-quantity { max-width: 5.5rem; }
.cart-line-controls .plain-button { margin-left: auto; }
.notice { margin-block: .55rem; padding: .65rem .85rem; border-radius: 7px; background: var(--petal); }
#form-status:empty, #copy-result:empty { display: none; }
.button:disabled { opacity: .63; cursor: default; }
#manager-login { max-width: 27rem; margin-top: 1rem; }
.manage-nav { margin-block: 1rem; }
#manager .order-panel { margin-block: 1rem; scroll-margin-top: 1rem; }
.manager-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem 1rem; }
.menu-edit-group, .manager-order { padding: .65rem; border: 1px solid var(--line); border-radius: 8px; }
.menu-edit-group summary, .manager-order summary, #order-list summary { font-weight: 680; cursor: pointer; }
.menu-edit-group > .flow, .manager-order > .flow, #manual-order-form { margin-top: .75rem; }
.menu-edit-item .actions { margin-top: .65rem; }
.inline-check { display: inline-flex; align-items: center; gap: .3rem; }
.inline-check input { width: 1rem; height: 1rem; accent-color: var(--rose); }
.save-menu { margin-block: 1rem 1.6rem; }
#order-list .section-heading { align-items: center; margin: 0; }
#order-list ul { margin-left: 1.2rem; padding-left: .15rem; }

@media (max-width: 870px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 1.65rem; }
  .hero h1 { font-size: clamp(3rem, 7.1vw, 4.7rem); }
  .flavors { grid-template-columns: repeat(2, 1fr); }
  .bread { grid-template-columns: 1.2fr 1fr; }
  .bread .text-link { grid-column: 1 / -1; }
  .order-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 1.28rem; gap: .45rem; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: .53rem; }
  nav > a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 1.6rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.15rem, 11.4vw, 4.5rem); }
  .hero .actions { margin-top: 1.15rem; gap: .8rem 1.15rem; }
  .hero-art { aspect-ratio: 1.24; }
  .pickup-inner { padding-block: .45rem; }
  .pickup-inner p { flex-direction: column; gap: .23rem; text-align: center; line-height: 1.3; font-size: .72rem; }
  .pickup-inner strong { display: block; }
  .section-heading { flex-direction: column; align-items: start; gap: .55rem; }
  .boxes, .details-grid, .bread { grid-template-columns: 1fr; }
  .boxes { gap: .7rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-grid .order-panel { position: static; max-height: none; overflow: visible; }
  .cart-back { display: inline-block; margin-bottom: .5rem; }
  .cart-line-controls .plain-button { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.order-media { border-top: 1px solid var(--line); padding-top: .75rem; }
.order-media > .flow { margin-top: .75rem; }
.media-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: .8rem; }
.media-card { border: 1px solid var(--line); padding: .65rem; border-radius: 8px; overflow: hidden; }
.media-card img, .media-card video, .media-preview img, .media-preview video { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 6px; background: #eee7df; }
.media-card .text-link, .media-card button { display: inline-block; margin: .5rem .5rem 0 0; }
.order-media progress { width: 100%; accent-color: var(--rose); }
