/* =========================================================================
   מוקד (concept): a chef bar around one fire.
   Soot ground, bone type, ember is the only "lit" colour (actions, focus, the booking field).
   Mobile first. Desktop scroll scenes live in js/motion-desktop.js.
   ========================================================================= */

@font-face { font-family: "Bellefair"; src: url("../fonts/bellefair-hebrew.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Bellefair"; src: url("../fonts/bellefair-latin.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212; }
@font-face { font-family: "Noto Sans Hebrew"; src: url("../fonts/nsh-400-hebrew.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Noto Sans Hebrew"; src: url("../fonts/nsh-400-latin.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Hebrew"; src: url("../fonts/nsh-600-hebrew.woff2?v=1") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Noto Sans Hebrew"; src: url("../fonts/nsh-600-latin.woff2?v=1") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --soot: #0E0A07;      /* page ground; every render is graded to it */
  --soot-2: #1A130D;    /* raised ground */
  --bone: #F3EADB;      /* main text */
  --ash: #BBAE9A;       /* secondary text on soot */
  --cinder: #8E7F6E;    /* unlit manifesto words (still 4.5:1 on soot) */
  --ember: #EE6A2C;     /* the only lit colour: actions, focus, booking field */
  --ember-hi: #FF8448;  /* hover on ember */
  --line: rgba(243, 234, 219, 0.16);
  --focus: var(--ember);

  --serif: "Bellefair", "Frank Ruhl Libre", "David", Georgia, serif;
  --font: "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;

  --t-small: 0.875rem;
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.375rem);
  --t-h2: clamp(2.5rem, 1.7rem + 3.4vw, 5.5rem);
  --t-manifesto: clamp(2rem, 1.1rem + 4.2vw, 6.5rem);
  --t-hero: clamp(7rem, 2rem + 24vw, 17rem);
  --t-course: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);

  --s-1: 0.5rem; --s-2: 0.75rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2rem; --s-6: 3rem;
  --section: clamp(4.5rem, 2.5rem + 7vw, 10rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3.5rem);
  --max: 88rem;
  --head: 3.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--soot);
  scrollbar-color: #4a3526 var(--soot);
  scroll-padding-top: calc(var(--head) + 1rem);
}
body {
  margin: 0; background: var(--soot); color: var(--bone);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  overflow-x: clip;
}
::selection { background: var(--ember); color: var(--soot); }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a, button, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left));
}
.h2 { font-family: var(--serif); font-size: var(--t-h2); line-height: 0.98; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ash); max-width: 34ch; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--ember); color: var(--soot); padding: 0.75rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.top.is-scrolled { background: rgba(14, 10, 7, 0.94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .top.is-scrolled { background: rgba(14, 10, 7, 0.76); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
@media (prefers-reduced-transparency: reduce) { .top.is-scrolled { background: var(--soot); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.top__bar {
  height: var(--head); display: flex; align-items: center; gap: var(--s-2);
  max-width: var(--max); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left));
}
.logo {
  font-family: var(--serif); font-size: 1.75rem; line-height: 1; text-decoration: none; min-width: 44px; justify-content: center;
  display: inline-flex; align-items: center; min-height: 44px;
}
.tag {
  font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--bone); border: 1px solid rgba(238, 106, 44, 0.75); border-radius: 999px; padding: 0.42rem 0.7rem;
}
.top__tools { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-1); }

.motion-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid var(--line); color: var(--ash); cursor: pointer;
  user-select: none; -webkit-user-select: none;
}
.motion-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.motion-toggle__play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; }
.motion-toggle:active { transform: scale(0.94); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.7em; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  user-select: none; -webkit-user-select: none;
  transition: background-color 0.2s, color 0.2s, transform 0.1s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--big { min-height: 56px; font-size: 1.0625rem; }
.btn--small { min-height: 44px; padding: 0.5em 1.05em; font-size: 0.9375rem; }
.btn--ember { background: var(--ember); color: var(--soot); }
.btn--soot { background: var(--soot); color: var(--bone); }
.btn--line { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--ember); }
.link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--bone);
  text-decoration: underline; text-decoration-color: rgba(243, 234, 219, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ember:hover { background: var(--ember-hi); }
  .btn--soot:hover { background: #2a1d14; }
  .btn--line:hover { background: rgba(238, 106, 44, 0.16); }
  .link:hover { text-decoration-color: var(--ember); }
  .motion-toggle:hover { color: var(--bone); border-color: rgba(243, 234, 219, 0.4); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--head) + env(safe-area-inset-top)); }
