/* chanukah-house.com — its own look (not the show site's): a Hanukkah-house website for computers and phones */
:root {
  --night: #0a1633; --night2: #10224d; --ink: #f3f6fc; --muted: #a9b6d3; --line: rgba(255,255,255,.12);
  --panel: rgba(255,255,255,.05); --blue: #5b9cff; --blue2: #2f6fe0; --silver: #d9e2f1; --flame: #ffcf6b;
  --venmo: #008cff; --paypal: #ffc439; --paypal-text: #111; --cashapp: #00c244; --zelle: #6d1ed4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.loading { padding: 40vh 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: 26px; margin: 0 0 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10,22,51,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topin { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 19px/1.2 var(--serif); min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 550; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current] { color: var(--ink); background: rgba(91,156,255,.18); }
@media (max-width: 760px) {
  .topin { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .nav { overflow-x: auto; scrollbar-width: none; margin: 6px -16px 0; padding: 0 12px 10px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 12px; }
}

/* hero */
.hero { background: radial-gradient(90% 120% at 75% 30%, rgba(91,156,255,.22), transparent 60%), linear-gradient(180deg, var(--night2), var(--night)); border-bottom: 1px solid var(--line); overflow: hidden; }
.heroin { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner { position: relative; max-width: 1400px; margin: 0 auto; }
.banner img { display: block; width: 100%; height: auto; }
.banner::after { content: ''; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(180deg, transparent, var(--night)); pointer-events: none; }
@media (min-width: 1401px) { .banner img { border-radius: 0 0 18px 18px; } }
.herobar { text-align: center; padding-top: 18px; padding-bottom: 44px; }
.herobar .lede { margin-left: auto; margin-right: auto; }
.herobar .ctas { justify-content: center; }
.eyebrow { display: inline-block; color: var(--flame); font-weight: 650; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 0 0 14px; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 0 0 24px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--blue2); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.cta:hover { background: #3b7cf0; }
.cta.alt { background: transparent; border: 1px solid rgba(217,226,241,.4); color: var(--ink); }
.cta.alt:hover { background: var(--panel); }
.cta[disabled] { opacity: .6; cursor: default; }
.heroart { display: flex; justify-content: center; }
.menorah { width: 100%; max-width: 440px; height: auto; }
.menorah .wax { fill: #e9f0fb; }
.menorah .cdl .flame, .menorah .cdl .glow { opacity: 0; }
.menorah .cdl.on .flame { opacity: 1; fill: var(--flame); transform-box: fill-box; transform-origin: 50% 100%; animation: flick 2.6s ease-in-out infinite; }
.menorah .cdl.on .glow { opacity: 1; fill: url(#gg); }
.menorah .cdl:nth-child(odd).on .flame { animation-duration: 3.1s; animation-delay: -.7s; }
@keyframes flick { 0%,100% { transform: scale(1,1) rotate(0); } 30% { transform: scale(.94,1.06) rotate(-2deg); } 60% { transform: scale(1.04,.96) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .menorah .cdl.on .flame { animation: none; } }
@media (max-width: 760px) {
  .heroin { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; gap: 8px; text-align: center; }
  .heroart { order: -1; } .menorah { max-width: 300px; }
  .ctas { justify-content: center; } .lede { margin-left: auto; margin-right: auto; }
  .cta { flex: 1 1 100%; }
  .herobar { padding-top: 12px; padding-bottom: 32px; }
}

/* page heads + panels */
.phead { background: linear-gradient(180deg, var(--night2), var(--night)); border-bottom: 1px solid var(--line); }
.phead .wrap { padding-top: 48px; padding-bottom: 36px; }
.phead h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 8px; }
.phead .lede { margin: 0; }
.band { padding-top: 36px; padding-bottom: 12px; }
.band.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .band.two { grid-template-columns: 1fr; } .band.two .give { order: -1; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
@media (max-width: 520px) { .panel { padding: 18px 16px; } }
.about { max-width: 820px; }
.prose p { margin: 0 0 14px; } .prose p:last-child { margin-bottom: 0; }
.prose h3 { font: 650 20px/1.3 var(--serif); margin: 18px 0 8px; }
.more summary { cursor: pointer; font-weight: 650; color: var(--blue); padding: 12px 0 8px; }
.thanks { margin-top: 20px; background: linear-gradient(135deg, rgba(255,207,107,.16), rgba(91,156,255,.14)); border-color: rgba(255,207,107,.45); }

/* tiles + media cards */
.tiles, .mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 8px; padding-bottom: 40px; }
.mgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 0 0 20px; }
.tiles { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tiles .tile:nth-child(-n+2) { grid-column: span 1; } }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tiles .tile:first-child { grid-column: span 2; } }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } .tiles .tile:first-child { grid-column: auto; } }
.tile, .mcard { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.tile:hover, .mcard:hover { border-color: rgba(91,156,255,.6); background: rgba(91,156,255,.08); }
.tile b, .mcard b { font: 650 19px/1.3 var(--serif); }
.tile span:last-child, .mcard span:last-child { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ti { font-size: 26px; line-height: 1; margin-bottom: 6px; }

/* giving (the same buttons and links as the show site) */
.give .btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 0 0 10px; border: 0; border-radius: 12px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; color: #fff; }
.btn.venmo { background: var(--venmo); } .btn.paypal { background: var(--paypal); color: var(--paypal-text); } .btn.cashapp { background: var(--cashapp); } .btn.zelle { background: var(--zelle); }
.logo-pay { width: 22px; height: 22px; flex: none; } .logo-pay.wide { width: 84px; height: 17px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zbox { background: rgba(109,30,212,.16); border: 1px solid rgba(109,30,212,.5); border-radius: 12px; padding: 14px; margin: -2px 0 12px; font-size: 15px; }
.zrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.zrow code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: rgba(0,0,0,.25); padding: 10px; border-radius: 10px; font: 600 16px/1.3 ui-monospace, Menlo, monospace; }
.zrow button { flex: none; border: 0; border-radius: 10px; padding: 10px 14px; background: var(--zelle); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }

/* contact */
.mail { display: inline-block; margin-top: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cform { display: flex; flex-direction: column; gap: 14px; }
.cform label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.cform input, .cform textarea { font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.22); color: inherit; width: 100%; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #ffb4b4; font-size: 14px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding-bottom: env(safe-area-inset-bottom); }
.footin { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
.footin .nonprofit { flex-basis: 100%; font-size: 13px; }

/* Visit: map + tonight's weather notice */
.big { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; }
.mapbox { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; margin-bottom: 16px; background: #0f1530; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.where .ctas { margin-top: 0; }
.notice { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: #4a3a06; border: 1px solid #c9a227; color: #fff3c4; font-weight: 600; }
.notice .ni { font-size: 1.5rem; }

/* Sponsors page */
.spg { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.spg.main { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sp { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.spl { display: flex; align-items: center; justify-content: center; height: 110px; padding: 14px; border-radius: 16px; background: #fff; overflow: hidden; }
.sp.main .spl { height: 160px; padding: 18px 22px; }
.spl img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.spl b { color: #13224a; font-size: 18px; text-align: center; }
.spn { text-align: center; font-weight: 600; color: var(--muted); }
a.sp:hover .spl { outline: 3px solid var(--blue2); }
.spask { margin-top: 12px; }

/* Media cards with the link's share picture */
.mcard.pic { padding-top: 0; overflow: hidden; }
.mimg { display: block; margin: 0 -20px 12px; aspect-ratio: 1.91 / 1; background: #0f1530; overflow: hidden; }
.mimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.mcard.pic:hover .mimg img { transform: scale(1.03); }

/* Events */
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 420px) { .evgrid { grid-template-columns: 1fr; } }
.evh { grid-column: 1 / -1; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 16px 0 0; font-family: inherit; }
.ev { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ev.today { border-color: rgba(255,207,107,.7); background: rgba(255,207,107,.08); }
.evd { flex: none; width: 60px; padding: 6px 0; border-radius: 12px; background: rgba(91,156,255,.16); text-align: center; line-height: 1.1; }
.evd span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.evd b { display: block; font-size: 26px; margin: 2px 0; font-family: var(--serif); }
.ev.today .evd { background: rgba(255,207,107,.22); } .ev.today .evd span { color: var(--flame); }
.evb { min-width: 0; flex: 1; }
.evt { font-size: 14px; color: var(--muted); font-weight: 600; }
.evtoday { font-style: normal; color: #1b1300; background: var(--flame); border-radius: 999px; padding: 1px 8px; margin-right: 6px; font-size: 12px; }
.evw { font: 650 18px/1.3 var(--serif); margin: 2px 0 6px; }
.evp { display: inline-block; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.evx { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; }
.evhost { background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.evnote { font-size: 15px; color: var(--muted); margin: 18px 2px 0; }
.evnote.hi { color: var(--ink); background: linear-gradient(135deg, rgba(255,207,107,.16), rgba(91,156,255,.12)); border: 1px solid rgba(255,207,107,.45); border-radius: 14px; padding: 12px 14px; }
.evpic { display: block; margin-top: 12px; max-width: 320px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.evpic img { display: block; width: 100%; height: auto; }

/* sponsor strip above the footer on every page */
.spstrip { border-top: 1px solid var(--line); margin-top: 24px; padding: 22px 0 6px; }
.sph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.sph a { text-transform: none; letter-spacing: 0; font-size: 14px; }
.sprow { display: flex; flex-wrap: wrap; gap: 12px; }
.sps { display: flex; align-items: center; justify-content: center; height: 64px; min-width: 120px; max-width: 200px; padding: 8px 14px; border-radius: 12px; background: #fff; text-decoration: none; }
.sps.main { height: 80px; min-width: 150px; }
.sps img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sps b { color: #13224a; font-size: 14px; text-align: center; }
.spstrip + .foot { margin-top: 12px; }

/* Listen live */
.live { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 22px; width: 100%; box-sizing: border-box; padding: 16px 18px; max-width: 460px; border-radius: 18px; background: rgba(91,156,255,.10); border: 1px solid rgba(91,156,255,.35); }
.livest { font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.livest b { font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.on { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.cta.listen { width: 100%; font-size: 18px; min-height: 54px; background: linear-gradient(135deg, #e8b84a, #ffcf6b); color: #1b1300; }
.cta.listen:hover { background: linear-gradient(135deg, #f0c45a, #ffd98a); }
.livehint { font-size: 13px; color: var(--muted); }
