:root {
  color-scheme: light;
  --page: #e8e6d9;
  --surface: #f4f1e5;
  --surface-strong: #d9d7c8;
  --ink: #13281f;
  --muted: #536158;
  --line: rgba(19, 40, 31, 0.18);
  --brand: #173d2e;
  --brand-2: #0f2c22;
  --gold: #d5a64d;
  --gold-strong: #7b5618;
  --on-brand: #f4f1e5;
  --danger: #a24530;
  --card-shadow: 0 20px 60px rgba(18, 47, 36, 0.12);
  --radius-card: 22px;
  --radius-control: 14px;
  --radius-button: 999px;
  --max: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c2119;
  --surface: #132d23;
  --surface-strong: #1a392d;
  --ink: #f1eddd;
  --muted: #b9c3b9;
  --line: rgba(241, 237, 221, 0.15);
  --brand: #173d2e;
  --brand-2: #0b1c16;
  --gold: #e0b45e;
  --gold-strong: #f0ca7c;
  --on-brand: #f4f1e5;
  --danger: #e28266;
  --card-shadow: 0 20px 60px rgba(2, 10, 7, 0.24);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.is-dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:active, .primary-button:active, .secondary-button:active { transform: translateY(1px) scale(0.99); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.hero {
  position: relative;
  min-height: min(820px, 100dvh);
  overflow: hidden;
  isolation: isolate;
  background: #10271f;
  color: #f4f1e5;
}
.hero__image, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image { object-fit: cover; object-position: center; z-index: -3; }
.hero__shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(6, 23, 17, .93) 0%, rgba(8, 29, 21, .7) 42%, rgba(8, 29, 21, .12) 74%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(224, 180, 94, .18);
}

.site-nav {
  width: min(calc(100% - 2rem), var(--max));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(244, 241, 229, .25);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Baskerville, Georgia, serif;
  font-size: 1.5rem;
}
.brand__text { display: grid; line-height: 1.08; }
.brand__text strong { font-family: Baskerville, Georgia, serif; font-size: 1.02rem; letter-spacing: .03em; }
.brand__text small { margin-top: .25rem; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.site-nav__actions { display: flex; gap: .55rem; }
.nav-button {
  border: 1px solid rgba(244, 241, 229, .4);
  border-radius: var(--radius-button);
  background: rgba(12, 33, 25, .58);
  color: #f4f1e5;
  padding: .58rem .9rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero__content {
  width: min(calc(100% - 2rem), var(--max));
  min-height: calc(min(820px, 100dvh) - 76px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0 5rem;
}
.eyebrow { margin: 0 0 1.2rem; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, h2 { font-family: Baskerville, Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
.hero h1 { max-width: 670px; margin: 0; font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .92; }
.hero__content > p:not(.eyebrow) { max-width: 530px; margin: 1.5rem 0 1.8rem; color: rgba(244, 241, 229, .86); font-size: 1.07rem; }

.primary-button, .secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: var(--radius-button);
  padding: .72rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.primary-button { border: 1px solid var(--gold); background: var(--gold); color: #1b281e; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.primary-button:hover { background: #edc36f; }
.secondary-button:hover { border-color: var(--gold); }

main { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 5rem 0 7rem; }
.order-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 0 4rem;
  border-radius: var(--radius-card);
  padding: 1.25rem 1.4rem;
  background: var(--gold);
  color: #182219;
  box-shadow: var(--card-shadow);
}
.order-notice p { margin: 0; }
.order-notice p:first-child { display: grid; gap: .18rem; }
.order-notice span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.order-notice strong { font-family: Baskerville, Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.05; }
.order-notice > p:last-child { max-width: 430px; font-size: .9rem; }
.menu-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.menu-intro h2, .pairing h2, .food-note h2, dialog h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: .98; }
.menu-intro p, .food-note p { max-width: 620px; margin: .9rem 0 0; color: var(--muted); }
.menu-intro__count { flex: 0 0 auto; display: grid; text-align: right; }
.menu-intro__count strong { color: var(--gold-strong); font-family: Baskerville, Georgia, serif; font-size: 3rem; line-height: 1; }
.menu-intro__count span { color: var(--muted); font-size: .82rem; }

.menu-tools {
  position: sticky;
  top: .75rem;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: .75rem 1rem;
  margin: 2.5rem 0 3rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}
.search-field { grid-row: span 2; display: grid; gap: .32rem; }
.search-field span { padding-left: .25rem; color: var(--muted); font-size: .75rem; font-weight: 700; }
.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--page);
  color: var(--ink);
  padding: .65rem .9rem;
}
.search-field input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.category-tabs, .dietary-filters { display: flex; justify-content: flex-end; gap: .45rem; }
.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: transparent;
  padding: .42rem .78rem;
  white-space: nowrap;
  cursor: pointer;
}
.filter-button:hover { border-color: var(--gold); }
.filter-button.is-active { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.saved-filter span { min-width: 1.25rem; margin-left: .25rem; display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-strong); color: var(--ink); }

.menu-skeleton { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.menu-skeleton span { min-height: 210px; border-radius: var(--radius-card); background: var(--surface); }
.menu-skeleton span:first-child { min-height: 420px; grid-row: span 2; }
@media (prefers-reduced-motion: no-preference) {
  .menu-skeleton span { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-strong) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease infinite; }
  @keyframes shimmer { to { background-position-x: -150%; } }
  .hero__content > * { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.16, 1, .3, 1) forwards; }
  .hero__content > :nth-child(2) { animation-delay: .08s; }
  .hero__content > :nth-child(3) { animation-delay: .16s; }
  .hero__content > :nth-child(4) { animation-delay: .24s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

.menu-group { margin-top: 4.5rem; }
.menu-group:first-child { margin-top: 0; }
.menu-group__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.menu-group__heading h3 { margin: 0; font-family: Baskerville, Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; }
.menu-group__heading span { color: var(--muted); font-size: .82rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.menu-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(18, 47, 36, .06);
  transition: transform .25s ease, border-color .25s ease;
}
.menu-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.menu-card:not(.has-image) { grid-template-columns: 1fr; }
.menu-card__image { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.menu-card__body { min-width: 0; display: flex; flex-direction: column; padding: 1.2rem; }
.menu-card__top { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.menu-card h4 { margin: 0; font-family: Baskerville, Georgia, serif; font-size: 1.38rem; line-height: 1.05; }
.save-button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius-button); background: transparent; padding: .3rem .62rem; font-size: .75rem; cursor: pointer; }
.save-button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #1b281e; }
.menu-card__description { margin: .65rem 0 .9rem; color: var(--muted); font-size: .88rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.tag { border: 1px solid var(--line); border-radius: var(--radius-button); padding: .18rem .5rem; color: var(--muted); font-size: .69rem; }
.tag--spicy { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.menu-card__footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .75rem; }
.prices { display: flex; flex-wrap: wrap; gap: .45rem .75rem; }
.price { display: grid; }
.price small { color: var(--muted); font-size: .67rem; }
.price strong { font-size: 1rem; }
.detail-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: .15rem 0; font-weight: 700; cursor: pointer; white-space: nowrap; }

.empty-state, .error-state { padding: 5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius-card); text-align: center; }
.empty-state p, .error-state p { margin: 0 0 1rem; font-family: Baskerville, Georgia, serif; font-size: 1.7rem; }

.pairing { margin-top: 7rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.pairing__copy p { color: var(--muted); max-width: 470px; }
.pairing__choices { display: grid; gap: .75rem; }
.pairing-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 1rem 1.2rem;
  text-align: left;
  cursor: pointer;
}
.pairing-button span { font-family: Baskerville, Georgia, serif; font-size: 1.35rem; }
.pairing-button small { color: var(--muted); text-align: right; }
.pairing-button.is-active { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }

.food-note {
  margin-top: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line));
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--surface);
}
.food-note h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.food-note p { max-width: 680px; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem max(1rem, calc((100% - var(--max)) / 2));
  background: var(--brand-2);
  color: #f4f1e5;
}
.site-footer p { color: rgba(244, 241, 229, .7); text-align: center; }
.site-footer__links { display: flex; gap: 1rem; }
.site-footer__links a { color: var(--gold); }

