/* אוקטובר-פסט · בסמדר — sky / grass / autumn illustration palette */

/* Hebrew only */
@font-face {
  font-family: "KtavSofrim";
  src: url("assets/ktav-sofrim.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

/* Soft rounded numerals — pairs better with the hand lettering */
@font-face {
  font-family: "SiteNums";
  src: url("assets/nums-nunito.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+002B, U+002C, U+002D, U+002E, U+002F, U+003A, U+20AA, U+2013, U+2014;
}

:root {
  --sky: #a8d4e8;
  --sky-deep: #7ebdd8;
  --sky-soft: #d7eef6;
  --cream: #f7efe3;
  --cream-deep: #f0e0c8;
  --grass: #5f8f4a;
  --grass-deep: #486030;
  --grass-soft: #c5d9a8;
  --leaf: #c07848;
  --leaf-soft: #e8b07a;
  --mustard: #e8c05a;
  --ink: #2e241c;
  --ink-soft: #4a3a2e;
  --line: rgba(46, 36, 28, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(46, 36, 28, 0.1);
  --max: 1120px;
  --nav-h: 76px;
  --font: "KtavSofrim", "SiteNums", "Segoe UI", system-ui, sans-serif;
  --font-nums: "SiteNums", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, #cfeaf4 0%, transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, #b9dcc8 48%, #9fc48a 100%);
  background-attachment: fixed;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-synthesis: none;
  position: relative;
  min-height: 100vh;
  font-variant-numeric: lining-nums tabular-nums;
}

/* pure numeric UI fields */
input[type="date"],
input[type="time"],
input[type="number"] {
  font-family: var(--font-nums);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hills {
  pointer-events: none;
  position: fixed;
  inset: auto 0 0 0;
  height: 28vh;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 100% at 20% 120%, rgba(72, 96, 48, 0.45), transparent 60%),
    radial-gradient(ellipse 90% 120% at 80% 130%, rgba(95, 143, 74, 0.4), transparent 55%);
  opacity: 0.55;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.display {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 0.6rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.75rem;
  opacity: 0.72;
  color: var(--ink-soft);
}

.section-head { text-align: center; margin-bottom: 2rem; }
.section-sub {
  margin: 0.4rem auto 0;
  max-width: 34rem;
  opacity: 0.82;
  font-size: 1rem;
}

/* floating deco — soft background only, never competing with content */
.float.deco {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  user-select: none;
  filter: saturate(0.9);
}
.d1 { top: 18%; left: -4%; width: min(160px, 18vw); transform: rotate(-8deg); }
.d2 { top: 38%; right: -5%; width: min(130px, 15vw); transform: rotate(6deg); opacity: 0.09; }
.d3 { top: 58%; left: -3%; width: min(120px, 14vw); transform: rotate(10deg); opacity: 0.1; }
.d4 { top: 76%; right: -6%; width: min(140px, 16vw); transform: rotate(-12deg); opacity: 0.08; }
.d5 { top: 8%; right: 4%; width: min(120px, 14vw); opacity: 0.08; transform: rotate(4deg); }
.d6 { top: 48%; left: 2%; width: min(140px, 15vw); opacity: 0.09; transform: rotate(-4deg); }
.d7 { bottom: 12%; right: 8%; width: min(160px, 18vw); opacity: 0.08; transform: rotate(3deg); }
@media (max-width: 900px) {
  .float.deco { position: absolute; opacity: 0.1; }
  .d1 { top: 12%; left: -18%; width: 34vw; }
  .d2 { top: 34%; right: -16%; width: 28vw; }
  .d3, .d4, .d5, .d6, .d7 { display: none; }
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--sky) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--line);
}

.nav-brand { position: relative; z-index: 2; display: flex; align-items: center; }
.nav-wordmark {
  height: 46px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 1rem;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }
.nav-admin {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem !important;
}
.nav-admin::after { display: none !important; }
.nav-admin:hover { background: var(--ink); color: var(--cream); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--sky);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.45rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  body.nav-open { overflow: hidden; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 28px rgba(46, 36, 28, 0.18);
}
.btn-primary:hover {
  background: #1a140f;
  color: #fff;
}
.btn-ghost {
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  background: color-mix(in srgb, white 55%, var(--cream));
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-solid-leaf {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}
.btn-solid-leaf:hover {
  background: #a05f35;
  color: #fff;
}

/* hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 1rem 0.75rem 2.5rem;
  overflow: hidden;
}
.hero-compact {
  min-height: auto;
  padding: 1.5rem 0.75rem 1.25rem;
}
.hero-glow {
  position: absolute;
  width: min(92vw, 900px);
  height: min(92vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 68%);
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 1100px);
  animation: rise 0.9s ease both;
}
.hero-title {
  width: min(780px, 92vw);
  max-height: min(48vh, 460px);
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(46, 36, 28, 0.1));
}
.hero-place {
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  color: var(--leaf);
  letter-spacing: 0.08em;
}
.hero-dates {
  margin: 0;
  font-family: var(--font-nums);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.4rem 0 0.6rem;
}
.hero-pill {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: color-mix(in srgb, white 50%, var(--cream));
  font-size: 0.88rem;
}
.hero-scroll {
  margin-top: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.85rem;
  opacity: 0.7;
  animation: bob 2.2s ease-in-out infinite;
}
/* hero stays clean — no large side illustrations */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.filter-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, white 55%, var(--cream));
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
}
.filter-date-label {
  font-size: 0.9rem;
  opacity: 0.8;
  white-space: nowrap;
}
.filter-date select {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-family: var(--font-nums);
  font-weight: 600;
  padding: 0.25rem 0.2rem;
  min-width: 8.5rem;
  cursor: pointer;
  color: var(--ink);
}
.filter-chip {
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, white 55%, var(--cream));
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: 0.15s ease;
  font-size: 0.95rem;
  line-height: 1.2;
}
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip.active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 18px rgba(46, 36, 28, 0.16);
}
.filter-chip[data-id="all"].active {
  background: var(--grass-deep);
  border-color: var(--grass-deep);
  color: #f3f7e8;
}
.filter-status {
  text-align: center;
  margin: 0 0 1.5rem;
  min-height: 1.2em;
  opacity: 0.75;
  font-size: 0.92rem;
}

