:root {
  color-scheme: light;
  --paper: #f5f3ef;
  --ink: #242224;
  --muted: #5f5651;
  --accent-ink: #87370f;
  --rule: #d6cec5;
  --serif: Georgia, "Noto Serif Georgian", serif;
  --sans: "Avenir Next", "Noto Sans Georgian", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  scrollbar-gutter: stable;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }

html:has(.dish-dialog[open]) { overflow: hidden; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.frame {
  width: min(100% - 64px, 1160px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--paper);
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 108px;
  padding-block: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  display: block;
  width: 132px;
  height: 86px;
  object-fit: contain;
}

.language {
  display: flex;
  gap: 6px;
}

.language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
}

.language a[aria-current="page"] {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.category-nav {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.category-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b8a99a transparent;
  padding-inline: 4px;
}

.category-links a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: .9375rem;
  font-weight: 650;
}

.category-links a:hover, .category-links a[aria-current] {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

.category-links a:focus-visible { outline-offset: -2px; }

#menu {
  outline-offset: 4px;
  scroll-margin-top: 57px;
}

.menu-section {
  padding-block: 38px 42px;
  scroll-margin-top: 57px;
}

.menu-section + .menu-section { border-top: 1px solid var(--rule); }

.section-heading {
  margin-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}

:lang(ka) h2 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  letter-spacing: -.025em;
  line-height: 1.14;
}

.menu-group + .menu-group { margin-top: 24px; }

.group-heading {
  margin: 0 0 4px;
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 700;
}

.dish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}

.dish-open {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.dish-open:focus-visible { outline-offset: -2px; }

.dish-dialog {
  width: min(var(--dialog-width, 640px), calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
}

.dish-dialog::backdrop { background: rgb(24 19 17 / 65%); }

.dialog-controls {
  position: sticky;
  z-index: 1;
  top: 12px;
  display: flex;
  justify-content: flex-end;
  height: 0;
  margin: 0 12px;
}

.dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.dialog-media {
  width: min(100%, var(--photo-width, 640px));
  margin-inline: auto;
}

.dialog-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece6dd;
}

.dialog-details { padding: 28px; }

.dialog-media[hidden] + .dialog-details { padding-top: 72px; }

.dialog-category {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.dialog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.dish-dialog .dialog-title {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.dialog-price {
  flex: none;
  margin: 0;
  color: var(--accent-ink);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dialog-description {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.dish-photo {
  display: block;
  flex: 0 0 auto;
  width: 106px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  background: #ece3d6;
  object-fit: cover;
}

.dish-copy { flex: 1; min-width: 0; }

.dish-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.dish-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dish-price {
  flex: none;
  margin: 0;
  color: var(--accent-ink);
  font-size: .9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.dish-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.footer {
  padding-block: 30px;
  border-top: 1px solid var(--rule);
  background: #eee6da;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  font-size: .875rem;
  line-height: 1.55;
}

.footer p { margin: 0; }

.related-menu {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.footer .footer-brand {
  margin-bottom: 4px;
  color: var(--accent-ink);
  font-weight: 700;
}

@media (max-width: 880px) {
  .frame { width: calc(100% - 40px); }
  .dish-list { column-gap: 22px; }
  .dish { gap: 11px; }
  .dish-photo { width: 84px; }
}

@media (max-width: 680px) {
  .frame { width: calc(100% - 28px); }
  .masthead {
    min-height: 84px;
    padding-block: 9px;
  }
  .brand img { width: 102px; height: 66px; }
  .category-links { gap: 18px; }
  .category-links a { min-height: 48px; font-size: .875rem; }
  .menu-section { padding-block: 28px 30px; }
  .section-heading { margin-bottom: 14px; }
  .dish-list { grid-template-columns: 1fr; }
  .dish { padding-block: 11px; }
  .dish-photo { width: 82px; }
  .dish-name { font-size: 1rem; }
  .footer-content { flex-direction: column; }
}
