@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%);
  /* Dynamic sticky-offset system — measured into these at runtime by app.js. */
  --language-bar-height: 58px;
  --menu-nav-height: 40px;
  --combined-sticky-offset: 98px;
  --toolbar-height: 58px;
  --sticky-offset: 110px;
  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;
}

/* Section headings can receive programmatic focus (tabindex="-1") for a11y;
   never show a pointer-focus outline, but keep keyboard :focus-visible. */
.section-title:focus:not(:focus-visible) {
  outline: none;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1180px);
  height: clamp(300px, 26vw, 360px);
  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);
}

.header-logo {
  display: block;
  width: clamp(240px, 24vw, 310px);
  height: auto;
}

.language-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  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-toolbar__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: clamp(28px, 9vw, 38px);
  opacity: 0.97;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.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-tracker {
  position: fixed;
  top: var(--language-bar-height, 58px);
  right: 0;
  left: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));
  background: rgb(255 249 237 / 96%);
  border-bottom: 1.5px solid var(--gold);
  box-shadow: 0 4px 12px rgb(32 39 20 / 10%);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-tracker.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu-tracker__action {
  flex: none;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--olive-dark);
  background: rgb(255 249 237 / 90%);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.menu-tracker__action:hover {
  color: white;
  background: var(--olive);
}

.menu-tracker__path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--olive-dark);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#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: calc(var(--combined-sticky-offset, 98px) + 12px);
  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: minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 640px);
  margin: 0 auto;
}

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

.accordion-item {
  min-width: 0;
}

.accordion-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 42px;
  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;
  cursor: pointer;
}

.accordion-trigger__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.accordion-trigger__chevron {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--gold);
  transform: translateY(-50%);
  transition: transform 220ms ease;
}

.accordion-trigger:hover {
  color: white;
  background: var(--olive);
}

.accordion-trigger:hover .accordion-trigger__chevron {
  color: var(--gold-light);
}

.accordion-trigger[aria-expanded="true"] {
  color: var(--cream-soft);
  background: var(--olive-dark);
  border-radius: 13px 13px 0 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-trigger__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 240ms ease, visibility 0s linear 240ms;
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 240ms ease;
}

.accordion-panel__inner {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.accordion-panel.is-open .accordion-panel__inner {
  border: 2px solid rgb(180 147 47 / 60%);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: rgb(255 249 237 / 62%);
}

.subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 14px 12px 16px;
}

.subcategory-nav__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 14px;
  color: var(--olive-dark);
  background: rgb(255 249 237 / 88%);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.menu-icon {
  flex: none;
  width: 19px;
  height: 19px;
  color: inherit;
}

.menu-icon--nav {
  width: 19px;
  height: 19px;
}

.subcategory-nav__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.subcategory-nav__button:hover {
  color: white;
  background: var(--olive);
}

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

.menu-category {
  position: relative;
  scroll-margin-top: calc(var(--combined-sticky-offset, 98px) + 12px);
  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;
  scroll-margin-top: calc(var(--combined-sticky-offset, 98px) + 12px);
}

.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);
}

.subcategory__title-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-icon--heading {
  width: 21px;
  height: 21px;
  margin-right: -2px;
}

.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%));
}

.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;
}

.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) {
  .header-art {
    height: clamp(280px, 34vw, 330px);
  }

  .header-logo {
    width: clamp(200px, 28vw, 260px);
  }

  .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: clamp(275px, 78vw, 320px);
    border-right-width: 3px;
    border-left-width: 3px;
    border-radius: 0 0 13px 13px;
  }

  .header-logo {
    width: clamp(155px, 45vw, 200px);
  }

  .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;
  }

  .menu-tracker__path-category {
    display: none;
  }

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

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

  .accordion-trigger {
    min-height: 50px;
    padding-right: 36px;
    padding-left: 36px;
    font-size: 19px;
  }

  .accordion-trigger__chevron {
    right: 12px;
  }

  .subcategory-nav__button {
    font-size: 15px;
  }

  .menu-icon--nav {
    width: 17px;
    height: 17px;
  }

  .menu-icon--heading {
    width: 19px;
    height: 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;
  }

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

@media (min-width: 900px) {
  .language-toolbar__logo {
    height: 40px;
  }
}

@media (max-width: 400px) {
  .language-toolbar {
    gap: 6px;
  }

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

  .language-buttons {
    gap: 2px;
    padding: 2px;
  }

  .language-button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  .language-toolbar {
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

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

  .language-button {
    min-height: 32px;
    padding: 4px 7px;
    font-size: 13px;
  }

  .language-toolbar__logo {
    height: 27px;
  }
}

@media (max-width: 370px) {
  .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;
  }
}
