/* ════════════════════════════════════════════════════════════════════════
   noahide.life — shared stylesheet
   A portal for the Bnei Noah world. Sister to shuk.world / shuk.love.
   Theme: dawn light & study. Signature: the covenant rainbow (the bow
   in the clouds) used as a soft accent on warm parchment.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --void:        #2E2A22;   /* dark warm ink — text on accents */
  --night:       #FFFFFF;   /* brightest surface */
  --night-2:     #FDFBF6;   /* warm white surface */
  --dusk:        #F4EDE1;   /* warm panel */
  --dusk-2:      #EEE6D6;   /* warm panel 2 */
  --line:        #E7DDCB;   /* warm border */
  --line-soft:   #F0E8DA;   /* softer border */
  --indigo:      #C0613A;   /* deep terracotta — single accent (badges/avatars/focus) */
  --indigo-2:    #A4502D;   /* darker terracotta (hover) */
  --indigo-soft: #B05932;   /* readable terracotta accent text / links */
  --star:        #33302A;   /* headings / strongest ink */
  --mist:        #5E574B;   /* body text */
  --haze:        #9A9281;   /* muted text */
  --gold:        #B07E2A;   /* warm amber accent (readable on light) */
  --gold-soft:   #D9A441;
  --coral:       #D9734E;   /* terracotta — warm primary pop */
  --honey:       #E0A33F;   /* sunny amber */
  --blush:       #C98BA0;   /* soft rose */
  /* the covenant light — a soft dawn rainbow (the bow in the clouds) */
  --bow: linear-gradient(100deg, #7FA2CE 0%, #B79AC9 30%, #E0926B 64%, #D9AE54 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #F6EFE2;
  color: var(--mist);
  font-family: "Inter Tight", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
body::before { content: none; }
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(217,115,78,0.22); color: var(--star); }

/* ─── the bow: a hairline rainbow rule ───────────────────────────────── */
.bow-rule { height: 2px; border: none; background: var(--bow); opacity: 0.9; border-radius: 2px; }
.bow-rule.thin { height: 1.5px; opacity: 0.7; }

