:root {
  color-scheme: dark;
  --ink: #090b10;
  --ink-soft: #111722;
  --parchment: #f3e5c6;
  --parchment-muted: #cdbf9f;
  --gold: #d0a34a;
  --gold-soft: #876a32;
  --stone: #8d9291;
  --crimson: #8f2f2d;
  --line: rgba(243, 229, 198, 0.22);
  --shadow: rgba(0, 0, 0, 0.55);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--parchment);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("./assets/hero-background.png");
  background-position: center top;
  background-size: cover;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.02);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 78% 18%, rgba(208, 163, 74, 0.22), transparent 26rem),
    linear-gradient(90deg, rgba(4, 6, 10, 0.95) 0%, rgba(7, 9, 14, 0.84) 42%, rgba(7, 9, 14, 0.56) 100%),
    linear-gradient(180deg, rgba(9, 11, 16, 0.62) 0%, rgba(9, 11, 16, 0.85) 76%, var(--ink) 100%);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(13rem, 0.9fr) auto minmax(11rem, 0.72fr) minmax(17rem, 1.25fr);
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(243, 229, 198, 0.13);
  background: rgba(5, 7, 11, 0.68);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--parchment);
}

.brand-emblems {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  width: 5.45rem;
  height: 2.85rem;
  flex: 0 0 auto;
}

.brand-emblems img {
  display: block;
  width: 2.65rem;
  height: 2.65rem;
  object-fit: contain;
  mix-blend-mode: screen;
}

.brand-string {
  border-radius: 50%;
  transform: scale(1.08);
}

.brand-compass {
  filter: saturate(1.08) contrast(1.08);
}

.header-mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
  justify-self: center;
  margin: 0;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.header-mission-title {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.48rem);
  font-weight: 700;
  letter-spacing: 0;
}

