/* ============================================================
   Insights Kabalísticos — Shared Design System
   Adapted from the Shavuot 5786 mini-app for a full website.
   Palettes: pergaminho (default warm parchment), oliveira (sage),
             raiz (bronze), crepusculo (midnight)
   ============================================================ */

:root {
  --bg:        #faf6eb;
  --bg-deep:   #f0e8d4;
  --bg-card:   #fcfaf2;
  --bg-elev:   #ffffff;
  --text:      #3d2817;
  --text-soft: #6b5337;
  --text-faint:#8a7456;
  --gold:      #b8860b;
  --gold-light:#d4a017;
  --gold-deep: #9a6f08;
  --gold-glow: rgba(184, 134, 11, 0.15);
  --accent:    #8b4513;
  --line:      rgba(184, 134, 11, 0.25);
  --shadow:    0 2px 12px rgba(61, 40, 23, 0.08);
  --shadow-deep: 0 8px 32px rgba(61, 40, 23, 0.14);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-heb:     'Frank Ruhl Libre', serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --max-w:       1140px;
  --max-w-prose: 720px;
  --header-h:    72px;
  --section-py:  clamp(56px, 9vw, 110px);
  --noise-opacity: 0.08;
}

/* Palette: OLIVEIRA — sage green leaves */
body[data-palette="oliveira"] {
  --bg: #f7f3e4; --bg-deep: #ede7cf; --bg-card: #fbf8eb;
  --text: #2e3a1a; --text-soft: #4f5e34; --text-faint: #76844e;
  --gold: #7e9039; --gold-light: #9aaf4d; --gold-deep: #5b6c22;
  --gold-glow: rgba(126, 144, 57, 0.18);
  --accent: #8b6f3a; --line: rgba(126, 144, 57, 0.28);
}
/* Palette: RAIZ — earthy bronze + walnut */
body[data-palette="raiz"] {
  --bg: #f5ecda; --bg-deep: #e8dabe; --bg-card: #f9f1e0;
  --text: #2e1f10; --text-soft: #5c4222; --text-faint: #8a6a3f;
  --gold: #9a6f33; --gold-light: #b78a4a; --gold-deep: #6c4c1d;
  --gold-glow: rgba(154, 111, 51, 0.18);
  --accent: #5c3a14; --line: rgba(108, 76, 29, 0.28);
}
/* Palette: CREPUSCULO — Tikun midnight */
body[data-palette="crepusculo"] {
  --bg: #14182a; --bg-deep: #1d2238; --bg-card: #1d2238; --bg-elev: #232845;
  --text: #ece4cd; --text-soft: #c8bfa6; --text-faint: #8e8676;
  --gold: #d9b665; --gold-light: #ecd083; --gold-deep: #b89143;
  --gold-glow: rgba(217, 182, 101, 0.20);
  --accent: #ecd083; --line: rgba(217, 182, 101, 0.22);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 8px 36px rgba(0, 0, 0, 0.50);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse at top left, rgba(212, 160, 23, calc(0.5 * var(--noise-opacity))) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 69, 19, calc(0.4 * var(--noise-opacity))) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.55 0 0 0 0 0.3 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: background-color .5s ease, color .5s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
}
.container-prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
}
section { padding: var(--section-py) 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  line-height: 1.18;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-style: italic;
  letter-spacing: -.01em;
  font-weight: 500;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  margin-bottom: .6em;
}
h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-style: italic;
  font-weight: 500;
}
h4 {
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .02em;
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
em { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '✦';
  font-style: normal;
  margin-right: 8px;
  color: var(--gold);
  font-size: .85em;
}

.heb {
  font-family: var(--font-heb);
  color: var(--gold-deep);
  font-weight: 500;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 1.4em;
  font-weight: 400;
}

.center { text-align: center; }
.muted { color: var(--text-faint); }

/* Divider with a single Hebrew letter or star */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px 0;
  color: var(--gold-deep);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.ornament-icon {
  font-family: var(--font-heb);
  font-size: 22px;
  line-height: 1;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 246, 235, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
body[data-palette="crepusculo"] .site-header { background: rgba(20, 24, 42, .85); }
body[data-palette="oliveira"]   .site-header { background: rgba(247, 243, 228, .88); }
body[data-palette="raiz"]       .site-header { background: rgba(245, 236, 218, .88); }

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(61, 40, 23, .12), inset 0 0 0 1px rgba(255,255,255,.4);
}
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: .03em;
  line-height: 1.15;
}
.brand-name strong {
  display: block;
  font-style: normal;
  font-size: 13.5px;
  color: var(--gold-deep);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.nav-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: all .2s ease;
}
.nav-menu a:hover { background: var(--bg-deep); color: var(--gold-deep); }
.nav-menu a.active {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 1px 4px rgba(184, 134, 11, .30);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--gold-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; }

