/* Bialik 26 · Friday Market — styles
   Palette sampled from the poster illustration. */
/* Self-hosted fonts: no request to Google before consent */
@font-face { font-family: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/karantina-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/karantina-latin-700-normal.woff2') format('woff2'); 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: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rubik-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/rubik-latin-400-normal.woff2') format('woff2'); 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: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/rubik-hebrew-500-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/rubik-latin-500-normal.woff2') format('woff2'); 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: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/rubik-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/rubik-latin-700-normal.woff2') format('woff2'); 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 {
  --paper: #F9DAAE;       /* illustration background, exact */
  --paper-hi: #FCE7C8;    /* ticket / sheet surface */
  --wall: #EDC48F;        /* desktop backdrop behind the poster */
  --ink: #3D140A;         /* body text: 12.9:1 on paper */
  --ink-soft: #6A2614;    /* secondary text: 8.3:1 on paper */
  --brick: #A62E1A;       /* primary buttons, titles: 5.6:1 on paper */
  --terracotta: #C8462B;  /* accents */
  --orange: #E3793C;      /* stones, print offset (decorative only) */

  --f-display: "Karantina", "Suez One", "Rubik", serif;
  --f-body: "Rubik", "Assistant", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(18px, 5.5vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything (pure SVG noise, ~1KB, no image request) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
.ico { width: 1em; height: 1em; color: var(--brick); flex: none; overflow: visible; }
.ico--inline { width: .9em; height: .9em; vertical-align: -.12em; }
bdi { unicode-bidi: isolate; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- The poster sheet ---------- */
.poster {
  max-width: 600px;
  margin-inline: auto;
  background: var(--paper);
  overflow: hidden;
  min-height: 100vh;
}
@media (min-width: 640px) {
  body { padding: 40px 0; }
  .poster {
    min-height: 0;
    box-shadow: 0 1px 0 rgba(61,20,10,.08), 0 30px 60px -30px rgba(61,20,10,.45);
  }
}

/* Soft-edged illustrations: the crops share the page's cream,
   so feathering the edges makes them sit "printed" on the sheet. */
.hero__art, .item__art, .vibe__art, .footer__art {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
                      linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
                      linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-composite: intersect;
}

/* ---------- HERO ---------- */
.hero { position: relative; text-align: center; }
.hero__art { width: 100%; }

.hero__body {
  position: relative;
  padding: 4px var(--gutter) 28px;
}

.hero__title { margin: 0; font-weight: 700; }

.hero__name {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(4.8rem, 27vw, 9rem);
  line-height: .78;
  color: var(--brick);
  letter-spacing: .005em;
  /* off-register second ink, like a two-colour screen print */
  text-shadow: -4px 4px 0 rgba(227,121,60,.55);
  padding-top: .12em;
}
.hero__glass {
  width: .42em; height: .42em;
  vertical-align: .75em;
  margin-inline-start: -.02em;
}
.hero__sub {
  display: block;
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
}

/* Date stamp */
.stamp {
  position: absolute;
  top: -34px;
  inset-inline-end: calc(var(--gutter) - 4px);
  width: 82px; height: 82px;
  border-radius: 50%;
  display: grid; place-content: center;
  color: var(--paper);
  background: var(--brick);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--brick);
  transform: rotate(-11deg);
  line-height: 1;
  z-index: 2;
}
.stamp__day { font-family: var(--f-display); font-size: 1.35rem; }
.stamp__date { font-family: var(--f-display); font-size: 1.95rem; }

/* Facts */
.facts {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; gap: 6px;
  justify-items: center;
  font-weight: 500;
  font-size: 1.125rem;
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.facts .icon { color: var(--terracotta); }

.lede {
  margin: 18px auto 0;
  max-width: 30ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* ---------- Buttons ---------- */
.actions, .ticket__actions { display: grid; gap: 12px; margin-top: 24px; }

.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font: 700 1.125rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .15s;
}
.btn--primary {
  background: var(--brick);
  color: #FFF4E4;
  box-shadow: -3px 3px 0 var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: -3px 3px 0 var(--ink);
}
.btn--primary:hover { background: #B8361F; }
.btn--ghost:hover { background: rgba(255,244,228,.55); }
.btn--primary:active, .btn--ghost:active {
  transform: translate(-2px, 2px);
  box-shadow: -1px 1px 0 var(--ink);
}
.btn--text {
  border-color: transparent;
  background: none;
  color: var(--brick);
  min-height: 48px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; }

/* ---------- Stepping-stone divider (from the illustration) ---------- */
.stones {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; padding: 8px 0;
}
.stones i {
  display: block; height: 11px; border-radius: 50%;
  background: var(--orange); opacity: .85;
}
.stones i:nth-child(1) { width: 26px; transform: translateY(3px); }
.stones i:nth-child(2) { width: 52px; }
.stones i:nth-child(3) { width: 38px; transform: translateY(-3px); }
.stones i:nth-child(4) { width: 58px; }
.stones i:nth-child(5) { width: 22px; transform: translateY(2px); }

/* ---------- Section titles ---------- */
.section-title {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  line-height: 1;
  color: var(--brick);
  text-align: center;
}

/* ---------- WHAT'S HAPPENING ---------- */
.lineup { padding: 26px var(--gutter) 10px; }
.lineup__list { list-style: none; margin: 0; padding: 0; }

.item {
  display: grid;
  grid-template-columns: 44% 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.item + .item { border-top: 2px dotted rgba(166,46,26,.35); }
/* alternate the side the picture sits on */
.item:nth-child(even) { grid-template-columns: 1fr 44%; }
.item:nth-child(even) .item__art { order: 2; }

.item__art { width: 100%; }
.item__art--badge {
  -webkit-mask-image: none; mask-image: none;
  aspect-ratio: 1; width: 72%; margin-inline: auto;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px dashed var(--terracotta);
  transform: rotate(-8deg);
}
.item__art--badge { align-self: center; height: auto; }
.item__art--badge .ico { width: 58%; height: auto; aspect-ratio: 1; }
.item__emoji { width: 34px; height: 34px; display: block; margin-bottom: 6px; }
.item--stamp .item__emoji { display: none; }

.item__name {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 9vw, 2.5rem);
  line-height: 1.02;
  color: var(--ink);
}
.item__note { margin: 4px 0 0; color: var(--ink-soft); font-weight: 500; }
.wine-detail { display: block; font-family: var(--f-body); font-size: 1rem; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }

/* ---------- MORE STALLS ---------- */
.more { padding: 20px var(--gutter) 6px; }
.more__title {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: clamp(2rem, 9.5vw, 2.7rem);
  line-height: 1.05;
  color: var(--brick);
  text-align: center;
}
.more__list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 20px; }
.more__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 2px dotted rgba(166,46,26,.35);
  font-weight: 500; font-size: 1.0625rem; line-height: 1.35;
}
.more__list li:last-child { border-bottom: 0; }
.more__emoji {
  flex: none; width: 42px; height: 42px;
  display: grid; place-content: center;
  border-radius: 50%;
  border: 1.5px dashed var(--terracotta);
}
.more__emoji .ico { width: 26px; height: 26px; }
.more__list li:nth-child(odd) .more__emoji { transform: rotate(-6deg); }
.more__list li:nth-child(even) .more__emoji { transform: rotate(5deg); }
@media (min-width: 520px) {
  .more__list { grid-template-columns: 1fr 1fr; }
  .more__list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ---------- ATMOSPHERE ---------- */
.vibe {
  text-align: center;
  padding: 22px var(--gutter) 18px;
}
.vibe__art { width: min(78%, 320px); margin: 0 auto 6px; }
.vibe__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 11vw, 3.2rem);
  line-height: 1.02;
  color: var(--brick);
}
.vibe__text { margin: 10px auto 0; max-width: 32ch; color: var(--ink-soft); }

/* ---------- DETAILS / TICKET ---------- */
.details { padding: 16px var(--gutter) 8px; outline: none; }
.ticket {
  position: relative;
  background: var(--paper-hi);
  border: 2px solid var(--brick);
  border-radius: 6px;
  padding: 26px 20px 20px;
  outline: 1.5px dashed rgba(166,46,26,.55);
  outline-offset: -9px;
}
/* punched notches */
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brick);
}
.ticket::before { right: -15px; }
.ticket::after  { left: -15px; }

