:root {
  --paper: #fcf2e4;
  --ink: #42251e;
  --muted: #714b3d;
  --line: #bc9985;
  --quiet: #f0dcc7;
  --focus: #a24427;
  --button: #8a3b29;
  --button-ink: #fff6e6;
  --button-radius: 2rem;
  --field-radius: 0.24rem;
  --field-bg: #fffbf3;
  --error: #973224;
  --serif: Georgia, 'Times New Roman', serif;
  --max-width: 72rem;
  --paper-ease: cubic-bezier(.22, 1, .36, 1);
}

.masthead { border-bottom: 1px solid #d3b29a; }
.identity { display: flex; align-items: center; gap: 0.7rem; }
.wordmark { display: block; width: clamp(8.4rem, 15vw, 12.6rem); flex: none; }
.wordmark img { width: 100%; height: auto; }
.demo-label { padding: 0.05rem 0.48rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--muted); font-size: 0.87rem; }

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 86% 12%, #8a4830, #612f24 47%, #46231d 98%);
  color: #fff4e3;
  border-bottom: 1px solid #5b2e22;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 2rem clamp(1.9rem, 4.1vw, 4rem);
  align-items: center;
  padding-block: clamp(2.6rem, 6.5vw, 5.8rem);
}
.descriptor { margin-bottom: 0.95rem; color: #f3cba6; font-size: 0.95rem; font-weight: 590; }
.hero h1 {
  font: 700 clamp(3.4rem, 8.6vw, 8.2rem)/0.89 var(--serif);
  letter-spacing: -0.068em;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em {
  display: block;
  color: #f3c294;
  font-weight: 400;
  font-size: 0.61em;
  line-height: 1.14;
  letter-spacing: -0.068em;
}
.subtitle { margin-block: 1.2rem 1.45rem; max-width: 35ch; color: #f4dfca; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.hero .button { padding-inline: 1.5rem; --button: #f6d6ab; --button-ink: #42251e; --hover-brightness: 1.08; }
.hero :focus-visible { outline-color: #ffdeb3; }
.hero-actions { gap: 0.65rem 1rem; }
.pickup-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: #f4dfca; font-size: 0.87rem; }
.showcase {
  min-width: 0;
  margin: 0;
  padding: clamp(0.55rem, 1.3vw, 0.95rem);
  border: 1px solid #ebc79e;
  border-radius: 0.45rem;
  background: #f7e3c8;
  color: #4e2d24;
  box-shadow: 0.45rem 0.6rem 0 #b36c4c, 0 1.4rem 2.5rem #2f171557;
  transform: rotate(2deg);
}
.showcase-photo { overflow: hidden; aspect-ratio: 1.56; border-radius: 0.17rem; background: #b06c42; }
.showcase-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.91) sepia(0.08);
}
.showcase figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 2.75rem;
  gap: 0.35rem 0.8rem;
  padding: 0.25rem 0.22rem 0;
  font-size: 0.83rem;
}
.showcase figcaption span { font-weight: 650; }
.showcase figcaption a:focus-visible { outline-color: var(--focus); }
address { font-style: normal; }
h2 { font: 700 clamp(2.15rem, 4.1vw, 3.9rem)/1.01 var(--serif); letter-spacing: -0.066em; }
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.6rem 3rem;
  align-items: start;
  padding-block: clamp(2rem, 5.5vw, 4.75rem);
}
.menu-source { margin-top: 0.72rem; max-width: 49ch; }
.menu-source a { display: inline-block; }
.menu-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.menu-filter {
  min-height: 2.75rem;
  padding: 0.4rem 0.82rem;
  border: 1px solid #bd957c;
  border-radius: 2rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 620;
  transition: background 180ms ease, color 180ms ease;
}
.menu-filter:hover { background: #f2ddc3; }
.menu-filter[aria-pressed="true"] { background: #69372a; color: #fff4e3; border-color: #69372a; }
.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 0.82rem;
  padding: clamp(0.85rem, 1.7vw, 1.2rem);
  border: 1px solid #cbab91;
  border-top: 2px solid #a2674b;
  border-radius: 0.25rem;
  background: #f6e6cf;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.menu-item[data-category="sweet"] { background-color: #f6e4d9; }
.menu-item[data-category="bread"] { background-color: #efe2c9; }
.menu-item[data-category="savory"] { background-color: #fbecda; }
.menu-item.is-selected { border-color: var(--button); box-shadow: inset 0 0 0 1px var(--button); }
.menu-details { min-width: 0; width: 100%; }
.menu-item img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 0.9rem; }
.menu-item h3 { font: 400 clamp(1.35rem, 2.2vw, 1.82rem)/1.08 var(--serif); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.menu-item p { margin-top: 0.5rem; color: var(--muted); }
.menu-item .menu-price { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.menu-item .button { min-height: 2.75rem; margin-top: auto; padding-block: 0.42rem; font-size: 0.87rem; }
.order-card {
  min-width: 0;
  padding: clamp(1rem, 2.8vw, 1.75rem);
  border: 1px solid #cfaa90;
  border-top: 3px solid #a7674c;
  background: #fffaef;
  box-shadow: 0 8px 18px #63352215;
}
.order-card h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
#choice { margin-top: 0.45rem; }
#choice.has-item { color: var(--ink); font-weight: 650; }
.fields { display: grid; justify-items: start; gap: 0.9rem; margin-top: 0.95rem; }
.fields > .field, .order-values, .variants { width: 100%; }
.order-values, .variants { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr); align-items: start; gap: 0.7rem; }
.control:disabled { opacity: 0.65; cursor: default; }
#pickup-date { min-inline-size: 0; }
.optional { font-weight: 400; color: var(--muted); }
.terms { margin-top: 0.95rem; }
.draft { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #d6bbaa; }
.draft h3 { font-size: 1.08rem; line-height: 1.32; }
.draft textarea { margin-block: 0.65rem; }
.copy-status:empty { margin: 0; min-height: 0; }
.contacts { background: #f3e2cc; border-block: 1px solid #d6bbaa; }
.contacts-layout { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: clamp(1.8rem, 4.5vw, 3.5rem); }
.contacts h2 { margin-bottom: 0.6rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.contacts address, .contacts p { color: var(--muted); }
.footer { padding-block: 1rem; color: var(--muted); font-size: 0.875rem; }

@media (prefers-reduced-motion: no-preference) {
  .wordmark img { animation: ink-in 610ms var(--paper-ease) both; }
  .hero-copy .descriptor { animation: content-in 550ms var(--paper-ease) both; }
  .hero h1 span { animation: content-in 730ms var(--paper-ease) 90ms both; }
  .hero h1 em { animation: content-in 760ms var(--paper-ease) 180ms both; }
  .hero .subtitle { animation: content-in 700ms var(--paper-ease) 250ms both; }
  .hero-actions { animation: content-in 690ms var(--paper-ease) 335ms both; }
  .showcase { animation: photo-land 980ms var(--paper-ease) 70ms both; }
  .showcase-photo img { animation: photo-reveal 1050ms var(--paper-ease) 110ms both; }
  .menu-list.is-visible .menu-item { animation: content-in 370ms var(--paper-ease) calc(var(--entry, 0) * 32ms) both; }
  #order-fields:not([hidden]), .draft:not([hidden]) { animation: content-in 360ms var(--paper-ease) both; }
  .menu-item:hover { box-shadow: 0 0.25rem 0.85rem #63352220; }
}
@keyframes ink-in { from { opacity: 0.2; transform: translateY(0.2rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes content-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-land {
  from { opacity: 0; transform: translateY(1.25rem) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(2deg); }
}
@keyframes photo-reveal {
  from { clip-path: inset(0 13% 0 0); transform: scale(1.065); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); }
}

@media (max-width: 49rem) {
  .hero-layout, .order-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 1.5rem; }
  .showcase { max-width: 34rem; transform: none; }
  .menu-item { flex-direction: row; align-items: center; justify-content: space-between; }
  .menu-item .button { margin: 0; flex: none; }
  .menu-list { grid-template-columns: 1fr; }
  @keyframes photo-land {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 29rem) {
  .topbar { min-height: 3.8rem; gap: 0.35rem; }
  .topbar nav { gap: 0.58rem; }
  .wordmark { width: 7.8rem; }
  .identity { gap: 0.4rem; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 5rem); }
  .hero h1 em { font-size: 0.74em; }
  .hero-actions { gap: 0.3rem 0.8rem; }
  .hero .button { padding-inline: 1.05rem; }
  .order-card .button { padding-inline: 0.9rem; }
}
