/* "Shabbat evening in Lamorinda": a proposed new look, loaded after site.css only in preview (?look=new; ?look=old to leave).
   Tallit blue (techelet) leads, a deep evening blue frames the page, candle gold is kept for the one most important action,
   white linen and Jerusalem-stone panels replace the cream paper. Headings: Frank Ruhl Libre (English and Hebrew in one
   family); text: Rubik (English, Hebrew and Russian). Flat cards with stone borders; a thin double tallit stripe is the mark. */
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 500; font-display: swap; src: url(/assets/fonts/frank-ruhl-libre-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 700; font-display: swap; src: url(/assets/fonts/frank-ruhl-libre-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(/assets/fonts/rubik-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url(/assets/fonts/rubik-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(/assets/fonts/rubik-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url(/assets/fonts/rubik-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url(/assets/fonts/rubik-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url(/assets/fonts/rubik-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --linen: #fbfaf6; --stone: #ece4d3; --stone-2: #dfd3bb; --techelet: #24427a; --techelet-2: #33589c; --evening: #16203a;
  --candle: #e3ad3c; --candle-ink: #8a5d06; --ink: #1d2433; --muted: #5d6576;
  --bg: var(--linen); --soft: var(--stone); --card: #fff; --line: #e2d9c6;
  --navy: var(--evening); --navy-2: var(--techelet); --gold: var(--candle); --gold-2: #f0c35e; --gold-ink: var(--candle-ink); --link: var(--techelet-2);
  --serif: "Frank Ruhl Libre", "Lora", Georgia, serif; --sans: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --hand: var(--serif);
  --r: 8px; --shadow: none;
  --stripe: linear-gradient(var(--techelet), var(--techelet)) 0 0 / 100% 3px no-repeat, linear-gradient(var(--techelet), var(--techelet)) 0 6px / 100% 1px no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root { --linen: #121726; --stone: #1b2236; --line: #2b3550; --card: #182033; --ink: #ecebe4; --muted: #aab1c2; --bg: var(--linen); --soft: var(--stone);
    --link: #9cb8f0; --candle-ink: #f0c35e; --gold-ink: #f0c35e; --techelet: #6f93d6; }
}

body { font: 400 17px/1.65 var(--sans); background: var(--bg); color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
[lang="ru"] h1, [lang="ru"] h2, [lang="ru"] h3 { font-family: "Lora", Georgia, serif; font-weight: 600; }
[dir="rtl"] body { font-family: var(--sans); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Frank Ruhl Libre", serif; }

/* The handwritten touches become quiet serif lines in candle ink. */
.eyebrow, .bn-eyebrow, .sb-t .sb-eyebrow, .hand { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.3; }
.hand { font-size: 1.1em; }
.bn-eyebrow, .sb-t .sb-eyebrow { color: var(--gold-2); font-size: 1.1rem; }

/* Frame: the evening-blue strip and footer carry the tallit stripe. */
.topstrip { background: var(--evening); color: #e9dcb8; letter-spacing: .01em; }
.hdr { background: color-mix(in srgb, var(--linen) 94%, transparent); border-bottom: 1px solid var(--line); }
.brand { font: 700 1.2rem var(--serif); color: var(--evening); }
.ftr { background: var(--evening); position: relative; padding-top: 52px; }
.ftr::before { content: ""; position: absolute; inset: 18px 0 auto; height: 7px; background: linear-gradient(#c9b47e, #c9b47e) 0 0 / 100% 2px no-repeat, linear-gradient(#c9b47e, #c9b47e) 0 5px / 100% 1px no-repeat; opacity: .55; }
.ftr-name { font: 700 1.3rem var(--serif); }
.ftr-h { text-transform: none; letter-spacing: 0; font: 500 1rem var(--serif); color: var(--gold-2); }

/* Sections: a short double stripe under section titles instead of the wavy line. */
.sec-h h2 { padding-bottom: 14px; }
.sec-h h2::after { width: 56px; height: 7px; border-radius: 0; background: var(--stripe); }
.sec-h > a { color: var(--techelet-2); }
.band { background: var(--stone); border-color: var(--line); }

/* Cards: flat, stone-edged, less rounded. */
.card, .hl-i, .gi-i, .try a, .try button, .stat, .gcard, .sb { border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); }
.gcard:hover, .card a:hover { border-color: var(--techelet); }

/* Buttons: tallit blue by default; candle gold only for the one main action (Donate, RSVP). */
.btn { border-radius: 6px; font-weight: 500; letter-spacing: .01em; }
.btn:hover { transform: none; filter: none; }
.btn.gold { background: var(--candle); border-color: var(--candle); color: #23180a; box-shadow: none; }
.btn.gold:hover { background: #eebb4d; }
.btn.ghost { border-color: var(--stone-2); }
.btn.ghost:hover { border-color: var(--techelet); color: var(--techelet); }
.chip { border-radius: 6px; background: #fff; border-color: var(--line); font-weight: 500; }
.chip.on, .chip:hover { background: var(--techelet); border-color: var(--techelet); color: #fff; }

/* This Shabbat: the band reads like an evening sky with the times set in the heading face. */
.shabbat-strip { background: var(--evening); color: #e9e6dc; border: 0; }
.shabbat-strip strong, .shabbat-strip b { font-family: var(--serif); font-weight: 700; color: #fff; }
.shabbat-strip .muted, .shabbat-strip small, .shabbat-strip span { color: #c9cfdd; }
.shabbat-strip a:not(.btn) { color: var(--gold-2); }
.shabbat-strip .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }

/* Big banners: a solid evening panel behind the words instead of a brown fade. */
.bn-text h1, .bn-text h2 { text-wrap: balance; }

/* One orchestrated moment: the banner words rise once on load (never for people who prefer less motion). */
@media (prefers-reduced-motion: no-preference) {
  .bn-text > * { animation: look-rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .bn-text > *:nth-child(2) { animation-delay: .08s; } .bn-text > *:nth-child(3) { animation-delay: .16s; } .bn-text > *:nth-child(4) { animation-delay: .24s; }
  details > summary + * { animation: look-open .2s ease-out; }
}
@keyframes look-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes look-open { from { opacity: 0; } to { opacity: 1; } }

/* Keyboard focus stays clearly visible. */
:focus-visible { outline: 3px solid var(--candle); outline-offset: 2px; }

/* Phones: comfortable tap targets and calmer heading sizes. */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topstrip { font-size: .8rem; padding: 5px 10px; }
  .brand { font-size: 1.05rem; }
  .btn { min-height: 46px; }
}

/* Banners and smaller banners: every theme becomes evening blue (no brown fades), the photo still shows through. */
.bn, .bn.theme-blue, .bn.theme-green, .bn.theme-gold, .bn.theme-burgundy, .sb, .sb.theme-navy, .sb.theme-green, .sb.theme-gold, .sb.theme-burgundy { --b1: #16203a; --b2: #24427a; }
.bn { background: linear-gradient(120deg, var(--b1), var(--b2)); }
.bn.has-img::after { background: linear-gradient(90deg, rgba(22,32,58,.9), rgba(22,32,58,.45) 58%, rgba(22,32,58,.05)); }
.bn.has-img .bn-eyebrow { text-shadow: none; font-weight: 500; }
@media (max-width: 700px) {
  .bn.has-img::after { background: linear-gradient(0deg, #16203a 46%, rgba(22,32,58,.1)); }
}

/* The mark: the date line at the very top is set on linen in tallit blue, edged by the double stripe. */
.topstrip { background: var(--linen); color: var(--techelet); font-weight: 500; position: relative; padding-bottom: 12px; }
.topstrip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--stripe); }
@media (prefers-color-scheme: dark) { .topstrip { background: var(--evening); color: #c9d6f2; } }

/* Program tabs: tallit blue for the page you are on. */
.prog-tabs a { border-radius: 6px; background: #fff; font-weight: 500; }
.prog-tabs a[aria-current] { background: var(--techelet); border-color: var(--techelet); color: #fff; }
