/* ============================================================
   Rabbi Micah R. Friedman — earthy modern rabbinic
   Palette: parchment / stone / olive / umber / ink
   Type:    Fraunces (display serif) · Inter (body) · Frank Ruhl Libre (Hebrew)
   ============================================================ */

:root {
  /* Palette */
  --parchment:        #f5ecd9;
  --parchment-soft:   #f9f2e2;
  --parchment-warm:   #ede2c8;
  --stone:            #e0d3b5;
  --stone-mid:        #c9b58f;
  --umber:            #6b4a23;
  --umber-soft:       #8a6534;
  --olive:            #5b6a3a;
  --olive-deep:       #43522b;
  --ink:              #1f160a;
  --ink-soft:         #3b2d18;
  --ink-muted:        #6a5638;
  --ink-faint:        #8e7a59;
  --rule:             rgba(107, 74, 35, 0.18);
  --rule-strong:      rgba(107, 74, 35, 0.35);
  --gold:             #a87a3b;
  --gold-light:       #c79b5c;

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-hebrew:  "Frank Ruhl Libre", "Fraunces", "SBL Hebrew", Georgia, serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   clamp(1.4rem, 1.6vw + 0.9rem, 1.9rem);
  --text-2xl:  clamp(2rem, 2.6vw + 1rem, 3rem);
  --text-hero: clamp(2.8rem, 6.5vw + 1rem, 5.6rem);

  /* Space */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --container: 1180px;
  --container-tight: 980px;

  --shadow-sm: 0 1px 2px rgba(58, 36, 12, 0.04), 0 2px 8px rgba(58, 36, 12, 0.05);
  --shadow-md: 0 4px 20px rgba(58, 36, 12, 0.07);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Subtle paper-grain backdrop */
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(199, 155, 92, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(91, 106, 58, 0.06), transparent 65%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.30  0 0 0 0 0.13  0 0 0 0.035 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold); color: var(--parchment); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--parchment); padding: .5rem .9rem; border-radius: 4px;
  font-family: var(--font-body); font-size: var(--text-sm); z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- typography defaults ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
p { line-height: 1.72; }

em { font-style: italic; }
strong { color: var(--ink); font-weight: 600; }

[lang="he"] {
  font-family: var(--font-hebrew);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--parchment) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(107, 74, 35, 0.05), 0 8px 20px -16px rgba(58, 36, 12, 0.25);
  background: color-mix(in oklab, var(--parchment) 94%, transparent);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-6);
  padding: .9rem clamp(1.1rem, 3vw, 2rem);
}
.brand { display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--umber); flex-shrink: 0; }
.brand-mark.small { width: 26px; height: 26px; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.primary-nav a {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: .4rem 0;
  position: relative;
  transition: color .2s ease;
  white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--umber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-body);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--parchment);
  background: var(--ink);
  padding: .65rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--umber); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
  margin-left: auto;
}
.menu-toggle span {
  display: block; height: 1.5px; width: 22px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--rule);
  background: var(--parchment-soft);
}
.mobile-menu ul { padding: 1rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu a {
  display: block; padding: .65rem 0;
  font-family: var(--font-body);
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
}
.mobile-cta { color: var(--umber) !important; letter-spacing: .04em !important; text-transform: none !important; font-size: .95rem !important; }

/* ---------- containers / sections ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; }
.kicker {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--umber);
  display: inline-flex; align-items: center;
  margin-bottom: .9rem;
}
.kicker.light { color: var(--gold-light); }
.kicker::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: currentColor; opacity: .7;
  margin-right: .8rem;
}
.section-title { font-size: var(--text-2xl); max-width: 22ch; }
.section-title.light { color: var(--parchment-soft); }
.section-lede {
  font-size: var(--text-md);
  max-width: 62ch;
  color: var(--ink-muted);
  margin-top: 1rem;
  line-height: 1.7;
}
.section-lede.right { text-align: left; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end;
}
.section-head.two-col .section-lede { margin-top: 0; max-width: 50ch; }

/* ---------- HERO ---------- */
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; }
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.hero-text { padding-top: clamp(1rem, 3vw, 2.5rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--umber);
  display: inline-flex; align-items: center; gap: .9rem;
  margin-bottom: 1.6rem;
}
.eyebrow-rule { display: inline-block; width: 36px; height: 1px; background: var(--umber); opacity: .6; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin-bottom: .5rem;
}
.hero-title span { display: block; }
.hero-line-2 { font-style: italic; color: var(--umber); }