/* ─── Top family strip ───────────────────────────────────────────────── */
.strip {
  background: var(--dusk);
  color: var(--mist);
  padding: 10px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.strip .left b { color: var(--star); font-weight: 500; border-bottom: 1px solid; border-image: var(--bow) 1; padding-bottom: 2px; }
.strip .left .dim { color: var(--haze); }
.strip .right { color: var(--haze); display: flex; gap: 16px; }
.strip .right a { transition: color 160ms; }
.strip .right a:hover { color: var(--indigo-soft); }

/* ─── Header ─────────────────────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 85;
  border-bottom: 1px solid var(--line);
  background: rgba(250,244,234,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header.site .row {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--star);
  font-variation-settings: "SOFT" 30, "WONK" 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.wordmark .dot {
  width: 0.42em; height: 0.42em; border-radius: 50%;
  background: #E8702A;
  display: inline-block; margin: 0 0.005em 0 0.01em;
  align-self: center; position: relative; top: 0.07em;
  box-shadow: 0 0 12px rgba(232,112,42,0.45);
}
.wordmark .tld { font-style: italic; font-weight: 300; color: var(--indigo-soft); font-variation-settings: "SOFT" 80, "WONK" 1; }
.wordmark .sub { font-size: 0.6em; color: var(--haze); font-style: normal; font-weight: 400; margin-left: 8px; align-self: center; }

nav.primary { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; flex-wrap: wrap; }
nav.primary a { color: var(--mist); transition: color 200ms; }
nav.primary a:hover, nav.primary a.active { color: var(--coral); }
nav.primary a.active { position: relative; }
nav.primary .cta {
  background: linear-gradient(135deg, var(--coral), var(--honey));
  color: #3A1D08;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 200ms, box-shadow 200ms;
  box-shadow: 0 2px 10px rgba(217,115,78,0.28);
}
nav.primary .cta:hover { filter: brightness(1.05); box-shadow: 0 6px 20px rgba(217,115,78,0.4); }

/* hamburger — hidden until the nav no longer fits */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 40px; padding: 0 11px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color 180ms, background 180ms; }
.nav-toggle:hover { border-color: var(--coral); background: var(--night-2); }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--star); border-radius: 2px; transition: transform 220ms ease, opacity 160ms ease; }
header.site.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.site.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  header.site .row { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  nav.primary {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 12px 24px 20px;
    background: var(--night-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(60,50,30,0.12);
    max-height: calc(100vh - 100%); overflow-y: auto;
    z-index: 84;
  }
  header.site.nav-open nav.primary { display: flex; }
  nav.primary a { width: 100%; padding: 10px 2px; font-size: 1rem; }
  nav.primary .cta { align-self: flex-start; width: auto; margin-top: 8px; padding: 11px 22px; }
  nav.primary .search-btn { align-self: flex-start; margin: 4px 0; }
  nav.primary .lang-toggle { width: 100%; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* lang toggle */
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--haze); }
.lang-toggle button { background: none; border: none; padding: 4px 7px; font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; border-radius: 4px; transition: color 150ms; }
.lang-toggle button:hover { color: var(--star); }
.lang-toggle button.active { color: var(--coral); font-weight: 600; }
.lang-toggle .sep { color: var(--line); }

/* ─── Today bar ──────────────────────────────────────────────────────── */
.today-bar { background: var(--dusk); border-bottom: 1px solid var(--line); }
.today-wrap { max-width: 1240px; margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; gap: 18px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.05em; color: var(--haze); flex-wrap: wrap; }
.today-wrap .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.today-wrap .tb-item b { color: var(--mist); font-weight: 600; }
.today-wrap .tb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.today-wrap .tb-verse { color: var(--indigo-soft); font-style: italic; font-family: "Fraunces", Georgia, serif; font-size: 12.5px; letter-spacing: 0; margin-left: auto; opacity: 0.95; }

/* ─── Breaking news ticker ───────────────────────────────────────────── */
.news-ticker-strip { background: var(--dusk-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; overflow: hidden; height: 34px; }
.ticker-label { flex-shrink: 0; padding: 0 14px 0 24px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.16em; color: var(--coral); font-weight: 600; display: flex; align-items: center; border-right: 1px solid var(--line); height: 100%; }
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; }
.ticker-scroll { display: flex; gap: 0; white-space: nowrap; animation: tickerScroll 45s linear infinite; will-change: transform; }
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-item { font-family: "Inter Tight", sans-serif; font-size: 12.5px; color: var(--mist); padding: 0 14px; }
.ticker-item b { color: var(--star); font-weight: 600; }
.ticker-sep { color: var(--coral); font-size: 8px; opacity: 0.7; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Board feed (homepage) ──────────────────────────────────────────── */
.board-feed { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; background: var(--night-2); box-shadow: 0 1px 3px rgba(60,50,30,0.05); }
.bf-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bf-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.bf-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--night); transition: border-color 200ms, box-shadow 200ms; }
.bf-item:hover { border-color: var(--coral); box-shadow: 0 4px 14px rgba(60,50,30,0.07); }
.bf-item .bf-q { font-family: "Fraunces", Georgia, serif; font-size: 0.92rem; color: var(--star); font-weight: 400; line-height: 1.35; flex: 1; }
.bf-item .bf-meta { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--haze); margin-top: 5px; letter-spacing: 0.04em; }
.bf-item .bf-votes { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--indigo-soft); gap: 2px; }
.bf-item .bf-votes span:first-child { font-size: 9px; color: var(--haze); }

/* ─── Section scaffolding ────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }
section.tight { padding: 52px 0; }
/* cohesive editorial surfaces — one warm system: a consistent fine paper
   grain across every section, with two closely-related warm tones gently
   alternating for rhythm (no competing hues). Whitespace separates them. */
