/* Rational Sacred — approved local multimedia direction C. */
@import url("fonts.css");
:root {
  color-scheme: dark;
  --bg: #0c1015;
  --panel: #121b24;
  --panel-hover: #192735;
  --text: #f6f4ed;
  --muted: #c4cbd2;
  --blue: #9dcdf1;
  --sand: #e5cba2;
  --line: #4a5967;
  --reading-size: 1.375rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 1.375rem; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { color: var(--sand); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sand); outline-offset: 5px;
}
button, summary, .button-link { touch-action: manipulation; }
button { min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--blue); border-radius: 3px; color: var(--text); background: transparent; font: inherit; cursor: pointer; }
button:hover { background: var(--panel-hover); }
button:disabled { opacity: .65; cursor: default; }
.skip { position: absolute; top: -20rem; left: 1rem; z-index: 20; padding: 1rem; background: var(--bg); color: var(--text); }
.skip:focus { top: 1rem; }
.site-header { max-width: 1320px; margin: auto; padding: 1.5rem 2.5rem; display: flex; gap: 2rem; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: .5rem; flex: 0 1 18rem; }
.brand-name { display: flex; flex-direction: column; font-size: 1.8rem; font-weight: 600; line-height: .96; letter-spacing: .09em; }
.brand-name > span:last-child { color: var(--sand); }
.brand small { font-size: 1rem; color: var(--muted); line-height: 1.3; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.35rem; font-size: 1.125rem; }
.site-header nav a { display: block; padding: .6rem 0; text-decoration: none; color: var(--text); border-bottom: 2px solid transparent; }
.site-header nav a[aria-current="page"] { color: var(--sand); border-bottom-color: var(--sand); }
.site-header nav a:hover { color: var(--blue); text-decoration: underline; }
main { max-width: 1320px; margin: auto; padding: 0 2.5rem 4rem; }
h1, h2, h3 { font-family: "Source Sans 3", system-ui, sans-serif; font-weight: 600; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 3.7vw, 3.2rem); letter-spacing: -.025em; margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); margin: 0 0 1.25rem; letter-spacing: -.015em; }
h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }
p { margin: 0 0 1.5rem; }
strong { font-weight: 600; }
figure { margin: 0; }
section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.eyebrow { color: var(--sand); font: 600 1.05rem/1.5 "Source Sans 3", system-ui, sans-serif; letter-spacing: .055em; margin: 0 0 1.15rem; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin: 0; padding: 3.5rem 0; border: 0; }
.hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.6rem); }
.hero p:not(.eyebrow) { color: var(--muted); max-width: 34rem; }
.hero img { width: 100%; height: auto; aspect-ratio: 3/2; display: block; object-fit: cover; }
figcaption { margin-top: .8rem; color: var(--muted); font: 1.125rem/1.55 "Source Sans 3", system-ui, sans-serif; }
.button-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; text-align: center; padding: .65rem 1.3rem; font: 600 1.125rem/1.45 "Source Sans 3", system-ui, sans-serif; border: 1px solid var(--sand); border-radius: 3px; background: var(--sand); color: #0c1015; text-decoration: none; }
.button-link:hover { background: var(--text); color: var(--bg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.button-secondary { color: var(--blue); background: transparent; border-color: var(--blue); }
.button-secondary:hover { color: var(--bg); background: var(--blue); }
.article-list { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card-grid li { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.card-image { display: block; width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
.card-grid li:nth-child(2) .card-image { object-position: 20% 55%; }
.card-grid li:nth-child(3) .card-image { object-position: 80% 45%; }
.card-copy { padding: 1.3rem; }
.article-list a { font-size: 1.65rem; line-height: 1.25; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.article-list a:hover { color: var(--blue); text-decoration-color: currentColor; }
.article-list p { color: var(--muted); font-size: 1.2rem; line-height: 1.6; margin: 1rem 0 0; }
.home > #articles { margin-top: 0; }
.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.featured h2 a, .featured h3 a { color: var(--text); text-decoration-color: var(--line); }
.featured aside { border-left: 1px solid var(--line); padding-left: 2rem; }
.featured aside h3 { margin-top: 0; }
.featured p:not(.eyebrow) { color: var(--muted); }
.podcast-promo { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--panel); border: 1px solid var(--line); padding: 2rem; }
.podcast-promo p:last-child { margin: 0; color: var(--muted); }
.podcast-promo .button-link { flex-shrink: 0; background: var(--blue); border-color: var(--blue); }
.home > article { max-width: 50rem; margin: 4rem auto 0; font-family: "Source Serif 4", Georgia, serif; }
.subtitle, .source-note, .sources span { color: var(--muted); }
.subtitle { margin-bottom: 2rem; }
.sources { padding-left: 1.6rem; }
.sources li { margin-bottom: 1.4rem; padding-left: .25rem; }
.sources span { display: block; margin-top: .45rem; }
.sources strong { color: var(--sand); }
.reading-main { padding-top: 2.5rem; }
.pdf-download { width: 100%; max-width: 45rem; margin: 0 auto 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font: 1.125rem/1.5 "Source Sans 3", system-ui, sans-serif; overflow-wrap: anywhere; }
.pdf-download a { display: inline-block; padding: .35rem 0; font-weight: 700; }
.pdf-download span { display: block; color: var(--muted); font-size: 1rem; }
@media (min-width: 1100px) {
 .reading-main:has(> .pdf-download) { row-gap: 1.5rem; }
 .reading-main:has(> .pdf-download) > .article-toc { grid-row: 1 / span 3; }
 .reading-main:has(> .pdf-download) > .pdf-download,
 .reading-main:has(> .pdf-download) > .research-article { grid-column: 2; }
}
.research-article { max-width: 45rem; margin-inline: auto; font: var(--reading-size)/1.7 "Source Serif 4", Georgia, serif; overflow-wrap: anywhere; min-width: 0; }
.research-article h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.research-article h2 { margin-top: 2.5rem; font-size: 1.5em; }
.research-article h3 { font-size: 1.2em; }
.research-article .back-link { font: 1.125rem/1.6 "Source Sans 3", system-ui, sans-serif; margin-bottom: 1.5rem; }
.reading-controls { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; padding: 1rem 0; margin: 1.5rem 0 2rem; border-block: 1px solid var(--line); font: 1.125rem/1.5 "Source Sans 3", system-ui, sans-serif; }
.reading-controls > span { margin-right: auto; }
.reading-controls output { min-width: 3.3rem; text-align: center; }
.article-toc { max-width: 45rem; margin: 0 auto 2rem; padding: .75rem 1.1rem; border: 1px solid var(--line); border-radius: 3px; font: 1.125rem/1.55 "Source Sans 3", system-ui, sans-serif; }
.article-toc summary { cursor: pointer; padding: .4rem 0; min-height: 44px; color: var(--blue); }
.article-toc ol { padding: 0; list-style: none; }
.article-toc li { margin: .9rem 0; }
.article-toc a { display: block; padding: .25rem 0; color: var(--text); }
.text-quote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--blue); background: #142435; }
blockquote { margin: 0; }
blockquote p { margin: 0; }
cite { font-style: normal; }
.source-ref { white-space: nowrap; }
.article-cover { margin: 2rem 0; }
.article-cover img { display: block; width: 100%; height: auto; max-height: 42rem; object-fit: contain; background: var(--panel); }
.article-list .adam-eve-card { object-position: 50% 44%; }
.chronology-figure { margin: 2rem 0; }
.chronology-figure svg { display: block; width: 100%; height: auto; }
.chronology-notes { padding-left: 1.6rem; }
.chronology-notes li { margin: 1.5rem 0; padding-left: .3rem; }
.sources li:target, .research-article p:target { outline: 2px solid var(--sand); outline-offset: .4rem; }
.catalog-main { max-width: 1200px; min-height: 65vh; }
.page-intro { max-width: 54rem; padding-top: 3.5rem; margin-bottom: 2.5rem; }
.page-intro h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.page-intro > p:last-child { color: var(--muted); }
.catalog-list { display: grid; gap: 1.5rem; }
.catalog-list > li { display: grid; grid-template-columns: 15rem 1fr; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.catalog-list .card-image { aspect-ratio: auto; height: 100%; min-height: 180px; object-fit: cover; }
.catalog-list h2 { font-size: 1.65rem; margin: 0; }
.catalog-list p { max-width: 60ch; }
.empty-podcasts { padding: 2.5rem; margin: 0 0 3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; max-width: 55rem; }
.empty-podcasts p { max-width: 55ch; }
.episode-layout { max-width: 50rem; }
.episode-layout section { margin-top: 2rem; }
dt { font-weight: 600; margin-top: 1rem; }
dd { margin: .25rem 0 1rem; color: var(--muted); }
audio { display: block; width: 100%; margin: 1.5rem 0; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; max-width: 1320px; margin: auto; padding: 2rem 2.5rem; border-top: 1px solid var(--line); font-size: 1.125rem; }
.footer-brand { letter-spacing: .08em; color: var(--text); font-weight: 600; text-decoration: none; }
.site-footer p { margin: .3rem 0 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
@media (min-width: 78rem) {
  .reading-main:has(.article-toc) { display: grid; grid-template-columns: 14rem minmax(0, 45rem); gap: 3.5rem; justify-content: center; align-items: start; }
  .reading-main > .article-toc { position: sticky; top: 1.5rem; max-height: calc(100dvh - 3rem); overflow-y: auto; border: 0; border-left: 2px solid var(--line); padding: 0 1rem; margin: 0; }
}
@media (max-width: 64rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero > div { max-width: 45rem; }
  .hero figure { max-width: 45rem; width: 100%; }
  .hero img { aspect-ratio: 2.1; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { align-items: flex-start; }
  .site-header nav { gap: .25rem 1rem; }
}
@media (max-width: 48rem) {
  body { font-size: 1.25rem; }
  main { padding: 0 1.25rem 3rem; }
  .site-header { padding: 1.25rem; flex-wrap: wrap; align-items: center; gap: 1rem; }
  .brand { flex: 1 1 12rem; }
  .brand-name { font-size: 1.5rem; }
  .brand small { font-size: 1rem; max-width: 16rem; }
  .menu-toggle { font-size: 1.125rem; }
  .site-header nav { width: 100%; justify-content: flex-start; gap: .25rem 1.5rem; }
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 2.65rem; }
  .hero img { aspect-ratio: 1.7; }
  .card-grid { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 2; }
  .card-copy { padding: 1.3rem; }
  .featured { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured aside { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
  .podcast-promo { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .home > article { margin-top: 3rem; }
  .reading-main { padding-top: 1.5rem; }
  .research-article h1 { font-size: 2.15rem; }
  .reading-controls > span { flex-basis: 100%; }
  .reading-controls { gap: .5rem; }
  .reading-controls button { font-size: 1rem; padding: .5rem .65rem; }
  .text-quote { padding: 1.1rem 1.25rem; }
  .catalog-list > li { grid-template-columns: 1fr; }
  .catalog-list .card-image { height: auto; aspect-ratio: 2; min-height: 0; }
  .page-intro { padding-top: 2.5rem; }
  .empty-podcasts { padding: 1.5rem; }
  .site-footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 23rem) {
  .brand { flex-basis: 10rem; }
  .brand small { max-width: 11rem; }
  .reading-controls { gap: .35rem; }
  .reading-controls button { font-size: .9rem; }
  .hero h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Topic navigation: start */
.topic-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .25rem; font: 1.125rem/1.4 "Source Sans 3", system-ui, sans-serif; }
.topic-tags a, .article-list .topic-tags a { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 3px; color: var(--blue); background: var(--panel); font: 1.125rem/1.4 "Source Sans 3", system-ui, sans-serif; text-decoration: none; }
.topic-tags a:hover, .article-list .topic-tags a:hover { color: var(--text); border-color: var(--blue); background: var(--panel-hover); text-decoration: underline; }
.topic-index-link { font-size: 1.125rem; }
.topic-directory { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.topic-directory li { min-width: 0; }
.topic-directory a { display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); font-size: 1.5rem; text-decoration: none; }
.topic-directory a:hover { border-color: var(--blue); background: var(--panel-hover); }
.topic-directory small { color: var(--muted); font-size: 1.125rem; }
@media (max-width: 64rem) { .topic-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) { .topic-directory { grid-template-columns: 1fr; } }
/* Topic navigation: end */

/* Shared language controls and Hebrew reading direction. */
.site-header { flex-wrap: wrap; }
.site-header .language-switch { display: flex; flex: 1 0 100%; width: 100%; gap: .5rem; align-items: center; padding-top: .75rem; border-top: 1px solid var(--line); font-size: 1rem; }
.language-switch-label { margin-inline-end: auto; color: var(--muted); font: 1rem/1.4 system-ui, sans-serif; white-space: nowrap; }
.site-header .language-switch a { min-height: 46px; min-width: 68px; padding: .45rem .7rem; text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.site-header .language-switch a[aria-current="page"] { color: var(--bg); background: var(--sand); border-color: var(--sand); }
html[lang="he"] { font-family: Arial, "Segoe UI", sans-serif; }
html[lang="he"] body { text-align: start; }
html[lang="he"] .research-article { font-family: Arial, "Segoe UI", sans-serif; line-height: 1.8; }
html[lang="he"] :is(h1,h2,h3) { font-family: Arial, "Segoe UI", sans-serif; letter-spacing: normal; line-height: 1.3; }
html[lang="he"] :is(.eyebrow,.brand small) { letter-spacing: normal; }
html[lang="he"] .brand-name { direction: ltr; text-align: right; }
html[lang="he"] .text-quote { border-left: 0; border-right: 4px solid var(--blue); }
html[lang="he"] :is(ol,ul):not(.article-list,.topic-directory) { padding-left: 0; padding-right: 1.5rem; }
html[lang="he"] .article-toc ol { padding: 0; }
html[lang="he"] .featured aside { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 2rem; }
html[lang="he"] .chronology-figure svg { direction: ltr; }
html[lang="he"] [data-original-source] { unicode-bidi: isolate; }
@media (min-width: 78rem) {
 html[lang="he"] .reading-main > .article-toc { border-left: 0; border-right: 2px solid var(--line); }
}
@media (max-width: 48rem) {
 .site-header .language-switch { width: 100%; margin-inline-start: 0; }
 html[lang="he"] .featured aside { border-right: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
}

.card-image.raphael-card { object-position: center 10%; }
