:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #241c17;
  background: #f5f0e8;
  font-synthesis: none;
  --brand: #9e2a2b;
  --brand-dark: #6e1719;
  --brand-soft: #f2d9d5;
  --cream: #f5f0e8;
  --paper: #fffdf9;
  --ink: #241c17;
  --muted: #786c63;
  --line: #ded5c9;
  --gold: #c79445;
  --green: #405c45;
  --shadow: 0 24px 70px rgba(48, 28, 18, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; min-width: 0; min-height: 100vh; overflow-x: clip; background: var(--cream); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

:where(button, a, input):focus-visible {
  outline: 3px solid #e7b55f;
  outline-offset: 3px;
}

.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; background: #201814; color: #fffaf2; }
.loading-screen p { margin: 0; color: #bfb3a9; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.loading-mark { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid #5a4840; border-radius: 50%; font: italic 700 2.7rem Georgia, serif; color: #fff; }
.loading-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; }
.loading-line { width: 150px; height: 2px; overflow: hidden; background: #493a34; }
.loading-line span { display: block; width: 55%; height: 100%; background: var(--gold); animation: load 1.1s ease-in-out infinite alternate; }
.retry-button { min-height: 44px; margin-top: 6px; padding: 0 18px; border: 1px solid #6b574d; border-radius: 999px; color: white; background: transparent; font-weight: 800; }
.retry-button:hover { border-color: #e0ad57; color: #e0ad57; }
@keyframes load { to { transform: translateX(85%); } }

.restaurant-header { position: relative; overflow: hidden; color: #fffaf2; background: #201814; }
.restaurant-header::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px; mask-image: linear-gradient(to right, transparent 15%, #000); }
.header-inner, .menu-inner, .footer-inner { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { min-width: 0; min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-mark { width: 72px; height: 72px; display: grid; place-items: center; flex: none; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: #fff; font: italic 700 1.8rem Georgia, serif; color: var(--brand); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-copy { min-width: 0; display: grid; gap: 3px; }
.brand-copy strong { min-width: 0; overflow: hidden; font: 700 clamp(1.25rem, 3vw, 1.65rem) Georgia, serif; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { margin: 0; color: var(--brand); font-size: .68rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.restaurant-header .eyebrow { color: #d6a65a; }
.language-control { display: flex; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); }
.language-control button { width: 44px; height: 35px; border: 0; border-radius: 999px; color: #c9beb6; background: transparent; font-size: .72rem; font-weight: 800; transition: .2s ease; }
.language-control button.active { color: #fff; background: var(--brand); }

.restaurant-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.meta-item { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-right: 1px solid rgba(255,255,255,.13); color: #d9cec5; font-size: .78rem; font-weight: 650; text-decoration: none; }
.meta-item:last-child { border: 0; }
.meta-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #e0ad57; }

.menu-section { padding: 88px 0 100px; }
.menu-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.menu-intro h2 { margin: 8px 0 0; font: 600 clamp(2.6rem, 5vw, 4rem)/1 Georgia, serif; letter-spacing: -.035em; }
.result-count { padding-bottom: 7px; color: var(--muted); font-size: .8rem; font-weight: 750; }
.menu-tools { position: sticky; z-index: 10; top: 0; display: grid; grid-template-columns: minmax(280px, .72fr) 1.28fr; align-items: center; gap: 16px; margin: 0 -10px 34px; padding: 12px 10px; background: rgba(245,240,232,.93); backdrop-filter: blur(16px); }
.search-field { min-height: 52px; display: grid; grid-template-columns: 20px 1fr 34px; align-items: center; gap: 10px; padding: 0 8px 0 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.search-symbol { position: relative; width: 15px; height: 15px; border: 1.8px solid var(--muted); border-radius: 50%; }
.search-symbol::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; transform: rotate(45deg); background: var(--muted); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .88rem; }
.search-field button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--muted); background: #f0eae2; font-size: 1.25rem; }
.category-control { min-width: 0; }
.category-tabs { display: flex; justify-content: flex-end; gap: 8px; overflow-x: auto; padding: 2px; scroll-padding-inline: 8px; overscroll-behavior-inline: contain; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-hint { display: none; }
.category-tabs button { min-height: 46px; flex: none; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: #51463f; background: transparent; font-size: .78rem; font-weight: 800; transition: .2s ease; }
.category-tabs button:hover { border-color: #b9aa9a; background: var(--paper); }
.category-tabs button.active { border-color: var(--brand); color: white; background: var(--brand); box-shadow: 0 9px 22px rgba(158,42,43,.2); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { position: relative; aspect-ratio: 4/3.1; overflow: hidden; background: #e9dfd2; }
.product-image::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(26,14,9,.4)); pointer-events: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-card.unavailable img { filter: grayscale(.85); opacity: .72; }
.product-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font: italic 700 4rem Georgia, serif; color: var(--brand); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.product-image .badge-row { position: absolute; z-index: 2; top: 14px; left: 14px; }
.badge { padding: 6px 9px; border-radius: 999px; color: white; background: #d46532; font-size: .61rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.badge.featured { color: #2b1d0b; background: #e4b85f; }
.badge.unavailable-badge { background: #4b4541; }
.product-content { padding: 20px; }
.product-category { margin: 0 0 8px; color: var(--brand); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.product-content h3 { margin: 0; font: 700 1.45rem/1.15 Georgia, serif; letter-spacing: -.015em; }
.product-description { min-height: 44px; display: -webkit-box; overflow: hidden; margin: 10px 0 18px; color: var(--muted); font-size: .84rem; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prep-time { width: fit-content; margin: 0 0 18px; padding: 7px 10px; border-radius: 999px; color: var(--green); background: #e8eee7; font-size: .7rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #eee6dc; }
.product-price { color: var(--brand-dark); font: 700 1.02rem Georgia, serif; }
.detail-button { min-height: 38px; padding: 0 14px; border: 1px solid #d8cdc1; border-radius: 999px; color: var(--ink); background: transparent; font-size: .72rem; font-weight: 800; transition: .2s ease; }
.detail-button:hover { border-color: var(--brand); color: white; background: var(--brand); }
.unavailable .detail-button { color: #9b918b; }

.empty-state { padding: 80px 20px; text-align: center; }
.empty-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--paper); font-size: 1.8rem; }
.empty-state h2 { margin: 0 0 8px; font: 700 1.8rem Georgia, serif; }
.empty-state p { margin: 0; color: var(--muted); }

.restaurant-footer { padding: 46px 0; color: #fffaf2; background: #201814; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-monogram { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #66544a; border-radius: 50%; font: italic 700 1.35rem Georgia, serif; }
.footer-monogram img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; }
.footer-brand strong { font-family: Georgia, serif; }
.footer-brand p, .footer-note { margin: 4px 0 0; color: #a99b91; font-size: .76rem; }
.footer-note { margin: 0; font-style: italic; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; color: #ddd1c7; font-size: .76rem; font-weight: 700; text-decoration: none; }

.product-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 32px 90px rgba(20,10,6,.4); }
.product-dialog::backdrop { background: rgba(23,14,10,.75); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,253,249,.92); font-size: 1.45rem; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.dialog-image { aspect-ratio: 16/8; overflow: hidden; background: #e9dfd2; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: 30px 34px 34px; }
.dialog-body .badge-row { margin-bottom: 12px; }
.dialog-body h2 { margin: 7px 0 14px; font: 700 clamp(2rem, 5vw, 3rem)/1 Georgia, serif; }
.dialog-description { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.7; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-prep { margin: 0; color: var(--green); font-size: .8rem; font-weight: 750; }
.dialog-price { color: var(--brand-dark); font: 700 1.4rem Georgia, serif; }

@media (max-width: 900px) {
  .menu-tools { grid-template-columns: 1fr; }
  .category-tabs { justify-content: flex-start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { display: none; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 130px; }
  .header-inner, .menu-inner, .footer-inner { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 86px; grid-template-columns: minmax(0, 1fr); display: grid; gap: 12px; padding: 15px 0; }
  .brand { width: 100%; gap: 10px; }
  .brand-mark { width: 68px; height: 68px; }
  .brand-copy .eyebrow { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .55rem; letter-spacing: .12em; }
  .brand-copy strong { font-size: clamp(1.02rem, 5.2vw, 1.18rem); }
  .language-control { padding: 3px; }
  .language-control { width: 100%; }
  .language-control button { width: auto; height: 44px; flex: 1; font-size: .68rem; }
  .restaurant-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0 14px; }
  .meta-item { min-width: 0; min-height: 52px; justify-content: flex-start; padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; font-size: .7rem; line-height: 1.35; overflow-wrap: anywhere; }
  .meta-item:first-child { grid-column: 1 / -1; }
  .meta-item:last-child { border: 1px solid rgba(255,255,255,.12); }
  .meta-icon { width: 28px; height: 28px; }
  .menu-section { padding: 44px 0 64px; }
  .menu-intro { margin-bottom: 20px; }
  .menu-intro h2 { font-size: 2.65rem; }
  .menu-tools { margin-inline: -7px; margin-bottom: 24px; padding-inline: 7px; }
  .search-field input { min-height: 44px; }
  .category-control { position: relative; padding-bottom: 20px; }
  .category-tabs { padding-right: 44px; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 42px), transparent 100%); }
  .category-hint { position: absolute; right: 4px; bottom: 0; display: block; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .02em; }
  .category-tabs button { min-height: 44px; padding-inline: 15px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { display: grid; grid-template-columns: 39% 61%; border-radius: 16px; }
  .product-image { min-height: 230px; aspect-ratio: auto; }
  .product-content { display: flex; min-width: 0; flex-direction: column; padding: 15px 14px; }
  .product-content h3 { font-size: 1.18rem; }
  .product-description { min-height: 0; margin: 8px 0 12px; font-size: .77rem; -webkit-line-clamp: 3; }
  .prep-time { margin-bottom: 12px; padding: 5px 8px; font-size: .62rem; }
  .product-footer { align-items: stretch; flex-direction: column; margin-top: auto; padding-top: 11px; }
  .product-price { font-size: .96rem; }
  .detail-button { min-height: 44px; width: 100%; }
  .product-image .badge-row { top: 9px; left: 8px; }
  .badge { padding: 5px 7px; font-size: .54rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; gap: 8px 16px; }
  .dialog-image { aspect-ratio: 4/3; }
  .dialog-body { padding: 24px 20px 26px; }
  .dialog-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand-copy .eyebrow { display: none; }
  .language-control button { min-height: 38px; }
}

@media (max-width: 430px) {
  .menu-intro { align-items: flex-start; }
  .menu-intro h2 { font-size: 2.35rem; }
  .result-count { padding-top: 8px; }
  .product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; gap: 0 12px; min-height: 0; padding: 12px; }
  .product-image { grid-column: 1; grid-row: 1 / 4; width: 112px; height: 112px; min-height: 0; aspect-ratio: 1; margin: 0; border-radius: 12px; }
  .product-content { display: contents; }
  .product-category { grid-column: 2; grid-row: 1; align-self: end; margin: 2px 0 6px; }
  .product-content h3 { grid-column: 2; grid-row: 2; align-self: start; font-size: 1.18rem; }
  .product-description { grid-column: 2; grid-row: 3; min-height: 0; display: -webkit-box; align-self: start; margin: 7px 0 0; font-size: .76rem; line-height: 1.42; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .prep-time { grid-column: 1 / -1; grid-row: 4; margin: 12px 0 0; padding: 7px 9px; }
  .product-footer { grid-column: 1 / -1; grid-row: 5; align-items: center; flex-direction: row; gap: 12px; margin-top: 10px; padding-top: 11px; }
  .product-price { min-width: 0; overflow-wrap: anywhere; }
  .detail-button { width: auto; min-width: 112px; margin-left: auto; }
}

@media (max-width: 390px) {
  .brand-mark { width: 64px; height: 64px; }
  .restaurant-meta { grid-template-columns: 1fr; }
  .meta-item:first-child { grid-column: auto; }
  .menu-intro h2 { font-size: 2.05rem; }
  .product-card { grid-template-columns: 104px minmax(0, 1fr); }
  .product-image { width: 104px; height: 104px; }
}

@media (max-width: 340px) {
  .product-card { grid-template-columns: 92px minmax(0, 1fr); gap: 0 10px; padding: 10px; }
  .product-image { width: 92px; height: 92px; }
  .product-description { font-size: .72rem; -webkit-line-clamp: 2; }
  .product-footer { align-items: stretch; flex-direction: column; gap: 9px; }
  .detail-button { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
