/* Torah Meirah: quiet editorial design. Warm paper by day, night sky by night.
   RTL-first: use logical properties (inline/block), never left/right. */
:root {
  --canvas: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #2F3437;
  --ink-strong: #111111;
  --muted: #6B6A66;
  --line: #E4E1DA;
  --paper-2: #EFEDE7;
  --olive: #6E7B3E;
  --gold: #A8843A;
  --night: #1E2340;
  --night-ink: #F2F1EC;
  --accent: #1E2340;
  --btn: #1E2340;
  --btn-ink: #FFFFFF;
  --tag-bg: #E1F3FE;
  --tag-ink: #1F6C9F;
  --gold-bg: #FBF3DB;
  --gold-ink: #956400;
  --green-bg: #EDF3EC;
  --green-ink: #346538;
  --serif-he: "Frank Ruhl Libre", "Newsreader", Georgia, serif;
  --serif-lat: "Newsreader", "Frank Ruhl Libre", Georgia, serif;
  --sans-he: "Heebo", system-ui, sans-serif;
  --sans-lat: "Helvetica Neue", "Heebo", system-ui, sans-serif;
  --serif: var(--serif-he);
  --sans: var(--sans-he);
  --radius: 6px;
  --wrap: 72rem;
  --read: 36rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
html[lang="en"], html[lang="fr"], html[lang="es"] { --serif: var(--serif-lat); --sans: var(--sans-lat); }

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #11142A;
    --surface: #171B35;
    --ink: #DCDBD5;
    --ink-strong: #F5F4EF;
    --muted: #9A9BAA;
    --line: rgba(255,255,255,0.10);
    --paper-2: #151933;
    --olive: #B9C48A;
    --gold: #D9BC7A;
    --night: #0B0D1E;
    --accent: #C9CCE8;
    --btn: #E9E7DF;
    --btn-ink: #11142A;
    --tag-bg: rgba(225,243,254,0.10);
    --tag-ink: #A9D3F2;
    --gold-bg: rgba(251,243,219,0.10);
    --gold-ink: #E4C47A;
    --green-bg: rgba(237,243,236,0.10);
    --green-ink: #A6CFA9;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink-strong); font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); line-height: 1.15; }
html[dir="ltr"] h1 { letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 0.9rem; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 99; }
.skip:focus { inset-inline-start: 1rem; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-read { max-width: var(--read); margin-inline: auto; padding-inline: 1.25rem; }
.block { padding-block: clamp(3.5rem, 8vw, 6rem); }
.block + .block { padding-block-start: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-block-end: 1.25rem; }
.block-head h2 { margin: 0; }
.page-head { margin-block-end: 2rem; max-width: var(--read); }
.lead { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); line-height: 1.55; }
.kicker { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); margin-block-end: 0.5rem; }
html[lang="he"] .kicker { letter-spacing: 0.02em; font-size: 0.88rem; }
.kicker a { text-decoration: none; }
.h-sm { font-size: 1.15rem; margin-block: 2.5rem 1rem; }