body > section { position: relative; background-color: #F6EFE2; background-image: radial-gradient(rgba(120,100,70,0.035) 0.5px, transparent 0.7px); background-size: 4px 4px; }
body > section:nth-of-type(even):not(.cta-band) { background-color: #FCF9F2; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--haze); letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.section-title { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.95rem, 3.6vw, 2.9rem); font-weight: 400; color: var(--star); letter-spacing: -0.025em; margin-top: 10px; line-height: 1.06; }
.section-title.linked { cursor: pointer; transition: color 180ms; }
.section-title.linked:hover { color: var(--coral); }
.section-title.linked:hover em { color: var(--coral); }
.section-title.linked::after { content: " \2192"; font-style: normal; font-size: 0.62em; color: var(--coral); opacity: 0; transition: opacity 180ms, margin-left 180ms; margin-left: 2px; vertical-align: middle; }
.section-title.linked:hover::after { opacity: 1; margin-left: 8px; }
.section-title em { font-style: italic; font-weight: 400; color: var(--indigo-soft); font-variation-settings: "SOFT" 80, "WONK" 1; }
.section-intro { font-size: 1rem; line-height: 1.6; color: var(--mist); max-width: 60ch; margin-top: 14px; }
.section-link { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--indigo-soft); white-space: nowrap; transition: color 160ms; align-self: flex-end; }
.section-link:hover { color: var(--coral); }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 54px; align-items: center; }
.hero-eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--haze); letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(217,115,78,0.55); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,115,78,0.55); } 70% { box-shadow: 0 0 0 8px rgba(217,115,78,0); } 100% { box-shadow: 0 0 0 0 rgba(217,115,78,0); } }
.hero-title { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; color: var(--star); }
.hero-title em { font-style: italic; font-weight: 400; color: var(--indigo-soft); font-variation-settings: "SOFT" 90, "WONK" 1; }
.hero-title .bow-word { color: var(--coral); -webkit-text-fill-color: var(--coral); font-style: italic; font-weight: 400; }
.hero-sub { margin-top: 24px; font-size: 1.12rem; line-height: 1.55; color: var(--mist); max-width: 52ch; }
.hero-ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-aside { border: 1px solid var(--line); border-radius: 16px; background: var(--night); padding: 0; overflow: hidden; box-shadow: 0 8px 30px rgba(60,50,30,0.08); }
.hero-aside-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, var(--dusk-2), var(--dusk)); }
.hero-aside-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-aside-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(40,30,18,0.5)); pointer-events: none; }
.hero-aside-image figcaption { position: absolute; left: 20px; right: 20px; bottom: 14px; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 300; font-size: 0.96rem; color: rgba(255,250,244,0.97); line-height: 1.35; text-shadow: 0 1px 14px rgba(0,0,0,0.7); z-index: 1; }
.hero-aside-image figcaption .src { display: block; margin-top: 6px; font-family: "JetBrains Mono", monospace; font-style: normal; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey); opacity: 0.95; }
.hero-aside-inner { border-radius: 0; background: var(--night-2); padding: 22px 24px 20px; }
.hero-aside h4 { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero-stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-row .v { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--star); font-weight: 500; }
.hero-stat-row .v em { color: var(--coral); font-style: italic; }
.hero-stat-row .l { font-size: 0.82rem; color: var(--haze); align-self: center; text-align: right; max-width: 18ch; line-height: 1.35; }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; cursor: pointer; border: none; transition: filter 200ms, border-color 200ms, color 200ms, box-shadow 200ms, background 200ms; font-family: inherit; }
.btn.primary { background: linear-gradient(135deg, var(--coral), var(--honey)); color: #3A1D08; font-weight: 600; box-shadow: 0 3px 14px rgba(217,115,78,0.28); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 8px 28px rgba(217,115,78,0.4); }
.btn.ghost { background: transparent; color: var(--star); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn.gold { background: var(--gold-soft); color: var(--void); }
.btn.gold:hover { filter: brightness(1.05); }

/* ─── Teaching of the day ─────────────────────────────────────────────── */
.totd { border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); padding: 26px 30px; display: flex; gap: 26px; align-items: flex-start; box-shadow: 0 1px 3px rgba(60,50,30,0.05); }
.totd .totd-mark { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; padding-top: 8px; flex-shrink: 0; }
.totd .totd-text { font-family: "Fraunces", Georgia, serif; font-size: 1.32rem; font-weight: 400; line-height: 1.42; color: var(--star); letter-spacing: -0.01em; }
.totd .totd-text em { font-style: italic; color: var(--indigo-soft); }
@media (max-width: 640px) { .totd { flex-direction: column; gap: 14px; padding: 22px 22px; } .totd .totd-text { font-size: 1.15rem; } }

/* ─── Featured video (click-to-play facade) ──────────────────────────── */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: #2A241C; box-shadow: 0 8px 30px rgba(60,50,30,0.10); }
.video-embed .video-poster { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; transition: opacity 220ms, transform 700ms ease; }
.video-embed:hover .video-poster { opacity: 1; transform: scale(1.02); }
.video-embed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,30,18,0.05), rgba(40,30,18,0.45)); pointer-events: none; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80px; height: 80px; border-radius: 50%; border: none; background: rgba(217,115,78,0.96); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 220ms, background 220ms; z-index: 2; box-shadow: 0 8px 30px rgba(40,30,18,0.4); }
.video-embed:hover .video-play { transform: translate(-50%,-50%) scale(1.08); background: var(--coral); }
.video-play span { display: block; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.video-meta { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em; color: rgba(255,250,244,0.95); text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
.video-fallback { position: absolute; right: 16px; bottom: 14px; z-index: 3; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.06em; color: rgba(255,250,244,0.82); border: 1px solid rgba(255,250,244,0.3); border-radius: 999px; padding: 5px 12px; transition: color 160ms, border-color 160ms; }
.video-fallback:hover { color: var(--honey); border-color: var(--honey); }
.video-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── Cards (generic) ────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 20px; }
.card-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 220ms, transform 220ms, box-shadow 220ms;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(60,50,30,0.05);
}
.card:hover { border-color: var(--coral); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(60,50,30,0.12); }
.card .k { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.card h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 500; color: var(--star); letter-spacing: -0.01em; line-height: 1.18; margin-bottom: 8px; }
.card h3 em { font-style: italic; color: var(--indigo-soft); }
.card .heb { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 1.05rem; color: var(--indigo-soft); margin-bottom: 10px; direction: rtl; }
.card p { font-size: 0.93rem; line-height: 1.6; color: var(--mist); }
.card .go { margin-top: 16px; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.05em; color: var(--indigo-soft); transition: color 160ms; }
.card:hover .go { color: var(--coral); }