/* Palette dropdown */
.palette-dropdown {
  position: relative;
}
.palette-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-deep);
  display: none;
  z-index: 100;
}
.palette-menu.open { display: block; }
.palette-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-soft);
  text-align: left;
  transition: background .15s;
}
.palette-option:hover { background: var(--bg-deep); }
.palette-option.active { color: var(--gold-deep); font-weight: 600; }
.palette-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}

/* Language toggle pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg-deep);
}
.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-faint);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: all .2s ease;
}
.lang-btn.active {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 1px 4px rgba(184, 134, 11, .30);
}

/* Mobile menu toggle */
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 12px 14px; width: 100%; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .brand-name { font-size: 13px; }
  .brand-name strong { font-size: 11.5px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 80px);
  text-align: center;
  position: relative;
}
.hero-letter {
  font-family: var(--font-heb);
  font-size: clamp(110px, 18vw, 200px);
  color: var(--gold);
  opacity: .14;
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  text-shadow: 0 0 60px var(--gold-glow);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  color: var(--gold-deep);
  font-style: normal;
  font-family: var(--font-heb);
}
.hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-quote {
  display: inline-block;
  padding: 12px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--gold-deep);
  letter-spacing: .04em;
  margin: 24px 0 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(184, 134, 11, .25);
}
.btn-primary:hover {
  background: var(--gold-deep);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(184, 134, 11, .35);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--gold-deep);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--bg-card);
  color: var(--gold);
}
.btn-arrow::after {
  content: '↗';
  font-style: normal;
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translate(2px, -2px); }

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ============================================================
   CARDS — Journey & Article
   ============================================================ */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
  border-color: var(--gold);
  color: inherit;
}
.card-heb {
  font-family: var(--font-heb);
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.card-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 12px;
}
.card-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 18px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint);
  letter-spacing: .03em;
}
.card-cta {
  color: var(--gold-deep);
  font-weight: 600;
  font-style: normal;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-cta::after {
  content: '→';
  transition: transform .2s ease;
}
.card:hover .card-cta::after { transform: translateX(4px); }

/* Featured (big) card variant */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(184, 134, 11, 0.06) 100%);
}
@media (min-width: 720px) {
  .card-featured { grid-template-columns: 220px 1fr; align-items: center; }
}
.card-featured .card-heb { font-size: 72px; }
.card-featured .card-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* Article cards in horizontal list (insights page) */
.article-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.article-row:hover { background: rgba(184, 134, 11, .04); color: inherit; }
.article-row .card-heb { font-size: 56px; margin: 0; text-align: center; }
.article-row .col-text { min-width: 0; }
.article-row .card-title { font-size: 1.25rem; margin-bottom: 6px; }
.article-row .card-excerpt {
  font-size: 14.5px; margin-bottom: 0; line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-row .col-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; font-size: 12px; color: var(--text-faint);
  font-style: italic; letter-spacing: .04em;
}
@media (max-width: 640px) {
  .article-row { grid-template-columns: 56px 1fr; }
  .article-row .col-meta { display: none; }
  .article-row .card-heb { font-size: 42px; }
}

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184, 134, 11, .25);
}
.chip-count {
  font-size: 11px;
  margin-left: 6px;
  opacity: .7;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto 32px;
}
.search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px 18px 56px;
  outline: none;
  transition: all .25s ease;
  box-shadow: var(--shadow);
}
.search-input:focus {
  border-color: var(--gold);
  background: var(--bg-elev);
  box-shadow: 0 4px 18px var(--gold-glow);
}
.search-input::placeholder {
  color: var(--text-faint);
  font-style: italic;
}
.search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  border-radius: 50%;
  display: none;
}
.search-input:not(:placeholder-shown) ~ .search-clear { display: block; }
.search-clear:hover { color: var(--gold-deep); background: var(--bg-deep); }

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-style: italic;
}

/* Highlight matched chars */
mark.hl {
  background: var(--gold-glow);
  color: var(--text);
  padding: 0 2px;
  border-radius: 3px;
}

/* ============================================================
   QUOTE / PULL-QUOTE (used in article pages)
   ============================================================ */
.pullquote {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow);
  position: relative;
}
body[data-palette="crepusculo"] .pullquote { background-image: none; }
.pullquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
}
.pullquote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text);
  line-height: 1.5;
  padding-left: 18px;
}
.pullquote-attr {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 12px;
  padding-left: 18px;
  letter-spacing: .05em;
}
.pullquote-attr::before { content: '— '; color: var(--gold); }

/* ============================================================
   ARTICLE READING SHELL
   ============================================================ */
