:root {
  --ink: #2c140c;
  --muted: #735d55;
  --orange: #eb3701;
  --orange-dark: #b92b05;
  --cream: #fff9f4;
  --paper: #ffffff;
  --line: #eaded5;
  --soft: #f7ede6;
  --shadow: 0 10px 30px rgba(44, 20, 12, 0.08);
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
}
button, input { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.masthead {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  background: var(--ink);
  color: white;
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(44, 20, 12, 0.98) 0%, rgba(44, 20, 12, 0.82) 48%, rgba(44, 20, 12, 0.16) 100%);
}
.masthead__photo { position: absolute; inset: 0 0 0 42%; }
.masthead__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.masthead__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 46px;
  padding-block: 40px 36px;
}
.brand {
  width: 194px;
  height: auto;
  margin-top: 2px;
  padding: 12px 16px;
  border-radius: 16px;
  background: white;
}
.masthead__text { max-width: 620px; }
.eyebrow {
  margin: 0 0 6px;
  color: #ffb59f;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1; letter-spacing: -0.045em; }
.updated { margin: 18px 0 0; color: #f7e6df; font-size: 1rem; line-height: 1.45; }

.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 18px;
  background: linear-gradient(var(--cream) 76%, rgba(255, 249, 244, 0));
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 720px;
  min-height: 54px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(44, 20, 12, 0.07);
}
.search:focus-within { outline: 3px solid rgba(235, 55, 1, 0.18); border-color: var(--orange); }
.search__icon {
  width: 18px;
  height: 18px;
  margin-left: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}
.search__icon::after {
  content: "";
  display: block;
  width: 7px;
  height: 2px;
  margin: 12px 0 0 12px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--muted);
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 12px 14px 14px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.search input::placeholder { color: #927d74; }
.search__clear {
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 14px;
  padding: 0 0 14px;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.category-button:hover { border-color: #d4bbb0; }
.category-button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: white; }

.menu { padding-block: 30px 72px; }
.menu__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.menu__summary h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.35rem); letter-spacing: -0.035em; }
.menu__summary p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.menu-card[open] { border-color: #dbc6bc; }
.menu-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 124px;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}
.menu-card summary::-webkit-details-marker { display: none; }
.menu-card summary:focus-visible { outline: 3px solid rgba(235, 55, 1, 0.28); outline-offset: -3px; }
.menu-card__title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.menu-card__composition {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.menu-card__meta { margin: 10px 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.menu-card__side { min-width: 84px; text-align: right; }
.menu-card__price { display: block; color: var(--orange); font-size: 1.2rem; font-weight: 850; white-space: nowrap; }
.menu-card__hint { display: block; margin-top: 33px; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.menu-card__hint::after { content: "＋"; margin-left: 5px; color: var(--orange); font-weight: 900; }
.menu-card[open] .menu-card__hint::after { content: "−"; }
.menu-card__details { border-top: 1px solid var(--line); padding: 18px 20px 20px; background: #fffdfb; }
.detail-label { margin: 0 0 6px; color: var(--muted); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-text { margin: 0; font-size: 0.93rem; line-height: 1.55; }
.detail-block + .detail-block { margin-top: 18px; }
.nutrition { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.nutrition div { padding: 10px 8px; border-radius: 12px; background: var(--soft); text-align: center; }
.nutrition dt { color: var(--muted); font-size: 0.72rem; }
.nutrition dd { margin: 4px 0 0; font-size: 0.94rem; font-weight: 800; }
.empty { padding: 48px 20px; border: 1px dashed #d9c2b7; border-radius: 18px; text-align: center; }
.empty__title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.empty p:not(.empty__title) { margin: 8px 0 18px; color: var(--muted); }
.empty button { border: 0; border-radius: 12px; padding: 12px 16px; background: var(--orange); color: white; font-weight: 750; cursor: pointer; }
.footer { border-top: 1px solid var(--line); background: white; }
.footer__inner { display: flex; align-items: center; gap: 34px; padding-block: 30px; }
.footer img { width: 150px; }
.footer p { max-width: 700px; margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1120px); }
  .masthead { min-height: 230px; }
  .masthead::after { background: linear-gradient(90deg, rgba(44, 20, 12, 0.98) 0%, rgba(44, 20, 12, 0.82) 66%, rgba(44, 20, 12, 0.4) 100%); }
  .masthead__photo { left: 32%; }
  .masthead__content { flex-direction: column; gap: 24px; padding-block: 26px 30px; }
  .brand { width: 154px; border-radius: 13px; }
  .updated { max-width: 310px; margin-top: 12px; font-size: 0.92rem; }
  .controls { padding-top: 12px; }
  .search { min-height: 50px; border-radius: 14px; }
  .category-nav { margin-top: 10px; }
  .menu { padding-block: 22px 52px; }
  .menu-grid { grid-template-columns: 1fr; gap: 10px; }
  .menu-card summary { min-height: 112px; padding: 17px 16px; }
  .menu-card__details { padding: 16px; }
  .menu-card__title { font-size: 1rem; }
  .menu-card__side { min-width: 76px; }
  .menu-card__price { font-size: 1.08rem; }
  .footer__inner { align-items: flex-start; flex-direction: column; gap: 16px; }
}

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