/* ============================================================
   BET AHARON TORAH CENTER — Sephardic Torah Center of Marine Park
   Design system: gold + light-brown marble, engraved serif, quiet luxury.
   Single committed theme (a marble sanctuary has one light).
   ============================================================ */

:root {
  /* Stone (light brown marble grounds) */
  --stone-50:  #F8F3E9;
  --stone-100: #F1E8D6;
  --stone-200: #E7D9BF;
  --stone-300: #D9C6A6;
  --stone-400: #C4AC85;
  /* Bronze / espresso (dark grounds + ink) */
  --deep:      #1D150C;
  --deep-2:    #2A1F12;
  --deep-3:    #3A2C1A;
  --ink:       #2E2318;
  --ink-soft:  #5C4A35;
  /* Gold */
  --gold:        #A8842F;
  --gold-bright: #D4AF37;
  --gold-pale:   #EBD9A4;
  --gold-deep:   #7A5E1E;
  --gold-leaf: linear-gradient(105deg,#8C6A2F 0%,#C9A43C 28%,#F3E3B0 50%,#D4AF37 68%,#8C6A2F 100%);
  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-engrave: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-body: "Assistant", "Segoe UI", -apple-system, Arial, sans-serif;
  /* Layout */
  --w-max: 1200px;
  --w-text: 68ch;
  --radius: 14px;
  --shadow-soft: 0 18px 50px -18px rgba(46,35,24,.35);
  --shadow-card: 0 10px 34px -14px rgba(46,35,24,.28);
  /* Marble textures (inline SVG, self-contained) */
  --marble-light:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.012' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 0.84  0 0 0 0 0.76  0 0 0 0 0.60  0 0 0 0.55 0'/></filter><rect width='900' height='900' fill='%23F1E8D6'/><rect width='900' height='900' filter='url(%23m)' opacity='0.5'/></svg>");
  --marble-dark:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='0.007 0.015' numOctaves='4' seed='11'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.20  0 0 0 0.35 0'/></filter><rect width='900' height='900' fill='%23241A0F'/><rect width='900' height='900' filter='url(%23d)' opacity='0.6'/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone-100) var(--marble-light);
  background-size: 900px 900px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

/* ---------- type scale ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0 0 .45em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1.1em; max-width: var(--w-text); }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: var(--ink-soft); }

.eyebrow {
  font-family: var(--f-engrave);
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 44px; height: 1px; background: var(--gold); flex: none; }

.gold-text {
  background: var(--gold-leaf);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- structure ---------- */
.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.inlay { /* gold hairline divider that draws itself */
  height: 2px; border: 0; margin: 0 auto; max-width: min(560px, 70%);
  background: var(--gold-leaf); background-size: 200% 100%;
}
html.js .inlay { transform-origin: center; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.22,.9,.24,1); }
html.js .inlay.in-view { transform: scaleX(1); }

/* dark marble band sections */
.band-dark {
  background: var(--deep) var(--marble-dark); background-size: 900px 900px;
  color: var(--stone-100);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--stone-50); }
.band-dark p { color: var(--stone-200); }
.band-dark .eyebrow { color: var(--gold-pale); }

