/* ============================================================================
   Rabbi Yosef Katzman — Unified Trilingual Editorial Design (EN / HE / YI)
   Direction: Distinguished author's website meets the warmth of a Chassidic home
   Palette: Warm Ivory · Parchment · Deep Navy · Muted Burgundy · Antique Gold
   ============================================================================ */

:root {
  /* Surfaces */
  --ivory: #FAF5EC;
  --parchment: #F3ECE0;
  --cream: #FFFDF8;
  --burgundy-wash: #F5ECEA;
  --burgundy-paper: #F8F1EE;

  /* Inks */
  --navy: #142033;
  --navy-deep: #0E1726;
  --navy-soft: #24344B;
  --ink: #22262E;
  --ink-muted: #525763;
  --ink-subtle: #6D717C;

  /* Editorial Signatures */
  --burgundy: #6B2737;
  --burgundy-deep: #531C29;
  --burgundy-soft: rgba(107, 39, 55, 0.08);
  --burgundy-border: rgba(107, 39, 55, 0.24);
  --gold: #9A763B;
  --gold-bright: #C8A462;
  --gold-soft: rgba(154, 118, 59, 0.24);

  /* Lines & Elevation */
  --line: rgba(20, 32, 51, 0.12);
  --line-strong: rgba(20, 32, 51, 0.22);
  --shadow-soft: 0 10px 28px rgba(20, 32, 51, 0.06);
  --shadow-frame: 0 18px 42px rgba(20, 32, 51, 0.11);

  /* Typography — English defaults */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-prose: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1120px;
  --radius-sm: 4px;
  --radius-md: 6px;
}

html[dir="rtl"] {
  --font-display: 'Frank Ruhl Libre', 'Newsreader', Georgia, serif;
  --font-prose: 'Heebo', 'Frank Ruhl Libre', sans-serif;
  --font-ui: 'Heebo', 'Plus Jakarta Sans', -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--burgundy-deep);
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  z-index: 200;
}

.skip-link:focus {
  inset-inline-start: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================================
   TYPOGRAPHY & EDITORIAL DETAILING
   ============================================================================ */

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: 0;
  font-weight: 700;
}

.prose-copy {
  font-family: var(--font-prose);
}

html[dir="rtl"] .prose-copy {
  line-height: 1.84;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.88rem;
}

.eyebrow-ruled {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow-ruled::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--burgundy);
  opacity: 0.75;
  flex-shrink: 0;
}

.eyebrow-gold {
  color: var(--gold-bright);
}

.section-rule {
  width: 52px;
  height: 3px;
  margin-top: 1rem;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--burgundy);
  border-bottom: 1px solid rgba(154, 118, 59, 0.5);
  opacity: 0.85;
}

.section {
  padding-block: 4.75rem;
}

.section-ivory {
  background-color: var(--ivory);
}

.section-parchment {
  background-color: var(--parchment);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-header h2,
.bio-text-col h2,
.speaking-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.14;
}

html[dir="rtl"] .section-header h2,
html[dir="rtl"] .bio-text-col h2,
html[dir="rtl"] .speaking-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.24;
}

.section-intro {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--ink-muted);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.84rem 1.55rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--ivory);
}

.btn-burgundy {
  background-color: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
}

.btn-burgundy:hover {
  background-color: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: var(--ivory);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--burgundy-border);
}

.btn-secondary:hover {
  background-color: var(--burgundy-soft);
  border-color: var(--burgundy);
  color: var(--burgundy-deep);
}

.btn-gold {
  background-color: var(--gold-bright);
  color: var(--navy-deep);
  border-color: var(--gold-bright);
  font-weight: 600;
}

.btn-gold:hover {
  background-color: #D6B476;
  border-color: #D6B476;
  color: var(--navy-deep);
}

.btn-outline-light {
  background-color: rgba(250, 245, 236, 0.06);
  color: var(--ivory);
  border-color: rgba(250, 245, 236, 0.32);
}

.btn-outline-light:hover {
  background-color: rgba(250, 245, 236, 0.14);
  border-color: rgba(250, 245, 236, 0.62);
  color: #FFFFFF;
}

.btn-compact {
  padding: 0.62rem 1.15rem;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
}

.btn-text-link {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--burgundy-border);
  cursor: pointer;
}

