/* Hevre landing · "Jaffa Blue" (light) and "1 AM" (dark).
   Colors were extracted from photos of Tel Aviv-Jaffa, Jerusalem and Haifa venues:
   see docs/design/hevre-local-references.md and docs/design/hevre-design-system.md.
   Fonts are self-hosted (SIL OFL, see fonts/LICENSE-*): no third-party requests. */

@font-face {
  font-family: "Karantina";
  src: url("/fonts/karantina-hebrew-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Karantina";
  src: url("/fonts/karantina-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-hebrew.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193;
}

:root {
  /* Jaffa Blue: painted shop shutters, yellow lane lines, tahini, shakshuka. */
  --wall: #1544A4;        /* page background: shutter cobalt */
  --tahini: #F1E8DA;      /* text on the wall, sign panels */
  --tahini-2: #C9D3EC;    /* secondary text on the wall */
  --ink: #19120F;         /* text on tahini and turmeric */
  --ink-2: #5B5047;
  --line: #DCCFBC;        /* hairlines on tahini */
  --turmeric: #E0B02C;    /* lane-line yellow: main accent, primary action */
  --tomato: #D34F2E;      /* small accent only */
  --on-tomato: #F1E8DA;
  --panel: var(--tahini);
  --panel-text: var(--ink);
  --select: var(--wall);
  --on-select: var(--tahini);
  --glow: none;

  --display: "Karantina", "Arial Narrow", sans-serif;
  --text: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;

  --r-sign: 6px;          /* painted signs have small corners */

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* 1 AM: brown-black bar dark, tungsten bulbs, one neon. */
    --wall: #1E0D0A;
    --tahini: #EFE3DA;
    --tahini-2: #B9A397;
    --ink: #EFE3DA;
    --ink-2: #B9A397;
    --line: #4A2418;
    --turmeric: #F39650;   /* tungsten */
    --tomato: #FF4A3D;     /* neon */
    --on-tomato: #1E0D0A;
    --panel: #2E140E;
    --panel-text: #EFE3DA;
    --select: #F39650;
    --on-select: #1E0D0A;
    --glow: 0 0 22px rgba(255, 74, 61, .55), 0 0 2px rgba(255, 74, 61, .9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--wall); }
body {
  margin: 0;
  background: var(--wall);
  color: var(--tahini);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  body { background: radial-gradient(120% 55% at 85% -5%, #5A2414 0%, #1E0D0A 62%) no-repeat, var(--wall); }
}
::selection { background: var(--turmeric); color: #19120F; }

.page {
  max-width: 480px;
  margin-inline: auto;
  padding-block: max(18px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-bottom));
  /* Safe-area insets are physical sides, so this is the one place that uses left/right. */
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Brand: hand-painted sign lettering, geresh in lane-line yellow. */
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark-he {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: .8;
  color: var(--tahini);
}
.geresh { color: var(--turmeric); }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--tahini-2);
  text-decoration: none;
  padding: 4px 10px 3px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-sign);
}
a.wordmark:hover { color: var(--tahini); }

/* Hero: shop-sign headline over a double yellow lane line. */
.hero { position: relative; padding-bottom: 30px; }
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 14px;
  background:
    linear-gradient(var(--turmeric), var(--turmeric)) top / 100% 5px no-repeat,
    linear-gradient(var(--turmeric), var(--turmeric)) bottom / 100% 5px no-repeat;
}
.hero h1 {
  margin: 22px 0 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(96px, 30vw, 132px);
  line-height: .78;
  color: var(--tahini);
  text-shadow: var(--glow);
}
.lede { margin: 0; color: var(--tahini-2); font-size: 18px; max-width: 34ch; text-wrap: pretty; }
@media (prefers-color-scheme: dark) {
  .hero h1 { color: #FFE9DC; }
  .hero::after { filter: drop-shadow(0 0 8px rgba(243, 150, 80, .6)); }
}

/* Moments: price-tag stickers, like the cardboard tags in Levinsky market. */
.moments {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none; /* decoration: never mistaken for answers */
}
.moments li {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 9px 12px 10px;
  border-radius: var(--r-sign);
  border: 1.5px solid var(--tahini-2);
  color: var(--tahini);
  white-space: nowrap;
}
.moments .sun { background: var(--turmeric); border-color: var(--turmeric); color: #19120F; transform: rotate(-2.5deg); }
.moments .pop { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); transform: rotate(2deg); }
@media (prefers-color-scheme: dark) {
  .moments li { border-color: var(--line); }
  .moments .sun { background: transparent; color: var(--turmeric); border-color: var(--turmeric); box-shadow: 0 0 14px rgba(243, 150, 80, .35); }
  .moments .pop { background: transparent; color: var(--tomato); border-color: var(--tomato); box-shadow: 0 0 14px rgba(255, 74, 61, .35); }
}

/* Question panel: a tahini sign board on the cobalt wall. */
.card {
  background: var(--panel);
  color: var(--panel-text);
  border-radius: var(--r-sign);
  padding: 22px 18px 18px;
}
.card h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  line-height: .85;
}
.card p { margin: 0 0 18px; color: var(--ink-2); }

.choices { display: grid; gap: 8px; }
.choice {
  font: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 12px 14px;
  min-height: 52px;
  border-radius: var(--r-sign);
  border: 1.5px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.choice::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: .55;
}
.choice:hover { border-color: currentColor; }
.choice[aria-checked="true"] {
  background: var(--select);
  border-color: var(--select);
  color: var(--on-select);
  font-weight: 700;
}
.choice[aria-checked="true"]::before {
  opacity: 1;
  border: 5px solid var(--turmeric);
  background: var(--on-select);
}
@media (prefers-color-scheme: dark) {
  .choice[aria-checked="true"] { box-shadow: 0 0 18px rgba(243, 150, 80, .45); }
  .choice[aria-checked="true"]::before { border-color: var(--on-select); background: var(--select); }
}

.cta {
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  min-height: 56px;
  border: 0;
  border-radius: var(--r-sign);
  background: var(--turmeric);
  color: #19120F;
  cursor: pointer;
  animation: rise .26s cubic-bezier(.2, .8, .2, 1);
}
/* Points forward in reading direction. */
.cta::after { content: "←"; font-size: 20px; line-height: 1; transition: transform .15s; }
:dir(ltr) .cta::after { content: "→"; }
.cta:hover::after { transform: translateX(-3px); }
:dir(ltr) .cta:hover::after { transform: translateX(3px); }
.cta:active { transform: translateY(1px); }
@media (prefers-color-scheme: dark) {
  .cta { background: var(--tomato); color: #1E0D0A; box-shadow: 0 0 26px rgba(255, 74, 61, .55); }
}

.choice:focus-visible, .cta:focus-visible, .secondary:focus-visible, .foot a:focus-visible, a.wordmark:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 2px;
}

/* Thanks */
.thanks { animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.thanks h2 { font-size: 72px; outline: none; }
.thanks h2::after { content: ""; display: block; height: 5px; width: 64px; margin-top: 12px; background: var(--turmeric); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.secondary {
  font: inherit;
  font-weight: 700;
  padding: 11px 16px;
  min-height: 48px;
  border-radius: var(--r-sign);
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.secondary:hover { background: var(--select); border-color: var(--select); color: var(--on-select); }

[hidden] { display: none !important; }

.foot { margin-top: auto; font-size: 13px; line-height: 1.5; color: var(--tahini-2); }
.foot p { margin: 0; }
.foot a { color: var(--tahini); text-underline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .thanks { animation: none; }
  .choice, .cta::after { transition: none; }
}

/* Wide screens: the headline fills one half, the sign board the other. */
@media (min-width: 900px) {
  .page {
    max-width: 1120px;
    padding-block: 32px 36px;
    padding-left: 48px;
    padding-right: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 72px;
    row-gap: 0;
  }
  .brand { grid-column: 1 / -1; }
  .hero { grid-column: 1; grid-row: 2; align-self: center; }
  .hero h1 { font-size: clamp(150px, 15vw, 210px); }
  .lede { font-size: 20px; }
  #ask, .thanks { grid-column: 2; grid-row: 2; align-self: center; padding: 28px 26px 24px; }
  .foot { grid-column: 1 / -1; grid-row: 3; padding-top: 28px; }
}

/* Privacy and other text pages */
.prose { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { margin: 14px 0 0; font-family: var(--display); font-weight: 700; font-size: 72px; line-height: .85; }
.prose h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 700; font-size: 36px; line-height: .9; color: var(--turmeric); }
.prose p, .prose ul { margin: 0; color: var(--tahini-2); }
.prose ul { padding-inline-start: 20px; }
.prose li + li { margin-top: 4px; }
.prose .updated { font-size: 13px; }