/* ---------- header / nav ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .4s ease, box-shadow .4s ease, transform .4s ease;
  padding: 14px 0;
}
.site-head.solid {
  background: rgba(29,21,12,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px -12px rgba(0,0,0,.5);
  padding: 8px 0;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--stone-50); }
.brand:hover { color: #fff; }
.brand-mark {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--gold-bright);
  display: grid; place-items: center;
  font-family: var(--f-engrave); font-size: 1.05rem; color: var(--gold-pale);
  background: radial-gradient(circle at 32% 28%, #3A2C1A, #1D150C);
  box-shadow: inset 0 0 12px rgba(212,175,55,.25);
}
.brand-name { line-height: 1.15; }
.brand-name b { display: block; font-family: var(--f-engrave); font-weight: 600; font-size: .98rem; letter-spacing: .12em; }
.brand-name span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-300); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { color: var(--stone-100); font-size: .95rem; letter-spacing: .06em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--gold-bright); transition: right .35s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold-pale); margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(29,21,12,.97) var(--marble-dark); background-size: 900px 900px;
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.35rem; font-family: var(--f-display); }
  .nav-toggle { position: relative; z-index: 61; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 34px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  position: relative; overflow: hidden;
}
.btn-gold {
  color: #241A0F;
  background: var(--gold-leaf); background-size: 220% 100%; background-position: 0% 0;
  box-shadow: 0 10px 28px -10px rgba(168,132,47,.7), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 90% 0; color: #1D150C; box-shadow: 0 16px 36px -12px rgba(168,132,47,.85), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost { color: var(--stone-50); border: 1px solid rgba(212,175,55,.55); background: rgba(212,175,55,.06); }
.btn-ghost:hover { border-color: var(--gold-bright); background: rgba(212,175,55,.14); color: #fff; transform: translateY(-2px); }
.btn-ghost.on-light { color: var(--gold-deep); border-color: var(--gold); }
.btn-ghost.on-light:hover { color: var(--ink); background: rgba(168,132,47,.1); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: end;
  position: relative; overflow: hidden; padding: 0;
  background: var(--deep);
  color: var(--stone-50);
}
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide {
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.2s ease;
  transform: scale(1.06);
}
.hero-slides .slide.active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translateY(1.5%); } to { transform: scale(1.0) translateY(0); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,21,12,.55) 0%, rgba(29,21,12,.18) 40%, rgba(29,21,12,.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 0 clamp(56px, 9vh, 110px); width: 100%; }
.hero .crest {
  font-family: var(--f-engrave); letter-spacing: .4em; text-transform: uppercase;
  font-size: clamp(.7rem, 1.6vw, .85rem); color: var(--gold-pale); margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero h1 .gold-text { animation: goldsheen 5.5s ease-in-out infinite; }
@keyframes goldsheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero .sub { font-size: clamp(1.02rem, 2vw, 1.28rem); color: var(--stone-200); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-dots { position: absolute; right: clamp(18px, 4vw, 44px); bottom: 26px; z-index: 3; display: flex; gap: 9px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold-pale); background: transparent; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.hero-dots button.active { background: var(--gold-bright); transform: scale(1.25); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; color: var(--gold-pale); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; animation: floaty 2.6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,7px);} }

/* per-slide caption (marks old-era vs new photos honestly) */
.slide-tag {
  position: absolute; left: clamp(18px,4vw,44px); bottom: 26px; z-index: 3;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-300);
  background: rgba(29,21,12,.55); border: 1px solid rgba(212,175,55,.3); border-radius: 999px; padding: 7px 16px;
  backdrop-filter: blur(6px);
}

/* ---------- reveal-on-scroll (only when JS is running; no-JS shows everything) ---------- */
html.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.9,.24,1); }
html.js .rv.in-view { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .12s; } .rv-d2 { transition-delay: .24s; } .rv-d3 { transition-delay: .36s; } .rv-d4 { transition-delay: .48s; }

/* ---------- cards / marble slabs ---------- */
.slab {
  background:
    linear-gradient(160deg, rgba(255,255,255,.65), rgba(255,255,255,0) 55%),
    var(--stone-50) var(--marble-light);
  background-size: auto, 900px 900px;
  border: 1px solid rgba(168,132,47,.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.4vw, 40px);
  position: relative; overflow: hidden;
}
.slab::before { /* gold edge inlay */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(168,132,47,.22); border-radius: calc(var(--radius) - 6px); pointer-events: none;
}
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -80%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.34) 50%, transparent 100%);
  transform: skewX(-18deg); transition: left .9s ease; pointer-events: none;
}
.sheen:hover::after { left: 130%; }