.btn-text-link:hover {
  color: var(--burgundy-deep);
  text-decoration-color: var(--burgundy-deep);
}

/* ============================================================================
   HEADER (Crowned by fine muted burgundy bookplate rule)
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 245, 236, 0.96);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--burgundy);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 74px;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  color: var(--navy);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--navy);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

html[dir="rtl"] .brand-name {
  font-size: 1.38rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

html[dir="rtl"] .brand-sub {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy-border);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.15;
}

.lang-link:hover {
  color: var(--navy);
}

.lang-link.is-active {
  background-color: var(--burgundy);
  color: var(--ivory);
}

.lang-short {
  display: none;
}

.bh-mark {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--burgundy);
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid var(--line-strong);
  line-height: 1;
  user-select: none;
}

/* ============================================================================
   1. HERO
   ============================================================================ */

.hero {
  background: linear-gradient(180deg, #FBF7F0 0%, var(--ivory) 100%);
  padding-block: 4.5rem 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px);
  align-items: center;
  gap: 4rem;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.15rem);
  line-height: 1.06;
  margin-bottom: 1.35rem;
  color: var(--navy);
}

html[dir="rtl"] .hero-copy h1 {
  font-size: clamp(2.45rem, 4.6vw, 3.6rem);
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 2.1rem;
  font-size: 1.24rem;
  line-height: 1.72;
  color: var(--ink);
  max-width: 36rem;
}

html[dir="rtl"] .hero-lead {
  font-size: 1.12rem;
  line-height: 1.84;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Archival Double-Mat Portrait Frame */
.hero-portrait-wrap {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 368px;
}

.portrait-frame {
  position: relative;
  background-color: var(--cream);
  padding: 10px;
  border: 1px solid rgba(20, 32, 51, 0.16);
  box-shadow: var(--shadow-frame);
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--burgundy-border);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.95rem;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

html[dir="rtl"] .portrait-caption {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.95rem;
}

.caption-line {
  width: 24px;
  height: 1px;
  background-color: var(--burgundy);
  opacity: 0.55;
}

/* ============================================================================
   2. BIOGRAPHY + HISTORICAL 1990s PHOTOGRAPH
   ============================================================================ */

.bio-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 3.75rem;
}

.bio-paragraphs p {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.82;
  color: var(--ink);
}

html[dir="rtl"] .bio-paragraphs p {
  font-size: 1.07rem;
  line-height: 1.88;
}

.bio-paragraphs p:last-child {
  margin-bottom: 0;
}

.bio-photo-figure {
  margin: 0;
}

.archival-mat {
  position: relative;
  background-color: var(--cream);
  padding: 9px;
  border: 1px solid rgba(20, 32, 51, 0.15);
  box-shadow: var(--shadow-soft);
}

.archival-mat::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(154, 118, 59, 0.28);
  pointer-events: none;
}

.archival-mat img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
  filter: sepia(0.08) contrast(1.02);
}

.bio-photo-figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
}

html[dir="rtl"] .bio-photo-figure figcaption {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.95rem;
}

/* ============================================================================
   3. WEEKLY TORAH SUBSCRIPTION & FEATURED WRITING
   ============================================================================ */

.weekly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 2.25rem;
  align-items: stretch;
}

.subscribe-card {
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--burgundy);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

.card-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--burgundy);
}

html[dir="rtl"] .card-eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.84rem;
}

.subscribe-card h3 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.subscribe-desc {
  margin: 0 0 1.45rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Featured Writing Card — Bookplate side accent */
.essay-preview-card {
  display: flex;
  flex-direction: column;
  background-color: var(--burgundy-paper);
  border: 1px solid rgba(107, 39, 55, 0.16);
  border-inline-start: 3px solid var(--burgundy);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

.essay-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.essay-card-top .card-eyebrow {
  margin-bottom: 0;
}

.essay-bh {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--burgundy);
  opacity: 0.82;
}

.essay-title {
  font-size: clamp(1.6rem, 2.3vw, 2.05rem);
  line-height: 1.22;
  margin-bottom: 1.15rem;
  color: var(--navy);
}

.essay-excerpt {
  margin: 0 0 0.95rem;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink);
}

html[dir="rtl"] .essay-excerpt {
  font-size: 1rem;
  line-height: 1.82;
}