.hebrew-name {
  font-family: var(--font-hebrew);
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  color: var(--umber-soft);
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38ch;
  margin-bottom: 1.6rem;
}

.hero-quote {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--ink-soft);
  padding-left: 1.3rem;
  border-left: 2px solid var(--gold);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-bottom: 2.4rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s, color .2s, transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--umber); transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(31,22,10,0.5); }
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border-color: var(--rule-strong);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: .9rem;
  padding: .85rem 1.3rem;
}
.btn-ghost:hover { border-color: var(--umber); color: var(--ink); background: var(--parchment-warm); }

.hero-now {
  display: inline-block;
  font-size: .9rem;
  color: var(--ink-muted);
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-style: italic;
}
.hero-now a { color: var(--umber); border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.hero-now a:hover { color: var(--ink); border-bottom-color: var(--umber); }
.now-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  position: relative;
  margin-right: .55rem;
  vertical-align: .05em;
}
.now-dot::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--olive);
  opacity: .25;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: .5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Hero aside */
.hero-aside {
  background:
    linear-gradient(180deg, var(--parchment-soft), var(--parchment-warm));
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  position: relative;
}
.hero-aside::before {
  content: ""; position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.aside-label {
  font-family: var(--font-body);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: .8rem;
}
.aside-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.cred-list { display: flex; flex-direction: column; gap: 1rem; }
.cred-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: baseline; }
.cred-key {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber);
}
.cred-val { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

.hero-bottom-rule {
  max-width: var(--container);
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1.2rem;
  color: var(--umber);
  font-family: var(--font-hebrew);
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0.65;
}
.rule-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--rule-strong), transparent); }

/* ---------- ABOUT ---------- */
.about { background: var(--parchment-soft); border-top: 1px solid var(--rule); }
.about-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.about-top-row .section-head {
  margin-bottom: 0;
}
.about-top-photo {
  justify-self: end;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.about-prose p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: 1.8;
  max-width: 64ch;
}
.about-prose .lead {
  font-size: 1.18rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 1.8rem;
  max-width: none;
  letter-spacing: -0.005em;
}
.about-prose .lead strong { font-style: normal; font-weight: 500; color: var(--ink); }

.besht {
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  background: var(--parchment-warm);
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.besht cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--umber);
}

.about-aside { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 100px; }
.aside-card {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.4rem 1.4rem;
}
.aside-card.temple-note {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.aside-card.temple-note::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
}
.aside-card.temple-note .aside-kicker { color: var(--gold-light); }
.aside-card.temple-note .aside-title {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--parchment);
  margin: .35rem 0 .9rem;
  letter-spacing: -0.01em;
}
.aside-card.temple-note .aside-body { color: rgba(245, 236, 217, .85); font-size: .95rem; line-height: 1.65; }
.aside-card.temple-note strong { color: var(--parchment); }
.aside-card.temple-note .aside-link {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-body);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(199, 155, 92, 0.4);
  padding-bottom: 2px;
}
.aside-card.temple-note .aside-link:hover { color: var(--parchment); border-bottom-color: var(--parchment); }

.aside-kicker {
  font-family: var(--font-body);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: .5rem;
}
.tag-list { display: flex; flex-direction: column; gap: .35rem; }
.tag-list li {
  font-size: .9rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.tag-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 1px; background: var(--gold);
}