/* ---------- schedule tablets ---------- */
.sched-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.sched-title { font-family: var(--f-engrave); font-size: 1.02rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); border-bottom: 1px solid rgba(168,132,47,.35); padding-bottom: 12px; margin-bottom: 6px; }
.sched-rows { display: grid; }
.sched-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 2px; border-bottom: 1px dashed rgba(168,132,47,.22); }
.sched-row:last-child { border-bottom: 0; }
.sched-row .t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sched-row .n { color: var(--ink-soft); }
.sched-row .n small { display: block; font-size: .78rem; color: var(--gold-deep); letter-spacing: .06em; }
.sched-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; font-style: italic; }

/* ---------- gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.tab {
  font-family: var(--f-engrave); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(168,132,47,.4); background: transparent; color: var(--gold-deep);
  transition: all .3s ease;
}
.tab:hover { border-color: var(--gold); background: rgba(168,132,47,.08); }
.tab.active { background: var(--gold-leaf); background-size: 200% 100%; color: #241A0F; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(168,132,47,.7); }
.collage { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .collage { columns: 2; } }
@media (max-width: 540px) { .collage { columns: 1; } }
.collage figure {
  margin: 0 0 16px; break-inside: avoid; border-radius: 10px; overflow: hidden; position: relative; cursor: zoom-in;
  border: 1px solid rgba(168,132,47,.3); box-shadow: var(--shadow-card);
  transform: translateZ(0);
}
.collage img { transition: transform .7s cubic-bezier(.22,.9,.24,1), filter .7s ease; width: 100%; }
.collage figure:hover img { transform: scale(1.05); }
.collage figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(29,21,12,.82));
  color: var(--stone-100); font-size: .82rem; letter-spacing: .06em;
  opacity: 0; transform: translateY(8px); transition: all .4s ease;
}
.collage figure:hover figcaption { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(20,14,7,.94); padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.6); border: 1px solid rgba(212,175,55,.35); }
.lightbox .lb-cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: var(--stone-200); font-size: .9rem; letter-spacing: .08em; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(212,175,55,.5); color: var(--gold-pale); border-radius: 50%; width: 48px; height: 48px; font-size: 1.15rem; cursor: pointer; transition: all .3s; }
.lightbox button:hover { background: rgba(212,175,55,.15); }
.lb-close { top: 3vh; right: 4vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ---------- donate ---------- */
.donate-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(22px, 3.4vw, 44px); align-items: start; }
@media (max-width: 940px) { .donate-layout { grid-template-columns: 1fr; } .donate-summary { position: static !important; } }
.step { margin-bottom: clamp(26px, 3.6vw, 40px); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.step-num {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-engrave); font-size: .95rem; color: #241A0F;
  background: var(--gold-leaf); background-size: 200% 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 14px -6px rgba(168,132,47,.8);
}
.step-head h3 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(168,132,47,.4); background: rgba(255,255,255,.5); color: var(--ink);
  font-weight: 600; font-size: .98rem; font-variant-numeric: tabular-nums;
  transition: all .22s ease;
}
.chip:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(168,132,47,.55); }
.chip.active { background: var(--gold-leaf); background-size: 200% 100%; color: #241A0F; border-color: transparent; box-shadow: 0 10px 22px -8px rgba(168,132,47,.75); transform: translateY(-2px); }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.fund {
  text-align: left; cursor: pointer; border-radius: 12px; padding: 16px 18px;
  border: 1px solid rgba(168,132,47,.35); background: rgba(255,255,255,.55);
  transition: all .25s ease; font-family: var(--f-body);
}
.fund b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.fund span { font-size: .82rem; color: var(--ink-soft); }
.fund:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.fund.active { background: linear-gradient(150deg, rgba(212,175,55,.2), rgba(255,255,255,.65)); border-color: var(--gold); box-shadow: 0 12px 26px -10px rgba(168,132,47,.6); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(168,132,47,.4);
  background: rgba(255,255,255,.72); transition: border .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.18); }
.amount-input { position: relative; }
.amount-input::before { content: "$"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-deep); }
.amount-input input { width: 100%; padding-left: 44px; font-size: 1.6rem; font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; }