.essay-meta {
  margin: 0.4rem 0 1.5rem;
  font-size: 0.84rem;
  color: var(--ink-subtle);
  padding-top: 0.85rem;
  border-top: 1px solid rgba(107, 39, 55, 0.15);
}

.essay-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}

/* ============================================================================
   FORMS (Subscribe + Speaking)
   ============================================================================ */

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label,
.lang-pref-fieldset legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.88rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  background-color: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 39, 55, 0.12);
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.lang-pref-fieldset {
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--ivory);
}

.lang-pref-fieldset legend {
  padding-inline: 0.35rem;
}

.fieldset-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

.lang-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lang-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.82rem;
  background-color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.lang-check-pill:has(input:checked) {
  border-color: var(--burgundy);
  background-color: var(--burgundy-soft);
  color: var(--burgundy-deep);
}

.lang-check-pill input {
  accent-color: var(--burgundy);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-subtle);
  line-height: 1.5;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-status.is-success {
  background-color: #EFF6F1;
  border: 1px solid rgba(38, 102, 64, 0.3);
  color: #1D4D31;
}

.form-status.is-error {
  background-color: #FDF1F2;
  border: 1px solid rgba(107, 39, 55, 0.34);
  color: var(--burgundy-deep);
}

/* ============================================================================
   4. AUDIENCE-TAILORED DEEP NAVY SPOTLIGHT BAND
   ============================================================================ */

.section-hayom {
  position: relative;
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 58%, #1C2B42 100%);
  color: var(--ivory);
  padding-block: 4.5rem;
  border-top: 3px solid var(--burgundy);
  border-bottom: 1px solid rgba(200, 164, 98, 0.35);
}

