:root {
  --ink: #2c2823;
  --muted: #6d6258;
  --paper: #fffdf8;
  --warm: #f6efe5;
  --cream: #fbf7ef;
  --wine: #7d1831;
  --wine-dark: #5d0e23;
  --gold: #c89b4b;
  --olive: #66713f;
  --sage: #dfe6d3;
  --line: rgba(44, 40, 35, 0.14);
  --shadow: 0 24px 70px rgba(44, 40, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

section[id] {
  scroll-margin-top: 94px;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--wine-dark);
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(44, 40, 35, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: #514940;
  font-weight: 650;
  font-size: 15px;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--wine);
  border-bottom-color: var(--gold);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quick-nav {
  position: fixed;
  left: 14px;
  top: 50%;
  z-index: 40;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.quick-nav a {
  min-width: 118px;
  padding: 7px 11px;
  color: var(--wine-dark);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(125, 24, 49, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(44, 40, 35, 0.09);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
}

.quick-nav a:hover {
  color: #fff;
  background: var(--wine);
}

.header-cta,
.btn.primary {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 12px 26px rgba(125, 24, 49, 0.22);
}

.btn.secondary {
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(125, 24, 49, 0.24);
}

.btn.outline {
  color: var(--wine-dark);
  background: transparent;
  border-color: rgba(125, 24, 49, 0.34);
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(44, 40, 35, 0.16);
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(44, 40, 35, 0.18), rgba(44, 40, 35, 0.42) 42%, rgba(44, 40, 35, 0.72)),
    linear-gradient(0deg, rgba(44, 40, 35, 0.82), rgba(44, 40, 35, 0) 52%);
}

.hero-content {
  position: relative;
  width: min(780px, calc(100% - 32px));
  margin: 0 clamp(18px, 6vw, 90px) clamp(56px, 9vh, 96px);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 750;
}

.hero-text {
  max-width: 710px;
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.hero-note {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.next-link {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-weight: 850;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip div {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px;
  background: var(--cream);
  text-align: center;
}

.intro-strip span {
  color: var(--wine);
  font-size: 31px;
  font-weight: 900;
}

.intro-strip p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 78px);
}

.split-section,
.fit-section,
.video-section,
.donate-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.section-copy,
.fit-copy,
.video-copy,
.donate-copy {
  max-width: 780px;
}

h2 {
  margin: 0 0 20px;
  color: var(--wine-dark);
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.13;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: var(--wine-dark);
  font-size: 22px;
  line-height: 1.25;
}

p {
  font-size: 18px;
}

.section-copy p,
.fit-copy p,
.video-copy p,
.donate-copy p,
.living-copy p {
  margin: 0 0 16px;
}

.section-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.center-actions {
  justify-content: center;
}

.photo-stack {
  position: relative;
  min-height: 480px;
}

.photo-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-small {
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 172px;
  height: 172px;
  object-fit: cover;
  border: 8px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 20px 46px rgba(44, 40, 35, 0.2);
}

.soft-band {
  background: linear-gradient(180deg, var(--warm), #fffaf2);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p {
  margin: 0 auto;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid article,
.day-card,
.steps article,
.bank-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(44, 40, 35, 0.08);
}

.feature-grid article {
  min-height: 270px;
  padding: 25px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--wine);
  background: var(--sage);
  border-radius: 50%;
  font-weight: 900;
}

.feature-grid p,
.steps p,
.bank-box p,
.day-card span {
  color: var(--muted);
}

.quote-panel {
  padding: clamp(28px, 4vw, 46px);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(125, 24, 49, 0.96), rgba(93, 14, 35, 0.96)),
    var(--wine);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin: 0 0 18px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.28;
  font-weight: 850;
}

.quote-panel span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.schedule-section {
  background: var(--paper);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.day-card {
  padding: 25px;
  background: #fff;
}

.day-card h3 {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.lesson {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(44, 40, 35, 0.1);
}

.lesson:last-child {
  border-bottom: 0;
}

.lesson time {
  color: var(--wine);
  font-size: 21px;
  font-weight: 900;
}

.lesson strong,
.lesson span {
  display: block;
}

.lesson strong {
  font-size: 18px;
}

.rabbis-section {
  background:
    linear-gradient(180deg, rgba(223, 230, 211, 0.55), rgba(255, 253, 248, 0.92)),
    var(--paper);
}

.rabbis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.support-grid article {
  min-height: 230px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(160deg, var(--wine), var(--wine-dark));
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(125, 24, 49, 0.16);
}

.support-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 11px;
  color: var(--wine-dark);
  background: #fff3d7;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.support-grid h3 {
  color: #fff;
}

.support-rabbi-photo {
  width: 92px;
  height: 92px;
  margin: 0 0 14px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.support-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.rabbis-grid article {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(44, 40, 35, 0.08);
}

.rabbi-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.rabbi-card img {
  width: 122px;
  height: 122px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 5px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(44, 40, 35, 0.16);
}

.rabbis-grid p {
  margin: 0;
  color: var(--muted);
}

.video-section {
  background: #f8f3ea;
}

.video-grid {
  display: grid;
  gap: 18px;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #191919;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(44, 40, 35, 0.16);
}

.living-section {
  background: var(--paper);
}

.living-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 66px);
  align-items: center;
}

.living-layout img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.living-copy {
  font-size: 18px;
}

.living-copy ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.living-copy li {
  position: relative;
  margin: 12px 0;
  padding-right: 28px;
  font-size: 18px;
  font-weight: 700;
}

.living-copy li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.muted-note {
  color: var(--wine-dark);
  font-weight: 850;
}

.process-section {
  background: linear-gradient(180deg, #fffaf2, var(--warm));
}

.newsletter-section {
  background:
    linear-gradient(135deg, rgba(125, 24, 49, 0.08), rgba(200, 155, 75, 0.12)),
    var(--cream);
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94), rgba(246, 239, 229, 0.72)),
    url("../assets/gallery/gallery-07-discussion-circle.jpeg") center / cover;
}

.support-copy {
  max-width: 780px;
}

.support-copy p {
  margin: 0 0 16px;
}

.support-points {
  display: grid;
  gap: 12px;
}

.support-points div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(44, 40, 35, 0.09);
}

.support-points strong,
.support-points span {
  display: block;
}

.support-points strong {
  color: var(--wine-dark);
  font-size: 21px;
}

.support-points span {
  color: var(--muted);
  font-size: 17px;
}

.newsletter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.newsletter-card p {
  margin: 0 0 16px;
}

.join-updates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.join-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: #fffdf8;
  border: 1px solid rgba(125, 24, 49, 0.22);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(44, 40, 35, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.join-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 24, 49, 0.36);
  box-shadow: 0 14px 30px rgba(44, 40, 35, 0.1);
}