.donate-summary { position: sticky; top: 96px; }
.summary-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--deep-2) var(--marble-dark); background-size: 900px 900px;
  color: var(--stone-100); box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212,175,55,.4);
}
.summary-card .sc-head { padding: 22px 26px 16px; border-bottom: 1px solid rgba(212,175,55,.25); font-family: var(--f-engrave); letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; color: var(--gold-pale); }
.summary-card .sc-body { padding: 20px 26px; display: grid; gap: 12px; }
.sc-row { display: flex; justify-content: space-between; gap: 14px; font-size: .95rem; color: var(--stone-200); }
.sc-row b { color: var(--stone-50); font-weight: 600; text-align: right; }
.sc-amount { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; text-align: center; padding: 8px 0 2px; font-variant-numeric: tabular-nums; }
.sc-amount small { display: block; font-family: var(--f-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-pale); margin-top: 2px; }
.sc-foot { padding: 20px 26px 26px; display: grid; gap: 12px; }
.sc-secure { font-size: .75rem; color: var(--stone-300); text-align: center; letter-spacing: .06em; }

/* ---------- story / timeline ---------- */
.timeline { position: relative; display: grid; gap: clamp(28px, 4vw, 46px); padding-left: 34px; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold-bright), rgba(168,132,47,.15)); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-leaf); background-size: 200% 100%;
  box-shadow: 0 0 0 5px rgba(212,175,55,.18);
}
.tl-year { font-family: var(--f-engrave); letter-spacing: .2em; color: var(--gold-deep); font-size: .95rem; margin-bottom: 6px; }
.tl-item h3 { margin-bottom: .3em; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; text-align: center; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-pale); }