.hayom-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.hayom-art {
  width: 230px;
  background-color: rgba(255, 253, 248, 0.08);
  padding: 7px;
  border: 1px solid rgba(200, 164, 98, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hayom-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hayom-art.is-photo img {
  object-position: center 16%;
}

.hayom-copy h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

html[dir="rtl"] .hayom-copy h2 {
  font-size: clamp(1.85rem, 2.9vw, 2.4rem);
  line-height: 1.24;
}

.hayom-desc {
  margin: 0 0 1.65rem;
  max-width: 40rem;
  font-family: var(--font-prose);
  font-size: 1.12rem;
  line-height: 1.72;
  color: rgba(250, 245, 236, 0.88);
}

html[dir="rtl"] .hayom-desc {
  font-family: var(--font-ui);
  font-size: 1.04rem;
  line-height: 1.82;
}

.hayom-lang-groups {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hayom-lang-label {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

html[dir="rtl"] .hayom-lang-label {
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.88rem;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ============================================================================
   5. EDITORIAL PHOTOGRAPHY STRIP ("Moments & Gatherings")
   ============================================================================ */

.section-gallery {
  padding-block: 4.5rem;
}

.gallery-header {
  margin-bottom: 2.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery-mat {
  position: relative;
  background-color: var(--cream);
  padding: 8px;
  border: 1px solid rgba(20, 32, 51, 0.14);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-figure:hover .gallery-mat {
  transform: translateY(-2px);
  box-shadow: var(--shadow-frame);
}

.gallery-mat img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 20%;
}

.gallery-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

html[dir="rtl"] .gallery-figure figcaption {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.96rem;
}

/* ============================================================================
   6. LISTEN & WATCH ARCHIVE
   ============================================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.48rem 1.05rem;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-muted);
  background-color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.filter-pill.is-active {
  background-color: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(107, 39, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.55rem;
  box-shadow: 0 4px 14px rgba(20, 32, 51, 0.04);
  transition: border-top-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.media-card:hover {
  border-top-color: var(--burgundy);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.65rem;
}

.media-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--burgundy);
}

.media-length {
  font-size: 0.76rem;
  color: var(--ink-subtle);
}

.media-card h3 {
  font-size: 1.38rem;
  line-height: 1.24;
  margin-bottom: 0.65rem;
  color: var(--navy);
}

html[dir="rtl"] .media-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

.media-card p {
  margin: 0 0 1.25rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.media-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.media-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.media-links a:hover {
  color: var(--burgundy);
}

.media-expand-wrap {
  margin-top: 2.25rem;
  text-align: center;
}

/* ============================================================================
   7. SPEAKING ENGAGEMENTS (Warm Muted-Burgundy Tinted Parchment Band)
   ============================================================================ */

.section-speaking {
  background-color: var(--burgundy-wash);
  border-top: 1px solid var(--burgundy-border);
  border-bottom: 1px solid var(--burgundy-border);
}

.speaking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 3.25rem;
  align-items: start;
}

.speaking-paragraphs p {
  margin: 0 0 1.15rem;
  font-size: 1.14rem;
  line-height: 1.8;
  color: var(--ink);
}

html[dir="rtl"] .speaking-paragraphs p {
  font-size: 1.05rem;
  line-height: 1.86;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.65rem;
}

.audience-tags span {
  padding: 0.36rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--burgundy-deep);
  background-color: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--burgundy-border);
  border-radius: 999px;
}

.speaking-languages-note {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.speaking-languages-note::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background-color: var(--burgundy);
}

.speaking-form-card {
  background-color: var(--cream);
  border: 1px solid rgba(20, 32, 51, 0.14);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

.speaking-form-card h3 {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
}

/* ============================================================================
   FOOTER (Deep Navy Bookend)
   ============================================================================ */

.site-footer {
  background-color: var(--navy-deep);
  border-top: 2px solid var(--gold);
  color: rgba(250, 245, 236, 0.82);
  padding-block: 2.4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(250, 245, 236, 0.82);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.45rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(250, 245, 236, 0.78);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

/* ============================================================================
   ESSAY READER MODAL
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(14, 23, 38, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--cream);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--burgundy);
  border-radius: var(--radius-sm);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
}

.modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
}

.modal-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-bh {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy);
}

.modal-close {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: var(--burgundy-soft);
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.modal-body {
  padding: 2rem 2.25rem 2.5rem;
}

.modal-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.modal-rule {
  width: 56px;
  height: 3px;
  border-top: 1px solid var(--burgundy);
  border-bottom: 1px solid rgba(154, 118, 59, 0.45);
  margin: 1rem 0 1.65rem;
}

.essay-full-text {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.82;
  color: var(--ink);
}

.essay-full-text p {
  margin: 0 0 1.15rem;
}

.essay-full-text .essay-lead {
  font-size: 1.2rem;
  color: var(--navy);
}

.essay-full-text .yiddish-line {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.75;
  color: var(--burgundy-deep);
  background-color: var(--burgundy-paper);
  border-inline-start: 3px solid var(--burgundy);
  padding: 0.75rem 1.15rem;
  margin-block: 1.35rem;
  text-align: right;
}

.essay-signature {
  margin-top: 1.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-family: 'Newsreader', Georgia, serif;
}

.sig-greeting {
  margin: 0 0 0.25rem;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-muted);
}

.sig-name {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
}

.modal-cta-bar {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-cta-bar p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-portrait-wrap {
    order: -1;
    justify-self: center;
    max-width: 280px;
  }

  .bio-editorial-grid,
  .weekly-grid,
  .speaking-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .bio-photo-figure {
    max-width: 440px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hayom-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 2rem;
  }

  .hayom-art {
    width: 190px;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    padding-block: 0.6rem;
    min-height: auto;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  html[dir="rtl"] .brand-name {
    font-size: 1.14rem;
  }

  .header-tools {
    gap: 0.42rem;
  }

  .lang-full {
    display: none;
  }

  .lang-short {
    display: inline;
  }

  .lang-link {
    padding: 0.24rem 0.44rem;
    font-size: 0.74rem;
  }

  .bh-mark {
    padding-inline-start: 0.42rem;
    font-size: 0.84rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .section {
    padding-block: 3.2rem;
  }

  .hero {
    padding-block: 1.8rem 2.9rem;
  }

  .hero-grid {
    gap: 1.85rem;
  }

  .hero-portrait-wrap {
    max-width: 198px;
  }

  .eyebrow-ruled::before {
    width: 18px;
  }

  .hero-lead {
    font-size: 1.1rem;
    margin-bottom: 1.65rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hayom-grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
    text-align: start;
  }

  .hayom-art {
    width: 170px;
  }

  .gallery-grid,
  .media-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .subscribe-card,
  .essay-preview-card,
  .speaking-form-card {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.35rem 1.25rem 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