.ticket__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px;
  margin: 14px 0 0; text-align: center;
}
.ticket__wide { grid-column: 1 / -1; }
.ticket__grid dt { font-size: .9375rem; color: var(--ink-soft); }
.ticket__grid dd { margin: 0; font-weight: 700; font-size: 1.125rem; }

.btn-pair__label { margin: 6px 0 -4px; text-align: center; font-weight: 500; color: var(--ink-soft); }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pair .btn { font-size: 1rem; padding-inline: 10px; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 18px var(--gutter) 34px; }
.footer__art { width: min(86%, 360px); margin: 0 auto 4px; }
.footer__name {
  margin: 0; font-family: var(--f-display);
  font-size: 2rem; line-height: 1; color: var(--brick);
}
.footer__addr { margin: 2px 0 0; font-size: .9375rem; color: var(--ink-soft); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 14px; font-size: .9375rem; }
.footer__links a, .linklike {
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.consent a { color: var(--brick); font-weight: 500; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- CALENDAR SHEET ---------- */
.sheet {
  border: 2px solid var(--ink);
  border-radius: 18px 18px 0 0;
  background: var(--paper-hi);
  color: var(--ink);
  padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
  width: 100%; max-width: 520px;
  margin: auto auto 0;
  max-height: 90vh;
}
.sheet[open] { animation: sheet-in .28s var(--ease); }
.sheet::backdrop { background: rgba(61,20,10,.45); }
@media (min-width: 640px) {
  .sheet { margin: auto; border-radius: 18px; }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }

.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__head h2 {
  margin: 0; font-family: var(--f-display);
  font-size: 2.2rem; line-height: 1; color: var(--brick);
}
.sheet__close {
  width: 48px; height: 48px; flex: none;
  border: 0; background: none; border-radius: 50%;
  display: grid; place-content: center; cursor: pointer; color: var(--ink);
}
.sheet__close svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

.sheet__list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sheet__list a {
  display: flex; align-items: center; min-height: 56px;
  padding: 12px 18px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper);
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.0625rem;
  box-shadow: -3px 3px 0 var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.sheet__list a:active { transform: translate(-2px, 2px); box-shadow: -1px 1px 0 var(--ink); }
/* surface the most likely calendar first */
.is-ios .opt-apple, .is-android .opt-google { order: -1; }
.is-ios .opt-apple a, .is-android .opt-google a { background: var(--brick); color: #FFF4E4; }
.sheet__note { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- CONSENT BAR ---------- */
.consent {
  position: fixed; z-index: 40;
  inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto;
  background: var(--paper-hi);
  border: 2px solid var(--ink); border-radius: 14px;
  padding: 14px 16px;
  box-shadow: -3px 3px 0 var(--ink);
  font-size: .9375rem;
}
.consent p { margin: 0 0 10px; }
.consent__actions { display: flex; gap: 8px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.noscript { text-align: center; padding: 12px; }

/* ---------- One orchestrated entrance (hero only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__art   { animation: ink-in .9s var(--ease) both; }
  .hero__name  { animation: print-in .7s var(--ease) .25s both; }
  .hero__sub   { animation: rise .6s var(--ease) .45s both; }
  .stamp       { animation: stamp-in .5s cubic-bezier(.3,1.6,.5,1) .7s both, sway 9s ease-in-out 1.4s infinite; }

  @keyframes ink-in { from { opacity: 0; filter: saturate(.3); } }
  @keyframes print-in {
    from { opacity: 0; transform: translateY(10px); text-shadow: 0 0 0 rgba(227,121,60,0); }
  }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes stamp-in { from { opacity: 0; transform: rotate(-30deg) scale(1.4); } }
  @keyframes sway {
    0%, 100% { transform: rotate(-11deg); }
    50% { transform: rotate(-6deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Legal pages ---------- */
.doc { padding: 24px var(--gutter) 40px; }
.doc h2 { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; color: var(--brick); margin: 26px 0 6px; }
.doc ul { padding-inline-start: 1.2em; }
.doc a { color: var(--brick); }
.doc__back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }
.doc__date { color: var(--ink-soft); font-size: .9375rem; margin-top: 26px; }
