/* Larchwood Synagogue — Beit Rachel
   Palette drawn from the building's limestone and the shul's copper logo. */
:root {
  --ivory: #f6f2eb;
  --stone: #ebe4d8;
  --stone-2: #dfd6c7;
  --paper: #fffdf9;
  --ink: #1f1a15;
  --ink-2: #4a423a;
  --muted: #7d746a;
  --copper: #a5683c;
  --copper-dk: #8a5430;
  --copper-lt: #c99a72;
  --line: rgba(31, 26, 21, .12);
  --night: #191512;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(31,26,21,.04), 0 12px 32px -12px rgba(31,26,21,.18);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; font-variant-numeric: lining-nums; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--copper-dk); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
[lang="he"] { font-family: var(--hebrew); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.lead { font-size: 1.2rem; color: var(--ink); line-height: 1.6; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-sub { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em;
  padding: 1.05rem 1.75rem; border-radius: 2px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn-small { padding: .72rem 1.25rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-dk); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--copper); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.link-arrow { font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.site-header.scrolled {
  background: rgba(246, 242, 235, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-he { font-size: 1.15rem; font-weight: 500; }
.brand-en { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .25s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero-media {
  position: absolute; inset: 0;
  background: url("../images/building.jpg") center 40% / cover no-repeat;
  transform: scale(1.06); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,16,12,.62) 0%, rgba(20,16,12,.35) 45%, rgba(20,16,12,0) 75%),
    linear-gradient(180deg, rgba(20,16,12,.5) 0%, rgba(20,16,12,0) 22%, rgba(20,16,12,.2) 50%, rgba(20,16,12,.85) 100%);
}
.hero-content { position: relative; text-shadow: 0 2px 24px rgba(0,0,0,.35); padding-bottom: clamp(48px, 8vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.hero-he { text-align: left; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .2rem; color: #e6c3a0; letter-spacing: .02em; }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 9vw, 7.5rem); font-weight: 400; letter-spacing: -.02em; line-height: .95; margin-bottom: .3em; }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 520px; opacity: .92; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.shabbat-strip { position: relative; background: rgba(20,16,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.14); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 22px 0 22px 24px; border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 4px; }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-label { font-size: .88rem; font-weight: 500; color: #d9b896; }
.strip-value { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; font-variant-numeric: lining-nums; }

/* ---------- Welcome ---------- */
.welcome { background: var(--ivory); text-align: center; }
.welcome-inner { max-width: 820px; }
.welcome-mark { width: 56px; height: 56px; margin: 0 auto 28px; }
.welcome h2 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; margin-bottom: .6em; }
.welcome .lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.65rem); line-height: 1.5; color: var(--ink); }
.welcome p:not(.lead) { max-width: 640px; margin-inline: auto; color: var(--muted); }

/* ---------- The sanctuary (full-bleed photograph) ---------- */
.sanctuary-band { position: relative; min-height: clamp(520px, 92vh, 960px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #fff; }
.sb-media {
  position: absolute; inset: -8% 0; background: url("../images/sanctuary.jpg") center 42% / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.02); will-change: transform;
}
.sb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.25) 0%, rgba(20,16,12,0) 30%, rgba(20,16,12,.15) 55%, rgba(20,16,12,.82) 100%); }
.sb-content { position: relative; text-align: center; padding-block: 0 clamp(56px, 9vh, 104px); text-shadow: 0 2px 28px rgba(0,0,0,.45); }
.sb-he { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.3; margin: 0 0 .5rem; color: #fff; text-align: center; }
.sb-en { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: #ecdcc8; margin: 0; }

/* ---------- Schedule ---------- */
.schedule { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.schedule::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1200px 400px at 100% 0%, rgba(201,154,114,.16), transparent 60%);
}
.schedule .container { position: relative; }
.schedule-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
.day-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.sched-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.day-card-friday { background: var(--night); color: #e9e1d6; border-color: var(--night); }
.day-card h3 { font-size: 1.85rem; margin-bottom: 1rem; }
.sched-side .schedule-foot { margin: 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 4px 4px 0; }
.sched-side .schedule-links { flex-direction: column; gap: 10px; margin: 0; }
.sched-side .schedule-notes { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.day-card-friday h3, .day-card-friday .sched-row .time { color: #fff; }
.day-card-friday .sched-row { border-color: rgba(255,255,255,.12); }
.day-card-friday .with { color: #b3a898; }
.day-card-friday .day-card h3 { font-size: 2rem; margin-bottom: 1.2rem; }
.sat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.sched-group h4 {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.2;
  margin: 1.6rem 0 .3rem; padding-bottom: .55rem; border-bottom: 1px solid var(--copper-lt);
}
.sched-group:nth-child(-n+2) h4 { margin-top: 0; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-row .what { display: flex; flex-direction: column; color: inherit; line-height: 1.35; font-weight: 500; }
.sched-row .with { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.sched-row .time { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); white-space: nowrap; font-weight: 500; }
.sched-row.hl .time { color: var(--copper); }
.day-card-friday .sched-row.hl .time { color: var(--copper-lt); }
.weekday { margin-top: 28px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.weekday h3 { font-size: 2rem; margin-bottom: 1rem; }
.weekday .sched-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 40px; }
.weekday .sched-row:last-child { border-bottom: 1px solid var(--line); }
.schedule-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.schedule-notes { list-style: none; padding: 0; margin: 0; color: var(--ink); }
.schedule-notes li { padding-left: 22px; position: relative; }
.schedule-notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--copper); }
.schedule-stale { display: inline-block; margin-top: .5rem; font-size: .9rem; color: var(--copper-dk); background: rgba(165,104,60,.08); padding: .35rem .8rem; border-radius: 999px; }

/* ---------- Programs ---------- */
.programs { background: var(--stone); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(32px, 4vw, 64px); }
.program { border-top: 1px solid var(--copper-lt); padding-top: 26px; }
.program .program-he { font-size: 2.1rem; line-height: 1.2; color: var(--copper); margin: 0 0 .9rem; text-align: left; }
.program h3 { margin-bottom: .55rem; font-size: 1.75rem; }
.programs .section-head { max-width: 1000px; }
.program p { font-size: .98rem; margin: 0; }

/* ---------- Mikveh ---------- */
.mikveh { background: var(--night); color: #d9cfc2; }
.mikveh h2 { color: #fff; }
.mikveh .mikveh-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.mikveh-media { margin: 0; position: relative; }
.mikveh-media img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.mikveh-media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(201,154,114,.45); border-radius: var(--radius); z-index: -1; }
.mikveh-media { z-index: 0; isolation: isolate; }
.he-quote { font-size: 1.4rem; line-height: 1.75; text-align: right; display: inline-block; color: var(--copper-lt); border-right: 2px solid var(--copper); padding-right: 1rem; margin: 1.5rem 0; }
.detail-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.detail-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.detail-list span { font-size: .92rem; font-weight: 500; color: #a2978a; }
.detail-list a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--copper); }
.mikveh .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.mikveh .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Donate ---------- */
.donate { background: var(--ivory); }
.donate-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.donate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.donate-card h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.donate-card p { font-size: .95rem; flex: 1; }
.donate-card form { margin: 0; }
.donate-card-primary { border-top: 3px solid var(--copper); }
.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.amount-chips button {
  font: 600 .95rem var(--sans); padding: .75rem 0; background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; color: var(--ink); transition: all .2s;
}
.amount-chips button:hover, .amount-chips button.active { border-color: var(--copper); background: rgba(165,104,60,.08); color: var(--copper-dk); }
.amount-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; padding-left: 14px; }
.amount-input:focus-within { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(165,104,60,.15); }
.amount-input span { font-family: var(--serif); font-size: 1.4rem; color: var(--muted); }
.amount-input input { flex: 1; border: 0; outline: 0; font: 500 1.05rem var(--sans); padding: .85rem .6rem; background: transparent; color: var(--ink); min-width: 0; }
.copy-field {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  font: 600 .9rem var(--sans); color: var(--ink); background: var(--ivory); border: 1px dashed var(--copper-lt);
  border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; text-align: left; font-size: .84rem;
}
.copy-field em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--copper); flex-shrink: 0; }
.copy-field span { overflow-wrap: anywhere; }
.copy-field:hover { border-style: solid; }

/* ---------- Contact ---------- */
.contact { background: var(--stone); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-cards { display: grid; gap: 0; border-bottom: 1px solid var(--stone-2); }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 26px 4px; border-top: 1px solid var(--stone-2); text-decoration: none; transition: padding .3s ease; }
.contact-card:hover { padding-left: 14px; }
.contact-card:hover .contact-value { color: var(--copper-dk); }
.contact-label { font-size: .9rem; font-weight: 500; color: var(--copper-dk); }
.contact-value { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--ink); word-break: break-word; transition: color .25s; line-height: 1.2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #a59a8d; padding: clamp(64px, 8vw, 96px) 0 32px; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,154,114,.55), transparent); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: flex-start; gap: 18px; }
.footer-brand img { width: 64px; height: 64px; flex-shrink: 0; }
.footer-brand p { margin: 0; }
.footer-he { color: #fff; font-size: 2rem; line-height: 1.1; }
.footer-name { font-family: var(--serif); font-size: 1.45rem; color: #efe6da; line-height: 1.2; margin-top: 2px !important; }
.footer-place { color: #8f8478; font-size: .9rem; margin-top: 6px !important; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.site-footer a { color: #d9cfc2; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--copper-lt); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .88rem; }
.footer-base p { margin: 0; }
.site-footer .muted { color: #7d7266; }
.site-footer .muted a { color: #b9ad9f; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { gap: 32px 20px; } .footer-top > .footer-col:last-child { grid-column: 1 / -1; } }

/* =====================================================================
   Website content: events, sponsorships, leadership, gallery
   ===================================================================== */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.section-head-row .link-arrow { padding-bottom: .5rem; }

/* ---------- Sponsorships on the schedule ---------- */
.sponsor-note {
  margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center;
  background: var(--ivory); border: 1px solid var(--line); border-left: 2px solid var(--copper); border-radius: var(--radius);
  padding: 22px clamp(20px, 3vw, 36px);
}
.sponsor-icon { width: 36px; height: 36px; fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sponsor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sponsor-line { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--ink); margin: 0; }
.sponsor-ded { margin: 2px 0 0; color: var(--ink-2); font-style: italic; }
.schedule-links { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-left: auto; }

/* ---------- Event cards ---------- */
.events-home { background: var(--ivory); }
.event-cards { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; }
.event-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--copper-lt); }
.event-card.is-featured { border-top: 3px solid var(--copper); }
.event-card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.event-card:hover .event-card-media img { transform: scale(1.04); }
.date-tile {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink); text-align: center;
  background: radial-gradient(120% 90% at 100% 0%, rgba(201,154,114,.28), transparent 60%), var(--stone);
}
.dt-m { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--copper-dk); }
.dt-d { font-family: var(--serif); font-size: clamp(3.6rem, 6vw, 4.6rem); line-height: .9; font-weight: 500; font-variant-numeric: lining-nums; }
.dt-w { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.date-chip {
  position: absolute; left: 14px; top: 14px; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  min-width: 52px; padding: 6px 8px 7px; text-align: center; font: 500 1.6rem/1 var(--serif); font-variant-numeric: lining-nums; box-shadow: 0 6px 18px -8px rgba(0,0,0,.4);
}
.date-chip span { display: block; font: 600 .7rem/1.3 var(--sans); color: var(--copper-dk); }
.event-card-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 24px; flex: 1; }
.event-card-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.event-card-meta { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.event-cards-single { grid-template-columns: 1fr; }
.event-cards-single .event-card { flex-direction: row; }
.event-cards-single .event-card-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
.event-cards-single .event-card-body { justify-content: center; padding: 32px 40px; }
.event-cards-single .event-card-title { font-size: 2rem; }

/* ---------- Leaders ---------- */
.leaders-home { background: var(--ivory); }
.leader-teaser { display: flex; flex-wrap: wrap; gap: 32px; }
.leader-card { width: min(260px, 100%); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--stone); }
.portrait-empty {
  display: flex; align-items: center; justify-content: center; font: 400 3.4rem/1 var(--serif); color: var(--copper-dk); letter-spacing: .04em;
  background: radial-gradient(120% 80% at 100% 0%, rgba(201,154,114,.3), transparent 60%), var(--stone);
}
.leader-card .portrait { transition: filter .4s, transform .4s; }
.leader-card:hover .portrait { filter: brightness(1.04); transform: translateY(-3px); }
.leader-card-name { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); line-height: 1.15; margin-top: 16px; }
.leader-card-title { color: var(--copper-dk); font-size: .95rem; margin-top: 2px; }

/* ---------- Homepage photo strip ---------- */
.gallery-home { background: var(--paper); padding-bottom: clamp(56px, 8vw, 96px); }
.gallery-home .section-head { margin-bottom: 32px; }
.photo-strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(24px, calc((100% - 1200px) / 2)); scroll-padding-inline: max(24px, calc((100% - 1200px) / 2));
}
.photo-strip::-webkit-scrollbar { display: none; }
.strip-controls { display: flex; align-items: center; gap: 8px; }
.strip-controls .link-arrow { margin-left: 16px; padding-bottom: 0; }
.strip-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, opacity .2s;
}
.strip-btn:hover:not(:disabled) { border-color: var(--copper-lt); }
.strip-btn:disabled { opacity: .35; cursor: default; }
.strip-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strip-controls.no-scroll .strip-btn { display: none; }
@media (hover: none) { .strip-btn { display: none; } .strip-controls .link-arrow { margin-left: 0; } }
.photo-strip a { flex: 0 0 auto; height: clamp(220px, 26vw, 340px); aspect-ratio: var(--r); scroll-snap-align: start; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo-strip a:hover img { transform: scale(1.04); }

/* =====================================================================
   Sub-pages (events, leadership, gallery)
   ===================================================================== */
.sub-page main { min-height: 60vh; }
.page-hero {
  background: var(--night); color: #d9cfc2; position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(44px, 6vw, 72px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 88% 10%, rgba(201,154,114,.16), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 400; letter-spacing: -.02em; line-height: .98; margin-bottom: .3em; }
.page-hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e9e1d6; max-width: 36em; margin: 0; }
section.has-photo { background-color: var(--night); min-height: clamp(360px, 52vh, 560px); display: flex; flex-direction: column; justify-content: flex-end; }
section.has-photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 1;
  background: var(--hero-img) var(--hero-pos, center) / cover no-repeat;
  animation: heroZoom 14s ease-out forwards; transform: scale(1.06);
}
section.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,16,12,.78) 0%, rgba(20,16,12,.5) 50%, rgba(20,16,12,.25) 100%), linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,0) 35%, rgba(20,16,12,.6) 100%);
}
section.has-photo > .container { position: relative; z-index: 1; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 128px); }