.join-card strong {
  color: var(--wine-dark);
  font-size: 18px;
}

.join-card span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.join-card em {
  display: inline-flex;
  width: max-content;
  margin-top: 4px;
  padding: 7px 12px;
  color: #fff;
  background: var(--wine);
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.newsletter-card aside {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: #fff;
  background: var(--wine);
  border-radius: 8px;
}

.newsletter-card aside strong {
  font-size: 23px;
  line-height: 1.25;
}

.newsletter-card aside span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--wine);
  border-radius: 50%;
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid img:nth-child(1) {
  grid-column: span 2;
}

.gallery-grid img:nth-child(4) {
  grid-column: span 2;
}

.faq-section {
  background: #fffaf2;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faq-grid article {
  min-height: 245px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(44, 40, 35, 0.08);
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.donate-section {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(102, 113, 63, 0.12), rgba(200, 155, 75, 0.12)),
    var(--cream);
}

.tax-note {
  color: var(--wine-dark);
  font-weight: 850;
}

.donate-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bank-box {
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
}

.bank-box dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.bank-box dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.bank-box dt {
  color: var(--muted);
  font-weight: 800;
}

.bank-box dd {
  margin: 0;
  font-weight: 850;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(44, 40, 35, 0.72), rgba(44, 40, 35, 0.42)),
    url("../assets/gallery/gallery-02-rabbi-lesson.jpeg") center / cover;
}

.contact-card {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px);
  color: #fff;
  background: rgba(93, 14, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card h2 {
  color: #fff;
}

.contact-card p {
  margin-inline: auto;
  max-width: 670px;
  color: rgba(255, 255, 255, 0.88);
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 78px);
  color: rgba(255, 255, 255, 0.86);
  background: #2b2723;
}

.site-footer .credits {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sticky-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(125, 24, 49, 0.18);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(44, 40, 35, 0.18);
  backdrop-filter: blur(12px);
}

.sticky-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 14px;
  color: #fff;
  background: var(--wine);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.sticky-contact a + a {
  color: var(--wine-dark);
  background: var(--cream);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .feature-grid,
  .schedule-grid,
  .rabbis-grid,
  .support-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .fit-section,
  .video-section,
  .donate-section,
  .support-section,
  .newsletter-card,
  .join-updates,
  .living-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .quick-nav {
    display: none;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    justify-content: start;
    gap: 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .header-cta {
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(44, 40, 35, 0.88), rgba(44, 40, 35, 0.18) 72%),
      linear-gradient(90deg, rgba(44, 40, 35, 0.26), rgba(44, 40, 35, 0.36));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 40px;
  }

  .hero-actions,
  .donate-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 58px 16px;
  }

  .feature-grid,
  .schedule-grid,
  .rabbis-grid,
  .support-grid,
  .faq-grid,
  .steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .photo-stack {
    min-height: 0;
    padding-bottom: 58px;
  }

  .photo-main,
  .living-layout img {
    height: 340px;
  }

  .photo-small {
    right: 14px;
    bottom: 0;
    width: 118px;
    height: 118px;
    border-width: 6px;
  }

  .lesson {
    grid-template-columns: 62px 1fr;
  }

  .gallery-grid img,
  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(4) {
    grid-column: auto;
    height: 260px;
  }

  .bank-box dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding-bottom: 120px;
  }

  .site-footer div {
    justify-content: center;
  }

  .site-footer .credits {
    text-align: center;
  }

  .sticky-contact {
    left: 8px;
    right: 8px;
    bottom: 64px;
    justify-content: center;
  }

  .sticky-contact a {
    flex: 1;
    padding-inline: 10px;
  }
}

@media (max-width: 420px) {
  .intro-strip {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 23px;
  }
}