dialog {
  width: min(calc(100% - 2rem), 580px);
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(3, 15, 10, .42);
  padding: 0;
}
dialog::backdrop { background: rgba(3, 15, 10, .72); backdrop-filter: blur(4px); }
.dialog-shell, #dialog-content { padding: 2rem; }
.dialog-label { margin: 0 0 .75rem; color: var(--gold-strong); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dialog-shell > p:not(.dialog-label) { color: var(--muted); }
.dialog-shell .primary-button { margin-top: 1rem; }
.dialog-image { width: 100%; max-height: 280px; object-fit: cover; }
.dialog-meta { margin: 1rem 0; color: var(--muted); }
.dialog-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dialog-price { padding: 1rem; border-radius: var(--radius-control); background: var(--page); }
.dialog-price small, .dialog-price strong { display: block; }
.dialog-price small { color: var(--muted); }
.dialog-price strong { margin-top: .2rem; font-size: 1.4rem; }
.dialog-close { position: absolute; top: .9rem; right: .9rem; border: 1px solid var(--line); border-radius: var(--radius-button); background: var(--surface); color: var(--ink); padding: .45rem .72rem; cursor: pointer; }

.mobile-bar { display: none; }
.noscript { margin: 0; padding: 1rem; background: var(--danger); color: #fff; text-align: center; }

@media (max-width: 820px) {
  .hero { min-height: 760px; }
  .hero__image { object-position: 60% center; }
  .hero__shade { background: linear-gradient(180deg, rgba(7, 25, 18, .55), rgba(7, 25, 18, .92) 72%); }
  .hero__content { min-height: calc(760px - 76px); justify-content: end; padding-bottom: 4.5rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  main { padding-top: 3.5rem; }
  .order-notice { align-items: flex-start; flex-direction: column; gap: .8rem; margin-bottom: 3rem; }
  .menu-tools { position: static; grid-template-columns: 1fr; }
  .search-field { grid-row: auto; }
  .category-tabs, .dietary-filters { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
  .category-tabs::-webkit-scrollbar, .dietary-filters::-webkit-scrollbar { display: none; }
  .menu-grid { grid-template-columns: 1fr; }
  .pairing { grid-template-columns: 1fr; gap: 1.5rem; }
  .food-note { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; padding-bottom: 6.5rem; }
  .site-footer p { text-align: left; }
  .mobile-bar {
    position: fixed;
    inset: auto .75rem .75rem;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
  }
  .mobile-bar button { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-button); background: transparent; cursor: pointer; }
}

@media (max-width: 560px) {
  .site-nav { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand__text small { display: none; }
  .site-nav__actions .nav-button:first-child { display: none; }
  .menu-intro { align-items: start; }
  .menu-intro__count { display: none; }
  .menu-card { grid-template-columns: 112px minmax(0, 1fr); }
  .menu-card__image { min-height: 260px; }
  .menu-card__body { padding: 1rem; }
  .menu-card__footer { align-items: start; flex-direction: column; }
  .site-footer__links { flex-direction: column; }
}

@media (max-width: 400px) {
  .menu-card { grid-template-columns: 1fr; }
  .menu-card__image { height: 190px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-button, .menu-tools, .mobile-bar, dialog::backdrop { backdrop-filter: none; }
  .menu-tools, .mobile-bar { background: var(--surface); }
}
