:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-hover: #fafaf5;
  --ink: #1c1c1a;
  --ink-2: #4a4842;
  --ink-dim: #7a7770;
  --border: #e5e2d8;
  --border-strong: #d8d3c4;
  --accent: #a83a22;
  --accent-soft: #f5e9e4;
  --accent-ink: #ffffff;
  --success: #4a7c3c;
  --shadow-sm: 0 1px 2px rgba(28, 28, 26, 0.04);
  --shadow-md: 0 1px 2px rgba(28, 28, 26, 0.04),
               0 6px 20px -8px rgba(28, 28, 26, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131317;
    --surface: #1d1d22;
    --surface-hover: #24242a;
    --ink: #f4f2ec;
    --ink-2: #cfccc4;
    --ink-dim: #97948c;
    --border: #2f2f36;
    --border-strong: #3a3a42;
    --accent: #ee7757;
    --accent-soft: #3a221c;
    --success: #7fb56d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3),
                 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; }

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-block { display: flex; flex-direction: column; gap: 2px; }
.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-emoji { font-size: 22px; }
.subtitle {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.today {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: color 0.12s ease, background-color 0.12s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Main */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.status {
  color: var(--ink-dim);
  font-size: 14px;
  min-height: 1.5em;
  margin: 0 0 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 12px 32px -12px rgba(28, 28, 26, 0.15);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title-block { min-width: 0; flex: 1; }
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
}
.card-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.card-link {
  font-size: 12px;
  color: var(--ink-dim);
  white-space: nowrap;
  padding-top: 2px;
  border-bottom: 1px solid transparent;
}
.card-link:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.card-body { display: flex; flex-direction: column; gap: 12px; min-height: 40px; }

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-item { display: flex; flex-direction: column; gap: 4px; }
.menu-item-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  line-height: 1.35;
}
.menu-item-title .price {
  color: var(--ink-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}
.menu-item-desc {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.menu-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 1px 8px;
}

/* Card state — used when there's no daily menu content */
.card-state {
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-state-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.card-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: transform 0.1s ease, background-color 0.12s ease;
}
.card-state-cta:hover {
  text-decoration: none;
  background: color-mix(in oklab, var(--accent) 85%, black);
  transform: translateY(-1px);
}
.card-state-cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.card-state-cta.secondary:hover {
  background: var(--accent-soft);
}

/* Card foot — the translated badge, phone number, etc. */
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}
.card-note { flex: 1; }

.card-translated .card-note::before {
  content: "✦ ";
  color: var(--accent);
}

/* Footer */
.footer {
  margin: 40px 0 0;
  color: var(--ink-dim);
  font-size: 12px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-sep { color: var(--border-strong); }

/* Responsive */
@media (max-width: 720px) {
  .topbar-inner { padding: 12px 16px; gap: 12px; }
  .brand { font-size: 19px; }
  .subtitle { font-size: 12px; }
  .controls { gap: 12px; width: 100%; justify-content: space-between; }
  .today { font-size: 13px; }
  .wrap { padding: 20px 16px 48px; }
  .card { padding: 18px; }
}

@media (max-width: 420px) {
  .brand-block { flex: 1; }
  .brand { font-size: 18px; }
  .today { display: none; }
  .controls { justify-content: flex-end; width: auto; }
}
