/* Digital menu – same look as the printed "Foto" book: white paper, orange bands,
   Big Shoulders Display for names/prices, Source Serif 4 for text. */
:root{
  --paper:#ffffff; --surface:#ffffff; --ink:#1c1915; --orange:#e2620f; --orange-deep:#b8480a; --orange-hover:#b8480a; --muted:#6f6862;
  --hair:#e6dfd7; --warm:#fbeee3; --warm-line:#f3c9a6; --mark:#ffe1c7;
  --ingr:#3a3530; --dots:#c9c0b7; --header-bg:rgba(255,255,255,.96); --badge-bg:#ffffff;
  --shadow:rgba(28,25,21,.08); --backdrop:rgba(28,25,21,.45); --theme-color:#ffffff;
  color-scheme:light;
  --display:"Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif:"Source Serif 4", Georgia, "Times New Roman", serif;
  --ph:150px;            /* photo height on the cards */
}
/* Dark theme: only the paper, text and lines change; the orange stays the same
   (prices/links use a lighter orange so they stay readable on the dark paper). */
:root[data-theme="dark"]{
  --paper:#14110f; --surface:#1e1a17; --ink:#f3ede6; --muted:#a89f96; --orange-deep:#f39150; --orange-hover:#c9530d;
  --hair:#3a332d; --warm:#2b1d13; --warm-line:#6a3a19; --mark:#6e3510;
  --ingr:#d9d0c7; --dots:#5c544d; --header-bg:rgba(20,17,15,.94); --badge-bg:#f6f1ec;
  --shadow:rgba(0,0,0,.45); --backdrop:rgba(0,0,0,.65); --theme-color:#14110f;
  color-scheme:dark;
}
*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; scroll-padding-top:var(--header-h, 190px); -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--paper); transition:background-color .2s, color .2s; color:var(--ink); font-family:var(--serif); font-size:16px; line-height:1.4; }
button{ font:inherit; color:inherit; }
a{ color:inherit; }
:focus-visible{ outline:2px solid var(--orange); outline-offset:2px; }

/* ---------- header ---------- */
header{
  position:sticky; top:0; z-index:50; background:var(--header-bg);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--hair); padding:10px 16px 8px;
  padding-top:max(10px, env(safe-area-inset-top));
}
header > *{ max-width:1180px; margin-left:auto; margin-right:auto; }
.bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand{ display:flex; align-items:center; gap:8px; text-decoration:none; min-width:0; }
.crown{ color:var(--orange); display:inline-flex; }
.crown svg{ width:30px; height:30px; }
.brand-name{ font-family:var(--display); font-weight:900; font-size:30px; line-height:1; color:var(--orange); white-space:nowrap; letter-spacing:-.005em; }
.brand-name b{ color:var(--ink); font-weight:900; }
.call{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; background:var(--orange); color:#fff;
  border-radius:999px; padding:8px 13px; font-family:var(--display); font-weight:800; font-size:17px; letter-spacing:.01em; white-space:nowrap; }
.call:hover{ background:var(--orange-hover); }
.bar-actions{ display:flex; align-items:center; gap:8px; flex:none; }
.theme-btn{ width:38px; height:38px; flex:none; border-radius:50%; border:1.5px solid var(--hair); background:var(--surface); color:var(--ink);
  display:grid; place-items:center; cursor:pointer; padding:0; }
.theme-btn:hover{ border-color:var(--orange); color:var(--orange-deep); }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon{ display:none; }
:root[data-theme="dark"] .theme-btn .i-sun{ display:block; }
.today{ margin-top:6px; font-size:14px; color:var(--muted); }
.today b{ font-family:var(--display); font-weight:800; font-size:16px; color:var(--ink); }
.today .closed{ color:var(--orange-deep); }

.toolbar{ display:flex; gap:8px; margin-top:10px; }
.search{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; border:1.5px solid var(--hair); border-radius:999px;
  padding:0 14px; color:var(--muted); background:var(--surface); }
