@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wdth,wght@75..112.5,200..400&family=Roboto+Serif:opsz,wdth,wght@8..144,50..100,300..600&family=Unbounded:wght@700..900&display=swap');

/* ==========================================================================
   Buddy & Son — menu pages
   Builds on styles.css (brand tokens, header, footer, buttons)
   ========================================================================== */

/* ---------- Menu masthead ---------- */
.menu-masthead {
  background: var(--green);
  color: var(--eggshell);
  padding: 56px 0 44px;
  text-align: center;
}
.menu-masthead h1 {
  font-family: 'Bacalar', var(--font-display, serif);
  font-weight: normal;
  text-transform: uppercase;
  color: var(--eggshell);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0 0 .35em;
}
.menu-masthead p {
  font-family: 'Salted', var(--font-body, sans-serif);
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin: 0;
}

/* ---------- Sticky menu tabs ---------- */
.menu-tabs {
  position: sticky;
  top: 88px;
  z-index: 15;
  background: rgba(246, 241, 221, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(33, 33, 33, .1);
}
.menu-tabs-inner {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.menu-tabs a {
  font-family: 'Salted', var(--font-body, sans-serif);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: .05em;
  color: var(--plum);
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.menu-tabs a:hover,
.menu-tabs a:focus-visible {
  background: var(--green);
  color: var(--eggshell);
}
@media (max-width: 780px) {
  .menu-tabs { top: 0; }
  .menu-tabs-inner { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .menu-tabs a { font-size: .95rem; padding: 6px 14px; }
}

/* ---------- Menu sections ---------- */
.menu-section {
  padding: 64px 0 8px;
  scroll-margin-top: 150px;
}
.menu-section + .menu-section {
  border-top: 1px solid rgba(33, 33, 33, .1);
}
.menu-section > .wrap > h2 {
  font-family: 'Bacalar', var(--font-display, serif);
  font-weight: normal;
  text-transform: uppercase;
  color: var(--plum);
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  line-height: 1.06;
  margin: 0 0 .15em;
}
.menu-section .section-note {
  font-family: 'Salted', var(--font-body, sans-serif);
  color: var(--green);
  font-size: 1.02rem;
  letter-spacing: .03em;
  margin: 0 0 8px;
}

/* ---------- Column flow ---------- */
.menu-columns {
  columns: 2;
  column-gap: 56px;
  margin-top: 28px;
}
@media (max-width: 860px) {
  .menu-columns { columns: 1; }
}

.menu-group {
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 34px;
}
.menu-group h3 {
  font-family: 'Salted', var(--font-body, sans-serif);
  font-weight: normal;
  text-transform: uppercase;
  color: var(--green);
  font-size: 1.3rem;
  letter-spacing: .05em;
  margin: 0 0 2px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
.menu-group .group-note {
  font-size: .86rem;
  opacity: .62;
  margin: 8px 0 0;
  font-style: italic;
}

/* ---------- Items ---------- */
.menu-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.menu-list .item { margin: 0 0 15px; }
.menu-list .item:last-child { margin-bottom: 0; }

.item-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.item-name {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--near-black);
}
.item-name .vintage {
  font-variant-numeric: tabular-nums;
  color: var(--near-black);
  opacity: .5;
  font-weight: 500;
  margin-right: 5px;
  font-size: .92em;
}
.leader {
  flex: 1 1 auto;
  min-width: 14px;
  align-self: center;
  border-bottom: 1px dotted rgba(33, 33, 33, .35);
  transform: translateY(-2px);
}
.item-price {
  font-family: 'Salted', var(--font-body, sans-serif);
  color: var(--plum);
  font-size: 1rem;
  letter-spacing: .02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.item-price .alt {
  display: block;
  text-align: right;
}
.item-desc {
  margin: 2px 0 0;
  font-size: .9rem;
  line-height: 1.45;
  opacity: .72;
  max-width: 54ch;
}
.item-sub {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  opacity: .72;
}
.item-sub li { margin: 1px 0; }

/* ---------- Wine-specific ---------- */
.price-head {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-family: 'Salted', var(--font-body, sans-serif);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--green);
  opacity: .8;
  margin-top: 10px;
}
.price-head span { width: 42px; text-align: right; }

.wine .item-price {
  display: inline-flex;
  gap: 18px;
  justify-content: flex-end;
}
.wine .item-price b {
  display: inline-block;
  width: 42px;
  text-align: right;
  font-weight: normal;
}

/* ---------- Footnote ---------- */
.menu-foot {
  padding: 10px 0 72px;
}
.menu-foot p {
  font-size: .88rem;
  opacity: .6;
  font-style: italic;
  margin: 0;
}

/* ---------- Back to top / home ---------- */
.menu-cta {
  background: var(--eggshell);
  padding: 0 0 72px;
  text-align: center;
}

/* ==========================================================================
   Typography matched to the printed menus (free close matches)
   Section titles  -> Unbounded        (printed: Bacalar Ultra Expanded)
   Dishes & notes  -> Roboto Serif, narrow (printed: New Spirit Condensed)
   Prices          -> Martian Mono, narrow (printed: Mono45 Headline)
   ========================================================================== */
.menu-masthead h1,
.menu-section > .wrap > h2 {
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-weight: 900;
  letter-spacing: 0;
}
.menu-masthead h1 { font-size: clamp(2rem, 5.4vw, 3rem); }
.menu-section > .wrap > h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.menu-group h3 {
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0;
  color: var(--plum);
}

.item-name,
.item-desc,
.item-sub,
.menu-group .group-note,
.menu-foot p {
  font-family: 'Roboto Serif', var(--font-display, serif);
  font-stretch: 50%;
  font-variation-settings: 'opsz' 16;
}
.item-name {
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--plum);
}
.item-desc,
.item-sub {
  font-weight: 400;
  font-size: 1rem;
  color: var(--plum);
  opacity: .85;
}

.item-price,
.price-head,
.item-name .vintage {
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-stretch: 75%;
  font-weight: 300;
  letter-spacing: 0;
}
.item-price {
  color: var(--rust);
  font-size: .86rem;
  text-transform: uppercase;
}
.item-name .vintage {
  color: var(--plum);
  opacity: .6;
  font-size: .72em;
}
.price-head { font-size: .72rem; color: var(--rust); }
.leader { border-bottom: 2px dotted rgba(222, 57, 40, .5); }