.hero__pin { position: relative; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; background: var(--soot); }
.stage__poster, .stage__loop, .stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage::after { /* phones: the embers melt into the page under the title */
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 10, 7, 0), rgba(14, 10, 7, 0.7) 55%, var(--soot));
}
@media (min-width: 64rem) { .stage::after { display: none; } }
.stage__loop { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.stage__loop.is-playing { opacity: 1; }
.stage__canvas { opacity: 0; transition: opacity 0.4s; }
.stage.has-seq .stage__canvas { opacity: 1; }

.hero__copy {
  position: relative; z-index: 2; margin-top: calc(var(--t-hero) * -0.62);
  padding-inline: max(var(--gutter), env(safe-area-inset-right)) max(var(--gutter), env(safe-area-inset-left));
}
.hero__title {
  font-family: var(--serif); font-size: var(--t-hero); line-height: 0.82;
  text-shadow: 0 0.06em 0.5em rgba(14, 10, 7, 0.55);
}
.hero__kicker { font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.1; margin-top: var(--s-2); }
.hero__lead { color: var(--ash); font-size: var(--t-lead); line-height: 1.55; max-width: 30ch; margin-top: var(--s-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); }

/* entrance (CSS, every device; off when motion is off) */
.js:not(.motion-off) .hero__title { animation: rise 1.1s var(--ease-out) both 0.1s; }
.js:not(.motion-off) .hero__kicker, .js:not(.motion-off) .hero__lead, .js:not(.motion-off) .hero__actions { animation: rise 1s var(--ease-out) both 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- manifesto ---------- */
.manifesto { padding-block: var(--section); }
.manifesto__text {
  font-family: var(--serif); font-size: var(--t-manifesto); line-height: 1.08; max-width: 19ch;
}
.manifesto__text .w { color: var(--cinder); transition: color 0.3s; }
.manifesto__text .w.is-lit { color: var(--bone); }

/* ---------- counter ---------- */
.counter { position: relative; }
.counter__frame { position: relative; overflow: hidden; }
.counter__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.counter__copy { margin-top: var(--s-4); display: grid; gap: var(--s-3); }

/* ---------- menu ---------- */
.menu { padding-top: var(--section); }
.menu__grid { display: grid; gap: var(--s-5); }
.menu__head { display: grid; gap: var(--s-3); }
.menu__dish { border-radius: 14px; overflow: hidden; }
.menu__dish img { width: 100%; }
.courses { counter-reset: course; border-top: 1px solid var(--line); }
.course {
  counter-increment: course; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--s-3); row-gap: 0.15rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.course::before {
  content: counter(course); grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; color: var(--ember);
}
.course__name { font-family: var(--serif); font-size: var(--t-course); line-height: 1.05; transition: color 0.4s; }
.course__line { color: var(--ash); }
.has-scenes .course .course__name { color: var(--ash); }
.has-scenes .course.is-current .course__name { color: var(--bone); }

/* ---------- evening ---------- */
.evening { padding-block: var(--section); display: grid; gap: var(--s-5); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { padding-block: 1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.fact dt { color: var(--ash); }
.fact dd { font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; }

/* ---------- book: the ember field ---------- */
.book { background: var(--ember); color: var(--soot); padding-block: var(--section); --focus: var(--soot); }
.book ::selection { background: var(--soot); color: var(--ember); }
.book__inner { display: grid; gap: var(--s-5); }
.book__title { font-family: var(--serif); font-size: clamp(3rem, 1.6rem + 6vw, 8rem); line-height: 0.92; max-width: 12ch; }
.picker { display: grid; gap: var(--s-4); max-width: 44rem; }
.picker__group { border: 0; padding: 0; min-width: 0; }
.picker__legend { font-weight: 600; padding: 0; margin-bottom: var(--s-1); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px;
  padding: 0.5rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--soot);
  font-weight: 600; user-select: none; -webkit-user-select: none;
  transition: background-color 0.15s, color 0.15s, transform 0.1s var(--ease-out);
}
.chip input:checked + span { background: var(--soot); color: var(--bone); }
.chip input:focus-visible + span { outline: 2px solid var(--soot); outline-offset: 3px; }
.chip:active span { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span { background: rgba(14, 10, 7, 0.12); } }
.picker .btn { justify-self: start; }
.picker__status { font-weight: 600; min-height: 1.6em; max-width: 40ch; }
.book__note { font-size: var(--t-small); }

/* ---------- footer ---------- */
.foot { padding-block: var(--s-6) calc(var(--s-6) + env(safe-area-inset-bottom)); }
.foot__inner { display: grid; gap: var(--s-3); justify-items: start; }
.logo--foot { font-size: 2.5rem; min-height: 0; }
.foot__small { color: var(--ash); font-size: var(--t-small); max-width: 52ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.foot__links a { display: inline-block; padding-block: 0.65rem; min-height: 44px; line-height: 1.6; color: var(--ash); }
.foot__motion {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; color: var(--ash);
  text-decoration: underline; text-underline-offset: 0.28em;
}

/* ---------- reveal (phones, IntersectionObserver) ---------- */
.js:not(.motion-off) .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js:not(.motion-off) .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (min-width: 48rem) {
  .stage { aspect-ratio: 16 / 10; }
  .hero__copy { margin-top: calc(var(--t-hero) * -0.55); }
  .counter__copy { position: absolute; inset: auto 0 0 0; padding-block: var(--s-6); margin: 0;
    background: linear-gradient(to top, rgba(14, 10, 7, 0.92), rgba(14, 10, 7, 0)); }
  .counter__img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: var(--s-4); }
  .fact { flex-direction: column; gap: 0.25rem; border-bottom: 0; border-top: 1px solid var(--line); }
  .fact dd { font-size: 2.25rem; }
}

/* ---------- desktop ---------- */
@media (min-width: 64rem) {
  .hero { padding-top: 0; }
  .hero__pin { height: 100svh; min-height: 40rem; overflow: hidden; }
  .stage { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
  /* same framing as the canvas (TUNE.camera in motion-desktop.js): height 94%, centre at 30% / 55% */
  .stage__poster {
    inset: auto; top: 55%; left: 30%; height: 94%; width: auto; max-width: none;
    aspect-ratio: 1600 / 890; transform: translate(-50%, -50%);
  }
  .hero__pin::after { /* reading-side shade so the copy holds over the fire */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to left, rgba(14, 10, 7, 0.94) 0%, rgba(14, 10, 7, 0.78) 30%, rgba(14, 10, 7, 0) 52%);
  }
  .hero__copy {
    position: absolute; z-index: 2; margin: 0; inset-inline-start: 0; bottom: 9svh; width: min(42%, 40rem);
    padding-inline-start: max(var(--gutter), 4vw);
  }
  .hero__title { font-size: clamp(9rem, 2rem + 14vw, 17rem); }

  .manifesto { padding-block: calc(var(--section) * 1.2); }
  .counter__frame { height: 100svh; min-height: 36rem; }
  .counter__img { height: 100%; aspect-ratio: auto; }
  .counter__copy { padding-block: 10svh; }
  .counter__copy .lead { color: var(--bone); }

  .menu__grid { grid-template-columns: 1fr minmax(0, 0.8fr); grid-template-rows: auto 1fr; column-gap: clamp(3rem, 7vw, 8rem); row-gap: var(--s-5); align-items: start; }
  .menu__head { grid-column: 1; grid-row: 1; }
  .courses { grid-column: 1; grid-row: 2; }
  .menu__dish { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--head) + 2rem); }
  .course { padding-block: 1.5rem; grid-template-columns: 3rem 1fr; }

  .book__inner { grid-template-columns: 1fr 1.1fr; align-items: start; column-gap: clamp(3rem, 6vw, 7rem); }
  .book__title { grid-row: 1 / span 2; }
}

/* ---------- motion off ---------- */
.motion-off .stage__loop { display: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- legal pages ---------- */
.page-top { background: var(--soot); border-bottom-color: var(--line); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ash); }
.legal { padding-block: calc(var(--head) + var(--s-6)) var(--section); }
.legal__body { max-width: 44rem; margin-inline: 0; }
.legal h1 { font-family: var(--serif); font-size: var(--t-h2); line-height: 1; margin-bottom: var(--s-2); }
.legal h2 { font-size: 1.1875rem; font-weight: 600; margin: var(--s-5) 0 var(--s-1); }
.legal p, .legal li { color: #DCD2C2; line-height: 1.7; }
.legal p + p { margin-top: var(--s-2); }
.legal ul { display: grid; gap: var(--s-1); margin-top: var(--s-1); padding-inline-start: 1.1rem; list-style: disc; }
.legal li::marker { color: var(--ember); }
.legal a:not(.btn) { color: var(--bone); }
.updated { color: var(--ash); font-size: var(--t-small); }
.notfound { min-height: 70svh; display: grid; align-content: center; justify-items: start; gap: var(--s-4); }