/* ---------- PHOTOGRAPHY ---------- */
.photo-frame {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .5rem;
  box-shadow: 0 14px 34px -28px rgba(58, 36, 12, .55);
}
.photo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--stone);
  border-radius: 2px;
  filter: sepia(.08) saturate(.9) contrast(.98);
}
.photo-frame figcaption {
  margin-top: .55rem;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.45;
}
.about-photo img {
  object-position: center;
}
.photo-band,
.photo-break {
  position: relative;
  border-top: 1px solid var(--rule);
  background: var(--parchment);
}
.photo-band {
  padding: clamp(2.3rem, 5vw, 4.4rem) 0;
}
.photo-band-inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(280px, 1fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: center;
}
.photo-band-inner.reverse {
  grid-template-columns: minmax(240px, .58fr) minmax(0, 1fr);
}
.photo-band-inner.reverse .photo-copy {
  order: 2;
}
.about-photo {
  max-width: 340px;
  align-self: center;
}
.headshot-photo {
  max-width: 300px;
}
.southern-tier-photo {
  max-width: 420px;
}
.photo-wide {
  max-width: 620px;
}
.photo-wide img {
  object-position: center;
}
.photo-copy p:not(.kicker) {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--text-md);
  line-height: 1.8;
  max-width: 54ch;
}
.photo-break {
  padding: clamp(1.8rem, 4vw, 3rem) 0;
  background:
    linear-gradient(180deg, rgba(237, 226, 200, .58), rgba(245, 236, 217, .9)),
    var(--parchment-warm);
}
.panoramic-photo {
  padding: .65rem;
  max-width: 720px;
  margin: 0 auto;
}
.panoramic-photo img {
  object-position: center;
}
.service-break-photo {
  max-width: 360px;
}
.community-feature {
  background: var(--parchment-soft);
  border-top: 1px solid var(--rule);
}
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: center;
}
.community-copy p:not(.kicker) {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--text-md);
  line-height: 1.8;
  max-width: 58ch;
}
.encounter-links {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.encounter-links a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--umber);
  border-bottom: 1px solid rgba(107, 74, 35, .28);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.encounter-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.community-photo {
  max-width: 520px;
}
.community-photo img {
  object-position: center;
}
.service-photo {
  background: var(--parchment-warm);
}
.service-frame {
  max-width: 330px;
  justify-self: center;
}
.service-frame img {
  object-position: center;
}

/* ---------- TEACHING ---------- */
.teaching { background: var(--parchment); border-top: 1px solid var(--rule); }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.theme {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.8rem 1.6rem 1.5rem;
  position: relative;
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .35s;
}
.theme:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.theme-letter {
  font-family: var(--font-hebrew);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  opacity: .55;
  margin-bottom: .8rem;
}
.theme h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: .7rem;
  color: var(--ink);
}
.theme p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.theme-list {
  border-top: 1px solid var(--rule);
  padding-top: .8rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.theme-list li {
  font-size: .8rem;
  color: var(--umber-soft);
  font-style: italic;
  line-height: 1.4;
}
.theme-list a {
  border-bottom: 1px solid rgba(107, 74, 35, 0.28);
  transition: color .2s ease, border-color .2s ease;
}
.theme-list a:hover {
  color: var(--ink);
  border-bottom-color: var(--umber);
}

/* ---------- SCHOLARSHIP / PROJECTS ---------- */
.scholarship { background: var(--parchment-warm); border-top: 1px solid var(--rule); }
.current-work-panel {
  background: color-mix(in oklab, var(--parchment-soft) 70%, white 8%);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.current-work-panel .section-head {
  margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}
.projects-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.project {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--umber);
  border-radius: 4px;
  padding: 1.25rem 1.2rem 1.35rem;
  min-height: 100%;
  box-shadow: 0 10px 28px -24px rgba(58, 36, 12, 0.38);
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .3s;
}
.project:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: 0 16px 38px -28px rgba(58, 36, 12, 0.48);
}
.project-type {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: .55rem;
}
.project h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: .55rem;
  color: var(--ink);
}
.project h3 a,
.schol-body h3 a {
  border-bottom: 1px solid rgba(107, 74, 35, 0.25);
  transition: color .2s ease, border-color .2s ease;
}
.project h3 a:hover,
.schol-body h3 a:hover {
  color: var(--umber);
  border-bottom-color: var(--umber);
}
.project p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.poem-feature {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
  margin-top: 1.4rem;
  padding: 1.1rem;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.poem-photo {
  max-width: 440px;
}
.poem-copy h3 {
  font-size: 1.35rem;
  margin-bottom: .55rem;
}
.poem-copy h3 a {
  border-bottom: 1px solid rgba(107, 74, 35, .25);
  transition: color .2s ease, border-color .2s ease;
}
.poem-copy h3 a:hover {
  color: var(--umber);
  border-bottom-color: var(--umber);
}
.poem-copy p:not(.project-type) {
  color: var(--ink-muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 58ch;
}

.research-archive {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule-strong);
}
.scholarship-head {
  position: sticky;
  top: 96px;
}
.scholarship-head .section-title {
  font-size: clamp(1.65rem, 1.8vw + 1rem, 2.35rem);
}

.schol-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.schol-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 2rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(107, 74, 35, 0.16);
  background: rgba(245, 236, 217, 0.42);
  border-radius: 4px;
  align-items: start;
}
.schol-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  color: var(--gold);
  opacity: .65;
  line-height: 1;
}
.schol-body h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: .6rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}
.schol-body p {
  font-size: .94rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 70ch;
}
.schol-venue {
  margin-top: .8rem;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--umber);
}