.search:focus-within{ border-color:var(--orange); }
.search input{ flex:1; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:16px; padding:10px 0; color:var(--ink); }
.search input::-webkit-search-cancel-button{ display:none; }
.search .clear{ border:0; background:none; font-size:24px; line-height:1; color:var(--muted); cursor:pointer; padding:0 2px; }
.filter-btn{ display:flex; align-items:center; gap:6px; cursor:pointer; border:1.5px solid var(--hair); background:var(--surface); border-radius:999px;
  padding:0 14px; font-family:var(--display); font-weight:800; font-size:18px; color:var(--ink); }
.filter-btn[aria-expanded="true"]{ border-color:var(--orange); color:var(--orange-deep); }
.filter-btn b{ background:var(--orange); color:#fff; border-radius:999px; font-size:13px; min-width:20px; height:20px; display:grid; place-items:center; padding:0 6px; font-family:var(--serif); }

.filters{ margin-top:10px; padding:14px; border:1px solid var(--hair); border-radius:14px; background:var(--surface); max-height:62vh; overflow:auto;
  box-shadow:0 10px 30px var(--shadow); }
.filter-group + .filter-group{ margin-top:14px; }
.filter-title{ font-family:var(--display); font-weight:800; font-size:18px; margin-bottom:8px; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{ display:inline-flex; align-items:center; gap:6px; cursor:pointer; border:1.5px solid var(--hair); background:var(--surface);
  border-radius:999px; padding:6px 12px; font-size:14px; }
.chip[aria-pressed="true"]{ border-color:var(--orange); background:var(--warm); color:var(--orange-deep); font-weight:600; }
.chip.excl[aria-pressed="true"]{ text-decoration:line-through; }
.filter-actions{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:16px; }
.link-btn{ border:0; background:none; color:var(--muted); text-decoration:underline; cursor:pointer; padding:6px 0; }
.primary-btn{ border:0; background:var(--orange); color:#fff; border-radius:999px; padding:9px 18px; font-family:var(--display); font-weight:800; font-size:17px; cursor:pointer; }

nav{ position:relative; display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; margin-top:10px; padding-bottom:2px; }
nav::-webkit-scrollbar{ display:none; }
nav a{ flex:none; text-decoration:none; font-family:var(--display); font-weight:800; font-size:17px; color:var(--orange-deep);
  border:1.5px solid var(--warm-line); border-radius:999px; padding:5px 13px; white-space:nowrap; background:var(--surface); }
nav a.active, nav a:hover{ background:var(--orange); border-color:var(--orange); color:#fff; }

/* ---------- main ---------- */
main{ max-width:1180px; margin:0 auto; padding:16px 16px 40px; }
.status{ text-align:center; color:var(--muted); padding:60px 10px; }
.info-banner{ background:var(--warm); border:1px solid var(--warm-line); border-radius:12px; padding:14px 16px; margin-bottom:18px;
  white-space:pre-line; line-height:1.5; }
.result-info{ color:var(--muted); font-style:italic; margin:0 0 14px; }
.empty{ text-align:center; color:var(--muted); padding:50px 10px; }
mark{ background:var(--mark); color:inherit; border-radius:2px; padding:0 1px; }

.category{ margin-bottom:34px; }
.band{ background:var(--orange); color:#fff; padding:8px 16px 6px; margin:0 0 18px; }
.band h2{ margin:0; font-family:var(--display); font-weight:900; font-size:38px; line-height:1; letter-spacing:.005em; }
.subcategory > h3{ font-family:var(--display); font-weight:800; font-size:24px; margin:22px 0 10px; }

/* ---------- dish cards (rows line up via subgrid, like the printed book) ---------- */
.grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:16px; row-gap:0; }
.grid.small{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (min-width:700px){
  .grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); column-gap:24px; }
  .grid.small{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
  :root{ --ph:180px; }
}
@media (min-width:1050px){
  .grid.small{ grid-template-columns:repeat(5, minmax(0, 1fr)); }
}
.dish{ display:grid; grid-template-rows:auto auto 1fr auto; min-width:0; cursor:pointer; text-align:left;
  border:0; background:none; padding:0; font:inherit; color:inherit; }
@supports (grid-template-rows:subgrid){
  .dish{ grid-template-rows:subgrid; grid-row:span 4; }
}
@media (hover:hover){ .dish:hover h3{ color:var(--orange-deep); } }
.dish:focus:not(:focus-visible){ outline:none; }
.dish .ph{ position:relative; height:var(--ph); display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.grid.small .dish .ph{ height:calc(var(--ph) * .72); }
.dish .ph img{ max-width:100%; max-height:100%; object-fit:contain; }
.dish .ph .noimg{ width:100%; height:100%; display:grid; place-items:center; color:var(--hair); }
.dish .ph .noimg svg{ width:44%; height:44%; }
.badges{ position:absolute; top:2px; left:0; display:flex; flex-direction:column; gap:5px; }
.bd{ width:28px; height:28px; border-radius:50%; background:var(--badge-bg); border:1.5px solid currentColor; display:grid; place-items:center; }
.bd svg{ width:16px; height:16px; }
.dish h3{ margin:0; font-family:var(--display); font-weight:800; font-size:21px; line-height:1.02; align-self:start; transition:color .15s; }
.dish h3 .nw, .sheet h2 .nw{ white-space:nowrap; }
sup.al{ font-family:var(--serif); font-weight:400; font-size:10px; color:var(--muted); margin-left:2px; vertical-align:7px; letter-spacing:0; }
.dish .txt{ padding-top:5px; }
.dish .desc{ font-size:14px; margin-bottom:3px; }
.dish .ingr{ font-style:italic; font-size:14px; line-height:1.35; color:var(--ingr); }
.dish .foot{ margin-top:8px; padding:7px 0 26px; border-top:1px solid var(--hair); }
.prices{ display:flex; flex-wrap:wrap; gap:2px 14px; align-items:baseline; }
.price{ white-space:nowrap; }
.price small{ font-size:13px; color:var(--muted); margin-right:4px; }
.price b{ font-family:var(--display); font-weight:800; font-size:23px; line-height:1; color:var(--orange-deep); }
.price i{ font-style:normal; font-family:var(--display); font-weight:600; font-size:14px; color:var(--orange-deep); margin-left:2px; }
.dish .meta{ color:var(--muted); font-size:12.5px; margin-top:3px; }
.grid.small .dish h3{ font-size:18px; }
.grid.small .price b{ font-size:20px; }
@media (max-width:420px){
  .dish h3{ font-size:19px; }
  .dish .ingr, .dish .desc{ font-size:13px; }
  .price b{ font-size:21px; }
}

/* ---------- drinks: compact lists with dotted leaders ---------- */
.lists{ columns:1; column-gap:36px; }
@media (min-width:700px){ .lists{ columns:2; } }
@media (min-width:1050px){ .lists{ columns:3; } }
.sub{ break-inside:avoid-column; margin:0 0 20px; }
.sub h3{ font-family:var(--display); font-weight:800; font-size:23px; margin:0 0 6px; }
.row{ display:flex; align-items:baseline; gap:6px; padding:3px 0; break-inside:avoid; }
.row .n{ font-weight:600; font-size:15.5px; }
.row .icons{ display:inline-flex; gap:3px; margin-left:4px; vertical-align:-2px; }
.row .icons svg{ width:15px; height:15px; }
.dots{ flex:1; border-bottom:1.5px dotted var(--dots); transform:translateY(-4px); min-width:10px; }
.row .v{ color:var(--muted); font-size:13px; white-space:nowrap; }
.row .price b{ font-size:19px; }
.row .price i{ font-size:12px; }
.row-desc{ font-style:italic; color:var(--muted); font-size:13px; margin:-2px 0 4px; }

/* ---------- legend & footer ---------- */
.legend{ border-top:2px solid var(--ink); padding-top:12px; margin-top:20px; }
.legend h2{ font-family:var(--display); font-weight:900; font-size:30px; margin:0 0 10px; }
.legend-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:6px 18px; font-size:14.5px; }
.legend-grid div{ display:flex; align-items:center; gap:8px; }
.legend-grid b{ font-family:var(--display); font-weight:800; font-size:17px; width:20px; }
.legend-grid svg{ width:16px; height:16px; }
.legend p{ color:var(--muted); font-size:13.5px; margin:12px 0 0; }

footer{ background:var(--orange); color:#fff; padding:28px 16px 36px; padding-bottom:max(36px, env(safe-area-inset-bottom)); }
footer .in{ max-width:1180px; margin:0 auto; display:grid; gap:22px 40px; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }
footer h4{ font-family:var(--display); font-weight:800; font-size:21px; margin:0 0 6px; }
footer .big{ font-family:var(--display); font-weight:900; font-size:30px; text-decoration:none; display:block; line-height:1.1; }
footer .brandline{ grid-column:1 / -1; display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:900; font-size:40px; line-height:1; }
footer .brandline svg{ width:36px; height:36px; }
.hours{ border-collapse:collapse; font-size:15px; }
.hours th{ text-align:left; font-weight:400; padding:2px 18px 2px 0; opacity:.92; }
.hours td{ font-family:var(--display); font-weight:800; font-size:18px; padding:2px 0; white-space:nowrap; }
.hours tr.now th, .hours tr.now td{ text-decoration:underline; text-underline-offset:4px; }
.hours-note{ margin-top:6px; font-size:14px; white-space:pre-line; }

/* ---------- product sheet ---------- */
.sheet{ border:0; padding:0; width:min(560px, 100%); max-width:100%; max-height:92vh; border-radius:18px 18px 0 0; margin:auto auto 0;
  background:var(--surface); color:var(--ink); box-shadow:0 -10px 40px rgba(0,0,0,.25); }
@media (min-width:700px){ .sheet{ border-radius:18px; margin:auto; } }
.sheet::backdrop{ background:var(--backdrop); }
.sheet-inner{ padding:18px 20px 24px; overflow:auto; max-height:92vh; }
.sheet .close{ position:sticky; top:0; float:right; width:38px; height:38px; border-radius:50%; border:1.5px solid var(--hair); background:var(--surface); color:var(--ink);
  font-size:24px; line-height:1; cursor:pointer; }
.sheet .big-ph{ height:220px; display:flex; justify-content:center; align-items:center; margin:4px 0 10px; }
.sheet .big-ph img{ max-height:100%; max-width:100%; object-fit:contain; }
.sheet h2{ font-family:var(--display); font-weight:900; font-size:32px; line-height:1; margin:0 0 8px; }
.sheet .tags{ display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.sheet .tag{ display:inline-flex; align-items:center; gap:5px; border:1.5px solid currentColor; border-radius:999px; padding:3px 10px 3px 7px; font-size:13.5px; }
.sheet .tag span{ color:var(--ink); }
.sheet .tag svg{ width:15px; height:15px; }
.size-block{ border-top:1px solid var(--hair); padding:12px 0; }
.size-block h4{ font-family:var(--display); font-weight:800; font-size:20px; margin:0 0 6px; display:flex; justify-content:space-between; align-items:baseline; }
.size-block .ingr{ font-style:italic; font-size:15px; line-height:1.45; color:var(--ingr); }
.facts{ display:flex; flex-wrap:wrap; gap:4px 16px; margin-top:8px; font-size:14px; color:var(--muted); }
.facts b{ color:var(--ink); font-weight:600; }
.al-list{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.al-pill{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--hair); border-radius:999px; padding:4px 10px; font-size:14px; }
.al-pill svg{ width:15px; height:15px; }
.sheet .note{ font-size:14px; color:var(--muted); margin-top:8px; }

@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

/* tag colours are picked in the admin panel for white paper; lift them a little on dark paper */
:root[data-theme="dark"] :is(.legend-grid, .chips, .row .icons, .sheet .tag) [style*="color"],
:root[data-theme="dark"] .sheet .tag[style*="color"]{ filter:brightness(1.35) saturate(1.1); }