.article-hero {
  text-align: center;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.article-hero .heb-letter {
  font-family: var(--font-heb);
  font-size: clamp(60px, 9vw, 100px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.article-meta-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: .04em;
  flex-wrap: wrap;
}
.article-meta-row span {
  display: inline-flex; align-items: center; gap: 6px;
}
.article-meta-row span::before {
  content: '·';
  color: var(--gold);
  font-style: normal;
  font-size: 16px;
  margin-right: -2px;
}
.article-meta-row span:first-child::before { display: none; }

.article-body {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text);
}
.article-body p {
  margin-bottom: 1.2em;
}
.article-body p.first::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2em;
  float: left;
  line-height: .9;
  padding: 6px 10px 0 0;
  color: var(--gold-deep);
}
.article-body h3 {
  margin-top: 1.8em;
  margin-bottom: .6em;
}
.article-body h3::before {
  content: '✦';
  color: var(--gold);
  font-style: normal;
  margin-right: 10px;
  font-size: .7em;
  vertical-align: middle;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  z-index: 90;
  transition: width .1s ease;
}

/* ============================================================
   CTA BANDS
   ============================================================ */
.band {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 70px) 0;
  text-align: center;
}
body[data-palette="crepusculo"] .band { background: var(--bg-elev); }
.band h2 { margin-bottom: 14px; }

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
  transition: all .25s ease;
}
.whatsapp-cta:hover {
  color: #fff;
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
}
.whatsapp-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   WEEKLY CALLOUT — reusable "energy of the week / parashá" card.
   Markup + live data via shared/current-parasha.js ([data-ikp]
   markers); drop the block from calendario.html's #parasha or
   sobre.html verbatim on any page that includes this stylesheet
   and the current-parasha.js script.
   ============================================================ */
.weekfeat {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 160, 23, .12) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow-deep);
  padding: 26px;
  max-width: 1000px;
  margin: 0 auto;
}
.weekfeat-img { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-deep); align-self: stretch; min-width: 0; }
.weekfeat-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .45s ease; }
.weekfeat-img:hover img { transform: scale(1.03); }
.weekfeat-body h3 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 3.6vw, 36px); color: var(--text); margin: 6px 0 10px; line-height: 1.08; }
.weekfeat-body h3::before { content: none; }
.weekfeat-body p { color: var(--text-soft); font-size: 16px; margin-bottom: 18px; }
.parasha-eyebrow { font-family: var(--font-body); font-style: italic; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-size: 12.5px; display: block; margin-bottom: 6px; }
.moon-dates { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--text-soft); }
.feature-links { display: flex; flex-direction: column; gap: 10px; }
.flink { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transition: all .22s; text-decoration: none; }
.flink:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-deep); }
.flink b { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 19px; color: var(--text); }
.flink small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--text-faint); }
.flink .arr { color: var(--gold); font-size: 20px; flex-shrink: 0; }
@media (max-width: 760px) { .weekfeat { grid-template-columns: 1fr; gap: 20px; padding: 18px; } .weekfeat-img img { aspect-ratio: 16/10; } }

/* ── MONTHLY CALLOUT — same reuse contract, via shared/current-month.js
   ([data-ikm] markers, own namespace so it never collides with [data-ikp]) ── */
.feature { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 160, 23, .12) 100%); border: 1.5px solid var(--gold); border-radius: 18px; box-shadow: var(--shadow-deep); padding: 40px 38px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; max-width: 1000px; margin: 0 auto; }
.feature-moon-img { text-align: center; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, .32); }
.feature-moon-img img { display: block; width: 100%; height: auto; border-radius: 14px; }
.feature h3 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(30px, 4vw, 40px); color: var(--text); margin: 8px 0 12px; }
.feature h3::before { content: none; }
.feature p { color: var(--text-soft); font-size: 16px; margin-bottom: 20px; }
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; gap: 22px; padding: 30px 24px; text-align: center; } .feature-links { text-align: left; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(50px, 7vw, 80px) 0 32px;
  margin-top: 60px;
  text-align: center;
}
body[data-palette="crepusculo"] .site-footer { background: #0a0c18; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  margin-bottom: 36px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; text-align: left; }
}
.footer-brand .brand-logo {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
}
@media (min-width: 720px) {
  .footer-brand .brand-logo { margin: 0 0 14px; }
}
.footer-brand p {
  font-style: italic;
  color: var(--text-soft);
  max-width: 320px;
  margin: 0 auto;
  font-size: 14.5px;
}
@media (min-width: 720px) {
  .footer-brand p { margin: 0; }
}
.footer-h {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-deep);
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a {
  font-size: 14px;
  color: var(--text-soft);
  font-family: var(--font-body);
  letter-spacing: .03em;
}
.footer-list a:hover { color: var(--gold-deep); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: .04em;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--gold-deep);
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 6px;
  flex-wrap: wrap;
}
@media (min-width: 720px) {
  .social-links { justify-content: flex-start; }
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  transition: all .2s ease;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   LANG TOGGLE — show/hide
   ============================================================ */
html[lang="pt"] .lang-en,
html[lang="en"] .lang-pt { display: none !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 48px; }
.text-center { text-align: center; }