/* ─── Seven Laws ─────────────────────────────────────────────────────── */
.laws-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.law {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 22px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--night-2);
  transition: border-color 220ms, background 220ms, box-shadow 220ms;
  box-shadow: 0 1px 3px rgba(60,50,30,0.05);
}
.law:hover { border-color: var(--coral); background: var(--night); box-shadow: 0 10px 28px rgba(60,50,30,0.10); }
.law .num { font-family: "Fraunces", Georgia, serif; font-size: 2rem; font-weight: 400; font-style: italic; color: var(--coral); line-height: 1; opacity: 0.9; }
.law h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; font-weight: 500; color: var(--star); margin-bottom: 3px; }
.law .heb { font-family: "Frank Ruhl Libre", Georgia, serif; font-size: 0.95rem; color: var(--gold); direction: rtl; margin-bottom: 8px; }
.law p { font-size: 0.9rem; line-height: 1.55; color: var(--mist); }

/* ─── Figureheads ────────────────────────────────────────────────────── */
.figure { display: flex; flex-direction: column; }
.figure .portrait { width: 50px; height: 50px; border-radius: 12px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--dusk-2), var(--dusk)); border: 1px solid var(--line); flex-shrink: 0; }
.figure .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.figure .portrait .mono { font-family: "Frank Ruhl Libre", Georgia, serif; font-weight: 500; font-size: 1.1rem; color: var(--gold); direction: rtl; letter-spacing: 0; }
.figure .name { font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; color: var(--star); font-weight: 500; }
.figure .role { font-size: 0.86rem; color: var(--haze); margin-top: 3px; }
.figure p { font-size: 0.9rem; line-height: 1.55; color: var(--mist); margin-top: 12px; }
.figure .go { margin-top: 14px; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.05em; color: var(--indigo-soft); }

