@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin-ext-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin-ext-600-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("./assets/fonts/roboto-condensed-latin-ext-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("./assets/fonts/roboto-condensed-latin-ext-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("./assets/fonts/roboto-condensed-latin-ext-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #191b17;
  --muted: #5d5a50;
  --olive: #34481f;
  --olive-dark: #243414;
  --olive-soft: #64743d;
  --gold: #b4932f;
  --gold-light: #d3bd75;
  --cream: #f5ead8;
  --cream-soft: #fff9ed;
  --shadow: 0 10px 26px rgb(32 39 20 / 14%);
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: #e8d8c0;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("./assets/parchment-texture.png");
  background-position: top center;
  background-repeat: repeat;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button,
a[href] {
  -webkit-tap-highlight-color: rgb(180 147 47 / 20%);
}

:focus-visible {
  outline: 3px solid #1565c0;
  outline-offset: 4px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--olive-dark);
  border: 2px solid var(--gold-light);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: block;
}

.header-art {
  width: min(100%, 1180px);
  height: clamp(250px, 42vw, 390px);
  margin: 0 auto;
  background-image: url("./assets/header-art.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  border-right: 4px solid var(--olive-dark);
  border-left: 4px solid var(--olive-dark);
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
}

.language-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px max(14px, env(safe-area-inset-right)) 7px max(14px, env(safe-area-inset-left));
  color: var(--cream-soft);
  background: linear-gradient(180deg, #3f5527, var(--olive-dark));
  border-top: 1px solid var(--gold-light);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 5px 16px rgb(32 39 20 / 18%);
}

.language-toolbar__label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.language-buttons {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgb(211 189 117 / 70%);
  border-radius: 999px;
}

.language-button {
  min-height: 40px;
  padding: 7px 14px;
  color: var(--cream-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.language-button:hover {
  background: rgb(255 255 255 / 10%);
}

.language-button.is-active {
  color: var(--olive-dark);
  background: var(--cream-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
}

#menu-content {
  display: block;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px clamp(14px, 4vw, 52px) 72px;
}

.loading-state {
  min-height: 90px;
  padding: 30px 16px;
  color: var(--olive-dark);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.category-nav {
  scroll-margin-top: 76px;
  padding: clamp(22px, 5vw, 38px);
  background: rgb(255 249 237 / 72%);
  border: 1px solid rgb(180 147 47 / 58%);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.category-nav__title {
  margin: 0 0 18px;
  color: var(--olive-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.category-nav__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-link,
.section-title,
.main-category-title,
.back-link,
.pdf-link {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.category-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  color: var(--olive-dark);
  background: linear-gradient(180deg, rgb(255 249 237 / 90%), rgb(239 224 197 / 88%));
  border: 2px solid var(--gold);
  border-radius: 13px;
  box-shadow: 3px 4px 0 rgb(52 72 31 / 12%);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

.category-link::before,
.category-link::after {
  content: "◆";
  margin: 0 8px;
  color: var(--gold);
  font-size: 9px;
}

.category-link:hover {
  color: white;
  background: var(--olive);
}

.menu-category {
  position: relative;
  scroll-margin-top: 76px;
  padding: clamp(34px, 7vw, 72px) 0 clamp(52px, 9vw, 86px);
}

.menu-category + .menu-category {
  border-top: 1px solid rgb(180 147 47 / 55%);
}

.main-category-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(30px, 5vw, 48px);
}

.main-category-title-wrap::before,
.main-category-title-wrap::after {
  content: "◆";
  flex: 0 1 85px;
  color: var(--gold);
  border-top: 1px solid var(--gold);
  font-size: 9px;
  line-height: 0;
}

.main-category-title-wrap::before {
  text-align: right;
}

.main-category-title {
  max-width: min(100%, 620px);
  margin: 0 8px;
  padding: 8px clamp(18px, 5vw, 42px) 10px;
  color: var(--cream-soft);
  background: var(--olive-dark);
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 3px var(--olive-dark),
    inset 0 0 0 4px var(--gold-light),
    4px 5px 0 rgb(52 72 31 / 15%);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.section-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 88px;
}

.section-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 40px;
  background-image: url("./assets/rope.png");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 40px auto;
  opacity: 0.88;
  transform: translateX(-50%);
}

.menu-section-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section-title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 5px 20px 7px;
  color: var(--olive-dark);
  background: rgb(248 237 217 / 88%);
  border: 2px solid var(--gold);
  border-radius: 13px;
  box-shadow: 3px 4px 0 rgb(52 72 31 / 12%);
  font-size: clamp(26px, 3.2vw, 31px);
  font-weight: 700;
  line-height: 1.02;
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: "◆";
  margin: 0 9px;
  color: var(--gold);
  font-size: 9px;
  vertical-align: middle;
}

.subcategory + .subcategory {
  margin-top: 20px;
}

.subcategory__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 3px;
  color: var(--olive-soft);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.subcategory__title::after {
  content: "";
  min-width: 24px;
  height: 1px;
  flex: 1;
  background: var(--gold);
}

.product {
  min-width: 0;
  padding: 7px 0 9px;
}

.product__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.product__name {
  min-width: 0;
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.product__price {
  min-width: 48px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--gold);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.product__description {
  max-width: 60ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.category-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-height: 250px;
  align-items: end;
  justify-items: center;
  margin: 44px auto 20px;
}

.category-art__image {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgb(35 39 25 / 12%));
}

.back-link,
.pdf-link {
  display: flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  padding: 9px 22px;
  color: var(--olive-dark);
  background: rgb(255 249 237 / 84%);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.back-link:hover,
.pdf-link:hover {
  color: white;
  background: var(--olive);
}

.menu-footer {
  padding: 14px 0 26px;
  border-top: 1px solid rgb(180 147 47 / 55%);
}

.pdf-link {
  min-height: 56px;
  margin-top: 10px;
  color: white;
  background: var(--olive-dark);
  font-size: 20px;
}

.language-dialog {
  width: min(calc(100% - 28px), 520px);
  padding: 34px clamp(22px, 7vw, 50px) 40px;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("./assets/parchment-texture.png");
  background-position: center;
  border: 3px solid var(--olive-dark);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 3px var(--cream),
    inset 0 0 0 5px var(--gold),
    0 22px 70px rgb(18 24 11 / 42%);
  text-align: center;
}

.language-dialog::backdrop {
  background: rgb(26 35 17 / 72%);
  backdrop-filter: blur(4px);
}

.language-dialog__ornament {
  color: var(--gold);
  font-size: 18px;
}

.language-dialog h2 {
  margin: 4px 0 12px;
  color: var(--olive-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.language-dialog p {
  margin: 0 0 24px;
  font-size: 17px;
}

.language-dialog__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.language-dialog__buttons button {
  min-height: 54px;
  padding: 10px 18px;
  color: white;
  background: var(--olive-dark);
  border: 2px solid var(--gold);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.language-dialog__buttons button:hover {
  background: var(--olive);
}

body.language-selection-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .section-grid::before {
    display: none;
  }

  .menu-section-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .header-art {
    height: 250px;
    border-right-width: 3px;
    border-left-width: 3px;
    border-radius: 0 0 13px 13px;
  }

  .language-toolbar {
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .language-toolbar__label {
    font-size: 17px;
  }

  .language-button {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 15px;
  }

  #menu-content {
    padding: 20px 14px 58px;
  }

  .category-nav {
    padding: 20px 14px;
    border-radius: 15px;
  }

  .category-nav__links {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .category-link {
    min-height: 50px;
    font-size: 19px;
  }

  .menu-category {
    padding-top: 46px;
  }

  .main-category-title-wrap::before,
  .main-category-title-wrap::after {
    flex-basis: 20px;
  }

  .main-category-title {
    padding: 8px 17px 10px;
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .section-title {
    padding: 6px 13px 8px;
    font-size: 26px;
  }

  .section-title::before,
  .section-title::after {
    margin: 0 6px;
  }

  .subcategory + .subcategory {
    margin-top: 22px;
  }

  .product {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .product__row {
    gap: 10px;
  }

  .product__name,
  .product__price {
    font-size: 17px;
  }

  .product__description {
    font-size: 13.5px;
  }

  .category-art {
    gap: 10px;
    min-height: 180px;
    margin-top: 34px;
  }

  .category-art__image {
    max-width: 100%;
    height: 180px;
  }

  .back-link,
  .pdf-link {
    font-size: 17px;
  }
}

@media (max-width: 370px) {
  .language-toolbar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .language-toolbar {
    justify-content: center;
  }

  .main-category-title {
    font-size: 28px;
  }

  .section-title {
    width: 100%;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
