/* Alive Daylight: one cinematic hero, then a bright, warm, photo-led page. */
:root {
  --card-radius: 12px;
  --font-display: 'Newsreader', Georgia, serif;
  --font-caps: 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --purple: #380052; /* the plum of the Policy Advisement band on bhtota.org/membership */
  --purple-deep: #280039;
  --purple-hover: #4e0f6e;
  --cream: #f8f3ea;
  --radius: 10px;
}
body { font-size: 16.5px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
.btn { border-radius: 40px; letter-spacing: .02em; text-transform: none; font-size: 16px; font-weight: 600; padding: 13px 26px; }
.btn-donate { background: var(--gold); color: #fff; }
.btn-donate:hover { background: var(--gold-deep); }
.header-inner { min-height: 80px; }
.brand img { height: 54px; }
.nav-link { font-weight: 500; font-size: 15.5px; padding: 28px 0; }
.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: .14em; }

/* Hero with the looping video */
.hero-daylight { min-height: min(78vh, 700px); display: flex; align-items: center; background: #1a1210; }
.hero-daylight .hero-video { object-position: 68% center; }
.hero-daylight .hero-shade { background: linear-gradient(90deg, rgba(20, 12, 8, .72) 0%, rgba(20, 12, 8, .38) 38%, rgba(20, 12, 8, 0) 60%), linear-gradient(0deg, rgba(20, 12, 8, .45), transparent 30%); }
.hero-daylight .hero-inner { padding-block: 80px 64px; }
.hero-daylight .hero-title { font-size: clamp(60px, 9vw, 132px); font-weight: 400; line-height: .95; letter-spacing: -.02em; animation: rise 1.1s var(--ease) both; }
.hero-daylight .hero-sub { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 32px); margin: 18px 0 32px; max-width: 24ch; line-height: 1.25; animation: rise 1.1s .15s var(--ease) both; }
.watch { display: inline-flex; align-items: center; gap: 16px; background: none; border: 0; color: #fff; font-size: 17px; font-weight: 600; padding: 0; animation: rise 1.1s .3s var(--ease) both; }
.watch-ring { width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 24px; transition: background .25s, color .25s, transform .25s; position: relative; }
.watch-ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(201, 161, 74, .5); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.watch-ring svg { margin-left: 4px; }
.watch:hover .watch-ring { background: var(--gold); color: #fff; transform: scale(1.05); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; animation: rise 1.1s .3s var(--ease) both; }
.hero-actions .watch { animation: none; }
.hero-shabbat { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; min-height: 44px; }
.hero-shabbat:hover { color: var(--gold); }
.hero-shabbat svg { color: var(--gold); }
.hero-loc { display: flex; align-items: center; gap: 8px; margin: 56px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); animation: rise 1.1s .45s var(--ease) both; }
.hero-loc svg { color: var(--gold); font-size: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero-daylight { min-height: 0; align-items: flex-end; }
  .hero-daylight .hero-video { object-position: 74% center; }
  .hero-daylight .hero-shade { background: linear-gradient(0deg, rgba(20, 12, 8, .88) 0%, rgba(20, 12, 8, .45) 55%, rgba(20, 12, 8, .1) 100%); }
  .hero-daylight .hero-inner { padding-top: 260px; padding-bottom: 36px; }
  .hero-loc { margin-top: 32px; }
}

/* This week strip */
.this-week { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(40, 25, 10, .1); margin-top: -44px; position: relative; z-index: 2; padding: 0; overflow: hidden; }
.tw-item { display: flex; flex-direction: column; padding: 22px 28px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); transition: background .2s; }
.tw-item:first-child { border-left: 0; }
.tw-item:hover { background: var(--cream); }
.tw-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); }
.tw-when { font-family: var(--font-display); font-size: 24px; color: var(--purple-deep); margin: 4px 0 2px; }
.tw-where { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .this-week { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); } .tw-item { border-left: 0; border-top: 1px solid var(--line); padding: 16px var(--gutter); } .tw-item:first-child { border-top: 0; } }

/* Upcoming events */
.events-home { padding-block: clamp(56px, 7vw, 88px) 0; }
.section-head.split { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head.split h2 { margin: 0; }
.event-media { border-radius: var(--radius); }
.date-badge { top: 14px; left: 14px; border-radius: 8px; min-width: 58px; padding: 8px 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.date-badge .d { font-size: 26px; }
.event-body h3 { font-size: 23px; }
.event-meta { margin-bottom: 12px; }

/* Video modal */
.video-modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 6, 20, .86); display: grid; place-items: center; padding: 16px; animation: fade .25s; }
.video-modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.vm-inner { position: relative; width: min(1000px, 100%); }
.vm-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.vm-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.vm-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; padding: 24px; font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 28px); line-height: 1.35; }
.vm-msg p:last-child { max-width: 30ch; margin: 0 auto; }
.vm-msg .eyebrow { color: var(--gold); font-family: var(--font-body); }
.vm-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; padding: 6px; }

/* Interior page hero */
.page-hero { background: var(--cream); }
.page-hero::after { content: ''; position: absolute; right: -40px; bottom: -10px; width: 360px; height: 240px; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='%23c9a14a' stroke-width='.8'%3E%3Cpath d='M60 78V18M60 78L38 24M60 78L82 24M60 78L20 38M60 78l40-40M60 78L8 58M60 78l52-20'/%3E%3Cpath d='M14 78a46 46 0 0 1 92 0M28 78a32 32 0 0 1 64 0M2 78h116'/%3E%3C/svg%3E") no-repeat center / contain; }
.page-hero.has-img { background: #1a1210; color: #fff; padding-block: clamp(96px, 12vw, 160px) clamp(48px, 6vw, 72px); }
.page-hero.has-img::after { display: none; }
.page-hero.has-img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 12, 8, .85), rgba(20, 12, 8, .25) 70%); }
.page-hero.has-img h1 { color: #fff; }
.page-hero.has-img .lede { color: rgba(255, 255, 255, .88); }
.page-hero.has-img .eyebrow { color: var(--gold); }
.page-hero h1 { font-weight: 400; }

.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.site-footer { background: var(--purple); }
.footer-grid { grid-template-columns: 1.2fr .8fr 1.1fr 1fr 1.2fr; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.newsletter input { border-radius: 40px 0 0 40px; }
.newsletter .btn { border-radius: 0 40px 40px 0; }
.event-card { background: transparent; }
.times { grid-template-columns: 1fr; gap: 0; }
.times dt { margin-top: 8px; }
.times dd { text-align: left; color: #c9c0ec; }

/* Shabbat / Torah Talks split panel, in the Daylight look */
.way-headline { font-weight: 400; letter-spacing: -.01em; }
.way-who { font-variation-settings: 'opsz' 72; }
.way-link { font-weight: 600; }
