@font-face {
  font-family: Menu Serif;
  src: url("../fonts/serif-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Menu Sans;
  src: url("../fonts/body.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Signature;
  src: url("../fonts/signature.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --cream: #f0e1ca;
  --primary: #0a1825;
  --accent: #d3b18a;
  --rule: #d3b18a58;
  --serif: "Menu Serif", Georgia, serif;
  --sans: "Menu Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  background: radial-gradient(ellipse at 50% 34%, transparent, #040e1a8c), url("../images/navy-texture.webp") repeat, var(--primary);
  color: var(--cream);
  font-family: var(--serif);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1:focus { outline: none; }
img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.skip { position: fixed; z-index: 2; inset: 8px auto auto 8px; padding: .6rem; background: var(--primary); transform: translateY(-200%); }
.skip:focus { transform: none; }
.no-script { padding: 2rem; text-align: center; }
.page {
  --gutter: clamp(16px, 6vw, 36px);
  position: relative;
  max-width: 620px;
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: var(--gutter);
  animation: enter 260ms ease-out both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.welcome {
  max-width: 575px;
  padding-top: clamp(26px, 8.9vw, 60px);
  padding-bottom: 25px;
  text-align: center;
}
.wordmark {
  display: grid;
  justify-items: center;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark-the {
  display: flex;
  align-items: center;
  gap: .75em;
  padding-inline-start: .3em;
  font-size: clamp(15px, 4.2vw, 22px);
  letter-spacing: .54em;
}
.wordmark-the::before, .wordmark-the::after { content: ""; width: clamp(34px, 11.5vw, 61px); height: 1px; background: currentColor; }
.wordmark-name { font-size: clamp(44px, 12.1vw, 73px); letter-spacing: .045em; margin: .12em -.045em 0 0; }
.wordmark em { font: normal clamp(48px, 12.5vw, 77px)/.88 Signature, cursive; text-transform: none; margin-block: -.06em .14em; }
.wordmark-restaurant { font-size: clamp(12px, 3.2vw, 17px); letter-spacing: .52em; padding-inline-start: .52em; }
.tagline { max-width: 24ch; margin: clamp(17px, 5vw, 25px) auto 0; font-size: clamp(16px, 4vw, 22px); line-height: 1.23; }
.welcome-rule { display: block; width: 28%; height: 1px; margin: 15px auto 0; background: currentColor; }
.actions { display: grid; gap: clamp(10px, 3.8vw, 19px); margin-top: clamp(20px, 6.5vw, 36px); }
.actions a {
  display: grid;
  place-items: center;
  min-height: clamp(55px, 16.1vw, 79px);
  padding: 8px 12px;
  border: 2px solid var(--cream);
  border-radius: clamp(11px, 3.2vw, 18px);
  font-size: clamp(20px, 5.55vw, 33px);
  line-height: 1.05;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
}
.actions .primary { color: var(--primary); background: var(--cream); font-size: clamp(24px, 7vw, 39px); }
.actions .review { background: #09152265; }
.actions a:active { transform: scale(.985); }
.welcome-photo {
  width: min(calc(100% + var(--gutter) * 1.45), 550px);
  max-width: none;
  height: auto;
  margin: clamp(17px, 6vw, 32px) auto 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 11px #01060cc0);
}

.masthead { display: grid; justify-items: center; padding-top: clamp(16px, 4.5vw, 28px); text-align: center; }
.masthead a { font-size: clamp(16px, 4.1vw, 22px); letter-spacing: .13em; text-transform: uppercase; line-height: 1.05; }
.masthead span { display: block; margin-bottom: 3px; font-size: .65em; letter-spacing: .32em; }
.masthead i { display: block; width: 58px; height: 1px; margin-top: 12px; background: linear-gradient(90deg, transparent, var(--cream), transparent); }
.chooser-back { position: absolute; top: 18px; left: max(7px, calc(var(--gutter) - 9px)); width: 44px; height: 44px; display: grid; place-items: center; }
.chooser h1, .detail h1 { text-transform: uppercase; font-weight: 400; text-align: center; }
.chooser h1 { font-size: clamp(19px, 5vw, 27px); letter-spacing: .56em; padding-inline-start: .56em; margin-top: 12px; }
.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block: 3px 3px; }
.detail-nav > *, .explore button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  font: 600 clamp(10px, 2.95vw, 14px)/1.2 var(--sans);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.detail-nav svg { flex: 0 0 17px; width: 17px; height: 17px; }
.detail h1 { margin: 0 auto 11px; font-size: clamp(29px, 7.5vw, 44px); letter-spacing: .18em; line-height: 1; overflow-wrap: anywhere; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 12px; }
.filters button {
  flex: 1 1 85px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 7px;
  border: 1px solid var(--cream);
  border-radius: 7px;
  background: transparent;
  font-size: clamp(13px, 3.7vw, 18px);
  line-height: 1;
  text-transform: uppercase;
}
.filters button[aria-pressed="true"] { color: var(--primary); background: var(--cream); }
.detail-art { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: clamp(156px, 49vw, 290px); aspect-ratio: 1; margin-inline: auto; }
.dish-photo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 11px #030a11be); }
.section-heading { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 4vw, 20px); margin-block: 13px 8px; text-align: center; }
.section-heading h2 { font: 600 clamp(11px, 3vw, 15px)/1.35 var(--sans); text-transform: uppercase; letter-spacing: .22em; }
.section-heading::before, .section-heading::after { content: ""; height: 1px; width: 39px; background: linear-gradient(90deg, transparent, var(--cream)); }
.section-heading::after { transform: rotate(180deg); }
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 13px;
  border-bottom: 1px solid var(--rule);
  padding: 9px 4px;
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.17;
}
.item-name { overflow-wrap: anywhere; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.explore { display: grid; gap: 12px; padding: 28px 0 32px; text-align: center; }
.explore p { font: 14px var(--sans); color: #d4cab9; }
.explore-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: 9px; background: var(--cream); color: var(--primary); font: 600 15px var(--sans); }
.photo-status, .photo-retry { color: #d4cab9; font: 13px var(--sans); }
.photo-status { display: grid; place-items: center; width: 80%; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 50%; }
.photo-retry { min-height: 44px; padding-inline: 16px; background: transparent; border: 1px solid var(--rule); border-radius: 8px; }
.dish-photo { animation: photo-in 160ms ease-out; }
@keyframes photo-in { from { opacity: .4; } to { opacity: 1; } }

.picker {
  width: min(calc(100% - 28px), 530px);
  max-height: 80svh;
  padding: 16px 18px;
  background: #112232;
  color: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.picker::backdrop { background: #000a; }
.picker header { display: flex; align-items: center; justify-content: space-between; }
.picker h2 { font-size: 25px; font-weight: 400; }
.picker form button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; }
.picker input { width: 100%; height: 44px; margin-block: 5px 8px; padding-inline: 11px; border-radius: 5px; border: 1px solid var(--rule); background: #081623; color: var(--cream); font: 16px var(--sans); }
.picker-results a { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--rule); padding-block: 8px; font-size: 19px; }
.picker-results a > :last-child { flex-shrink: 0; }
.picker-results small { display: block; font: 12px var(--sans); color: var(--accent); }
.no-results { padding: 10px 0; font: 14px var(--sans); }

@media (hover: hover) {
  .actions .primary:hover, .pager .advance:hover { background: #fff0db; }
  .actions .review:hover { background: #f0e1ca18; }
  .category-link:hover img { transform: scale(1.04); }
  .detail-nav > *:hover, .explore button:hover { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Vertical category grid from the supplied reference. */
.chooser { --gutter: clamp(20px, 7vw, 42px); padding-bottom: 100px; }
.chooser-heading { margin-block: 24px 14px; }
.chooser .chooser-heading h1 { text-align: left; font-size: clamp(32px, 9vw, 49px); text-transform: none; letter-spacing: -.025em; padding: 0; margin: 0; line-height: 1; font-weight: 600; }
.chooser-heading p { margin-top: 4px; font: 400 clamp(15px, 4.1vw, 21px)/1.3 var(--sans); letter-spacing: .035em; }
.category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(14px, 6vw, 35px); }
.category-grid > li { min-width: 0; border-bottom: 1px solid #87a3b252; padding-block: 8px 12px; }
.category-link { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; height: 100%; padding: 0; }
.category-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 7px 6px #0006); transition: transform 180ms ease; }
.category-link span { display: block; font-size: clamp(18px,5vw,28px); line-height: 1.05; }
.category-link b { font: 400 .85em var(--sans); }
.scroll-cue { border: 0; background: transparent; color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 48px; margin-inline: auto; font: 400 13px/1.2 var(--sans); letter-spacing: .07em; padding: 8px 16px; cursor: pointer; }
.scroll-cue svg { width: 22px; height: 22px; }
.floating-cue { position: fixed; z-index: 3; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); white-space: nowrap; border: 1px solid #d3b18a55; border-radius: 30px; padding: 10px 20px 6px; background: #0a1825ed; box-shadow: 0 4px 22px #0007; transition: opacity 180ms ease; }
.floating-cue svg { animation: cue-down 2.2s ease-in-out infinite; }
.floating-cue.at-end { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes cue-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
.menu-search { min-height: 44px; border: 0; padding: 5px 0; margin-top: 4px; background: transparent; color: #d4cab9; font: 13px var(--sans); text-decoration: underline; text-underline-offset: 4px; }
.back-top { display: block; width: fit-content; margin: 24px auto 0; font: 13px var(--sans); text-decoration: underline; text-underline-offset: 4px; }
.detail-art { width: clamp(165px, 51vw, 295px); }
.filters button { flex: 1 1 65px; font-size: clamp(12px,3.6vw,18px); }
.dish-description { display: block; margin-top: 5px; font: 400 13px/1.4 var(--sans); color: #d4cab9; }
.menu-row { scroll-margin-top: 12px; }
@media (max-width: 360px) {
  .filters:has(button:nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (hover:hover) { .category-link:hover .category-photo { transform: scale(1.035); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.welcome { padding-top: clamp(24px, 7vw, 44px); }
.albain-brand { width: 87%; margin: 0 auto; }
.albain-brand svg { display: block; width: 100%; height: auto; overflow: visible; }
.albain-cuisines { font: 500 clamp(17px,4.55vw,25px)/1.25 var(--sans); letter-spacing: .04em; margin-top: 14px; white-space: nowrap; }
.albain-tagline { font: 400 clamp(13px,3.5vw,19px)/1.4 var(--sans); letter-spacing: .065em; margin-top: 8px; }
.welcome .actions { margin-top: clamp(30px,8vw,43px); gap: 13px; }
.welcome .actions a { font: 500 clamp(20px,5.7vw,31px)/1.2 var(--sans); letter-spacing: .06em; min-height: clamp(58px,15.5vw,78px); border-radius: 15px; }
.welcome .actions .primary { display: flex; align-items: center; justify-content: center; gap: 15px; }
.welcome .actions .primary svg { width: 27px; height: 27px; }
.welcome-photo { margin-top: 24px; }
.masthead a { font-family: var(--sans); font-weight: 600; font-size: clamp(15px,4vw,21px); letter-spacing: .12em; }