/* ---------- DIVREI TORAH (dark) ---------- */
.divrei { background: var(--ink); color: var(--parchment-soft); }
.divrei::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divrei .kicker.light { color: var(--gold-light); }
.divrei .kicker.light::before { background: var(--gold-light); }
.divrei .section-title.light { color: var(--parchment-soft); }
.divrei-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.divrei-intro .section-title { max-width: 18ch; margin-bottom: 1.5rem; }
.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245, 236, 217, 0.85);
  padding-left: 1.3rem;
  border-left: 2px solid var(--gold);
  margin-bottom: .8rem;
}
.pull em { font-style: normal; color: var(--parchment); }
.pull-attr {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(199, 155, 92, 0.65);
  margin-bottom: 1.8rem;
}
.link-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(199, 155, 92, 0.4);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--parchment); border-bottom-color: var(--parchment); }
.link-arrow.light { color: var(--gold-light); }
.link-arrow:not(.light) { color: var(--umber); border-bottom-color: var(--rule-strong); }
.link-arrow:not(.light):hover { color: var(--ink); border-bottom-color: var(--ink); }

.sermon-list { border: 1px solid rgba(245, 236, 217, 0.1); border-radius: 2px; }
.sermon-list > li {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid rgba(245, 236, 217, 0.08);
  transition: background .2s;
}
.sermon-list > li:last-child { border-bottom: none; }
.sermon-list > li:hover { background: rgba(245, 236, 217, 0.025); }
.sermon-list a { display: block; color: inherit; }
.sermon-kicker {
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(199, 155, 92, 0.7);
  margin-bottom: .3rem;
}
.sermon-list h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--parchment-soft);
  margin-bottom: .3rem;
  font-style: italic;
  font-weight: 400;
}
.sermon-list p {
  font-size: .85rem;
  color: rgba(245, 236, 217, 0.6);
  line-height: 1.55;
}
.sermon-archive {
  background: rgba(245, 236, 217, 0.03);
}
.sermon-archive a {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.sermon-archive a:hover { color: var(--parchment); }
.service-mini {
  max-width: 230px;
  margin-top: 1.8rem;
  background: rgba(245, 236, 217, .08);
  border-color: rgba(245, 236, 217, .16);
}
.service-mini figcaption {
  color: rgba(245, 236, 217, .52);
}

/* ---------- SOURCE SHEETS ---------- */
.source-sheets { background: var(--parchment); border-top: 1px solid var(--rule); }
.sheets-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.sheet {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.6rem 1.4rem 1.5rem;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.sheet:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.sheet-tag {
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: .6rem;
}
.sheet h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .55rem;
}
.sheet p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.sheet-cta {
  background: var(--ink);
  color: var(--parchment-soft);
  border-color: var(--ink-soft);
}
.sheet-cta .sheet-tag { color: var(--gold-light); }
.sheet-cta h3 { color: var(--parchment); }
.sheet-cta p { color: rgba(245, 236, 217, 0.75); margin-bottom: 1rem; }

/* ---------- LIFECYCLE ---------- */
.lifecycle { background: var(--parchment-soft); border-top: 1px solid var(--rule); }
.lifecycle-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.lifecycle-intro-row .section-head {
  margin-bottom: 0;
}
.lifecycle-photo {
  max-width: 420px;
  justify-self: end;
}
.lifecycle-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.life-card {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  position: relative;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .35s;
}
.life-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.life-letter {
  font-family: var(--font-hebrew);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  opacity: .6;
  margin-bottom: .8rem;
}
.life-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--ink);
}
.life-card p {
  font-size: .95rem;
  line-height: 1.72;
  color: var(--ink-muted);
  margin-bottom: .9rem;
}
.life-tag {
  display: inline-block;
  margin-top: .6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  width: 100%;
  font-family: var(--font-body) !important;
  font-size: .65rem !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber) !important;
  font-style: normal;
}

