@font-face { font-family: 'Schibsted'; font-weight: 400 700; font-display: swap; src: url('/fonts/schibsted.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400 500; font-display: swap; src: url('/fonts/newsreader.woff2') format('woff2'); }

:root {
  --bg: #f4efe4; --card: #fbf8f1; --ink: #17262a; --ink-2: #546365; --line: rgba(23, 38, 42, 0.13);
  --sea: #14363d; --sea-2: #dfeae7; --foam: #e9f1ee; --warm: #c0582f; --warm-2: #f6e3da;
  --serif: 'Newsreader', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 420px) { html { scrollbar-width: none; } }
body { margin: 0; font: 400 16px / 1.5 'Schibsted', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; padding-bottom: 96px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 13px; color: var(--ink-2); }

.demo-note { background: var(--ink); color: var(--bg); font-size: 12px; text-align: center; padding: 6px 12px; }
.demo-note a { color: inherit; }

.top { position: sticky; top: 0; z-index: 10; background: var(--sea); color: #fff; }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 60px; }
.brand { display: grid; line-height: 1.1; }
.brand span { font-family: var(--serif); font-size: 25px; }
.brand small { font-size: 12px; opacity: 0.75; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.lang button { min-width: 44px; min-height: 38px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.8); font-size: 13px; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--sea); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-top: 4px; padding-bottom: 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); transition: background-color 0.2s, color 0.2s; }
.cats a.active { background: #fff; color: var(--sea); }

.today { margin-top: 18px; padding: 22px; border-radius: 22px; background: var(--warm); color: #fff; display: grid; gap: 6px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.today h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.today p:not(.kicker) { opacity: 0.9; font-size: 15px; }
.today-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.today .price { font-family: var(--serif); font-size: 26px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--sea); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.pill.light { background: #fff; color: var(--warm); }
.pill.ghost { background: var(--sea-2); color: var(--sea); }

.tools { display: grid; gap: 10px; margin: 18px 0 6px; }
.search input { width: 100%; min-height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 16px; }
.filter { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.filter summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ink-2); }
.filter[open] summary::after { content: "–"; }
.count { margin-left: auto; color: var(--warm); font-size: 13px; }
.filter-body { display: grid; gap: 10px; padding: 0 18px 16px; }
.filter-body p { font-size: 13px; color: var(--ink-2); }
.veg { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; }
.veg input, .chips input { width: 20px; height: 20px; margin: 0; accent-color: var(--sea); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.chips label:has(input:checked) { border-color: var(--warm); background: var(--warm-2); }
.reset { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--sea); font-size: 14px; text-decoration: underline; cursor: pointer; }

.cat { padding-top: 26px; }
.cat h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dish-main { all: unset; display: grid; gap: 3px; cursor: pointer; border-radius: 8px; }
.dish-main:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.dish .name { font-size: 16px; font-weight: 700; }
.dish .desc { font-size: 14px; color: var(--ink-2); }
.dish .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dish-side { display: grid; justify-items: end; align-content: start; gap: 6px; }
.dish .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; }
.add[aria-pressed="true"] { background: var(--sea); color: #fff; border-color: var(--sea); }
.dish.out { opacity: 0.55; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; padding: 3px 9px; border-radius: 999px; background: var(--sea-2); color: var(--sea); }
.tag.hot { background: var(--warm-2); color: #8f3b1c; }
.tag.out { background: var(--ink); color: #fff; }
.codes { font-size: 12px; color: var(--ink-2); padding: 3px 0; }
.empty { padding: 16px 0; font-size: 14px; color: var(--ink-2); font-style: italic; }

.info { margin-top: 36px; padding: 22px; border-radius: 22px; background: var(--foam); display: grid; gap: 4px; }
.info h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.legend { margin: 10px 0 4px; }
.legend summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.legend ul { columns: 2; column-gap: 16px; font-size: 13px; color: var(--ink-2); }

.bag { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); pointer-events: none; }
.bag[hidden] { display: none; }
.bag .pill { pointer-events: auto; min-height: 52px; padding: 0 24px; box-shadow: 0 12px 30px -10px rgba(20, 54, 61, 0.6); }

.sheet { width: min(100%, 680px); max-height: 86vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--card); color: var(--ink); }
.sheet::backdrop { background: rgba(23, 38, 42, 0.45); }
.sheet-in { position: relative; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sea-2); font-size: 24px; cursor: pointer; }
#sheet-body { display: grid; gap: 10px; }
.sheet h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; padding-right: 48px; }
.sheet .price { font-family: var(--serif); font-size: 26px; }
.sheet ul.allergens li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sheet .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet .sum { font-weight: 700; border-bottom: 0; }