/* ─── FAQ accordion ──────────────────────────────────────────────────── */
.faq-list { max-width: 780px; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--night-2); }
.faq summary { padding: 20px 24px; font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; font-weight: 500; color: var(--star); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: "JetBrains Mono", monospace; font-size: 1rem; color: var(--coral); flex-shrink: 0; width: 20px; text-align: center; transition: transform 200ms; }
.faq[open] summary::before { content: "−"; color: var(--coral); }
.faq-body { padding: 0 24px 22px 56px; font-size: 0.94rem; line-height: 1.6; color: var(--mist); }

/* ─── Community directory ─────────────────────────────────────────────── */
.dir-region { margin-bottom: 28px; }
.dir-label { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; padding-left: 2px; }
.dir-grid { display: grid; gap: 10px; }

/* ─── Sites directory ────────────────────────────────────────────────── */
.site-row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--night-2); transition: border-color 200ms, background 200ms, box-shadow 200ms; margin-bottom: 12px; }
.site-row:hover { border-color: var(--coral); background: var(--night); box-shadow: 0 6px 18px rgba(60,50,30,0.08); }
.site-row .badge { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; color: #fff; flex-shrink: 0; background: linear-gradient(140deg, var(--coral), #A4502D); }
.site-row .body { flex: 1; min-width: 0; }
.site-row .body .name { font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; color: var(--star); }
.site-row .body .desc { font-size: 0.88rem; color: var(--mist); line-height: 1.5; margin-top: 3px; }
.site-row .body .url { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--haze); margin-top: 5px; }
.site-row .arrow { color: var(--haze); font-size: 1.1rem; transition: color 200ms, transform 200ms; }
.site-row:hover .arrow { color: var(--coral); transform: translate(2px,-2px); }

/* ─── Voices / messages wall ─────────────────────────────────────────── */
.voice { break-inside: avoid; border: 1px solid var(--line); border-radius: 13px; padding: 22px 22px 18px; background: var(--night-2); margin-bottom: 18px; box-shadow: 0 1px 3px rgba(60,50,30,0.05); }
.voice .quote { font-family: "Fraunces", Georgia, serif; font-size: 1.06rem; line-height: 1.5; color: var(--star); font-weight: 400; }
.voice .quote::before { content: "\201C"; color: var(--coral); }
.voice .quote::after { content: "\201D"; color: var(--coral); }
.voice .by { margin-top: 14px; font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--haze); display: flex; align-items: center; gap: 10px; }
.voice .by .place { color: var(--indigo-soft); margin-left: auto; }
.voice .by .avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: 0.92rem; color: var(--star); background: linear-gradient(150deg, var(--dusk-2), var(--dusk)); overflow: hidden; }
.voice .by .avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice.has-photo { padding-top: 0; overflow: hidden; }
.voice.has-photo .voice-photo { margin: 0 -22px 18px; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: linear-gradient(150deg, var(--dusk-2), var(--dusk)); }
.voice.has-photo .voice-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.voice.has-photo:hover .voice-photo img { transform: scale(1.03); }
.voice.has-photo .voice-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(40,30,18,0.3)); pointer-events: none; }
.voices-masonry { columns: 3; column-gap: 18px; }

