:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #1f2a26;
  --ink-soft: #5d6a64;
  --line: #e4dccb;
  --accent: #1d5c63;      /* Ionian sea */
  --accent-ink: #ffffff;
  --olive: #5f6b2e;
  --terracotta: #b0532f;
  --warn-bg: #fbeee2;
  --warn-ink: #8a3d1a;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16201d; --card: #1e2a26; --ink: #ece6d8; --ink-soft: #a6b0a9; --line: #2f3d38;
    --accent: #6fb7b8; --accent-ink: #0f1a17; --olive: #b7c27a; --terracotta: #e59a76;
    --warn-bg: #3a2a1f; --warn-ink: #f2c3a3;
  }
}
:root[data-theme="dark"] {
  --paper: #16201d; --card: #1e2a26; --ink: #ece6d8; --ink-soft: #a6b0a9; --line: #2f3d38;
  --accent: #6fb7b8; --accent-ink: #0f1a17; --olive: #b7c27a; --terracotta: #e59a76;
  --warn-bg: #3a2a1f; --warn-ink: #f2c3a3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--sans); -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--safe-b);
}
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }

.sample-banner {
  background: #a84b28; color: #fff; text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: calc(6px + var(--safe-t)) 16px 6px;
}

/* ---------- Header ---------- */
.hero { max-width: 720px; margin: 0 auto; padding: 36px 16px 20px; text-align: center; }
.hero h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.01em; }
.tagline { margin: 0; color: var(--ink-soft); font-size: 15px; }
.hours { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}

/* ---------- Sticky bar: languages + categories ---------- */
.bar {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
}
.langs { max-width: 720px; margin: 0 auto; display: flex; justify-content: center; gap: 4px; padding: 8px 16px 4px; }
.langs button {
  min-width: 44px; min-height: 34px; border-radius: 8px; border: 1px solid transparent; background: none;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft);
}
.langs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cats {
  max-width: 720px; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 6px 16px 10px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); white-space: nowrap;
}
.cats a.active { border-color: var(--accent); color: var(--accent); }

/* ---------- Menu ---------- */
main { max-width: 720px; margin: 0 auto; padding: 8px 16px 0; }
.category { padding-top: 22px; }
.category h2 { font-family: var(--serif); font-weight: 650; font-size: 24px; margin: 0 0 10px; }
.cat-note { margin: -4px 0 12px; color: var(--ink-soft); font-size: 14px; }

.dish {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden;
}
.dish-body { padding: 14px 16px 12px; }
.dish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dish h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.frozen { color: var(--terracotta); margin-left: 2px; }
.price { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .unit { font-weight: 500; color: var(--ink-soft); font-size: 13px; }
.desc { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }

.photo { aspect-ratio: 4 / 3; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-soft); font-size: 13px; aspect-ratio: 16 / 7;
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 55%, transparent) 10px 20px), var(--paper);
  border-bottom: 1px dashed var(--line);
}
@media (min-width: 560px) {
  .dish.has-photo { display: grid; grid-template-columns: 200px 1fr; }
  .dish.has-photo .photo { aspect-ratio: auto; min-height: 150px; }
  .dish.has-photo .photo.placeholder { border-bottom: 0; border-right: 1px dashed var(--line); }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive); }
.tag-special, .tag-spicy { background: color-mix(in srgb, var(--terracotta) 14%, transparent); color: var(--terracotta); }
.tag-local { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

.allergens { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.chip { display: inline-flex; align-items: center; gap: 4px; }
.chip b {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  border: 1px solid var(--ink-soft); font-size: 10.5px; font-weight: 700;
}
.allergens.ask { color: var(--warn-ink); background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; display: inline-block; }
.allergens.none { font-style: italic; }

/* ---------- Footer ---------- */
footer { max-width: 720px; margin: 0 auto; padding: 18px 16px 40px; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 16px; margin-top: 12px; }
.notice h2 { font-family: var(--serif); font-size: 18px; margin: 0 0 6px; }
.notice p { margin: 0; font-size: 14.5px; }
.notice details { margin-top: 10px; font-size: 14px; }
.notice summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.legend { margin: 6px 0 0; padding-left: 26px; columns: 2 220px; column-gap: 24px; }
.legend li { break-inside: avoid; padding: 1px 0; }
.fine { color: var(--ink-soft); font-size: 13px; margin: 16px 0 0; text-align: center; }
.credit { margin: 18px 0 0; text-align: center; }
/* The only Kalimera Digital element on a client menu (matches .kd-madeby: 12px, 75% opacity) */
.madeby { font-size: 12px; font-weight: 500; color: var(--ink); opacity: .75; text-decoration: none; }
.madeby:hover { text-decoration: underline; }

@media print {
  .bar, .actions, .sample-banner { display: none !important; }
  .dish { break-inside: avoid; }
}
