/* Omnes, shared with the survey (two cuts: regular 300-500, semibold 600-800). */
@font-face { font-family: "Omnes"; src: url("../survey/fonts/omnes-regular.8f6d91eafcb8.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Omnes"; src: url("../survey/fonts/omnes-semibold.62715df838da.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

/* Clean and white around the menu pages; coffee brown from the cover for text and accents. */
:root {
  --bg: #ffffff;
  --ink: #241912;
  --muted: #6e6158;
  --accent: #9a6a2a;
  --chip: #f4f1ed;
  --line: #ebe6e0;
  --bar-h: 112px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Omnes", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */

.bar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding-top: env(safe-area-inset-top); }
.bar-inner { max-width: 912px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.pdf { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 13px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.pdf svg { width: 18px; height: 18px; }
.pdf:hover { background: #3a2a20; }

.sections { max-width: 912px; margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.sections::-webkit-scrollbar { display: none; }
.sections a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--chip); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.sections a:hover { background: #ebe5de; }
.sections a[aria-current="true"] { background: var(--ink); color: #fff; }
/* Hint that the chips scroll sideways when they don't all fit. */
@media (max-width: 911px) {
  .sections { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}

/* ---------- Pages ---------- */

main { max-width: 912px; margin: 0 auto; padding: 0 0 40px; }
.hint { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.page { margin: 0 0 10px; }
.page a { display: block; cursor: zoom-in; }
.page img { display: block; width: 100%; height: auto; background: var(--chip); }
.foot { margin: 24px 16px 0; text-align: center; color: var(--muted); font-size: 15px; padding-bottom: env(safe-area-inset-bottom); }
.foot a { color: var(--accent); font-weight: 600; }

/* Tablets and computers: pages as cards with breathing room. */
@media (min-width: 600px) {
  main { padding: 0 16px 56px; }
  .hint { padding: 16px 0; }
  .page { margin-bottom: 24px; }
  .page img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(36, 25, 18, .10); }
  .page a { border-radius: 12px; }
}
@media (min-width: 912px) { .brand { font-size: 24px; } }
@media (max-width: 359px) { .brand { font-size: 19px; } .pdf-long { display: none; } }

/* ---------- Zoomed-in page ---------- */

.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: var(--bg); }
.viewer-bar { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px 16px; box-shadow: 0 1px 0 var(--line); }
.viewer-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--chip); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn svg { width: 24px; height: 24px; }
.viewer-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
/* Twice the screen width on phones (about the size of the printed menu), full size elsewhere. */
.viewer-scroll img { display: block; width: min(1200px, max(100%, 200vw)); height: auto; margin: 0 auto; }