/* ---------- CONNECT ---------- */
.connect { background: var(--parchment-warm); border-top: 1px solid var(--rule); }
.connect-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.connect-text .section-title { max-width: 16ch; margin-bottom: 1.4rem; }
.connect-text p {
  font-size: var(--text-md);
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 56ch;
  margin-bottom: 1.1rem;
}
.pull.warm {
  color: var(--umber);
  border-left-color: var(--gold);
  background: var(--parchment-soft);
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  border-radius: 2px;
  margin-top: 2rem;
}
.pull.warm cite {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--umber-soft);
}

.contact-card {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  position: sticky; top: 100px;
}
.contact-kicker {
  font-family: var(--font-body);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: .5rem;
}
.contact-email {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 1rem;
  word-break: break-all;
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: .8rem;
  transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--umber); border-bottom-color: var(--umber); }
.contact-help {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.contact-quick { display: flex; flex-direction: column; gap: .4rem; }
.contact-quick li a {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--umber);
  padding: .5rem 0;
  border-bottom: 1px dashed var(--rule);
  transition: color .2s, padding-left .2s;
}
.contact-quick li a:hover { color: var(--ink); padding-left: .5rem; }
.contact-quick li:last-child a { border-bottom: none; }

.contact-divider {
  height: 1px;
  background: var(--rule);
  margin: 1.6rem 0 1.3rem;
}
.contact-body {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: var(--parchment-soft);
  padding: clamp(2.8rem, 5vw, 4rem) 0 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; color: var(--gold-light); }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--parchment);
  margin-bottom: .3rem;
}
.footer-hebrew {
  font-family: var(--font-hebrew);
  color: var(--gold-light);
  opacity: .75;
  font-size: .95rem;
}
.footer-nav ul {
  display: flex; flex-wrap: wrap;
  gap: .6rem 1.4rem;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--parchment); }
.footer-meta { text-align: right; display: flex; flex-direction: column; gap: .5rem; }
.footer-blessing {
  font-family: var(--font-hebrew);
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.04em;
  opacity: .85;
}
.footer-email a {
  font-family: var(--font-body);
  font-size: .85rem;
  color: rgba(245, 236, 217, 0.7);
  border-bottom: 1px solid rgba(199, 155, 92, 0.3);
  padding-bottom: 1px;
}
.footer-email a:hover { color: var(--parchment); border-bottom-color: var(--gold-light); }
.footer-line {
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.35);
}

/* ---------- Reveal on scroll ---------- */
/* Only hide if JS has marked the page as js-enabled */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-aside { order: 2; }
  .about-top-row { grid-template-columns: 1fr; }
  .about-top-photo { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-aside { position: static; }
  .photo-band-inner,
  .photo-band-inner.reverse,
  .community-grid { grid-template-columns: 1fr; }
  .photo-band-inner.reverse .photo-copy { order: 0; }
  .service-frame { max-width: none; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-row { grid-template-columns: 1fr; }
  .poem-feature { grid-template-columns: 1fr; }
  .research-archive { grid-template-columns: 1fr; gap: 1.6rem; }
  .scholarship-head { position: static; }
  .schol-item { grid-template-columns: 1fr; gap: .5rem; }
  .schol-num { font-size: 1.8rem; }
  .divrei-grid { grid-template-columns: 1fr; }
  .sheets-grid { grid-template-columns: repeat(2, 1fr); }
  .lifecycle-intro-row { grid-template-columns: 1fr; }
  .lifecycle-photo { justify-self: start; }
  .lifecycle-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .footer-nav ul { gap: .4rem 1rem; }
  .section-head.two-col { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 640px) {
  .header-inner { padding: .8rem 1.1rem; }
  .brand-sub { display: none; }
  .theme-grid { grid-template-columns: 1fr; }
  .sheets-grid { grid-template-columns: 1fr; }
  .current-work-panel { padding: 1.2rem; }
  .cred-list li { grid-template-columns: 1fr; gap: .15rem; }
  .cred-key { color: var(--gold); }
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .footer-meta { text-align: left; }
}
