:root {
  color-scheme: light;
  --paper: #fcf8f3;
  --ink: #30241d;
  --muted: #6e5d50;
  --line: #e8ddd1;
  --panel: #f5ede4;
  --accent: #ecdbc8;
  --accent-ink: #553923;
  --focus: #95613d;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 14px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.brand-header { padding: 46px 24px 34px; text-align: center; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  max-width: calc(100vw - 40px);
  padding-left: .14em;
  font-size: 2.375rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.brand-period { color: var(--focus); letter-spacing: 0; margin-left: 1px; }
.brand-tagline {
  padding-left: .38em;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .38em;
  color: var(--muted);
}
.brand-logo { max-width: 230px; max-height: 95px; object-fit: contain; }

.category-navigation {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.category-scroll {
  max-width: 1040px;
  margin: auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 7px;
  width: max-content;
  min-width: 100%;
  padding: 10px 0 13px;
}
.category-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.2;
  white-space: nowrap;
}
.category-tab:hover { background: var(--panel); }
.category-tab[aria-selected=true] {
  border-color: #ddc5ad;
  background: var(--accent);
  color: var(--accent-ink);
}

.menu-container { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 28px;
  padding: 19px 0 12px;
  border-bottom: 1px solid var(--line);
}
.item-name {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.item-offers { grid-column: 2; grid-row: 1 / 3; min-width: 0; max-width: min(49vw, 24rem); }
.portion-summary {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-top: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.portion-summary > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.portion-prices {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  list-style: none;
}
.portion-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  column-gap: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.portion-volume { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.portion-cost { font-size: 1rem; font-weight: 600; white-space: nowrap; }
.allergen-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f1e3cf;
  color: var(--accent-ink);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.allergen-icon {
  flex: none;
  width: 1em;
  height: 1em;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  line-height: .9;
  text-align: center;
}

.item-details { grid-column: 1; grid-row: 2; min-width: 0; color: var(--muted); font-size: .875rem; }
.item-details[open] { grid-column: 1 / -1; }
.menu-item:has(.item-details[open]) .item-offers { grid-row: 1; }
.item-details summary {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 36px;
  cursor: pointer;
  list-style: none;
}
.item-details summary::-webkit-details-marker { display: none; }
.item-details summary::after { content: "+"; font-size: 1.125rem; line-height: 1; }
.item-details[open] summary::after { content: "−"; }
.detail-content {
  margin: 4px 0 5px;
  padding: 14px 17px;
  border-radius: 8px;
  background: var(--panel);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.detail-content p { margin: 0 0 8px; }
.detail-content > p:last-of-type { margin-bottom: 0; }
.detail-content strong { color: var(--ink); }
.nutrition-section { margin-top: 13px; }
.nutrition-heading { margin: 0; color: var(--ink); font-size: .875rem; }
.nutrition-portions { margin: 0 0 8px; padding: 0; list-style: none; }
.nutrition-portion {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.nutrition-volume { white-space: nowrap; }
.nutrition-values { display: flex; flex-wrap: wrap; gap: 0 12px; }
.nutrition-values span { white-space: nowrap; }
.nutrition-status { color: var(--accent-ink); }
.nutrition-section .nutrition-note { margin: 0; font-size: .8125rem; }
.nutrition-content .nutrition-note { margin-top: 3px; }

.menu-note {
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid #e5d5c4;
  border-radius: 9px;
  background: #f4e9dc;
  color: var(--accent-ink);
  font-size: .875rem;
  line-height: 1.55;
}
.menu-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .875rem;
}
#footer-brand { font-size: .75rem; letter-spacing: .14em; font-weight: 700; overflow-wrap: anywhere; }
.menu-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.loading-state, .empty-state { padding: 28px 0; color: var(--muted); line-height: 1.55; }
.error-state { padding: 24px; background: #f6e9e4; border-radius: 12px; line-height: 1.6; }
.retry-button {
  display: inline-block;
  margin-top: 14px;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
}

/* Shared by the menu and editor. */
.eyebrow { font-size: .6875rem; letter-spacing: .17em; color: var(--muted); margin: 0 0 13px; font-weight: 600; }
h1 { font-size: 2.375rem; letter-spacing: -.035em; font-weight: 500; line-height: 1.15; margin: 0 0 10px; }

@media (max-width: 760px) {
  .category-tabs { justify-content: flex-start; gap: 3px; }
  .category-scroll, .menu-container, .menu-footer { padding-left: 20px; padding-right: 20px; }
  .category-tab { padding-inline: 14px; }
  .brand-header { padding: 35px 20px 24px; }
  .brand-name { font-size: 2rem; }
}
@media (max-width: 600px) {
  .menu-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    column-gap: 12px;
    padding-block: 15px 8px;
  }
  .item-offers { max-width: none; }
  .portion-summary { display: none; }
  .portion-prices {
    position: static;
    display: grid;
    gap: 2px;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
  }
  .allergen-label { margin-top: 5px; padding-inline: 5px; }
  .detail-content { padding-inline: 13px; }
  .nutrition-portion { column-gap: 9px; }
}
@media (max-width: 370px) {
  .category-scroll, .menu-container, .menu-footer { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 1.8125rem; }
}
@media print {
  .category-navigation, .item-details, .menu-footer { display: none; }
  .brand-header { padding: 15px; }
  .menu-item { break-inside: avoid; }
  .item-offers { grid-row: 1; }
}

