/* Self-hosted fonts keep the QR menu independent from third-party requests. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("public/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("public/fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("public/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("public/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("public/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("public/fonts/permanent-marker-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #0b0b0b;
  --white: #fff;
  --off-white: #f4f4f1;
  --red: #e52b24;
  --gray: #666;
  --line: #d8d8d3;
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(126px + env(safe-area-inset-top)); }
body {
  margin: 0;
  color: var(--black);
  background: var(--off-white);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button, a, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.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;
}
.eyebrow {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Language entry */
.language-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
  background: var(--white) url("paper.png") center / cover no-repeat;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.language-gate__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 26px 22px 20px;
  overflow: hidden;
  text-align: center;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 10px 10px 0 var(--black);
}
.language-gate__panel::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -24px;
  width: 100px;
  height: 16px;
  background: var(--red);
  transform: rotate(-13deg);
}
.language-gate__logo { width: 96px; height: 96px; object-fit: cover; }
.language-gate h1 {
  margin: 2px 0 0;
  font: 400 1.65rem/1.1 "Permanent Marker", cursive;
  text-transform: none;
}
.language-gate__intro { margin: 10px auto 18px; color: var(--gray); font-size: .75rem; }
.language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.language-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.language-option:nth-child(even) { transform: rotate(1deg); }
.language-option:hover, .language-option:focus-visible { color: var(--white); background: var(--red); transform: rotate(-1deg); outline: none; }
.language-option strong { display: block; font-size: .82rem; }
.language-option small { display: block; color: currentColor; font-size: .68rem; opacity: .62; }
.language-option__flag { font-size: 1.25rem; }
.language-gate__note { margin: 15px 0 0; color: var(--gray); font-size: .65rem; }