/* ---------- article pages ---------- */
.article-body { max-width: 72ch; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.article-body blockquote { margin: 1.6em 0; padding: 18px 26px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.5); border-radius: 0 10px 10px 0; font-family: var(--f-display); font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }
.article-meta { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--gold-deep); }
.article-card .more { margin-top: auto; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

/* ---------- footer ---------- */
.site-foot { padding: clamp(50px, 7vw, 90px) 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(26px, 4vw, 60px); margin-bottom: 44px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { font-family: var(--f-engrave); font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-pale); margin: 0 0 16px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: var(--stone-200); } .site-foot a:hover { color: var(--gold-pale); }
.foot-legal { border-top: 1px solid rgba(212,175,55,.2); padding-top: 22px; font-size: .8rem; color: var(--stone-300); display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }

/* utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt-lg { margin-top: clamp(30px, 4vw, 52px); }
.badge-legacy {
  display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px solid rgba(168,132,47,.45); border-radius: 999px; padding: 5px 13px; background: rgba(255,255,255,.5);
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold-bright); color: #241A0F; padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* official logo mark (2026-08-17): crown + Adjmi dedication line */
.brand-mark.brand-crown { border: none; background: none; box-shadow: none; border-radius: 0; width: 46px; height: auto; }
.brand-mark.brand-crown svg { width: 46px; height: 32px; display: block; filter: drop-shadow(0 1px 4px rgba(212,175,55,.35)); }
.brand-name span { font-size: .58rem; letter-spacing: .13em; max-width: 250px; display: block; line-height: 1.45; white-space: normal; }

/* full official badge in the header (owner 2026-08-17: the whole logo, exactly as supplied; badge carries its own white ground) */
.brand-badge { display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.brand-badge img { height: 96px; width: auto; display: block; }
@media (max-width: 860px) { .brand-badge img { height: 74px; } }

/* zmanim rows inside live schedule cards */
.sched-row.zman { opacity: .72; }
.sched-row.zman .n { font-style: italic; font-size: .9rem; }

/* ---------- THE LIVING ZMANIM POSTER (framed board; distinct from all else) ---------- */
.zboard-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(22px, 3vw, 44px); align-items: start; }
@media (max-width: 980px) { .zboard-layout { grid-template-columns: 1fr; } }
.zboard-cards { display: grid; gap: clamp(16px, 2.2vw, 26px); align-content: start; }
.zboard-cards .slab { height: fit-content; }
.zposter-wrap { position: sticky; top: 118px; }
@media (max-width: 980px) { .zposter-wrap { position: static; } }
.zposter {
  position: relative;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2.6vw, 30px);
  background: var(--deep-2) var(--marble-dark); background-size: 900px 900px;
  color: var(--stone-100); border-radius: 6px;
  box-shadow:
    0 0 0 3px #8C6A2F,
    0 0 0 5px #F3E3B0,
    0 0 0 11px #B08A3C,
    0 0 0 13px #6b511f,
    0 34px 80px -26px rgba(0,0,0,.7);
  margin: 14px;
}
.zp-corner { position: absolute; width: 34px; height: 34px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M4 36 Q4 4 36 4' fill='none' stroke='%23D4AF37' stroke-width='3'/><path d='M10 36 Q10 10 36 10' fill='none' stroke='%23EBD9A4' stroke-width='1.2'/><circle cx='7' cy='7' r='3.4' fill='%23D4AF37'/></svg>") no-repeat center/contain; pointer-events: none; }
.zp-corner.tl { top: 6px; left: 6px; }
.zp-corner.tr { top: 6px; right: 6px; transform: rotate(90deg); }
.zp-corner.br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.zp-corner.bl { bottom: 6px; left: 6px; transform: rotate(270deg); }
.zp-title { font-family: var(--f-engrave); letter-spacing: .52em; text-indent: .52em; font-size: 1.05rem; color: var(--gold-pale); text-align: center; margin: 0; }
.zp-sub { text-align: center; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--stone-300); margin: 7px 0 4px; }
.zp-date { text-align: center; font-size: .86rem; color: var(--stone-200); margin: 0 0 4px; }
.zp-clock {
  font-family: var(--f-display); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 4px;
  background: var(--gold-leaf); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldsheen 6s ease-in-out infinite;
}
.zp-arc { position: relative; margin: 2px auto 10px; max-width: 320px; }
.zp-arc svg { width: 100%; height: auto; display: block; }
.zp-arc-times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--gold-pale); font-variant-numeric: tabular-nums; margin-top: -6px; padding: 0 4px; }
.zp-sunglow { animation: sunglow 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes sunglow { 0%,100% { opacity: .35; } 50% { opacity: .75; } }
.zp-rows { display: grid; }
.zp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid rgba(212,175,55,.15); border-radius: 8px; transition: background .5s ease, opacity .5s ease; }
.zp-row:last-child { border-bottom: 0; }
.zp-row.past { opacity: .5; }
.zp-row.next { background: linear-gradient(90deg, rgba(212,175,55,.17), rgba(212,175,55,.03)); animation: zpulse 2.8s ease-in-out infinite; }
@keyframes zpulse { 0%,100% { box-shadow: inset 0 0 0 1px rgba(212,175,55,.35); } 50% { box-shadow: inset 0 0 0 1px rgba(212,175,55,.85), 0 0 20px -6px rgba(212,175,55,.55); } }
.zp-row.next .zp-name b::after { content: "next"; margin-left: 8px; font-size: .62em; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-bright); }
.zp-name b { display: block; font-weight: 600; color: var(--stone-50); font-size: .93rem; }
.zp-name i { font-style: normal; font-family: var(--f-display); color: var(--gold-pale); font-size: .92rem; }
.zp-times { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.zp-time { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.35); border-radius: 8px; padding: 4px 10px; font-size: .92rem; white-space: nowrap; text-align: center; }
.zp-time small { display: block; font-size: .58rem; letter-spacing: .16em; color: var(--gold-pale); font-weight: 600; }
.zp-row.candle .zp-time { background: rgba(212,175,55,.3); border-color: var(--gold-bright); }
.zp-foot { font-size: .72rem; color: var(--stone-300); text-align: center; margin: 14px 0 0; letter-spacing: .05em; font-style: italic; }