/* ─── Feature image / scene band ─────────────────────────────────────── */
.feature-image { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(150deg, var(--dusk-2), var(--dusk)); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-image figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,250,244,0.9); text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.scene-band { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); position: relative; background: linear-gradient(150deg, var(--dusk-2), var(--dusk)); box-shadow: 0 8px 30px rgba(60,50,30,0.10); }
.scene-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-band figcaption { position: absolute; left: 28px; bottom: 22px; right: 28px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,250,244,0.95); text-shadow: 0 1px 16px rgba(0,0,0,0.7); }

/* ─── Sponsor / ad slot ─────────────────────────────────────────────────
   Placeholder for paid placement. One slot per page max, clearly labeled.
   Standard dimensions inside .ad-frame — swap the inner content for the
   advertiser's creative (image, iframe, HTML5 embed, or AdSense snippet).
   ─────────────────────────────────────────────────────────────────────── */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto; }
.ad-slot .ad-label { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--haze); }
.ad-slot .ad-frame {
  width: 100%; max-width: 728px; height: 90px;
  background: var(--dusk);
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--haze); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em;
  text-align: center; padding: 12px;
  overflow: hidden;
}
.ad-slot .ad-frame .dims { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1rem; color: var(--indigo-soft); font-weight: 400; letter-spacing: 0; }
.ad-slot .ad-frame .hint { font-size: 9.5px; opacity: 0.8; max-width: 56ch; line-height: 1.5; }
@media (max-width: 700px) {
  .ad-slot .ad-frame { max-width: 320px; height: 100px; }
}

/* ─── Ask board (interactive) ────────────────────────────────────────── */
.ask-composer { border: 1px solid var(--line); border-radius: 16px; background: var(--night-2); padding: 26px; box-shadow: 0 1px 3px rgba(60,50,30,0.05); }
.ask-composer h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 500; color: var(--star); margin-bottom: 6px; }
.ask-composer p.hint { font-size: 0.9rem; color: var(--haze); margin-bottom: 18px; line-height: 1.5; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--night); border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; font-family: inherit; font-size: 0.95rem; color: var(--star); outline: none;
  transition: border-color 180ms, box-shadow 180ms; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,115,78,0.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--haze); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ask-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.ask-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--mist); cursor: pointer; transition: all 180ms; background: var(--night-2); }
.chip:hover { border-color: var(--coral); color: var(--star); }
.chip.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.ask-count { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--haze); letter-spacing: 0.05em; }