/* Compact shop header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-right: max(16px, env(safe-area-inset-right), calc((100% - var(--max-width)) / 2));
  padding-left: max(16px, env(safe-area-inset-left), calc((100% - var(--max-width)) / 2));
  color: var(--white);
  background: rgb(11 11 11 / 97%);
  border-bottom: 4px solid var(--red);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: cover; }
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 58px;
  min-height: 44px;
  justify-content: center;
  padding: 8px 11px;
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 48%);
  cursor: pointer;
}
.language-switch:hover { background: var(--red); border-color: var(--red); }

.menu-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
  background: var(--off-white);
}
.menu-intro h1 { position: relative; display: inline-block; margin: 0; font: 400 2rem/1 "Permanent Marker", cursive; }
.menu-intro h1::after { content: ""; position: absolute; left: -3px; right: -14px; bottom: -5px; height: 4px; background: var(--red); transform: rotate(-2deg); }

/* Sticky categories */
.category-nav {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  gap: 7px;
  padding-top: 8px;
  padding-right: max(16px, env(safe-area-inset-right), calc((100% - var(--max-width)) / 2));
  padding-bottom: 8px;
  padding-left: max(16px, env(safe-area-inset-left), calc((100% - var(--max-width)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar, .featured-track::-webkit-scrollbar { display: none; }
.category-link {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--black);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 transparent;
  transform-origin: center;
  scroll-snap-align: start;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.category-link:nth-child(3n + 1) { transform: rotate(-.65deg); }
.category-link:nth-child(3n + 2) { transform: rotate(.45deg); }
.category-link:nth-child(3n) { transform: translateY(1px) rotate(-.25deg); }
.category-link:hover, .category-link.is-active {
  color: var(--white);
  background: var(--red);
  border-color: var(--black);
  box-shadow: 2px 2px 0 var(--black);
  transform: rotate(-1deg) translateY(-1px);
}

/* Menu */
.menu-content { max-width: var(--max-width); margin: 0 auto; padding: 25px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); }
.featured { margin-bottom: 40px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.section-heading h2 {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0;
  padding: 2px 7px 3px 4px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.035em;
}
.section-heading h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -7px;
  bottom: 0;
  left: -5px;
  height: 9px;
  background: var(--red);
  clip-path: polygon(1% 40%, 18% 17%, 37% 33%, 59% 0, 76% 25%, 100% 8%, 97% 75%, 74% 64%, 51% 100%, 25% 72%, 0 92%);
  transform: rotate(-1.2deg);
}
.section-heading--featured h2 { text-transform: uppercase; }
.menu-section:nth-child(even) .section-heading h2::before { transform: rotate(.8deg); }
.section-count, .swipe-hint { color: var(--gray); font-size: .66rem; font-weight: 600; white-space: nowrap; }
.featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 65vw);
  gap: 10px;
  margin-right: -16px;
  padding-right: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.featured-card {
  display: grid;
  grid-template-rows: 145px auto;
  overflow: hidden;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black);
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 3px 3px 0 var(--black);
  transform: rotate(-.25deg);
  outline-offset: 3px;
}
.featured-card:nth-child(even) { transform: rotate(.35deg); }
.featured-card:hover { transform: rotate(-.6deg) translateY(-2px); }
.featured-card img, .featured-card > .image-placeholder { width: 100%; height: 145px; object-fit: cover; }
.featured-card__copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px; }
.featured-card__copy h3 { margin: 0; font-size: .84rem; line-height: 1.3; }
.featured-card__copy strong { flex: none; color: var(--red); font-size: .82rem; }
.menu-section { margin: 0 0 38px; }
.dish-grid { display: grid; gap: 9px; }
.dish-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.dish-card:hover { border-color: var(--black); transform: translateY(-1px); }
.dish-card__button { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; width: 100%; min-height: 126px; padding: 0; text-align: left; background: transparent; border: 0; cursor: pointer; }
.dish-card__copy { display: flex; flex-direction: column; padding: 14px 0 13px 14px; }
.dish-card h3 { margin: 0 0 6px; font-size: .9rem; line-height: 1.25; }
.dish-description { display: -webkit-box; margin: 0; overflow: hidden; color: var(--gray); font-size: .75rem; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dish-description:empty { display: none; }
.dish-meta { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 9px; }
.dish-price { color: var(--red); font-size: .84rem; }
.age-badge { padding: 2px 5px; color: var(--white); font-size: .56rem; font-weight: 800; background: var(--black); }
.dish-image-wrap { position: relative; min-height: 126px; overflow: hidden; background: #deded9; }
.dish-image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.dish-card:hover img { transform: scale(1.025); }
.image-placeholder { display: grid; width: 100%; height: 100%; min-height: 126px; place-content: center; padding: 8px; color: var(--white); font: 400 .75rem/1.1 "Permanent Marker", cursive; text-align: center; background: repeating-linear-gradient(135deg, var(--black), var(--black) 12px, #222 12px, #222 24px); }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state span { display: grid; width: 38px; height: 38px; margin: 0 auto 12px; place-content: center; color: var(--white); font-size: 1.4rem; background: var(--red); }
.empty-state h2 { margin: 0; font-size: 1.25rem; }
.empty-state p { color: var(--gray); font-size: .75rem; }

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px max(16px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: var(--white);
  background: var(--black);
  border-top: 5px solid var(--red);
}
footer img { width: 62px; height: 62px; object-fit: cover; }
footer strong { font-size: .75rem; }

/* Dish details */
.dish-dialog { width: min(92vw, 520px); max-height: 88dvh; padding: 0; overflow: auto; color: var(--black); background: var(--white); border: 3px solid var(--black); box-shadow: none; -webkit-overflow-scrolling: touch; }
.dish-dialog::backdrop { background: rgb(0 0 0 / 76%); }
.dialog-close { position: fixed; z-index: 2; width: 44px; height: 44px; margin: 10px; color: var(--white); font-size: 1.35rem; background: var(--black); border: 2px solid var(--white); cursor: pointer; }
.dialog-image, .dialog-placeholder { width: 100%; height: 250px; object-fit: cover; }
.dialog-placeholder { min-height: 250px; }
.dialog-copy { padding: 20px; }
.dialog-copy .eyebrow { display: inline-block; margin: 0 0 9px; padding: 3px 6px; color: var(--white); background: var(--red); }
.dialog-copy h2 { margin: 0 0 10px; font-size: 1.25rem; }
.dialog-copy p { margin: 0; color: var(--gray); font-size: .78rem; line-height: 1.55; }
.dialog-copy strong { display: block; margin-top: 16px; color: var(--red); font-size: 1rem; }

@media (min-width: 680px) {
  .featured-track { grid-auto-columns: 250px; margin-right: 0; padding-right: 0; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-card__button { grid-template-columns: minmax(0, 1fr) 120px; min-height: 138px; }
  .dish-image-wrap, .image-placeholder { min-height: 138px; }
}

@media (min-width: 980px) {
  .menu-intro { padding-top: 32px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-height: 420px) and (orientation: landscape) {
  .language-gate { place-items: start center; }
  .language-gate__panel { margin-block: auto; padding: 14px 22px 12px; }
  .language-gate__logo { width: 70px; height: 70px; }
  .language-gate h1 { font-size: 1.35rem; }
  .language-gate__intro { margin: 5px auto 9px; }
  .language-option { min-height: 46px; padding-block: 7px; }
}

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