:root {
  --ink: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #ea580c;
  --band: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--band);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  background: #0f172a center / cover no-repeat;
  color: #fff;
  padding: 56px 0 40px;
}

.hero .lang {
  --viewer-ink: #fff;
  display: flex;
  justify-content: flex-end;
  margin: -32px 0 16px;
}

.hero .lang summary {
  background: rgba(255, 255, 255, 0.18);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

main h2 {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 24px 0 12px;
}

.menus {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}

.menus a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.menus a:hover,
.menus a:focus-visible {
  border-color: var(--accent);
}

.menus img,
.menus .placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.menus .placeholder {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.menus strong {
  padding: 10px 12px 2px;
}

.menus span:not(.placeholder) {
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty {
  color: var(--muted);
  margin-bottom: 32px;
}

.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
}

/* The PDF menu opens like a document viewer: dark around the page, a thin
   bar on top, and each page fitted whole to the screen. */
.viewer {
  --bar: 48px;
  --viewer-ink: #e2e8f0;
  --viewer-muted: #94a3b8;
  background: #111418;
  color: var(--viewer-ink);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--bar);
  padding: 0 16px;
  background: rgba(17, 20, 24, 0.92);
  backdrop-filter: blur(8px);
}

.bar-back {
  margin-left: -8px;
  padding: 8px;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.bar-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bar-counter {
  color: var(--viewer-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pager {
  position: relative;
}

/* One page per screen, snapped: swiping turns the page like a booklet. */
.pages {
  display: flex;
  height: calc(100vh - var(--bar));
  height: calc(100dvh - var(--bar));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pages::-webkit-scrollbar {
  display: none;
}

.page {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  overflow-y: auto;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.page img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
}

/* A long page fitted whole would be too narrow to read: it fills a readable
   width instead and scrolls down. */
.page.tall {
  align-items: flex-start;
}

.page.tall img {
  width: 100%;
  max-width: 48rem;
  max-height: none;
}

.pager-arrow {
  display: none;
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.pager-arrow[data-step="-1"] {
  left: 16px;
}

.pager-arrow[data-step="1"] {
  right: 16px;
}

/* Swiping is for fingers; a mouse gets arrows. */
@media (hover: hover) and (pointer: fine) {
  .pager-arrow {
    display: grid;
    place-items: center;
  }

  .pager-arrow:disabled {
    display: none;
  }
}

.hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.4s;
}

.hint.gone {
  opacity: 0;
}

.below {
  max-width: 48rem;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.tagline {
  margin: 0 0 16px;
}

.viewer .empty {
  padding: 48px 16px;
  color: var(--viewer-muted);
  text-align: center;
}

.menu-text {
  margin-bottom: 16px;
  color: var(--viewer-muted);
}

.menu-text-note {
  margin: 8px 0;
  font-size: 0.85em;
  font-style: italic;
}

.menu-text pre {
  white-space: pre-wrap;
  font: inherit;
}

.viewer .site-footer a {
  color: var(--viewer-muted);
}

/* After the last page: what the house asks of whoever read the menu. A page
   of its own, reached by the same swipe, so it never covers the menu. */
.end-card {
  padding: 24px 16px;
}

.end {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 22rem;
}

.end svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.end-name {
  margin: 0;
  color: var(--viewer-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.end-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.end-review {
  background: #fff;
  color: var(--ink);
}

.end-review svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}

.end-note {
  margin: 8px 0 0;
  color: var(--viewer-muted);
  font-size: 0.85rem;
  text-align: center;
}

.end-wifi {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
}

.end-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--viewer-muted);
}

.end-label strong {
  color: var(--viewer-ink);
}

.end-password {
  display: flex;
  align-items: center;
  gap: 12px;
}

.end-password code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 1.15rem;
}

.end-copy {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--viewer-ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.end-follow {
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--viewer-ink);
}

/* The language switcher: a globe and the code in the bar, the names in a
   list. No flags: a flag is a country, and Spanish is not Spain's alone. */
.lang {
  position: relative;
}

.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--viewer-ink);
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lang ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 10rem;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  background: #1e232b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  list-style: none;
}

.lang a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--viewer-ink);
  text-decoration: none;
}

.lang a[aria-current] {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

/* Offered when the phone's language chose for them: a Brazilian with a
   phone in English still reads the house's own menu in one tap. */
.lang-offer {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateX(-50%);
}
