:root{color-scheme:light;--paper:#f8f2e5;--ink:#2e261e;--red:#8d3226;--line:#d3bd9c;--warm:#f0e3cd}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif;font-size:1rem;line-height:1.6}
a{color:inherit}
a:focus-visible{outline:3px solid var(--red);outline-offset:4px}
.wrap{width:min(1100px,calc(100% - 64px));margin-inline:auto}
.bar,.footer{display:flex;justify-content:space-between;align-items:center;gap:18px}
.bar{padding-block:23px;border-bottom:1px solid var(--line)}
.wordmark{display:block;flex:0 0 auto;width:174px;max-width:100%}
.wordmark img{display:block;width:100%;height:auto}
.footer .wordmark{width:136px}
em{color:var(--red)}
nav{display:flex;gap:clamp(12px,3vw,36px);align-items:center}
nav>a{text-decoration:none}
.button{display:inline-block;background:var(--red);color:white;padding:12px 18px;font-size:.94rem;font-weight:650;text-decoration:none}
.button:hover{background:#70271e}
.button.small{padding:8px 12px}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:clamp(36px,7vw,105px);align-items:center;padding-block:clamp(55px,8vw,105px)}
.eyebrow{font-size:.72rem;letter-spacing:.17em;font-weight:750;margin:0 0 19px}
.eyebrow span{display:inline-block;background:var(--red);height:7px;width:7px;border-radius:50%;margin-right:6px}
h1,h2,h3{font-family:Georgia,serif;margin:0;font-weight:500}
h1{font-size:clamp(5rem,11vw,9rem);line-height:.84;letter-spacing:-.085em}
h2{font-size:clamp(2.9rem,6vw,5.1rem);letter-spacing:-.065em;line-height:1}
h3{font-size:clamp(1.36rem,3vw,1.9rem);line-height:1.15}
.lead{font-size:1.13rem;max-width:31ch;margin:26px 0 23px}
.poster{aspect-ratio:1.05;display:grid;align-content:space-between;text-align:center;padding:8%;color:var(--red);background:radial-gradient(ellipse 50% 50% at center,#e8d1aa 0%,#e9d3ae 16%,#ecd9b8 32%,#f0dfc4 48%,#f4e7d1 64%,#f6eedd 79%,#f8f1e3 92%,var(--paper) 100%)}
.poster-top{font-size:.69rem;font-weight:750;letter-spacing:.18em}
.poster-top i{display:inline-block;border-top:1px solid;width:25px;vertical-align:middle;margin:0 5px}
.poster-bottom{font:italic 1.23rem Georgia,serif}
.menu{background:var(--warm)}
.menu-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(30px,8vw,100px);padding-block:clamp(46px,7vw,85px)}
.menu-layout>div>p:last-child,.order p:not(.eyebrow){max-width:44ch}
.order{padding-block:clamp(55px,8vw,90px);text-align:center}
.order p:not(.eyebrow){margin:20px auto}
.order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 18rem);
  margin-inline: auto;
}
.order-actions .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 7px;
  line-height: 1.35;
}
.order-actions img {
  display: block;
  flex: none;
  border-radius: 5px;
}
.order p.zalo-number {
  margin: 14px auto 0;
  color: #685449;
  font-size: .88rem;
  font-weight: 500;
}
.footer{padding-block:22px;border-top:1px solid var(--line)}
.footer p{margin:0;font:italic .97rem Georgia,serif}
@media(max-width:680px){.wrap{width:calc(100% - 36px)}.hero,.menu-layout{grid-template-columns:1fr}.poster{width:min(100%,420px);justify-self:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.language-picker{display:inline-flex;align-items:center;border:1px solid var(--line);padding:2px;gap:1px;white-space:nowrap}
.language-picker[hidden]{display:none}
.language-picker button{border:0;background:transparent;color:var(--ink);font:inherit;font-size:.8rem;padding:5px 8px;cursor:pointer}
.language-picker button[aria-pressed="true"]{background:var(--warm);color:var(--red);font-weight:750}
.language-picker button:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.intro .eyebrow b{font-weight:inherit}
.bar nav .button{white-space:nowrap}
@media(max-width:540px){
  .bar{flex-wrap:wrap;gap:12px}
  .bar .wordmark{width:151px}
  .bar nav{width:100%;justify-content:space-between}
}
.cookie-period {
  display: inline-block;
  width: .18em;
  height: .17em;
  margin-inline-start: .06em;
  overflow: hidden;
  color: transparent;
  background: url("masa-casa-cookie.svg") center / contain no-repeat;
  vertical-align: baseline;
}
.cookie-question {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.cookie-question > span {
  display: inline-block;
  clip-path: inset(-.15em -.15em .27em -.15em);
}
.cookie-question::after {
  content: "";
  position: absolute;
  left: .105em;
  bottom: .155em;
  width: .15em;
  height: .14em;
  background: url("masa-casa-cookie.svg") center / contain no-repeat;
}

.cookie-ending { white-space: nowrap; }
#menu-title { font-size: clamp(2.9rem, 5.8vw, 4.85rem); }

.bread-art {
  --slice-duration: 2.5s;
  --slice-edge: 0 80%, 40.06% 80%, 43.16% 78.77%, 49.38% 75.32%, 55.59% 71.73%, 61.81% 68.05%, 68.02% 64.27%, 71.13% 61.42%, 74.24% 57%, 100% 57%;
  position: relative;
  width: min(100%, 370px);
  margin-inline: auto;
}
.bread-art img {
  display: block;
  width: 100%;
  height: auto;
}
.bread-loaf {
  clip-path: polygon(var(--slice-edge), 100% 0, 0 0);
}
.bread-slice {
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--slice-edge), 100% 100%, 0 100%);
  transform-origin: 66% 78%;
}
.bread-heel,
.bread-steam {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}
.bread-heel {
  transform-origin: 66% 78%;
}
.bread-slice,
.bread-steam {
  opacity: 0;
}
.bread-steam {
  fill: none;
  overflow: visible;
  stroke: #a35d48;
  stroke-linecap: round;
  stroke-width: 16;
  filter: drop-shadow(0 0 2px #fff6e5);
}
@media (prefers-reduced-motion: no-preference) {
  .bread-slice-gliding .bread-heel {
    animation: heel-release var(--slice-duration) ease-out both;
  }
  .bread-slice-gliding .bread-slice {
    animation: slice-glide var(--slice-duration) cubic-bezier(.4, .1, .26, 1) both;
  }
  .bread-slice-gliding .bread-steam {
    animation: steam-puff 1.65s linear var(--slice-duration) 2 both;
  }
  .bake-grid.menu-motion > [data-reveal]:not(.menu-enter) {
    opacity: 0;
  }
  .bake-grid .menu-enter {
    animation: menu-rise 1.05s cubic-bezier(.25, .46, .36, 1) var(--entry-delay, 0ms) both;
  }
}
@keyframes heel-release {
  0%, 8% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translate(5%, 5%) rotate(4deg) scaleY(.88); }
}
@keyframes slice-glide {
  0%, 8% { opacity: 0; transform: translate(-12%, -18%) rotate(-12deg) scaleY(1.22); }
  27% { opacity: 1; }
  100% { opacity: 1; transform: translate(11%, 9%) rotate(7deg); }
}
@keyframes steam-puff {
  0% { opacity: 0; transform: translateY(4%); }
  20%, 46% { opacity: .9; }
  86%, 100% { opacity: 0; transform: translateY(-17%); }
}
@keyframes menu-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.photo-menu {
  padding-block: clamp(38px, 6vw, 72px);
}
.photo-menu-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.photo-menu-heading #menu-title {
  font-size: clamp(2.65rem, 5.5vw, 4.85rem);
}
.menu-illustration-note {
  margin: 0;
  color: #654f3d;
  font-size: .79rem;
}
.bake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}
.bake-photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
.bake-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
}
.sourdough-photo {
  object-position: center 46%;
}
.cookie-photo {
  object-position: center 67%;
}
[data-product-id="cinnamon-roll"] .bake-photo,
[data-product-id="matilda-chocolate-cake"] .bake-photo {
  object-position: center 62%;
}
.bake-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 13px;
}
.bake-price {
  color: var(--red);
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.bake-description {
  color: #654f3d;
  margin: 4px 0 0;
  font-size: .92rem;
}
@media (max-width: 680px) {
  .bake-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bake-availability {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.bake-availability summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 14px;
  min-height: 44px;
  padding-block: 7px;
  cursor: pointer;
  list-style: none;
}
.bake-availability summary::-webkit-details-marker {
  display: none;
}
.bake-availability summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.bake-availability-action {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--red);
  font-weight: 700;
}
.bake-availability-action::after {
  content: "";
  width: .38em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  margin-top: -.2em;
}
.bake-availability[open] .bake-availability-action::after {
  transform: rotate(225deg);
  margin-top: .2em;
}
.bake-availability-empty {
  min-height: 44px;
  margin-bottom: 0;
  padding-block: 10px;
  color: #654f3d;
}
.bake-batches {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 12px;
  background: var(--paper);
  border-radius: 4px;
}
.bake-batches li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
  padding-block: 7px;
}
.bake-batches li + li {
  border-top: 1px solid var(--line);
}
.bake-cutoff {
  color: #654f3d;
  font-size: .8rem;
}