/* events */
.events {
  padding: 1rem 0 4rem;
  position: relative;
}
.events-wrap {
  position: relative;
  isolation: isolate;
}
/* in-feed background art — soft, behind cards */
.feed-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.13;
  filter: saturate(0.85);
}
.fd1 { top: 8%; left: -6%; width: min(280px, 36%); transform: rotate(-4deg); }
.fd2 { top: 42%; right: -8%; width: min(220px, 30%); transform: rotate(6deg); opacity: 0.11; }
.fd3 { bottom: 4%; left: -4%; width: min(200px, 28%); transform: rotate(-8deg); opacity: 0.1; }
.fd4 { top: 22%; right: 4%; width: min(160px, 22%); transform: rotate(10deg); opacity: 0.09; }
@media (max-width: 700px) {
  .feed-deco { opacity: 0.09; }
  .fd1 { width: 48%; left: -16%; }
  .fd2 { width: 40%; right: -14%; }
  .fd3, .fd4 { display: none; }
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.event-card {
  background: color-mix(in srgb, white 70%, var(--cream));
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 220px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.event-card:hover { transform: translateY(-4px) rotate(-0.3deg); }
.event-date {
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--mustard);
  line-height: 1.05;
  color: var(--ink);
}
.event-date .day {
  font-family: var(--font-nums);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.event-date .mon { font-size: 0.78rem; opacity: 0.8; }
.event-kind {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  opacity: 0.65;
}
.event-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
  line-height: 1.2;
}
.event-body > p:not(.event-kind):not(.event-loc) {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.event-loc {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  opacity: 0.78;
}
.event-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  background: var(--sky-soft);
  line-height: 1.2;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}
.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  background: var(--cream);
  line-height: 1.2;
}
.event-chip.free {
  background: var(--grass);
  border-color: var(--grass-deep);
  color: #f4f9ec;
}
.event-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 900px) {
  .events-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* footer — minimal strip */
.footer-minimal {
  border-top: 1.5px solid var(--line);
  padding: 1.4rem 0 1.6rem;
  background: color-mix(in srgb, var(--grass-deep) 88%, #1a2010);
  color: #f3f0e6;
  position: relative;
  z-index: 1;
}
.footer-minimal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.92;
}
.footer-minimal-inner p { margin: 0; }
.footer-minimal-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.social {
  display: flex;
  gap: 0.5rem;
}
.social-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(243, 240, 230, 0.55);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: 0.18s ease;
}
.social-btn:hover {
  background: #f3f0e6;
  color: var(--grass-deep);
}

.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
  box-shadow: 0 14px 40px rgba(46, 36, 28, 0.35);
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  text-align: center;
  opacity: 0.75;
  padding: 2rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, white 40%, transparent);
  grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner, .hero-scroll { animation: none; }
  .btn, .event-card, .filter-chip { transition: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.25rem, var(--max)); }
  .event-card { grid-template-columns: 1fr; }
  .event-date { width: 64px; height: 64px; }
}
