:root {
  --olive: #3f4322;
  --deep: #1c2206;
  --cream: #f3e8d6;
  --gold: #c49c5e;
  --ink: #1c2206;
  --line: color-mix(in srgb, var(--olive) 20%, var(--cream));
  --page-width: 1160px;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 4px;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 30;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--olive);
}
.skip-link:focus { inset-block-start: 12px; }
#results { scroll-margin-top: 180px; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
  padding: 9px max(5vw, calc((100vw - var(--page-width)) / 2));
  background: var(--olive);
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; flex-shrink: 0; }
.wordmark img { width: 80px; height: 80px; object-fit: contain; border-radius: 50%; }
header nav { display: flex; align-items: center; gap: 10px; }
header nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 20px;
  font-size: .9rem;
  border-radius: 28px;
  border: 1px solid transparent;
  transition: background .18s, color .18s;
}
header nav a[aria-current="page"] { background: var(--cream); color: var(--olive); }
header nav .quick { border-color: var(--gold); color: var(--cream); }
header nav a:hover { background: color-mix(in srgb, var(--gold) 24%, var(--olive)); color: var(--cream); }

main { min-height: calc(100svh - 220px); }
main > section {
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 34px 0 60px;
}
main > .menu-film {
  position: relative;
  height: 320px;
  min-height: 0;
  margin-block: 20px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--olive);
}
#menuVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}
.film-caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 30px 22px 14px;
  color: var(--cream);
  background: linear-gradient(transparent, color-mix(in srgb, var(--deep) 65%, transparent));
  pointer-events: none;
}
.film-caption p { margin: 0; font-size: .85rem; }
.paper { color: var(--ink); }
.section-head {
  position: relative;
  padding-block: 0 24px;
  margin-bottom: 4px;
}
.eyebrow {
  direction: ltr;
  text-align: right;
  font: 500 .64rem/1.8 Georgia, serif;
  letter-spacing: .24em;
  color: var(--olive);
  margin: 0 0 8px;
}
.section-head h1, .section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -.04em;
}
.menu-caption { color: var(--olive); margin: 5px 0 0; font-size: .86rem; }
.menu-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
}
#sections { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 32px; }
button.pill {
  min-height: 44px;
  padding: 10px 22px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  font-size: .88rem;
  transition: color .18s, background .18s, border-color .18s;
}
#sections .pill { min-width: 115px; }
#sections .pill[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
#sections .pill:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--gold) 24%, var(--cream)); }
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--olive);
  min-width: 260px;
}
.search > span { font-size: .79rem; color: var(--olive); }
.search input {
  width: 100%;
  min-height: 46px;
  padding-inline: 4px;
  border: 0;
  background: transparent;
  font-size: .88rem;
}
input, select {
  min-width: 0;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: var(--cream);
  color: inherit;
}
input::placeholder { color: var(--olive); opacity: 1; }
#categories {
  position: sticky;
  top: 100px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  padding: 13px 0 15px;
  margin-bottom: 16px;
  background: var(--cream);
  border-block: 1px solid var(--line);
}
#categories .pill { border-color: var(--line); padding-inline: 17px; flex-shrink: 0; }
#categories .pill[aria-pressed="true"] { border-color: var(--olive); background: color-mix(in srgb, var(--gold) 24%, var(--cream)); font-weight: 700; }
#categories .pill:hover { border-color: var(--olive); background: color-mix(in srgb, var(--gold) 16%, var(--cream)); }
#results { min-height: 260px; }
.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 58px;
}
.list h3 {
  display: flex;
  align-items: center;
  gap: 18px;
  grid-column: 1 / -1;
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 15px 0 17px;
  font-weight: 700;
}
.list h3::after { content: ''; width: 48px; height: 1px; background: var(--gold); }
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 73px;
  padding: 14px 0;
  text-align: right;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  transition: background .18s;
}
.item > span:first-child { overflow-wrap: anywhere; font-size: .98rem; line-height: 1.8; }
.item > span:last-child { color: var(--olive); font-size: .85rem; }
.item:hover { background: color-mix(in srgb, var(--gold) 16%, var(--cream)); }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .price { font-size: .86rem; color: var(--olive); font-weight: 700; }
.empty { grid-column: 1 / -1; padding-block: 30px; color: var(--olive); line-height: 1.8; }
.quick-mode .section-head { padding-bottom: 16px; }
.quick-mode .item { min-height: 56px; padding-block: 8px; }
.quick-mode .list h3 { margin-block: 12px; }
.lounge .list { color: var(--olive); }

footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px max(5vw, calc((100vw - var(--page-width)) / 2));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  background: var(--olive);
  color: var(--cream);
  border-top: 1px solid var(--line);
}
footer img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; }
footer strong { font-weight: 500; }
small { display: block; font-size: .64rem; letter-spacing: .15em; margin-top: 6px; }
footer a[href="#admin"] { display: none; }
#contact p { font-size: .8rem; }
#contact a { display: inline-block; margin: 6px; font-size: .8rem; }

dialog {
  width: min(92%, 640px);
  max-height: 90dvh;
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 20px 24px 30px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--deep) 27%, transparent);
}
dialog::backdrop { background: color-mix(in srgb, var(--deep) 72%, transparent); backdrop-filter: blur(4px); }
dialog form { display: flex; justify-content: flex-end; }
dialog button { min-width: 44px; min-height: 44px; border: 1px solid var(--gold); border-radius: 50%; background: transparent; color: inherit; font-size: 1.5rem; }
dialog h2 { font-size: 1.5rem; line-height: 1.8; }
dialog .price { color: var(--olive); font-size: 1.2rem; }
dialog video { width: 100%; max-height: 68dvh; background: var(--deep); }
dialog img { max-height: 42dvh; object-fit: contain; }

#admin details { border-block-start: 1px solid var(--line); padding: 16px 0; }
#admin summary { cursor: pointer; font-weight: 700; line-height: 1.8; }
#admin form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 16px; margin: 18px 0; }
#admin label { display: grid; gap: 8px; font-size: .85rem; }
#admin button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--olive); border-radius: 7px; background: var(--olive); color: var(--cream); }
#admin .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 26px; }
#adminView .section-head p { line-height: 1.9; }
.reveal { animation: reveal .24s ease-out; }
@keyframes reveal { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }

@media (max-width: 1280px) {
  main > section { margin-inline: 5vw; }
}
@media (max-width: 720px) {
  header { min-height: 84px; padding: 10px 20px; gap: 12px; }
  .wordmark img { width: 64px; height: 64px; }
  header nav { gap: 6px; }
  header nav a { font-size: .79rem; padding-inline: 14px; }
  main > section { margin-inline: 20px; padding-top: 24px; padding-bottom: 38px; }
  main > .menu-film { height: 220px; margin-block: 12px 0; padding: 0; }
  .film-caption { padding: 24px 14px 10px; }
  .film-caption p { font-size: .75rem; }
  .section-head { padding-bottom: 16px; }
  .section-head h1, .section-head h2 { font-size: 1.7rem; }
  .eyebrow { font-size: .57rem; letter-spacing: .19em; }
  .menu-caption { font-size: .79rem; }
  .menu-tools { flex-wrap: wrap; gap: 14px; padding-block: 15px; }
  #sections { width: 100%; }
  #sections .pill { flex: 1; min-width: 0; }
  .search { width: 100%; min-width: 0; }
  .search input { min-height: 42px; }
  #categories { top: 84px; padding-block: 12px; margin-bottom: 8px; margin-inline: -20px; padding-inline: 20px; }
  #categories .pill { font-size: .79rem; min-height: 42px; padding: 9px 15px; }
  .list { grid-template-columns: minmax(0, 1fr); }
  .list h3 { font-size: 1.03rem; margin-block: 16px 8px; }
  .item { min-height: 66px; gap: 9px; }
  .item > span:first-child { font-size: .92rem; }
  .item .price { font-size: .8rem; }
  footer { padding-inline: 20px; gap: 16px; }
  footer img { width: 55px; height: 55px; }
}
@media (max-width: 360px) {
  header { padding-inline: 14px; }
  header nav a { padding-inline: 10px; font-size: .74rem; }
  main > section { margin-inline: 16px; }
  #categories { margin-inline: -16px; padding-inline: 16px; }
  .item { gap: 6px; }
  .item > span:first-child { font-size: .86rem; }
  .item .price { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