.banana-bread-photo {
  object-position: center 38%;
}
.salted-caramel-photo {
  object-position: center top;
}
.bake-variants {
  margin-top: 7px;
  font-size: .86rem;
}
.bake-variants summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.bake-variants summary::-webkit-details-marker {
  display: none;
}
.bake-variants summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.bake-variants[open] .bake-availability-action::after {
  transform: rotate(225deg);
  margin-top: .2em;
}
.variant-list {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  background: var(--paper);
  border-radius: 4px;
}
.variant-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  padding-block: 8px;
}
.variant-list li + li {
  border-top: 1px solid var(--line);
}
.variant-price {
  color: var(--red);
  font-weight: 650;
  white-space: nowrap;
}

.bake-measurement,
.variant-description {
  margin: 3px 0 0;
  color: #654f3d;
  font-size: .8rem;
}
.variant-description {
  grid-column: 1 / -1;
  margin-top: 0;
}

.bake-photo-frame .actual-bake-photo {
  object-position: center;
  transform: none;
}
.variant-photo {
  grid-column: 1 / -1;
  display: block;
  width: 96px;
  height: auto;
  border-radius: 4px;
}


.delivery-date { margin: 4px 0 9px; font-size: .95rem; color: #654f3d; }
.delivery-date time { color: var(--ink); font-weight: 650; margin-inline-start: .26em; }
.bake-card .bake-order.button { margin: 15px 0 0; min-height: 44px; border-radius: 4px; }
@media (max-width: 680px) { .bake-card .bake-order.button { display: block; width: 100%; } }

.menu-preorder-intro { font-size:1rem; line-height:1.6; max-width:44ch; }
.delivery-date { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin:8px 0 12px; font-size:.9rem; }
.preorder-state { display:inline-flex; align-items:center; gap:7px; font-weight:650; color:#685449; }
.preorder-state.is-open { color:#2e261e; }
.preorder-state.is-open::before { content:""; flex:none; width:7px; height:7px; border-radius:50%; background:#3c6746; }
.preorder-date { color:#654f3d; }
.delivery-date time { margin:0; }
.ask-batch { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; margin-top:7px; border:0; background:transparent; color:#8d3226; font:600 .95rem system-ui,sans-serif; text-decoration:underline; text-underline-offset:4px; }

.preorder-explanation { margin-top:24px; }
.preorder-flourish { display:block; width:78px; height:30px; margin:0 0 10px; }
.preorder-explanation .menu-preorder-intro { margin:0; }
.menu-preorder-intro strong { font-weight:650; }


.hero {padding-block:clamp(36px,5vw,65px)}
.bake-photo-frame {aspect-ratio:1.55}
.bake-photo-frame .bake-photo {width:100%;height:100%;object-fit:cover}
.delivery-overview {display:flex;flex-wrap:wrap;gap:8px 24px;margin:18px 0 12px}
.delivery-overview p {margin:0;font-size:.9rem;color:#654f3d}
.order-actions .secondary-order {background:transparent;color:var(--red);border:1px solid var(--red)}
.order-actions .secondary-order:hover {background:var(--warm)}
.bake-variants {margin:8px 0}

/* Product card information and tactile order action. */
.bake-price-group { margin-left:auto; text-align:right; }
.bake-price-group .bake-price { margin:0; }
.bake-price-group .bake-measurement { margin:2px 0 0; font-size:.875rem; font-weight:400; }
.bake-card .bake-description { margin:12px 0 0; font-size:1rem; line-height:1.6; color:#654f3d; }
.bake-card .delivery-date { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin:16px 0 8px; font-size:.9rem; }
.preorder-state.is-open { padding:3px 10px; border-radius:7px; background:#e0e7ca; }
.preorder-state.is-open::before { width:8px; height:8px; background:#4f8a45; }
.bake-card .bake-variants { margin:4px 0 0; }
.bake-card .bake-order.button { display:inline-flex; align-items:center; justify-content:center; gap:16px; width:fit-content; min-height:48px; margin:12px 0 0; padding:11px 20px; border:1.5px solid var(--red); border-bottom-color:#70271e; border-radius:6px; background:var(--paper); color:var(--red); font-weight:700; box-shadow:0 3px 0 rgba(112,39,30,.18),0 6px 10px rgba(80,48,26,.24); transition:transform .16s ease,box-shadow .16s ease,background .16s ease; }
.bake-order .order-cookie { display:block; flex:none; width:24px; height:24px; object-fit:contain; }
@media (hover:hover) { .bake-card .bake-order.button:hover { background:#fff9ee; transform:translateY(-2px); box-shadow:0 4px 0 rgba(112,39,30,.18),0 8px 13px rgba(80,48,26,.264); } }
.bake-card .bake-order.button:active { transform:translateY(2px); box-shadow:0 1px 0 rgba(112,39,30,.18),0 2px 4px rgba(80,48,26,.216); }
.bake-card .bake-order.button:focus-visible { outline:3px solid var(--red); outline-offset:4px; }
@media (max-width:680px) { .bake-card .bake-order.button { display:flex; width:75%; margin-inline:auto; } }
@media (prefers-reduced-motion:reduce) { .bake-card .bake-order.button { transition:none; } }

/* The dot stays solid; only its soft halo expands, five times on first view. */
@keyframes availability-halo {
  0% { box-shadow:0 0 0 0 rgba(79,138,69,.28); }
  75%,100% { box-shadow:0 0 0 7px rgba(79,138,69,0); }
}
@media (prefers-reduced-motion:no-preference) {
  .preorder-state.is-open.availability-pulse::before { animation:availability-halo 1.8s ease-out 5; }
}

/* Closed bakes: a quiet, touch-operated contact disclosure. */
.preorder-state.is-closed { padding:3px 10px; border-radius:7px; background:#e8d6ba; color:#685449; }
.bake-card .bake-contact { width:fit-content; max-width:100%; margin:12px 0 0; }
.batch-contact-toggle { display:flex; align-items:center; justify-content:center; gap:12px; min-height:48px; padding:11px 18px; border:1.5px solid var(--red); border-radius:6px; color:var(--red); background:var(--paper); font-size:.94rem; font-weight:650; line-height:1.4; list-style:none; cursor:pointer; text-align:center; }
.batch-contact-toggle::-webkit-details-marker { display:none; }
.batch-contact-toggle::after { content:""; flex:none; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.bake-contact[open] > .batch-contact-toggle::after { transform:rotate(225deg); }
.batch-contact-toggle:focus-visible { outline:3px solid var(--red); outline-offset:4px; }
.batch-contact-options { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 20px; padding-top:8px; }
.batch-contact-options a { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; color:var(--red); font-size:.9rem; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.batch-contact-options img { display:block; flex:none; object-fit:contain; }
@media(max-width:680px) { .bake-card .bake-contact { width:75%; margin-inline:auto; } }

.bake-detail-link{display:flex;width:fit-content;max-width:100%;margin-left:auto;text-align:right;align-items:center;min-height:44px;font-size:.875rem;color:var(--red);text-underline-offset:3px}
