/* НАСТРОЙКИ МЕНЮ. Меняйте значения справа, сохраняя px, % и точки с запятой. */
:root {
  /* Расстояния и отступы */
  --button-gap: 4px;           /* Между кнопками меню */
  --buttons-top: 22px;          /* От стыка досок до первой кнопки */
  --buttons-side: clamp(20px, 7vw, 40px); /* Отступы блока от краёв экрана */
  --button-height: 48px;        /* Минимальная высота кнопки */
  --button-padding: 8px 0;   /* Внутри кнопки, сверху и сбоку */
  --heading-padding: 27px 12px 25px; /* Вокруг MENU, сверху / сбоку / снизу */
  --instagram-gap: 52px;        /* От последней кнопки до Instagram */
  --awards-padding: 20px 0 21px; /* Вокруг наград, сверху / сбоку / снизу */
  --award-gap: 10px;            /* Между наградами */

  /* Прозрачность белого слоя над деревом и подсветка ссылок. */
  --wood-overlay: rgb(255 255 255 / 77%);
  --button-hover: rgb(255 255 255 / 47%); /* При наведении и нажатии */

  /* Цвета текста и значков */
  --restaurant-text: #555;   /* Название, город и год */
  --menu-text: #151515;         /* Заголовок MENU */
  --button-text: #171717;       /* Названия категорий и иконка Instagram */

  --wall: #fff;
  --shutter: #154232;
  font-family: "Courier New", Courier, monospace;
  color: var(--shutter);
  background: var(--wall);
}

body {
  margin: 0;
}

.menu-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.welcome {
  padding: 21px 16px 19px;
  text-align: center;
}

.language-switch:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: -12px 0 2px;
  color: var(--restaurant-text);
  font-size: 14px;
}

.language-switch a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  text-decoration: none;
}

.language-switch a[aria-current] {
  color: var(--menu-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.categories li {
  scroll-margin-top: 12px;
}

.logo {
  display: block;
  width: 54px;
  height: auto;
  margin-inline: auto;
}

.restaurant-name {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
  color: var(--restaurant-text);
  font-size: 13px;
  line-height: 1.15;
}

.restaurant-name strong {
  font-size: clamp(20px, 5.6vw, 30px);
}

h1 {
  margin: 0;
  color: var(--menu-text);
  text-align: center;
  font-size: clamp(25px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.menu-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-block: 1px solid rgb(120 85 47 / 25%);
}

.menu-heading {
  padding: var(--heading-padding);
  border-bottom: 1px solid rgb(120 85 47 / 33%);
  background: linear-gradient(var(--wood-overlay), var(--wood-overlay)), #ead5ab url("./sfondo-fascia.webp") center / 100% 100% no-repeat;
}

.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--buttons-top) var(--buttons-side) 0;
  text-align: center;
  background: linear-gradient(var(--wood-overlay), var(--wood-overlay)), #e9d4a6 url("./sfondo-tavole.webp") center top / cover no-repeat;
}

.categories {
  display: grid;
  gap: var(--button-gap);
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.categories a {
  box-sizing: border-box;
  display: flex;
  min-height: var(--button-height);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: var(--button-padding);
  border-bottom: 2px dotted rgb(23 23 23 / 65%);
  color: var(--button-text);
  font-size: clamp(16px, 4.45vw, 19px);
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.take-away {
  margin-top: 23px;
}

.take-away a {
  justify-content: center;
  border-bottom: 0;
  text-align: center;
}

.categories a:active,
.instagram:active {
  background: var(--button-hover);
}

@media (hover: hover) {
  .categories a:hover,
  .instagram:hover {
    background: var(--button-hover);
  }
}

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

.notice {
  margin: 0;
  color: var(--shutter);
  font-size: 14px;
  line-height: 1.4;
}

li .notice {
  padding: 7px 9px 0;
  text-align: center;
}

.notice:empty {
  padding: 0;
}

footer {
  margin-top: auto;
  padding: var(--awards-padding);
  text-align: center;
}

.awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--award-gap);
}

.awards img,
.award-badge {
  width: 76px;
  height: auto;
  border-radius: 4px;
}

.award-badge {
  display: inline-block;
  background-image: url("./awards-reference.png");
  background-repeat: no-repeat;
}

.award-italian {
  aspect-ratio: 240 / 190;
  background-size: 672.92% 266.84%;
  background-position: 26.91% 18.61%;
}

.award-recommended {
  aspect-ratio: 260 / 270;
  background-size: 621.15% 187.78%;
  background-position: 48.71% 8.44%;
}

.award-service {
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: 625.97% 196.51%;
  background-position: 71.19% 10.84%;
}

.award-tripadvisor {
  width: 132px;
  aspect-ratio: 263 / 82;
  margin-top: 14px;
  background-size: 614.07% 618.29%;
  background-position: 49.26% 92.71%;
}

.instagram {
  display: inline-grid;
  align-self: center;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-top: var(--instagram-gap);
}

.instagram-icon {
  position: relative;
  box-sizing: border-box;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.instagram-caption {
  max-width: 28rem;
  margin: 4px auto 24px;
  color: var(--button-text);
  font-size: 14px;
  line-height: 1.5;
}

.instagram-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.instagram-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

@media (min-width: 48rem) {
  .welcome {
    padding-top: 30px;
  }

}