.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); padding: 22px 24px; margin-bottom: 16px; transition: border-color 200ms, box-shadow 200ms; box-shadow: 0 1px 3px rgba(60,50,30,0.05); }
.qa:hover { border-color: var(--line); box-shadow: 0 6px 18px rgba(60,50,30,0.07); }
.qa .qa-top { display: flex; gap: 18px; }
.qa .votes { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.qa .vote-btn { background: var(--night); border: 1px solid var(--line); color: var(--mist); width: 40px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 1rem; transition: all 160ms; display: flex; align-items: center; justify-content: center; }
.qa .vote-btn:hover { border-color: var(--coral); color: var(--coral); }
.qa .vote-btn.voted { background: rgba(217,115,78,0.14); border-color: var(--coral); color: var(--coral); }
.qa .vote-num { font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; color: var(--star); }
.qa .qa-body { flex: 1; min-width: 0; }
.qa .qa-tags { display: flex; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.qa .qa-tag { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo-soft); background: rgba(217,115,78,0.10); padding: 3px 9px; border-radius: 5px; }
.qa .qa-q { font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; color: var(--star); font-weight: 500; line-height: 1.3; }
.qa .qa-meta { margin-top: 9px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--haze); letter-spacing: 0.04em; display: flex; gap: 14px; flex-wrap: wrap; }
.qa .qa-meta .who { color: var(--mist); }
.qa .answers { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; }
.answer { display: flex; gap: 14px; }
.answer .av { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #fff; }
.answer .av.rabbi { background: linear-gradient(140deg, var(--gold-soft), #B3893A); color: #fff; }
.answer .av.member { background: linear-gradient(140deg, var(--coral), #A4502D); }
.answer .a-body { flex: 1; }
.answer .a-who { font-size: 0.86rem; color: var(--star); font-weight: 600; }
.answer .a-who .tag-rabbi { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 1px 6px; margin-left: 8px; }
.answer .a-text { font-size: 0.92rem; line-height: 1.55; color: var(--mist); margin-top: 5px; }
.answer .a-reply { font-family: "Fraunces", Georgia, serif; }
.qa .reply-toggle { margin-top: 14px; background: none; border: none; color: var(--indigo-soft); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.05em; cursor: pointer; padding: 0; transition: color 160ms; }
.qa .reply-toggle:hover { color: var(--coral); }
.reply-box { margin-top: 12px; display: none; }
.reply-box.open { display: block; }

/* ─── Get started stepper ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: 13px; padding: 22px 20px; background: var(--night-2); position: relative; box-shadow: 0 1px 3px rgba(60,50,30,0.05); }
.step .s-num { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--coral); margin-bottom: 14px; }
.step h4 { font-family: "Fraunces", Georgia, serif; font-size: 1.08rem; font-weight: 500; color: var(--star); margin-bottom: 8px; line-height: 1.2; }
.step p { font-size: 0.86rem; line-height: 1.5; color: var(--mist); }

/* ─── Events ─────────────────────────────────────────────────────────── */
.event { display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--night-2); margin-bottom: 12px; transition: border-color 200ms, box-shadow 200ms; }
.event:hover { border-color: var(--coral); box-shadow: 0 6px 18px rgba(60,50,30,0.08); }
.event .date { text-align: center; }
.event .date .d { font-family: "Fraunces", Georgia, serif; font-size: 1.9rem; color: var(--star); line-height: 1; }
.event .date .m { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-top: 5px; }
.event .e-body .e-title { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--star); }
.event .e-body .e-meta { font-size: 0.85rem; color: var(--haze); margin-top: 4px; }
.event .e-cta { font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.05em; color: var(--indigo-soft); white-space: nowrap; }

/* ─── CTA band ───────────────────────────────────────────────────────── */
.cta-band { border: none; background-color: #C96A3C; background-image: linear-gradient(135deg, #BF5C39 0%, #D98A3E 100%); background-size: auto; }
.cta-band .inner { text-align: center; padding: 18px 0; }
.cta-band h2 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; color: #FFF7EC; letter-spacing: -0.02em; line-height: 1.1; }
.cta-band h2 em { font-style: italic; color: #FBE2C2; }
.cta-band p { color: rgba(255,247,236,0.92); font-size: 1.05rem; margin-top: 16px; max-width: 50ch; margin-left: auto; margin-right: auto; line-height: 1.55; }
.cta-band .hero-ctas { justify-content: center; margin-top: 28px; }
.cta-band .btn.primary { background: #FFF7EC; color: #B4502E; box-shadow: 0 4px 18px rgba(60,20,8,0.22); }
.cta-band .btn.ghost { color: #FFF7EC; border-color: rgba(255,247,236,0.55); }
.cta-band .btn.ghost:hover { border-color: #FFF7EC; color: #FFF7EC; background: rgba(255,247,236,0.12); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--dusk); }
footer .f-top { max-width: 1240px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer .f-brand .wordmark { font-size: 1.4rem; }
footer .f-brand p { color: var(--haze); font-size: 0.9rem; line-height: 1.55; margin-top: 14px; max-width: 32ch; }
footer .f-col h5 { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
footer .f-col a { display: block; color: var(--mist); font-size: 0.9rem; padding: 5px 0; transition: color 160ms; }
footer .f-col a:hover { color: var(--coral); }
footer .f-bottom { border-top: 1px solid var(--line); }
footer .f-bottom .row { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--haze); text-transform: uppercase; flex-wrap: wrap; }
footer .f-bottom .heb { font-family: "Frank Ruhl Libre", Georgia, serif; text-transform: none; font-size: 1rem; color: var(--mist); }

/* ─── Bilingual (EN default, ES / PT on toggle) ──────────────────────── */
.lang-es, .lang-pt { display: none; }
body.es-mode .lang-en, body.pt-mode .lang-en { display: none; }
body.es-mode .lang-es { display: inline; }
body.pt-mode .lang-pt { display: inline; }
.lang-es-block { display: none; }
body.es-mode .lang-es-block { display: block; }
body.pt-mode .lang-pt-block { display: block; }

/* ─── Search ─────────────────────────────────────────────────────────── */
.search-btn { background: none; border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 50%; color: var(--haze); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color 150ms, color 150ms; flex-shrink: 0; padding: 0; }
.search-btn:hover { border-color: var(--coral); color: var(--coral); }
.search-btn svg { width: 14px; height: 14px; }
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(46,42,34,0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 24px 24px; }
.search-overlay.open { display: flex; }
.search-panel { width: 100%; max-width: 620px; background: var(--night-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(60,50,30,0.25); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.search-field svg { width: 18px; height: 18px; color: var(--haze); flex-shrink: 0; }
.search-field input { flex: 1; background: none; border: none; outline: none; color: var(--star); font-family: "Inter Tight", sans-serif; font-size: 1.1rem; }
.search-field input::placeholder { color: var(--haze); }
.search-field kbd { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--haze); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.search-result { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; cursor: pointer; transition: background 120ms; }
.search-result:hover, .search-result.active { background: rgba(217,115,78,0.10); }
.search-result .sr-title { font-family: "Fraunces", Georgia, serif; font-size: 1rem; color: var(--star); }
.search-result .sr-section { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.search-result .sr-desc { font-size: 0.84rem; color: var(--mist); margin-top: 3px; line-height: 1.45; }
.search-empty { padding: 30px 20px; text-align: center; color: var(--haze); font-size: 0.9rem; }
.search-hint { padding: 10px 16px; border-top: 1px solid var(--line-soft); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--haze); display: flex; gap: 16px; }
.search-hint span { display: inline-flex; align-items: center; gap: 5px; }
.search-hint kbd { border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--mist); }

/* ─── Reveal on scroll ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.2,0.7,0.3,1), transform 700ms cubic-bezier(0.2,0.7,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } body::before { animation: none; } }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .laws-grid { grid-template-columns: 1fr; }
  .card-grid.c3, .card-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .voices-masonry { columns: 2; }
  footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  section { padding: 48px 0; }
  .card-grid.c2, .card-grid.c3, .card-grid.c4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .voices-masonry { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: 64px 1fr; }
  .event .e-cta { grid-column: 2; }
  footer .f-top { grid-template-columns: 1fr; }
  nav.primary { gap: 14px; font-size: 0.85rem; }
  .today-wrap .tb-verse { display: none; }
}

/* ─── dreamsite credit badge — pin to bottom-right, keep unobtrusive ─── */
.ds-credit {
  position: fixed !important;
  right: 12px !important;
  bottom: 10px !important;
  left: auto !important;
  width: auto !important;
  padding: 5px 9px !important;
  z-index: 40 !important;
  pointer-events: none;
  opacity: 0.5 !important;
  transition: opacity 0.2s ease;
}
.ds-credit:hover { opacity: 1 !important; }
.ds-credit .ds-credit-link,
.ds-credit .ds-credit-note { pointer-events: auto; }
