/* israelfoodies.com: one calm column in the app's tokens (docs/DESIGN.md). Logical properties
   (inline/block, start/end) so a Hebrew page can flip with dir="rtl". */
:root {
  --brand: #1a429f;
  --on-brand: #ffffff;
  --brand-deep: #142a6b;
  --brand-soft: #e8eefb;
  --gold: #c9a24b;
  --gold-text: #8c6a1e;
  --bg: #ffffff;
  --fill: #f6f4f1;
  --text: #0e1530;
  --muted: #5f6782;
  --line: #e9e4de;
  --meat: #cd6248;
  --dairy: #4ba3e3;
  --parve: #78a37c;
  /* lib/theme.ts brandGradient (buttons) and coverGradient (no-photo covers) */
  --button-from: #2e58c2;
  --button-to: #163a93;
  --cover-from: #1c3f9e;
  --cover-to: #0e2366;
  --serif: "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6e92ee;
    --on-brand: #0a1432;
    --brand-soft: #1a2754;
    --gold-text: #c9a24b;
    --bg: #0a1432;
    --fill: #162450;
    --text: #f4f0e6;
    --muted: #a0aac6;
    --line: #263669;
    --button-from: #5a80e4;
    --button-to: #2f55b8;
    --cover-from: #1a3a94;
    --cover-to: #0c1f5c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.top {
  display: flex;
  justify-content: center;
  padding-block: max(20px, env(safe-area-inset-top)) 8px;
}
.top img { display: block; }

.page {
  max-width: 600px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
  padding-block: 8px 40px;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding-block: 24px max(32px, env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--line);
  max-width: 600px;
  margin-inline: auto;
}
.foot a { text-decoration: none; padding: 8px 4px; }

/* ---------- Type ---------- */
.title, .headline, .entry-title, .section {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.title { font-size: 34px; margin-block: 20px 8px; }
.headline { font-size: 40px; margin-block: 24px 12px; }
.section { font-size: 24px; margin-block: 36px 12px; }
.entry-title { font-size: 26px; margin-block: 0 16px; display: flex; gap: 12px; align-items: baseline; }
.number { color: var(--brand); font-size: 36px; }
.gold { color: var(--gold-text); }
.lede { font-size: 19px; color: var(--muted); margin-block: 8px 16px; }
.body { margin-block: 0 16px; }
.small { font-size: 15px; margin-block: 4px 0; }
.muted { color: var(--muted); }
.meta { color: var(--muted); margin-block: 0 16px; }
.eyebrow {
  margin-block: 24px 0;
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
hr.gold { width: 48px; margin-inline: 0; margin-block: 12px 16px; border: 0; border-block-start: 2px solid var(--gold); }
.link { color: var(--brand); text-decoration: none; font-weight: 500; }
.link:hover, .foot a:hover { text-decoration: underline; }

/* ---------- Photos ---------- */
.cover, .photo {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: var(--fill);
}
.cover { aspect-ratio: 4 / 3; margin-block-start: 8px; }
.photo { margin-block: 0 16px; }
figure { margin: 0 0 16px; }
/* several photos on a guide place: a strip that scrolls sideways (4:5), as in the app */
.strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-block: 0 16px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip img {
  flex: none;
  width: 62%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--fill);
  scroll-snap-align: start;
}
figure .photo { margin-block-end: 8px; }

/* ---------- Labels ---------- */
.partner {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  vertical-align: 1px;
}
.closed { font-weight: 600; margin-block: 8px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; vertical-align: 1px; }
.dot.meat { background: var(--meat); }
.dot.dairy { background: var(--dairy); }
.dot.parve, .dot.fish { background: var(--parve); }

/* ---------- Restaurant ---------- */
.kosher { margin-block: 20px 0; padding-block: 16px; border-block: 1px solid var(--line); }
.kosher-main { margin: 0; font-weight: 500; }
.kosher .small { padding-inline-start: 18px; }
.picks { list-style: none; padding: 0; margin: 0; }
.picks li { padding-block: 12px; border-block-end: 1px solid var(--line); }
.picks li:last-child { border-block-end: 0; }
.dish { font-weight: 500; }

/* ---------- Guides and reviews ---------- */
.entry { margin-block: 40px 0; }
.place-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  margin-block: 0 16px;
  border-radius: 16px;
  background: var(--fill);
  text-decoration: none;
}
.place-row img, .place-row .no-cover {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}
.place-row .no-cover { background: linear-gradient(135deg, var(--cover-from), var(--cover-to)); }
.place-text { display: flex; flex-direction: column; min-width: 0; }
.place-name { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.place-meta { color: var(--muted); font-size: 15px; }

/* ---------- App Store ---------- */
.store {
  display: block;
  margin-block: 40px 0;
  padding: 16px 24px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--button-from), var(--button-to));
}
.store.soon { background: var(--brand-soft); color: var(--brand); }

/* ---------- Home, documents, not found ---------- */
.home { text-align: center; padding-block: 24px 16px; }
.home .store { margin-block: 32px 24px; }
.doc .section { font-size: 21px; margin-block: 28px 8px; }
.empty { text-align: center; padding-block: 48px; }

@media (max-width: 380px) {
  .title { font-size: 30px; }
  .headline { font-size: 34px; }
}
