:root {
  color-scheme: light;
  --ink: #332444;
  --muted: #6e6178;
  --lavender: #eee5fa;
  --plum: #4d326c;
  --line: #e9dfec;
  --paper: #fffafc;
  font: 1rem/1.5 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 500; line-height: 1.04; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.12rem; line-height: 1.28; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #7545a4; outline-offset: 3px; }
.wrap { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 4.7rem; }
.storefront-header .header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "logo links cart";
  column-gap: 1.2rem;
}
.storefront-header .shop-brand { grid-area: logo; justify-self: start; }
.storefront-header nav { grid-area: links; }
.storefront-header #cart-open { grid-area: cart; justify-self: end; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; font-size: 1.22rem; font-weight: 750; letter-spacing: -.055em; }
.brand > span:last-child { color: #805b9b; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; margin-right: .5rem; border-radius: 50%; background: var(--lavender); color: var(--plum); }
.shop-brand { font-family: ui-rounded, "Nunito", system-ui, sans-serif; font-size: 1.65rem; font-weight: 850; letter-spacing: -.06em; }
.brand-watercolor { display: block; width: clamp(9rem, 24vw, 13rem); height: auto; }
.brand-word { display: none; align-items: center; line-height: 1; }
.shop-brand[data-logo] .brand-watercolor { display: none; }
.shop-brand[data-logo] .brand-word { display: inline-flex; }
.brand-honey { color: #946922; }
.brand-apricot { color: #a36036; }
.brand-coral { color: #ac626b; }
.brand-rose { color: #a6567e; }
.brand-lilac { color: #77558f; }
.brand-dessert { position: relative; display: inline-block; flex: none; width: .99em; height: 1em; }
.brand-dessert img { position: absolute; bottom: .01em; left: 50%; width: 1.08em; height: 1.08em; transform: translateX(-50%); object-fit: contain; }
.brand-donut img { width: 1.02em; height: 1.48em; }
.shop-brand:not([data-logo="donut"]) :is(.brand-o-first, .brand-donut),
.shop-brand[data-logo="donut"] :is(.brand-mochi, .brand-o-second) { display: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem 1.2rem; font-size: .92rem; }
nav a, .subtle { text-underline-offset: .25em; }
.subtle { color: var(--ink); background: transparent; border: 0; padding: 0; text-decoration: underline; }
.button, .filters button {
  min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1rem; border: 1px solid transparent; border-radius: 99rem; font-weight: 650;
  color: var(--ink); text-decoration: none; font-size: .92rem;
}
.dark { background: var(--plum); color: white; }
.dark:hover:not(:disabled) { background: #3b2358; }
.light { background: #f2e9f8; color: var(--plum); }
.light:hover:not(:disabled) { background: #e8d9f3; }
.count { display: grid; place-items: center; min-width: 1.42rem; height: 1.42rem; border-radius: 50%; background: #fff3; font-size: .82rem; }
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.hero-card { overflow: hidden; border: 1px solid var(--hero-edge); border-radius: 1.4rem; background: var(--hero-paper); }
.hero-mochi { --hero-paper: #f7e8f2; --hero-edge: #efd9e7; --hero-ink: #733b62; --hero-button: #723c66; }
.hero-donut { --hero-paper: #fff0df; --hero-edge: #f3e1ca; --hero-ink: #794621; --hero-button: #874d2a; }
.hero-card img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hero-card-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding: clamp(.8rem, 2.4vw, 1.5rem); }
.hero-card h2 { margin: 0; color: var(--hero-ink); font: 900 clamp(1.3rem, 4vw, 3.1rem)/1.1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: -.04em; }
.hero-card .button { background: var(--hero-button); color: white; }
.hero-card .button:hover { filter: brightness(.9); }
.promo { margin-top: 1.2rem; padding: .9rem 1.25rem; display: flex; align-items: center; gap: .9rem; border-radius: 1rem; background: #f8ebf0; }
.promo .button { margin-left: auto; flex: none; background: white; }
.promo-mark { color: #805b9b; font-size: 2rem; }
.menu { position: relative; margin: 3.2rem 0 4rem; scroll-margin-top: 1rem; }
.category-anchor { position: absolute; inset-block-start: 0; scroll-margin-top: 1rem; }
.menu-link, .menu h2, .filters button { font-family: "Nunito", ui-rounded, system-ui, sans-serif; }
.menu-link { color: #77518e; font-weight: 800; }
.menu h2 {
  width: fit-content;
  font-size: clamp(2.45rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.035em;
  color: #884c72;
}
@supports (background-clip: text) {
  .menu h2 {
    background:
      repeating-linear-gradient(118deg, #fff0 0 3px, #fff1 4px 5px, #fff0 7px 11px),
      linear-gradient(110deg, #9b582a 3%, #a44e65 55%, #77518e 98%);
    background-clip: text;
    color: transparent;
  }
}
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.1rem 0 1.5rem; }
.filters button {
  --tab-ink: #704521;
  --tab-paper: #fff9ef;
  --tab-wash: #ffefd8;
  --tab-edge: #ecd8bb;
  --tab-active-edge: #bb8b55;
  color: var(--tab-ink);
  background: linear-gradient(128deg, var(--tab-paper), var(--tab-wash));
  border-color: var(--tab-edge);
  font-weight: 800;
}
.filters [data-category="mochi"] {
  --tab-ink: #793c57;
  --tab-paper: #fff6f8;
  --tab-wash: #fbe5ee;
  --tab-edge: #efd2df;
  --tab-active-edge: #b77a94;
}
.filters [data-category="donut"] {
  --tab-ink: #7c492c;
  --tab-paper: #fff7ef;
  --tab-wash: #f9e5d6;
  --tab-edge: #efd5c2;
  --tab-active-edge: #b88162;
}
.filters [data-category="pastry"] {
  --tab-ink: #573d76;
  --tab-paper: #faf7ff;
  --tab-wash: #eee4f8;
  --tab-edge: #e1d4ed;
  --tab-active-edge: #a186bb;
}
.filters button:hover,
.filters button[aria-pressed="true"] { border-color: var(--tab-active-edge); }
.filters button[aria-pressed="true"] {
  background: var(--tab-wash);
  box-shadow: inset 0 0 0 1px var(--tab-active-edge);
  font-weight: 900;
}
@media (forced-colors: active) {
  .menu h2 { color: CanvasText; }
  .filters button[aria-pressed="true"] { outline: 2px solid ButtonText; outline-offset: -3px; }
}
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.25rem; background: white; }
.product-cover { aspect-ratio: 1.35; background: #f4e5f4; }
.product-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-info { flex: 1; display: flex; flex-direction: column; padding: 1.1rem; }
.card-info p, .muted { color: var(--muted); }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.card-bottom strong { white-space: nowrap; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner .brand-watercolor { width: clamp(7rem, 19vw, 10rem); }
.footer-inner #demo-label { text-align: end; font-size: .875rem; }
dialog { width: min(32rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.35rem; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #24163275; }
.order-summary {
  width: min(100%, 28rem);
  margin: 1rem auto 0;
  padding: .55rem .95rem .85rem;
  border: 1px solid #ecdaed;
  border-radius: 1.35rem;
  background: linear-gradient(125deg, #fff1ee, #f4ebfa 75%);
  text-align: center;
  scroll-margin-top: 1rem;
}
.order-summary h2, .order-details h2 {
  color: var(--plum);
  font: 900 clamp(1.45rem, 5vw, 2.15rem)/1.15 "Nunito", ui-rounded, system-ui, sans-serif;
}
.order-summary-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.order-summary h2 { margin: 0; font-size: 1.1rem; }
.order-summary-head .subtle {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: .25rem;
  color: var(--plum);
  font-size: .875rem;
  font-weight: 700;
}
.order-summary-current { margin: 0 0 .2rem; font: 900 1.22rem/1.2 "Nunito", ui-rounded, system-ui, sans-serif; }
.order-summary.is-cancelled .order-summary-current { color: #8d264a; }
.order-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem .7rem;
  color: var(--plum);
  font-weight: 750;
}
.order-summary .order-meta { gap: .35rem .6rem; margin: 0 0 .6rem; font-size: .875rem; }
.order-summary .status { padding: .08rem .55rem; font-size: inherit; }
.order-steps {
  --step-size: 2rem;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.order-steps.compact { --step-size: 1.55rem; max-width: 15rem; }
.order-steps.compact .order-step-mark { font-size: .78rem; }
.order-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  width: 100%;
  top: calc(var(--step-size) / 2);
  border-block-start: 2px dashed #c9b6d4;
}
.order-step[data-state="done"]::after { border-block-start: 2px solid #b59bc9; }
.order-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .4rem;
  padding-inline: .25rem;
  color: var(--plum);
  font: 800 .92rem/1.3 "Nunito", ui-rounded, system-ui, sans-serif;
  text-align: center;
}
.order-step > span:last-child { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.order-step-mark {
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--step-size);
  height: var(--step-size);
  border: 1px solid #d8c4e3;
  border-radius: 50%;
  background: #fffafd;
  font-size: 1rem;
}
.order-step[data-state="waiting"] { color: var(--muted); }
.order-step[data-state="done"] .order-step-mark { background: #eadcf3; }
.order-step[data-state="current"] .order-step-mark { border-color: var(--plum); background: var(--plum); color: white; }
.order-step[data-state="cancelled"] { color: #8d264a; }
.order-step[data-state="cancelled"] .order-step-mark { border-color: #dc9ab2; background: #fbe2ec; }
.order-details-progress { padding: .8rem .65rem; border-radius: 1rem; background: #f6edf8; }
.order-details-progress p { margin: .65rem 0 0; text-align: center; color: var(--muted); }
.order-details-progress .order-meta { margin: 0 0 .7rem; color: var(--plum); }
#order-dialog-steps.long { width: fit-content; max-width: 100%; grid-auto-flow: row; }
#order-dialog-steps.long .order-step {
  grid-template-columns: var(--step-size) minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: .65rem;
  text-align: start;
}
#order-dialog-steps.long .order-step:not(:last-child) { padding-bottom: .3rem; }
#order-dialog-steps.long .order-step:not(:last-child)::after {
  inset-inline-start: calc(var(--step-size) / 2 + .25rem);
  width: auto;
  height: 100%;
  border-block-start: 0;
  border-inline-start: 2px dashed #c9b6d4;
}
#order-dialog-steps.long .order-step[data-state="done"]::after { border-inline-start: 2px solid #b59bc9; }
#order-dialog-steps[hidden] + p { margin-top: 0; }
.order-amount { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .8rem 0; }
.order-details #status-refresh { margin-top: .55rem; }
.drawer { margin: 0 0 0 auto; min-height: 100%; border-radius: 1.35rem 0 0 1.35rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.drawer-head h2 { margin: 0; }
.close, .quantity-button { display: grid; place-items: center; min-width: 2.65rem; min-height: 2.65rem; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--plum); font-size: 1.25rem; }
.cart-row, .total { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cart-row p { margin-bottom: 0; }
.quantity { display: flex; align-items: center; gap: .5rem; }
.total { margin-bottom: 1.2rem; }
form label { display: grid; gap: .35rem; margin: .75rem 0; font-weight: 620; }
.checkout-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.fulfillment-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.fulfillment-choice legend { margin-bottom: .55rem; font-weight: 750; }
.fulfillment-choice > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.fulfillment-choice label {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: .45rem .65rem;
  border: 1px solid #dbcbe4;
  border-radius: .7rem;
  background: white;
  color: var(--plum);
  cursor: pointer;
}
.fulfillment-choice label:has(:checked) { background: var(--lavender); border-color: #a788c1; }
.fulfillment-choice input { width: auto; margin: 0 .2rem 0 0; accent-color: var(--plum); }
input, textarea { width: 100%; padding: .65rem .75rem; border-radius: .65rem; border: 1px solid #d8c7df; color: var(--ink); background: white; }
textarea { resize: vertical; }
.full { width: 100%; }
.error { color: #8d264a; }
.notice { position: fixed; z-index: 1; right: 1rem; bottom: 1rem; padding: .7rem 1rem; background: var(--plum); color: white; border-radius: .65rem; box-shadow: 0 4px 20px #33244426; }
.admin { padding-block: 2rem 4rem; }
.admin h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); margin-bottom: 1rem; }
.admin h2 { font-size: 2.3rem; }
.admin-actions { margin-bottom: .9rem; }
.panel { background: white; padding: clamp(1rem, 4vw, 1.6rem); border: 1px solid var(--line); border-radius: 1rem; margin-bottom: 1rem; }
.login { max-width: 27rem; }
.stock-row { display: grid; grid-template-columns: minmax(0, 1fr) 6rem auto; gap: .65rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.order-row { padding: .9rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.order-heading, .order-total, .order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.order-heading { margin-bottom: .55rem; }
.order-heading h3 { margin: 0; }
.order-items { padding-left: 1.15rem; }
.status { display: inline-block; border-radius: 99rem; padding: .15rem .65rem; font-size: .9rem; background: var(--lavender); }
.status.confirmed, .status.paid { background: #e3f2e8; color: #225735; }
.status.awaiting { background: #faecd9; color: #674522; }
.status.cancelled { background: #f7e5ec; color: #7e2948; }
@media (max-width: 50rem) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-inner { padding-block: .6rem; }
  .storefront-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo cart" "links links";
    gap: .65rem .75rem;
    padding-block: .8rem;
  }
  .storefront-header nav {
    justify-content: space-between;
    gap: .3rem .75rem;
    padding-inline: .8rem;
    border: 1px solid #efe3f1;
    border-radius: .85rem;
    background: #f8f0f8;
  }
  .storefront-header nav:not(:has(#phone:not([hidden]), #order-link:not([hidden]))) { display: none; }
  .storefront-header nav :is(#phone, #order-link) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--plum);
    font-weight: 650;
  }
  .storefront-header #phone { text-decoration: none; }
  .storefront-header #phone:hover { text-decoration: underline; }
  .storefront-header #cart-open {
    padding-inline: .85rem;
    border-color: #dac7e9;
    background: #f2e7fa;
    color: var(--plum);
  }
  .storefront-header #cart-open:hover { background: #e9d9f3; }
  .storefront-header #cart-count { color: white; background: var(--plum); }
  .shop-brand { font-size: 1.35rem; }
  .brand-watercolor { width: clamp(9rem, 43vw, 13rem); }
  .menu-link { display: none; }
  .hero { gap: .65rem; margin-top: .9rem; }
  .hero-card { border-radius: 1rem; }
  .hero-card img { aspect-ratio: 6 / 5; }
  .hero-card-body { flex-direction: column; align-items: stretch; text-align: center; padding: .65rem; }
  .hero-card .button { padding-inline: .5rem; }
  .promo { flex-wrap: wrap; }
  .promo .button { margin-left: 0; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin-inline: -.75rem;
    padding: .35rem .75rem .5rem;
    scroll-padding-inline: .75rem;
    scrollbar-width: thin;
    scrollbar-color: #dcc9e9 transparent;
  }
  .filters button { flex: 0 0 auto; white-space: nowrap; }
  #cart-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    max-height: calc(100dvh - .75rem);
    margin: 0;
    padding: .75rem .9rem max(.9rem, env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    overscroll-behavior: contain;
  }
  #cart-dialog .drawer-head { margin-bottom: .25rem; }
  #cart-title { font: 900 1.55rem/1.15 "Nunito", ui-rounded, system-ui, sans-serif; }
  .cart-row, #checkout .total { padding-block: .45rem; }
  #checkout .total { margin-bottom: .65rem; }
  .checkout-contact label, #delivery-address { gap: .2rem; margin-block: .45rem; }
  #checkout input:not([type="radio"]), #checkout textarea { padding: .45rem .6rem; min-height: 2.75rem; }
  #checkout textarea { height: 3rem; }
  #pickup-info { margin-block: .45rem; font-size: .875rem; }
  .fulfillment-choice legend { margin-bottom: .35rem; }
  .products { gap: .65rem; }
  .card-info { padding: .75rem; }
  .card-info p { font-size: .9rem; }
  .card-bottom .button { width: 100%; padding-inline: .5rem; }
  .stock-row { grid-template-columns: minmax(0, 1fr) 4.5rem auto; gap: .4rem; }
}
@media (max-width: 22rem) {
  .storefront-header .header-inner { column-gap: .5rem; }
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
