/* Palette taken from the restaurant's own menu folder: burgundy leather cover,
   the dark green bands over each printed section, warm off-white paper. */
:root {
  --paper: #FBF7EF;
  --paper-2: #F2EBDC;
  --ink: #201C17;
  --ink-2: #6D6455;
  --ink-3: #928979;
  --wine: #6E1F28;
  --wine-deep: #591820;
  --green: #1C4A33;
  --cream: #F7EFE0;
  --rule: rgba(32, 28, 23, .13);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Alegreya Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}

/* paper grain — fixed, so a long list never repaints it while scrolling */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--wine);
  color: var(--cream);
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.titles { flex: 1 1 auto; min-width: 0; }

.brand {
  margin: 0;
  font-family: Alegreya, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .01em;
}

/* the landing screen is the one place the name gets to be a name */
.is-index .brand { font-size: 28px; }

.tagline { margin: 3px 0 0; font-size: 12.5px; color: rgba(247, 239, 224, .6); }

.back {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border: 1px solid rgba(247, 239, 224, .34);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0;
  cursor: pointer;
  position: relative;
  transition: background-color .4s cubic-bezier(.32, .72, 0, 1);
}
.back::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  width: 9px; height: 9px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.back:active { background: rgba(247, 239, 224, .16); }

.lang select {
  appearance: none;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 239, 224, .34);
  border-radius: 2px;
  padding: 6px 9px;
  /* system font on purpose: the options name every language, so rendering them
     in Alegreya would pull the Greek and Cyrillic subsets down for every guest */
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: .03em;
  min-height: 34px;
  cursor: pointer;
}

/* ---------- shell ---------- */

main { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.status { padding: 56px 0; text-align: center; color: var(--ink-2); }

/* ---------- index: the categories, two to a row ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 0 8px;
}

.tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 74px;
  padding: 13px 13px 13px 15px;
  background: var(--paper-2);
  border-left: 3px solid var(--green);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .4s cubic-bezier(.32, .72, 0, 1);
}
.tile:active { background: #E8DFCB; }

.tile-name {
  font-family: Alegreya, Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.tile-count {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.tile--legend {
  grid-column: 1 / -1;
  min-height: 0;
  border-left-color: var(--wine);
  background: transparent;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tile--legend .tile-name { font-size: 15px; font-style: italic; color: var(--ink-2); }

.review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 16px 0 4px;
  padding: 15px 18px;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  font-family: Alegreya, Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  transition: background-color .4s cubic-bezier(.32, .72, 0, 1);
}
.review:active { background: var(--wine-deep); }
.review-star { font-size: 14px; color: #E0B252; }

/* ---------- category detail ---------- */

.detail { padding-top: 6px; }

/* a direct quote of the green section bands on the printed menu */
.group {
  margin: 26px -20px 2px;
  padding: 9px 20px;
  background: var(--green);
  color: var(--cream);
  font-family: "Alegreya Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.detail > .group:first-child { margin-top: 10px; }

.item { padding: 15px 0; border-bottom: 1px solid var(--rule); }
.detail > .item:last-of-type { border-bottom: none; }

.item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.item-name {
  margin: 0;
  flex: 1 1 auto;
  font-family: Alegreya, Georgia, serif;
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.25;
}
.item-price {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 15px;
  font-weight: 700;
  color: var(--wine);
}
.item-desc {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 46ch;
}

.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.badge {
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 1px;
}
.badge--vegetarian { color: #2F6B43; }
.badge--frozen { color: #3B6280; }

.item-allergens { margin: 7px 0 0; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); }

/* ---------- allergen list ---------- */

.legend-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 8px 14px;
  font-size: 14px;
}
.legend-list li { display: flex; align-items: baseline; gap: 9px; }
.legend-num {
  flex: 0 0 20px;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wine);
}
.legend-notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 3px solid var(--green);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- footer ---------- */

.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}
.footer p { margin: 0 0 8px; }
.footer p:last-child { margin-bottom: 0; }

@media (min-width: 560px) {
  .is-index .brand { font-size: 32px; }
}