/* Filter chips + segmented control */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 .85rem/1 var(--sans); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--copper-lt); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip .count { opacity: .55; margin-left: 4px; font-weight: 500; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 3px; }
.segmented button { font: 600 .85rem/1 var(--sans); padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--copper); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--stone-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked { background: var(--copper); }
.switch input:checked::after { transform: translateX(16px); }
.empty-state { padding: clamp(40px, 6vw, 72px) 24px; text-align: center; color: var(--muted); border: 1px dashed var(--stone-2); border-radius: var(--radius); background: var(--paper); }
.empty-state p { margin: 0 auto; max-width: 32em; }
.empty-state .empty-title { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: .4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 1180px) { .nav { gap: 22px; } }
@media (max-width: 1080px) {
  .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-cards.event-cards-single { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav a[aria-current="page"] { color: var(--copper-dk); }
  .nav a[aria-current="page"]::after { display: none; }
}
@media (max-width: 640px) {
  .sponsor-note { grid-template-columns: 1fr; }
  .sponsor-icon { display: none; }
  .sponsor-line { font-size: 1.25rem; }
  .schedule-links { margin-left: 0; }
  .event-cards, .event-cards-single { grid-template-columns: 1fr; gap: 14px; }
  .event-card, .event-cards-single .event-card { flex-direction: row; }
  .event-card-media, .event-cards-single .event-card-media { flex: 0 0 108px; aspect-ratio: auto; min-height: 116px; }
  .event-card-body, .event-cards-single .event-card-body { padding: 14px 16px; justify-content: center; }
  .event-card-title, .event-cards-single .event-card-title { font-size: 1.3rem; margin-bottom: 2px; }
  .event-card-meta { font-size: .84rem; }
  .dt-d { font-size: 2.6rem; }
  .dt-m { font-size: 1rem; }
  .dt-w { display: none; }
  .date-chip { display: none; }
  .photo-strip { padding-inline: 20px; scroll-padding-inline: 20px; }
  .leader-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .leader-card { width: auto; }
  .leader-card-name { font-size: 1.3rem; margin-top: 12px; }
  .portrait-empty { font-size: 2.6rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media, section.has-photo::before { animation: none; transform: none; }
  .sb-media { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .donate-grid { grid-template-columns: 1fr 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .sched-side { position: static; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); color: var(--ink); padding: 8px 24px 24px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s;
  }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 16px; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: var(--ivory); color: var(--ink); }
  .nav-toggle { display: block; }
  .mikveh-grid, .contact-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .sanctuary-band { min-height: 72vh; }
  .strip-inner { grid-template-columns: repeat(3, 1fr); }
  .strip-hdate { display: none; }
  .mikveh-media img { aspect-ratio: 4/3; }
  .mikveh-media::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .sat-groups { grid-template-columns: 1fr; }
  .sched-group:nth-child(2) h4 { margin-top: 1.4rem; }
  .program-grid, .donate-grid { grid-template-columns: 1fr; }
  .sb-media { background-image: url("../images/sanctuary-sm.jpg"); background-position: 50% 45%; }
  .sanctuary-band { min-height: 64vh; }
  .strip-item { padding: 16px 0 16px 14px; }
  .strip-value { font-size: 1.15rem; }
  .strip-label { font-size: .78rem; }
  .detail-list li { grid-template-columns: 1fr; gap: 2px; }
  .hero { min-height: 92svh; }
  .hero-media { background-position: 50% 40%; background-image: url("../images/building-sm.jpg"); }
}

/* Message from the Rabbi (homepage) */
.rabbi-message { border-top: 1px solid var(--line); }
.rabbi-message-inner { display: flex; gap: clamp(28px, 5vw, 72px); align-items: flex-start; max-width: 920px; }
.rabbi-message-photo { width: clamp(140px, 22vw, 240px); aspect-ratio: 4 / 5; object-fit: cover; flex: none; border-radius: var(--radius); }
.rabbi-message-text { min-width: 0; }
.rabbi-message-text h2 { margin-bottom: .35em; }
.rabbi-message-text h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--copper-dk); margin-bottom: .9em; }
.rabbi-message-excerpt { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rabbi-message-by { font-family: var(--serif); font-size: 1.25rem; margin: 1em 0 .8em; }
@media (max-width: 640px) { .rabbi-message-inner { flex-direction: column; } }

/* Weekly classes */
.classes { background: var(--stone); }
.classes h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.class-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.class-list li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; align-items: baseline; padding: clamp(14px, 1.5vw, 20px) 0; border-bottom: 1px solid var(--line); }
.c-name { font: 500 clamp(1.45rem, 2.1vw, 1.9rem)/1.15 var(--serif); color: var(--ink); }
.c-with { color: var(--ink-2); }
.c-when { color: var(--ink); text-align: right; }
@media (max-width: 640px) { .class-list li { grid-template-columns: minmax(0, 1fr) auto; } .c-name { grid-column: 1 / -1; } }
