/* Nshei Chabad LA — dusty rose, beige and cream. */
:root {
  --ink: #3d2c31;        /* body text: warm plum-brown */
  --deep: #6b4550;       /* headings, footer: deep dusty mauve */
  --deep-2: #7d5560;
  --cream: #fcf7f2;      /* page background */
  --beige: #f2e8dd;      /* alternate sections */
  --blush: #efdcd8;      /* soft rose panels */
  --line: #e8d9cc;
  --taupe: #94765a;      /* small labels */
  --gold-soft: #f1ddd2;  /* light text on dark */
  --rose: #a45f6b;       /* buttons, links: dusty rose */
  --rose-dark: #8a4b57;
  --rose-soft: #c99aa0;
  --muted: #76666b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(107 69 80 / .06), 0 8px 24px rgb(107 69 80 / .09);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hebrew: "Frank Ruhl Libre", "David", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--deep); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--taupe); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46ch; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; }
.he { font-family: var(--hebrew); font-weight: 500; unicode-bidi: isolate; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* placeholders: impossible to miss while previewing */
.ph { background: #fff1a8; color: #5a4600; padding: 0 .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; outline: 1px dashed #c9a400; font-style: normal; }
.preview-ribbon { background: #2b2b2b; color: #eee; font-size: .82rem; text-align: center; padding: .35rem 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 .98rem/1 var(--sans); padding: .95em 1.5em; border-radius: 999px; background: var(--rose); color: #fff; text-decoration: none; border: 2px solid var(--rose); cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.btn:disabled { background: #cfc8bd; border-color: #cfc8bd; color: #fff; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / .8); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--deep); }
.btn-light:hover { background: var(--beige); border-color: var(--beige); color: var(--deep); }
.btn-small { padding: .65em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--deep); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--rose-soft); color: var(--rose); background: var(--blush); font: 700 1.35rem/1 var(--hebrew); padding-top: 2px; }
.brand-text { font: 600 1.35rem/1.05 var(--serif); }
.brand-text em { display: block; font: 600 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--taupe); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a, .nav-signin { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:hover { color: var(--rose); }
.site-nav a[aria-current="page"] { color: var(--rose); box-shadow: 0 2px 0 var(--rose); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.site-nav a.btn, .site-nav a.btn:hover, .site-nav a.btn:focus-visible { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .5em 1.1em; font: 600 .9rem var(--sans); color: var(--deep); cursor: pointer; }
  .site-nav { display: none; position: absolute; inset: 72px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .nav-actions { border: 0; padding: 1rem 0 0; justify-content: space-between; }
}

/* announcement */
.announce { display: block; background: var(--rose); color: #fff; text-decoration: none; font-size: .93rem; padding: .7rem 0; text-align: center; }
.announce:hover { background: var(--rose-dark); color: #fff; }
.announce strong { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.hero-img, .page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 700px) { .hero-img { object-position: 62% 40%; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(74 44 52 / .10) 0%, rgb(74 44 52 / .30) 40%, rgb(74 44 52 / .84) 100%); }
.hero-content { position: relative; padding: 7rem 0 4.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; }
.hero .lede { color: rgb(255 255 255 / .9); }
.hero .eyebrow { color: var(--gold-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* quote */
.quote-block { padding: 4.5rem 0; text-align: center; border-bottom: 1px solid var(--line); }
.quote-block figure { margin: 0; }
.quote-block blockquote { margin: 0 0 1rem; font: 500 italic clamp(1.4rem, 2.6vw, 1.9rem)/1.4 var(--serif); color: var(--deep); }
.quote-block figcaption { font-size: .92rem; color: var(--muted); }
.quote-block figure::before { content: ""; display: block; width: 48px; height: 2px; background: var(--rose-soft); margin: 0 auto 1.8rem; }

/* sections */
.section { padding: 4.5rem 0; }
.section-sand { background: var(--beige); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); flex: 1 1 260px; }
.section-head .date { flex-basis: 100%; }

/* cards */
.cards { display: grid; gap: 1.5rem; }
.cards-upcoming { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-past { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(107 69 80 / .06), 0 14px 32px rgb(107 69 80 / .12); color: inherit; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card h3 { margin-bottom: .35rem; }
.card .more { margin-top: auto; font-weight: 600; color: var(--rose); font-size: .94rem; }
.card-art { aspect-ratio: 16 / 7; display: grid; place-items: center; background: linear-gradient(135deg, #f5e4e0, #e6c5c3); color: var(--deep); font: 700 clamp(1.8rem, 3vw, 2.3rem)/1 var(--hebrew); border-bottom: 3px solid var(--rose-soft); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--beige); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.date { font-size: .95rem; color: var(--taupe); font-weight: 600; margin-bottom: .4rem; }
.date .he { font-size: 1.12rem; color: var(--deep); }
.en-date { color: var(--muted); font-weight: 500; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split-img { order: -1; } }

/* whatsapp band */
.band { padding: 3.5rem 0; }
.band-whatsapp { background: var(--blush); color: var(--ink); }
.band-whatsapp h2 { color: var(--deep); margin-bottom: .3rem; }
.band-whatsapp p { color: var(--muted); margin: 0; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.band-inner > div { max-width: 560px; }

/* page head */
.page-head { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); background: var(--beige); }
.page-head h1 { margin-bottom: .3rem; }
.page-head .lede { margin: .6rem 0 0; }
.page-head-photo { position: relative; color: #fff; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; border: 0; background: var(--deep); }
.page-head-photo .wrap { position: relative; }
.page-head-photo h1 { color: #fff; }
.page-head-photo .date, .page-head-photo .date .he, .page-head-photo .crumbs, .page-head-photo .crumbs a { color: var(--gold-soft); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: inherit; }

/* event page */
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.event-main .lede { max-width: none; }
.facts { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; }
.facts dt { font-weight: 600; color: var(--taupe); text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; padding-top: .2rem; }
.facts dd { margin: 0; }
.register-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--rose); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.register-card h2 { font-size: 1.6rem; }
.prices { margin: 0 0 1.3rem; }
.prices div { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.prices dt { color: var(--muted); }
.prices dd { margin: 0; font-weight: 600; }
.register-card .small { margin: 1rem 0 0; }
@media (max-width: 860px) { .event-layout { grid-template-columns: 1fr; gap: 2rem; } .register-card { position: static; order: -1; } }

/* photo grid + lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.photo-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .2s; }
.photo-grid a:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: .5rem; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(52 32 38 / .93); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: 6px; }
.lightbox p { color: #ddd; text-align: center; font-size: .92rem; margin: .8rem 0 0; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-inner { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* membership */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 820px; margin: 0 auto 1.5rem; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tier-featured { border: 2px solid var(--rose-soft); background: #fffaf8; }
.tier-price { font: 600 2.2rem/1 var(--serif); color: var(--deep); margin-bottom: 1.4rem; }
.tier-price span { font: 400 .95rem var(--sans); color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.tier li { padding: .5rem 0 .5rem 1.7rem; position: relative; border-bottom: 1px solid var(--line); }
.tier li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.contact-item h2 { font-size: 1.4rem; }
.contact-item p { margin: 0; overflow-wrap: anywhere; }

/* auth */
.auth { max-width: 460px; }
.form { display: grid; gap: .6rem; margin: 1.5rem 0; }
.form label { font-weight: 600; font-size: .92rem; }
.form input { font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.form .btn { margin-top: .6rem; }

/* footer */
.site-footer { background: #5a3a43; color: rgb(255 255 255 / .75); padding: 4rem 0 0; font-size: .95rem; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-about p { margin: 1.1rem 0; max-width: 36ch; }
.brand-light, .brand-light .brand-text { color: #fff; }
.brand-light .brand-text em { color: var(--gold-soft); }
.footer-base { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 3rem; padding: 1.4rem 0; font-size: .85rem; color: rgb(255 255 255 / .55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- membership card (CR80, 85.6 × 54 mm) ----------
   Every size is in em, and the card's font-size is 1/24 of its width,
   so the same card scales from phone screen to print without changes. */
.mcard { --cw: 3.375in; width: var(--cw); aspect-ratio: 85.6 / 54; font-size: calc(var(--cw) / 24); border-radius: .9em; overflow: hidden; position: relative; box-sizing: border-box; color: var(--ink); font-family: var(--sans); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mcard-front { background: radial-gradient(120% 90% at 100% 0%, #ecd2cf 0%, #f5e6e1 38%, var(--cream) 70%); border: 1px solid #e6d1c9; padding: 1.25em 1.35em 1.15em; display: flex; flex-direction: column; justify-content: space-between; }
.mcard-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .32em; background: linear-gradient(90deg, var(--rose-soft), var(--rose)); }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.mcard-brand { display: flex; align-items: center; gap: .55em; font: 600 1.05em/1.05 var(--serif); color: var(--deep); }
.mcard-brand em { display: block; font: 600 .5em/1.5 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.mcard-mark { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; border: .07em solid var(--rose-soft); background: var(--blush); color: var(--rose); font: 700 1em/1 var(--hebrew); padding-top: .08em; box-sizing: border-box; flex: none; }
.mcard-year { font: 600 .62em/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--rose); padding: .55em .9em; border-radius: 999px; white-space: nowrap; }
.mcard-year [lang="he"] { font: 700 1.25em/1 var(--hebrew); letter-spacing: 0; }
.mcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.mcard-id p { margin: 0; }
.mcard-name { font: 600 1.55em/1.1 var(--serif); color: var(--deep); margin-bottom: .25em !important; }
.mcard-number { font: 600 .95em/1.2 var(--sans); letter-spacing: .16em; color: var(--ink); }
.mcard-since { font-size: .66em; color: var(--muted); margin-top: .35em !important; }
.mcard-since [lang="he"] { font: 600 1.2em/1 var(--hebrew); color: var(--deep); }
.mcard-qr { background: #fff; padding: .4em; border-radius: .5em; width: 5.6em; height: 5.6em; flex: none; box-shadow: 0 .05em .3em rgb(107 69 80 / .15); }
.mcard-qr-svg { display: block; width: 100%; height: 100%; }
.mcard-back { background: linear-gradient(160deg, var(--rose) 0%, #8f5260 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.4em; gap: .2em; }
.mcard-mark-lg { width: 3em; height: 3em; font-size: 1.15em; background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .5); color: #fff; margin-bottom: .7em; }
.mcard-back-line { margin: 0; font: 500 1.2em/1.3 var(--serif); }
.mcard-back-site { margin: .4em 0 0; font-size: .62em; letter-spacing: .06em; opacity: .85; }

/* preview page */
.card-preview { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; margin: 2rem 0; }
.card-preview figure { margin: 0; }
.card-preview figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.card-preview .mcard { --cw: min(460px, 88vw); box-shadow: 0 2px 4px rgb(107 69 80 / .08), 0 18px 40px rgb(107 69 80 / .16); }
.card-actual .mcard { --cw: 3.375in; }
.mcard-hname { font: 600 1.05em/1.15 var(--hebrew); color: var(--rose); margin: -.1em 0 .35em !important; }
.mcard-hname span { unicode-bidi: isolate; }
.mcard-name { overflow-wrap: anywhere; }

/* event flyers */
.card-flyer { aspect-ratio: 16 / 10; }
.card-flyer img { object-position: 50% 0; }
.flyer { margin: 2rem 0 0; max-width: 620px; }
.flyer a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flyer img { width: 100%; }
.flyer figcaption { margin-top: .6rem; }
.facts dd .small { color: var(--muted); }

/* Eventbrite embedded checkout */
.checkout { margin: 2.5rem 0 0; scroll-margin-top: 90px; }
.eb-embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 120px; box-shadow: var(--shadow); margin-bottom: .8rem; }
.eb-embed iframe { display: block; width: 100%; border: 0; }
.eb-loading { padding: 1.5rem; margin: 0; }
.eb-embed iframe ~ .eb-loading, .eb-embed:has(iframe) .eb-loading { display: none; }
.eb-fallback { padding: 1.6rem; text-align: center; } .eb-fallback p { color: var(--muted); }

/* committee review mode */
.edit-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: inline-flex; align-items: center; gap: .45em; background: var(--deep); color: #fff; text-decoration: none; font: 600 .92rem/1 var(--sans); padding: .9em 1.2em; border-radius: 999px; box-shadow: 0 6px 20px rgb(74 44 52 / .3); }
.edit-fab:hover { background: var(--rose-dark); color: #fff; }
.ph-editable { cursor: pointer; }
.ph-editable:hover { background: #ffe57a; }
.site-footer { padding-bottom: 4.5rem; }
