/* ==========================================================================
   אותו הטעם — base: faces, tokens, type, buttons, the chrome around the film
   Palette "Crust": charcoal ground, cream type, the gold of a golden crumb.
   ========================================================================== */

@font-face { font-family: "Heebo"; src: url("/assets/fonts/heebo-hebrew.woff2") format("woff2"); font-weight: 100 900; 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: "Heebo"; src: url("/assets/fonts/heebo-latin.woff2") format("woff2"); font-weight: 100 900; 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: "Clash Display"; src: url("/assets/fonts/clash_display_600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/assets/fonts/clash_display_700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi_500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi_700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #161412;          /* charcoal ground */
  --ink-2: #1D1A17;        /* a raised surface */
  --ink-3: #26221E;
  --cream: #F2EADB;        /* type */
  --cream-2: #CFC5B3;      /* secondary type  ~11:1 on ink */
  --cream-3: #9A8F7E;      /* tertiary        ~5.6:1 on ink */
  --gold: #E6A53B;         /* the crumb: numbers, buttons */
  --gold-hi: #F3BE62;
  --paprika: #D4482E;      /* the old number */
  --steel: #1B222A;        /* the diet: night steel */
  --steel-type: #C6CED5;
  --steel-2: #808D98;
  --line: rgba(242, 234, 219, .12);
  --line-2: rgba(242, 234, 219, .22);

  --he: "Heebo", "Arial Hebrew", Arial, system-ui, sans-serif;
  --num: "Clash Display", "Satoshi", "Heebo", system-ui, sans-serif;
  --latin: "Satoshi", "Heebo", system-ui, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 17px/1.7 var(--he);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* film grain over everything — the difference between "rendered" and "shot" */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -3%) }
  60% { transform: translate(-2%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* Enable's accessibility button sits in the bottom-left corner, which on a phone
   is where the buy bar, the recipe's dock and the cooking arrows live: there it
   floats just above them. (`translate` adds to whatever the widget does itself.) */
@media (max-width: 900px) { #enable-toolbar-trigger { translate: 0 calc(-88px - env(safe-area-inset-bottom, 0px)); } }
html.is-cooking #enable-toolbar-trigger { translate: 0 calc(-88px - env(safe-area-inset-bottom, 0px)); }

.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--gold); color: var(--ink); padding: 12px 16px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.h2 { margin: 0; font-weight: 900; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; text-wrap: balance; }
.h3 { margin: 0; font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.lead { margin-top: 22px; max-inline-size: 40em; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.7; color: var(--cream-2); }
.gold { color: var(--gold); }

/* words rise out of a mask — Hebrew is always split by word, never by letter */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; }
.w > span { display: inline-block; }

/* ---------- buttons: square, never pills ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-block-size: 56px; padding: 0 30px; border: 0; border-radius: 0; cursor: pointer;
  font-weight: 800; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn bdi { font-family: var(--num); font-weight: 600; letter-spacing: .01em; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(230, 165, 59, .55); }
.btn--gold::after { /* the shine that crosses the button */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(230, 165, 59, .7); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); min-block-size: 44px; padding: 0 18px; font-size: 15px; font-weight: 700; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.btn--wide { inline-size: 100%; }
.icon-btn { inline-size: 52px; block-size: 52px; display: grid; place-items: center; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cream); font-size: 22px; cursor: pointer; transition: box-shadow .25s, color .25s; }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background-color .5s, backdrop-filter .5s, box-shadow .5s;
}
.topbar.is-solid { background: rgba(22, 20, 18, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; font-weight: 900; font-size: 20px; text-decoration: none; color: var(--cream); }
.wordmark__dot { display: none; }

/* the price, wherever it appears next to a button */
.tag { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.tag b { font-family: var(--num); font-weight: 700; font-size: 30px; line-height: 1; color: var(--gold); }
.tag s { font-family: var(--num); font-weight: 600; font-size: 19px; color: var(--cream-3); text-decoration-thickness: 2px; }
.tag span { font-size: 15px; color: var(--cream-2); }
.btn s { font-family: var(--num); font-weight: 600; opacity: .55; text-decoration-thickness: 2px; }