.header-mission-subtitle {
  color: #d14238;
  font-size: clamp(0.56rem, 0.78vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.header-mission-hebrew {
  color: #ffffff;
  font-size: clamp(0.72rem, 1vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.header-mission-tikkun-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.42rem;
  white-space: nowrap;
}

.header-mission-tikkun {
  color: #ffffff;
  font-size: clamp(0.72rem, 1vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.header-mission-repair {
  color: rgba(243, 229, 198, 0.86);
  font-size: clamp(0.58rem, 0.78vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.site-search {
  position: relative;
  justify-self: stretch;
  min-width: 11rem;
}

.site-search-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  border: 1px solid rgba(243, 229, 198, 0.18);
  border-radius: 6px;
  background: rgba(9, 11, 16, 0.7);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.site-search input {
  width: 100%;
  min-width: 0;
  padding: 0.62rem 2.65rem 0.62rem 0.82rem;
  border: 0;
  outline: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--parchment);
  font: inherit;
  font-size: 0.84rem;
}

.site-search input::placeholder {
  color: rgba(205, 191, 159, 0.74);
}

.site-search button {
  position: absolute;
  top: 50%;
  right: 0.34rem;
  display: inline-grid;
  width: 1.95rem;
  height: 1.95rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transform: translateY(-50%);
}

.site-search button:hover,
.site-search button:focus-visible {
  background: rgba(208, 163, 74, 0.14);
  outline: none;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 0.42rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: min(28rem, calc(100vh - 8rem));
  overflow-y: auto;
  border: 1px solid rgba(243, 229, 198, 0.16);
  border-radius: 6px;
  background: rgba(9, 11, 16, 0.98);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46);
}

.site-search.is-open .site-search-results {
  display: block;
}

.site-search-result,
.site-search-empty {
  display: block;
  width: 100%;
  padding: 0.72rem 0.82rem;
  border: 0;
  border-bottom: 1px solid rgba(243, 229, 198, 0.08);
  background: transparent;
  color: var(--parchment);
  text-align: left;
}

.site-search-result {
  cursor: pointer;
}

.site-search-result:hover,
.site-search-result:focus-visible,
.site-search-result.is-active {
  background: rgba(208, 163, 74, 0.12);
  outline: none;
}

.site-search-result strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.site-search-result span,
.site-search-empty {
  color: var(--parchment-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.nav-links {
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1.6vw, 1.1rem);
  font-size: 0.84rem;
  color: var(--parchment-muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--parchment);
}

.nav-links a[aria-current="page"] {
  color: var(--parchment);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: clamp(6.8rem, 10vw, 9rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-background,
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background {
  background:
    linear-gradient(90deg, rgba(9, 11, 16, 0.2), rgba(9, 11, 16, 0.1)),
    url("./assets/hero-background.png") center / cover no-repeat;
  opacity: 0.2;
}

.hero-noise {
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 52rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 58rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 6.4rem;
  line-height: 0.96;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 1rem 3rem var(--shadow);
}

h1 span {
  display: block;
}

h1 span:last-child {
  font-size: 0.78em;
}

.lede {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: rgba(243, 229, 198, 0.88);
  font-size: 1.35rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: var(--gold);
  color: #161006;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.26);
}

.secondary-action {
  border: 1px solid rgba(243, 229, 198, 0.28);
  background: rgba(9, 11, 16, 0.36);
  color: var(--parchment);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.source-panel {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(2rem, 4vw, 3rem);
  z-index: 1;
  display: flex;
  max-width: min(46rem, calc(100% - 2rem));
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.source-panel a {
  padding: 0.5rem 0.68rem;
  border: 1px solid rgba(243, 229, 198, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.54);
  color: rgba(243, 229, 198, 0.72);
  font-size: 0.78rem;
  text-decoration: none;
}

.source-panel a:hover {
  border-color: rgba(208, 163, 74, 0.64);
  color: var(--parchment);
}

.thesis-section,
.library-section,
.principles-section,
.source-content,
.bridge-section {
  background: var(--ink);
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.4rem, 8vw, 6rem) 0;
}

.thesis-section {
  border-top: 1px solid rgba(243, 229, 198, 0.13);
}

.thesis-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 5rem);
}

.thesis-grid h2,
.library-section h2,
.principles-section h2 {
  max-width: 58rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 3.25rem;
  line-height: 1.08;
  text-wrap: balance;
}

.thesis-grid p:not(.section-kicker),
.principle-list p {
  color: var(--parchment-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.thesis-grid p:not(.section-kicker) {
  max-width: 62rem;
}

.principles-section {
  border-top: 1px solid rgba(243, 229, 198, 0.1);
  background:
    linear-gradient(180deg, rgba(143, 47, 45, 0.1), transparent 16rem),
    var(--ink-soft);
}

.library-section {
  border-top: 1px solid rgba(243, 229, 198, 0.1);
  background:
    linear-gradient(180deg, rgba(208, 163, 74, 0.08), transparent 18rem),
    #0b0f17;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid rgba(243, 229, 198, 0.14);
  background: rgba(243, 229, 198, 0.13);
}

.library-grid a {
  min-height: 13rem;
  padding: 1.25rem;
  background: #101722;
  color: var(--parchment);
  text-decoration: none;
}

.library-grid a:hover {
  background:
    linear-gradient(180deg, rgba(208, 163, 74, 0.12), rgba(16, 23, 34, 0.98)),
    #101722;
}

.library-grid span {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.95rem;
}

.library-grid strong {
  display: block;
  color: var(--parchment-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(243, 229, 198, 0.14);
  background: rgba(243, 229, 198, 0.13);
}

.principle-list article {
  min-height: 17rem;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  background:
    linear-gradient(180deg, rgba(208, 163, 74, 0.08), rgba(9, 11, 16, 0.08)),
    #101722;
}

.principle-number {
  display: inline-block;
  margin-bottom: 2.2rem;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.92rem;
}

.principle-list h3 {
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.source-main {
  min-height: 100svh;
}

.text-hero {
  position: relative;
  display: grid;
  min-height: 58svh;
  padding: 8.2rem clamp(1rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.text-hero::before,
.text-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.text-hero::before {
  background: url("./assets/hero-background.png") center / cover no-repeat;
  opacity: 0.2;
}

.text-hero::after {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.72)),
    linear-gradient(180deg, rgba(5, 7, 11, 0.42), var(--ink));
}

.page-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, 62rem);
}

.page-title {
  max-width: 13ch;
  font-family: Cinzel, Georgia, serif;
  font-size: 5.5rem;
  line-height: 0.95;
  text-shadow: 0 1rem 3rem var(--shadow);
}

.page-lede {
  max-width: 48rem;
  margin: 1.3rem 0 0;
  color: rgba(243, 229, 198, 0.86);
  font-size: 1.28rem;
  line-height: 1.7;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

.source-aside {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding-top: 0.35rem;
}

.source-aside p {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.source-aside a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(243, 229, 198, 0.12);
  color: var(--parchment-muted);
  text-decoration: none;
}

.source-aside a:hover,
.source-aside a[aria-current="page"] {
  color: var(--parchment);
}

.source-copy {
  display: grid;
  gap: 2rem;
}

.analysis-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(243, 229, 198, 0.11);
}

.bio-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(243, 229, 198, 0.11);
}

.analysis-block h2,
.bio-block h2,
.bridge-section h2 {
  max-width: 58rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 2.75rem;
  line-height: 1.08;
}

.analysis-block p,
.bio-block p,
.bridge-section p {
  max-width: 68rem;
  color: var(--parchment-muted);
  font-size: 1.03rem;
  line-height: 1.78;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(243, 229, 198, 0.13);
  background: rgba(243, 229, 198, 0.12);
}

.lens-grid article {
  min-height: 16rem;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(143, 47, 45, 0.1), rgba(16, 23, 34, 0.98)),
    #101722;
}

.lens-grid span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
}

.lens-grid h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.22;
}

.lens-grid p {
  color: var(--parchment-muted);
  line-height: 1.7;
}

.akiva-stage-grid {
  margin: 1.7rem 0 2rem;
}

.method-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.25rem;
  border: 1px solid rgba(243, 229, 198, 0.13);
  background: rgba(243, 229, 198, 0.12);
}

.method-map article {
  min-height: 15rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(108, 191, 169, 0.1), rgba(16, 23, 34, 0.98)),
    #101722;
}

.method-map span {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.method-map h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.18;
}

.method-map p {
  color: var(--parchment-muted);
  line-height: 1.68;
}

.comparison-scroll {
  max-width: 68rem;
  margin-top: 1.4rem;
  overflow-x: auto;
  border: 1px solid rgba(243, 229, 198, 0.13);
}

.comparison-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  background: #101722;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border: 1px solid rgba(243, 229, 198, 0.13);
  color: var(--parchment-muted);
  line-height: 1.58;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.95rem;
}

.comparison-table tbody th {
  width: 22%;
  color: var(--parchment);
  font-weight: 700;
}

.source-text-card {
  padding: clamp(1.2rem, 3vw, 1.55rem);
  border: 1px solid rgba(208, 163, 74, 0.3);
  background:
    linear-gradient(135deg, rgba(208, 163, 74, 0.11), rgba(16, 23, 34, 0.96)),
    #101722;
}

.source-text-card h2 {
  max-width: 58rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.source-text-card p {
  max-width: 62rem;
  color: var(--parchment-muted);
  line-height: 1.72;
}

.source-text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.source-text-links a {
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(243, 229, 198, 0.18);
  border-radius: 6px;
  color: var(--parchment);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.source-text-links a:hover {
  border-color: rgba(208, 163, 74, 0.68);
  color: var(--gold);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(243, 229, 198, 0.13);
  background: rgba(243, 229, 198, 0.12);
}

.profile-grid article {
  min-height: 16.5rem;
  padding: clamp(1.15rem, 2.4vw, 1.5rem);
  background:
    linear-gradient(180deg, rgba(208, 163, 74, 0.08), rgba(16, 23, 34, 0.98)),
    #101722;
}

.profile-grid span {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 0 1rem;
  border: 1px solid rgba(243, 229, 198, 0.14);
  background: #0b0f17;
}

.profile-grid h3 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.18;
}

.profile-grid p {
  color: var(--parchment-muted);
  line-height: 1.72;
}

.profile-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-link:hover {
  color: var(--parchment);
}

.rabbi-era-feature {
  display: grid;
  gap: 1rem;
}

.rabbi-era-feature h3 {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.rabbi-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(243, 229, 198, 0.13);
  background: rgba(243, 229, 198, 0.12);
}

.rabbi-feature-grid article {
  min-height: 13.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.45rem);
  background:
    linear-gradient(180deg, rgba(208, 163, 74, 0.08), rgba(16, 23, 34, 0.98)),
    #101722;
}

.rabbi-feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 0 1rem;
  border: 1px solid rgba(243, 229, 198, 0.14);
  background: #07080c;
}

.rabbi-feature-grid span {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rabbi-feature-grid h4 {
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.18;
}

.rabbi-feature-grid p {
  color: var(--parchment-muted);
  line-height: 1.7;
}

.rabbi-image-credit {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.rabbi-image-credit:hover {
  color: var(--parchment);
}

.rabbis-index-controls {
  scroll-margin-top: 7rem;
}

.rabbi-filter-label {
  display: block;
  margin: 1.2rem 0 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rabbi-filter {
  width: min(100%, 34rem);
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(243, 229, 198, 0.2);
  border-radius: 6px;
  background: rgba(5, 7, 11, 0.82);
  color: var(--parchment);
  font: inherit;
}

.rabbi-filter:focus {
  border-color: rgba(208, 163, 74, 0.72);
  outline: none;
}

.rabbi-index-count {
  margin-top: 0.75rem;
  color: var(--parchment-muted);
}

.rabbi-index {
  display: grid;
  gap: 1.35rem;
}

.rabbi-era {
  display: grid;
  gap: 0.8rem;
  scroll-margin-top: 7rem;
}

.rabbi-era-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(243, 229, 198, 0.12);
  padding-bottom: 0.55rem;
}

.rabbi-era-heading h3 {
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.rabbi-era-heading span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.rabbi-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(243, 229, 198, 0.11);
  background: rgba(243, 229, 198, 0.1);
}

.rabbi-card {
  min-height: 5.5rem;
  padding: 0.9rem;
  background:
    linear-gradient(180deg, rgba(108, 191, 169, 0.06), rgba(16, 23, 34, 0.98)),
    #101722;
}

.rabbi-card strong {
  display: block;
  color: var(--parchment);
  font-size: 0.98rem;
  line-height: 1.3;
}

.rabbi-card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--parchment-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-art {
  margin: 0;
  border: 1px solid rgba(243, 229, 198, 0.14);
  background: #101722;
  overflow: hidden;
}

.profile-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.profile-portrait {
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: center;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(243, 229, 198, 0.13);
  background:
    linear-gradient(135deg, rgba(208, 163, 74, 0.08), rgba(16, 23, 34, 0.97)),
    #101722;
}

.profile-portrait img {
  display: block;
  width: 100%;
  max-width: 13rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(243, 229, 198, 0.16);
  background: #07080c;
}

.profile-portrait figcaption {
  color: var(--parchment-muted);
  line-height: 1.7;
}

.profile-portrait strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--parchment);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.12;
}

.image-credit {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
}

.image-credit a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

.power-grid article {
  background:
    linear-gradient(180deg, rgba(143, 47, 45, 0.13), rgba(16, 23, 34, 0.98)),
    #101722;
}

.profile-note {
  padding: clamp(1.25rem, 3vw, 1.7rem);
  border-left: 2px solid var(--gold);
  background: rgba(208, 163, 74, 0.07);
}

.profile-note h2 {
  max-width: 58rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 2.15rem;
  line-height: 1.1;
}

.profile-note p {
  max-width: 66rem;
  color: var(--parchment-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.warning-note {
  border-left-color: #d14238;
  background: rgba(143, 47, 45, 0.11);
}

.quote-art {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: center;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid rgba(243, 229, 198, 0.13);
  background:
    linear-gradient(135deg, rgba(208, 163, 74, 0.08), rgba(143, 47, 45, 0.08)),
    #101722;
}

.quote-art img {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
  border: 1px solid rgba(243, 229, 198, 0.12);
  background: rgba(0, 0, 0, 0.24);
}

.quote-art figcaption {
  color: var(--parchment-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.mafia-grid article {
  background:
    linear-gradient(180deg, rgba(143, 47, 45, 0.12), rgba(16, 23, 34, 0.98)),
    #101722;
}

.bridge-section {
  border-top: 1px solid rgba(243, 229, 198, 0.11);
  background:
    linear-gradient(180deg, rgba(208, 163, 74, 0.08), transparent 15rem),
    #0b0f17;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-links a {
  padding: 0.78rem 1rem;
  border: 1px solid rgba(243, 229, 198, 0.18);
  border-radius: 6px;
  color: var(--parchment);
  text-decoration: none;
}

.page-links a:hover {
  border-color: rgba(208, 163, 74, 0.64);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.75rem;
  }

  .header-mission,
  .site-search,
  .nav-links {
    justify-self: start;
  }

  .site-search {
    width: min(100%, 30rem);
  }

  .header-mission {
    align-items: flex-start;
  }

  .header-mission-title {
    font-size: 0.92rem;
  }

  .header-mission-subtitle {
    font-size: 0.64rem;
  }

  .header-mission-hebrew {
    font-size: 0.76rem;
  }

  .header-mission-tikkun-line {
    justify-content: flex-start;
  }

  .header-mission-tikkun {
    font-size: 0.76rem;
  }

  .header-mission-repair {
    font-size: 0.62rem;
  }

  .hero {
    min-height: 90svh;
    padding-top: 12.7rem;
  }

  .text-hero {
    padding-top: 12.7rem;
  }

  .source-panel {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    justify-content: flex-start;
    margin-top: 2.2rem;
  }

  h1 {
    font-size: 4.7rem;
  }

  .lede {
    font-size: 1.18rem;
  }

  .thesis-grid h2,
  .library-section h2,
  .principles-section h2 {
    font-size: 2.45rem;
  }

  .thesis-grid,
  .principle-list,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .library-grid,
  .profile-grid,
  .rabbi-feature-grid,
  .rabbi-list,
  .lens-grid,
  .method-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-art {
    grid-template-columns: 1fr;
  }

  .profile-art img {
    aspect-ratio: 4 / 3;
  }

  .profile-portrait {
    grid-template-columns: 1fr;
  }

  .profile-portrait img {
    max-width: 15rem;
  }

  .source-aside {
    position: static;
  }

  .principle-list article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.92rem;
  }

  .brand-emblems {
    width: 4.55rem;
    height: 2.35rem;
  }

  .brand-emblems img {
    width: 2.15rem;
    height: 2.15rem;
  }

  .header-mission {
    gap: 0.12rem;
  }

  .header-mission-title {
    font-size: 0.78rem;
  }

  .header-mission-subtitle {
    font-size: 0.56rem;
  }

  .header-mission-hebrew {
    font-size: 0.68rem;
  }

  .header-mission-tikkun {
    font-size: 0.68rem;
  }

  .header-mission-repair {
    font-size: 0.56rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .site-search {
    width: 100%;
  }

  h1 {
    font-size: 2.85rem;
  }

  h1 span:last-child {
    font-size: 0.72em;
  }

  .thesis-grid h2,
  .library-section h2,
  .principles-section h2,
  .analysis-block h2,
  .bridge-section h2 {
    font-size: 2rem;
  }

  .page-title {
    font-size: 3.2rem;
  }

  .page-lede {
    font-size: 1.1rem;
  }

  .text-hero {
    min-height: auto;
    padding-top: 13.6rem;
    padding-bottom: 3rem;
  }

  .page-content {
    align-self: start;
  }

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

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .library-grid,
  .profile-grid,
  .lens-grid {
    grid-template-columns: 1fr;
  }

  .source-panel a {
    font-size: 0.74rem;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 2.55rem;
  }

  .brand {
    font-size: 0.84rem;
  }

  .brand-emblems {
    width: 3.7rem;
  }
}