/* ---------- buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn);
  padding: 0.75rem 1.35rem; border-radius: 4px; font-weight: 500; font-size: 0.98rem;
  text-decoration: none; line-height: 1.2; transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink-strong); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); opacity: 1; }
.btn-small { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
.link { font-weight: 500; text-decoration: none; white-space: nowrap; }
.link::after { content: " ←"; }
html[dir="ltr"] .link::after { content: " →"; }
.chip {
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.88rem; text-decoration: none; color: var(--ink);
}
.chip:hover { border-color: var(--muted); }
.icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 6px; color: var(--ink); }
.icon-btn:hover { background: var(--line); }
.wa { display: inline-block; margin-block-start: 0.75rem; color: var(--green-ink); font-weight: 500; }
.note { background: var(--paper-2); color: var(--ink-strong); border-inline-start: 2px solid var(--olive); padding: 0.75rem 1rem; border-radius: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-block-end: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink-strong); }
.brand small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; gap: 0.25rem; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.97rem; color: var(--ink); }
.nav a:hover { background: var(--line); }
.nav a[aria-current] { color: var(--ink-strong); font-weight: 500; box-shadow: inset 0 -1px 0 var(--olive); border-radius: 0; }
.top-tools { display: flex; align-items: center; gap: 0.5rem; }
.langs { display: inline-flex; gap: 0.1rem; }
.langs a { text-decoration: none; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.5rem; color: var(--muted); letter-spacing: 0.04em; }
.langs a[aria-current] { color: var(--ink-strong); }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; display: grid; place-content: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 1.5px; background: var(--ink-strong); transition: transform 0.2s var(--ease); }
.menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-panel {
  position: absolute; inset-inline: 0; top: 100%; background: var(--canvas); border-block-end: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.25rem; display: flex; flex-direction: column;
}
.menu-panel > a { padding: 0.8rem 0; border-block-end: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; }
.menu-panel .langs { align-self: flex-start; margin-block-start: 1rem; }
@media (max-width: 880px) {
  .nav, .top-tools { display: none; }
  .menu { display: block; }
  .top-in { gap: 0.75rem; }
}

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1.5px 1.5px at 44% 14%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 63% 42%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 76%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 88% 18%, rgba(255,255,255,0.6), transparent 60%),
        radial-gradient(600px 300px at 50% 0%, rgba(255,240,200,0.07), transparent 70%);
}
.hero-in { position: relative; text-align: center; padding-block: clamp(4rem, 11vw, 7.5rem); max-width: 48rem; }
.hero-logo { margin: 0 auto 1.5rem; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 60px rgba(255,240,200,0.12); }
.hero h1 { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.1; margin-block-end: 1rem; }
.hero h1 small { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,241,236,0.6); font-weight: 400; }
.hero-tag { font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.75rem); max-width: 34rem; margin-inline: auto; line-height: 1.4; color: #fff; }
.hero-lead { color: rgba(242,241,236,0.78); font-size: 1.08rem; max-width: 36rem; margin-inline: auto; }
.hero-by { color: rgba(242,241,236,0.6); font-size: 0.95rem; }
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-block-start: 1.75rem; }
.hero .btn { background: #F2F1EC; color: var(--night); border-color: #F2F1EC; }
.hero .btn-ghost { background: transparent; color: #F2F1EC; border-color: transparent; text-decoration: underline; text-decoration-color: rgba(185,196,138,0.6); text-underline-offset: 0.25em; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,188,122,0.5), transparent); }

.week {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  border-block: 1px solid var(--ink-strong); padding-block: clamp(2rem, 5vw, 3.5rem);
}
.week .kicker { color: var(--gold); }
.week h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.week-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem) !important; font-weight: 400; }
.week h2 a { text-decoration: none; }
.week-title { font-size: 1.35rem; margin-block-start: 0.5rem; }
@media (max-width: 760px) { .week { grid-template-columns: 1fr; } }

.pillars-band { background: var(--paper-2); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-block-start: 2rem; }
.pillar { border-block-start: 1px solid var(--olive); padding-block-start: 1.25rem; }
.pillar .num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); }
.pillar h3 { margin-block: 0.5rem 0.25rem; font-size: 1.3rem; }
.pillar-h { font-family: var(--serif); color: var(--olive); font-size: 1.05rem; }
.pillar p:last-child { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

.cta-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(242,241,236,0.75); margin: 0; }
.cta-band .btn { background: #F2F1EC; color: var(--night); border-color: #F2F1EC; }
.cta-band .wa { color: #A6CFA9; }
.cta-band.soft { background: transparent; color: var(--ink); border-block: 1px solid var(--line); border-radius: 0; }
.cta-band.soft h2 { color: var(--ink-strong); }
.cta-band.soft p { color: var(--muted); }
.cta-band.soft .btn { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.cta-band > div:last-child { justify-self: end; width: 100%; max-width: 26rem; }
.cta-band.soft > div:last-child { text-align: end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band > div:last-child { justify-self: stretch; } .cta-band.soft > div:last-child { text-align: start; } }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem 2.5rem; }
.card, .vcard { position: relative; display: flex; flex-direction: column; }
.card { padding: 1.5rem 0 1.25rem; border-block-start: 1px solid var(--ink-strong); }
.card:hover h3 a { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 1px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font-size: 1.45rem; line-height: 1.25; margin-block-end: 0.5rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .meta { margin-block-start: auto; margin-block-end: 0; font-size: 0.85rem; }
.card-img { margin: 0 0 1rem; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius) 12px 0 0; }
.vcard { padding: 0; overflow: hidden; }
.vcard h3 { font-size: 1.05rem; padding: 1rem 1.25rem 0; font-family: var(--sans); font-weight: 500; line-height: 1.4; }
.vcard .meta { padding: 0 1.25rem 1.1rem; margin: 0; font-size: 0.85rem; }
.vthumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s, transform 0.4s var(--ease); }
.vthumb:hover img { opacity: 1; transform: scale(1.02); }
.vthumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(17,20,42,0.78); backdrop-filter: blur(4px); }
.play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 0.6rem solid transparent; border-inline-start: 1rem solid #fff; transform: translateX(2px); }
html[dir="rtl"] .play::after { border-inline-start: 0; border-inline-end: 1rem solid #fff; transform: translateX(-2px) scaleX(-1); }
.vthumb.big { border-radius: var(--radius); }
.event { flex-direction: row; gap: 1.25rem; align-items: flex-start; }
.datebox { flex: 0 0 4.25rem; display: grid; justify-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0.5rem 0.25rem; line-height: 1.1; }
.db-m { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--olive); font-weight: 500; }
.db-d { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink-strong); }
.db-w { font-size: 0.75rem; color: var(--muted); }
.product .price { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-strong); }
.product .btn { align-self: flex-start; position: relative; z-index: 1; }

/* ---------- article ---------- */
.post { padding-block: clamp(2rem, 5vw, 3.5rem) 3rem; }
.post-head { margin-block-end: 2rem; }
.post-head h1 { margin-block-end: 0.75rem; }
.post-head .lead { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.post-head .meta a { color: var(--ink); }
.post-img { border-radius: var(--radius); margin-block-end: 2rem; }
.dedication { font-size: 0.92rem; color: var(--gold-ink); background: var(--gold-bg); padding: 0.5rem 0.85rem; border-radius: 6px; display: inline-block; }
.prose { font-family: var(--serif); font-size: clamp(1.1875rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--ink-strong); }
html[dir="ltr"] .prose { line-height: 1.65; }
.prose > p:first-child { font-size: 1.12em; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin-block: 2.25rem 0.75rem; }
.prose h3 { font-size: 1.3rem; margin-block: 1.75rem 0.5rem; }
.prose p { margin-block-end: 1.15em; }
.prose blockquote { margin: 1.5rem 0; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--gold); color: var(--ink-strong); font-size: 1.12em; }
html[dir="ltr"] .prose blockquote { font-style: italic; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li { margin-block-end: 0.4em; }
.prose img { border-radius: 8px; margin-block: 1.5rem; }
.prose hr { border: 0; text-align: center; margin: 2.5rem 0; }
.prose hr::after { content: "* * *"; color: var(--muted); letter-spacing: 0.5em; }
.prose a { color: inherit; text-decoration-color: var(--olive); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose.small { font-size: 1.02rem; line-height: 1.65; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-block: 2rem; }
.box h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; margin-block-end: 0.75rem; }
.box > :last-child { margin-block-end: 0; }
.short { background: var(--paper-2); border-color: transparent; }
.short h2 { color: var(--olive); }
.table-q ol { margin: 0; padding-inline-start: 1.4rem; }
.table-q li { margin-block-end: 0.5rem; font-family: var(--serif); font-size: 1.1rem; }
.table-q li.kid { list-style: none; margin-inline-start: -1.4rem; margin-block-start: 0.85rem; padding-inline-start: 0.85rem; border-inline-start: 2px solid var(--gold); }
.sources { margin: 0; padding-inline-start: 1.4rem; font-size: 0.95rem; }
.sources li { margin-block-end: 0.3rem; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding-block: 0.4rem; border-block-end: 1px solid var(--line); }
.links li:last-child { border: 0; }
.video { margin: 2rem 0; }
.video figcaption { font-size: 0.9rem; color: var(--muted); margin-block-start: 0.6rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 2rem; }
.ask-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-block-start: 1px solid var(--line); padding-block-start: 1.5rem; margin-block-start: 2.5rem; }
.ask-inline p { margin: 0; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 1.25rem 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- parasha index ---------- */
.book { margin-block-end: 2.5rem; }
.book h2 { font-size: 1.35rem; padding-block-end: 0.6rem; border-block-end: 1px solid var(--line); }
.plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.plist li > * { display: block; padding: 0.6rem 0.85rem; border-radius: 8px; border: 1px solid transparent; font-family: var(--serif); font-size: 1.1rem; }
.plist li > span { color: var(--muted); opacity: 0.7; }
.plist li.has > a { background: var(--surface); border-color: var(--line); text-decoration: none; color: var(--ink-strong); }
.plist li.has > a:hover { border-color: var(--muted); }
.plist li.now > * { border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink-strong); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.85rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
textarea { resize: vertical; min-height: 8rem; }
.form .check, .check { display: flex !important; align-items: center; gap: 0.6rem; font-weight: 400; }
.check input { width: auto; }
.form .btn { justify-self: start; }
.subscribe { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.subscribe input[type=email] { flex: 1 1 14rem; }
.subscribe.compact input[type=email] { padding: 0.55rem 0.75rem; font-size: 0.92rem; }
.subscribe.compact .btn { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
.searchbar { display: flex; gap: 0.5rem; max-width: 34rem; margin-block-end: 2rem; }
.center .searchbar { margin-inline: auto; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: rgba(242,241,236,0.82); margin-block-start: 4rem; }
.foot a { color: rgba(242,241,236,0.88); }
.foot .muted, .foot-cols h3 { color: rgba(242,241,236,0.55) !important; }
.foot-tag { color: #fff !important; }
.foot input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; }
.foot .btn { background: #F2F1EC; color: var(--night); border-color: #F2F1EC; }
.foot .langs { border-color: rgba(255,255,255,0.2); }
.foot .langs a[aria-current] { background: #F2F1EC; color: var(--night); }
.foot-base { border-color: rgba(255,255,255,0.1) !important; }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-block: 4.5rem 3rem; }
.foot-brand img { border-radius: 50%; margin-block-end: 1rem; }
.foot-tag { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-strong); }
.foot-brand .muted { font-size: 0.92rem; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2rem; }
.foot-cols h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.foot-cols > div > a { display: block; text-decoration: none; padding-block: 0.25rem; font-size: 0.95rem; }
.foot-cols > div > a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-block-start: 1rem; font-size: 0.92rem; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; border-block-start: 1px solid var(--line); font-size: 0.85rem; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- new components ---------- */
.announce { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.35rem 0.85rem; padding: 0.9rem 1.25rem; background: var(--paper-2); border-block-end: 1px solid var(--line); text-decoration: none; text-align: center; }
.announce .kicker { margin: 0; color: var(--gold); }
.announce strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--ink-strong); }
.announce span:last-child { color: var(--muted); font-size: 0.92rem; }
.announce:hover strong { text-decoration: underline; text-decoration-color: var(--olive); }
.intro { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 56rem; margin-inline: auto; }
.intro .photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.intro .logo-ph { aspect-ratio: 1; border-radius: 50%; max-width: 12rem; justify-self: center; }
.intro-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--ink-strong); }
@media (max-width: 680px) { .intro { grid-template-columns: 1fr; gap: 1.25rem; } .intro .photo { max-width: 11rem; } .intro .logo-ph { max-width: 7rem; justify-self: start; } }
.author { display: flex; gap: 1rem; align-items: flex-start; border-block: 1px solid var(--line); padding-block: 1.5rem; margin-block: 2.5rem; }
.author img { border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.author p { margin: 0 0 0.3rem; font-size: 0.97rem; }
.author-name { font-family: var(--serif); font-size: 1.15rem !important; }
.author-name a { text-decoration: none; color: var(--ink-strong); }
.author .muted a { color: var(--muted); }
.desk, .shelf { display: grid; gap: 0; }
.desk { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem 2.5rem; }
.book-item { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.1rem; padding-block: 1.25rem; border-block-start: 1px solid var(--line); }
.book-item h3 { font-size: 1.2rem; margin-block-end: 0.2rem; }
.book-item h3 a { text-decoration: none; }
.book-item blockquote { margin: 0.6rem 0; padding-inline-start: 0.85rem; border-inline-start: 2px solid var(--gold); font-family: var(--serif); color: var(--ink-strong); }
.cover { width: 4.5rem; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.cover-blank { display: grid; place-items: center; background: var(--night); color: #F2F1EC; padding: 0.4rem; text-align: center; font-family: var(--serif); font-size: 0.62rem; line-height: 1.25; overflow: hidden; }
.cover-blank span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- print: a clean handout for the Shabbat table ---------- */
@media print {
  .top, .foot, .no-print, .share, .ask-inline, .video, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { font-size: 12pt; color: #000; }
  .box { border: 1px solid #ccc; break-inside: avoid; }
  .short { background: none; }
  a { text-decoration: none; }
  .wrap-read { max-width: none; padding: 0; }
}

/* ---------- reading tracks + book club ---------- */
.wrap-read-l { max-width: 44rem; }
.shelf { margin-block: 2.5rem; }
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; margin-block-start: 1.25rem; }
.track { display: grid; align-content: start; gap: 0.35rem; padding: 1.4rem 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-block-start: 3px solid var(--olive); border-radius: var(--radius); color: inherit; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.track:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.05); transform: translateY(-2px); }
.track h3 { font-size: 1.3rem; margin: 0; }
.track .kicker { margin: 0; }
.track p { margin: 0; }
.track-now { font-size: 0.92rem; }
.track-now span { color: var(--olive); font-weight: 500; }
.progress { display: grid; gap: 0.35rem; margin-block-start: 0.6rem; }
.progress .bar { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.progress .meta { font-size: 0.82rem; color: var(--muted); }
.page-head .progress { max-width: 20rem; }
.steps { list-style: none; padding: 0; margin: 2rem 0; position: relative; }
.step { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; position: relative; }
.step::before { content: ""; position: absolute; inset-block: 2.2rem 0; inset-inline-start: calc(1rem - 1px); border-inline-start: 2px solid var(--line); }
.step:last-child::before { display: none; }
.step-n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font: 500 0.85rem var(--sans); border: 2px solid var(--line); background: var(--canvas); color: var(--muted); margin-block-start: 1.1rem; position: relative; z-index: 1; }
.step-done .step-n { background: var(--olive); border-color: var(--olive); color: #fff; }
.step-now .step-n { border-color: var(--gold); color: var(--gold); }
.step-done::before { border-color: var(--olive); }
.step-state { font: 500 0.78rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 -0.6rem; }
.step-now .step-state { color: var(--gold); }
.step .book-item { border-block-start: 0; }
.club { margin-block: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper-2); border-radius: var(--radius); display: grid; gap: 1.25rem; }
.club-head h2 { margin: 0 0 0.4rem; }
.club-head .kicker { display: none; }
.club-head p { margin: 0; color: var(--muted); max-width: 36rem; }
.club-pick .book-item { border-block-start: 1px solid var(--line); }
.club-pick .kicker { margin: 0; }
.club-form { max-width: 36rem; }
.club-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .club-form .row2 { grid-template-columns: 1fr; } }
.intro.no-photo { grid-template-columns: 1fr; max-width: 44rem; }

/* Dove mark (from the logo): colored by CSS so it follows light/dark themes. */
.mark { display: inline-block; width: 2.1rem; aspect-ratio: 660 / 756; background: var(--ink-strong); -webkit-mask: url(/img/dove-mark.png) center / contain no-repeat; mask: url(/img/dove-mark.png) center / contain no-repeat; flex-shrink: 0; }
.brand img { display: none; }
.mark-lg { width: 3.2rem; margin-block-end: 1rem; }
/* Hero: the logo's own night sky behind the dove. */
.hero { background: var(--night) url(/img/sky.jpg) center / cover no-repeat; }
.hero-dove { display: block; margin: 0 auto 1.25rem; width: clamp(5.5rem, 12vw, 8.25rem); height: auto; filter: drop-shadow(0 0 24px rgba(255,240,200,0.18)); }
