
:root {
  --ink: #2c2925;
  --muted: #7a7368;
  --light: #aea69b;
  --rule: #e5dfd2;
  --rule-light: #f0ebdf;
  --accent: #6e4f2a;
  --accent-light: #c7a878;
  --hl: #fdf8ec;
  --bg: #fbf9f3;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(60,50,30,0.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Crimson Text', 'Crimson Pro', Georgia, 'Cambria', serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
}
.site-title { font-family: 'Playfair Display', 'Garamond', serif; font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-title .lname { color: var(--accent); }
.site-title .credentials { color: var(--muted); font-style: italic; font-size: 14px; font-weight: 400; margin-left: 6px; }
nav.primary { display: flex; gap: 18px; align-items: center; font-size: 15px; flex-wrap: wrap; }
nav.primary a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color 0.15s; }
nav.primary a:hover, nav.primary a.active { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
  .site-header .inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  nav.primary { width: 100%; row-gap: 8px; column-gap: 14px; font-size: 14px; }
  nav.primary a { white-space: nowrap; }
}
[dir="rtl"] nav.primary { justify-content: flex-end; }
.container { max-width: 760px; margin: 0 auto; padding: 36px 24px 80px; }
.container.wide { max-width: 1080px; }
h1, h2, h3, h4 { font-family: 'Playfair Display', 'Garamond', serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: break-word; word-wrap: break-word; }
h1 { font-size: 34px; margin: 0 0 8px; color: var(--ink); }
h2 { font-size: 24px; margin: 36px 0 12px; color: var(--accent); border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
h3 { font-size: 18px; margin: 24px 0 8px; color: var(--ink); }
@media (max-width: 600px) {
  .container { padding: 20px 16px 60px; }
  h1 { font-size: 24px; line-height: 1.2; }
  h2 { font-size: 19px; margin: 26px 0 10px; }
  h3 { font-size: 16px; }
  body { font-size: 17px; }
  article.body p:first-of-type::first-letter { font-size: 2.6em; }
}
.subtitle { color: var(--muted); font-style: italic; font-size: 17px; margin-bottom: 22px; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color 0.15s; }
a:hover { border-color: var(--accent); }
hr { border: none; border-top: 1px solid var(--rule); margin: 28px 0; }
blockquote { border-left: 3px solid var(--accent-light); margin: 16px 0; padding: 4px 18px; color: #3a3530; font-style: italic; background: var(--hl); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.meta a { color: var(--muted); border-color: transparent; }
.meta a:hover { color: var(--accent); border-color: var(--accent); }
.tags { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.tag { display: inline-block; background: var(--hl); color: var(--accent); font-size: 12px; padding: 3px 10px; border-radius: 12px; margin: 2px 4px 2px 0; border: 1px solid var(--rule-light); text-decoration: none; }
a.tag:hover { background: var(--accent-light); color: var(--card); border-color: var(--accent-light); }
.muted { color: var(--muted); font-size: 0.9em; }
.citation { background: var(--hl); border-left: 3px solid var(--accent); padding: 10px 16px; margin: 18px 0; font-size: 14.5px; color: #3a3530; font-style: italic; }
.citation::before { content: "Citation: "; font-style: normal; font-weight: 600; color: var(--accent); }
article.body { overflow-wrap: break-word; word-wrap: break-word; }
article.body p { margin: 0 0 14px; }
article.body img, article.body iframe, article.body video, article.body table { max-width: 100%; height: auto; }
article.body table { border-collapse: collapse; display: block; overflow-x: auto; }
article.body pre, article.body code { white-space: pre-wrap; word-wrap: break-word; }
article.body a { overflow-wrap: anywhere; }
article.body p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--accent);
  font-weight: 600;
}
article.body[lang="he"], article.body[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'David Libre', 'Frank Ruhl Libre', Georgia, serif;
}
article.body[dir="rtl"] p:first-of-type::first-letter { float: right; margin: 0.1em 0 0 0.1em; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-right: 5px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--hl); color: var(--muted); border: 1px solid var(--rule-light); }
.pill-published, .pill-peer-review-articles, .pill-hebrew, .pill-jewish-press, .pill-book {
  background: var(--hl); color: var(--accent); border: 1px solid var(--rule-light);
}
.pill-peer-review-articles { background: #f5efe2; color: var(--accent); }
.pill-jewish-press { background: #f9f3e7; color: #6e4f2a; }
.pill-hebrew { background: #f3eee0; color: #5a4221; }
.pill-book { background: #ebe1cb; color: #5a4221; }
.hero {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; margin-bottom: 32px; box-shadow: var(--shadow);
}
.hero img { width: 100%; border-radius: 2px; border: 1px solid var(--rule); }
.hero h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
.hero .lifespan { font-style: italic; color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.hero .summary { margin: 6px 0 12px; font-size: 16px; line-height: 1.6; }
.hero .quick { font-size: 13px; color: var(--muted); }
.hero .quick strong { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 14px; padding: 18px; margin-bottom: 22px; }
  .hero > div:first-child { max-width: 200px; margin: 0 auto; }
  .hero h1 { font-size: 22px; text-align: center; }
  .hero .lifespan { text-align: center; }
}
.stats { display: flex; gap: 0; flex-wrap: wrap; margin: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; justify-content: space-around; }
.stat-card { background: transparent; border: none; border-radius: 0; padding: 4px 18px; min-width: 100px; text-align: center; box-shadow: none; flex: 1 1 auto; }
a.stat-card { text-decoration: none; color: inherit; transition: color 0.15s; border: none; }
a.stat-card:hover { color: var(--accent); }
a.stat-card:hover .n { color: var(--accent); }
.stat-card .n { font-size: 28px; font-weight: 500; color: var(--ink); font-family: 'Playfair Display', serif; line-height: 1.1; }
.stat-card .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; font-weight: 500; }
@media (max-width: 600px) { .stats { gap: 4px; padding: 14px 0; } .stat-card { min-width: 80px; padding: 4px 8px; } .stat-card .n { font-size: 22px; } }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.article-list li:last-child { border-bottom: none; }
.article-list .title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; border: none; line-height: 1.3; display: block; margin-bottom: 4px; }
.article-list .title:hover { color: var(--accent); }
.article-list .ex { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.5; }
.article-list .row-meta { font-size: 12.5px; color: var(--light); margin-top: 6px; }
.article-list .row-meta a { color: var(--light); border: none; }
.article-list .row-meta a:hover { color: var(--accent); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.cat-card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 18px; text-decoration: none; color: var(--ink); transition: transform 0.15s, border-color 0.15s; box-shadow: var(--shadow); }
.cat-card:hover { transform: translateY(-2px); border-color: var(--accent-light); }
.cat-card .cat-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.cat-card .cat-count { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cat-card .cat-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.year-bar { margin: 18px 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.year-bar a { display: inline-block; padding: 3px 10px; margin-right: 4px; margin-bottom: 4px; background: var(--hl); border: 1px solid var(--rule-light); border-radius: 3px; color: var(--muted); font-size: 13px; }
.year-bar a:hover, .year-bar a.active { background: var(--accent); color: var(--card); border-color: var(--accent); }
.prev-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.prev-next > div { max-width: 48%; }
.prev-next .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.prev-next a { color: var(--ink); border: none; }
.prev-next a:hover { color: var(--accent); }
.search-box { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 24px; margin: 18px 0; box-shadow: var(--shadow); }
input#search-input { width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 3px; font-family: inherit; font-size: 17px; background: var(--bg); color: var(--ink); }
input#search-input:focus { outline: none; border-color: var(--accent); }
.search-help { font-size: 13px; color: var(--muted); margin-top: 8px; }
#search-results { margin-top: 18px; }
.search-result { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.search-result .title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; }
.search-result .snippet { color: var(--muted); font-size: 14px; margin-top: 4px; }
.search-result mark { background: var(--accent-light); color: var(--ink); padding: 0 2px; }
.lang-toggle {
  display: flex; gap: 0; margin: 18px 0 24px;
  border: 1px solid var(--rule); border-radius: 4px;
  overflow: hidden; background: var(--card); box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.lang-btn {
  flex: 1 1 auto; min-width: 140px;
  padding: 10px 16px;
  background: var(--card); color: var(--ink);
  border: none; border-right: 1px solid var(--rule);
  font-family: inherit; font-size: 14px; cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: center;
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover { background: var(--hl); }
.lang-btn.active { background: var(--accent); color: var(--card); font-weight: 600; }
.lang-btn:focus { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.translation-body { margin-top: 0; }
article[hidden], [hidden] { display: none !important; }
.translator-note { color: var(--muted); font-size: 13px; padding: 8px 14px; background: var(--hl); border-left: 3px solid var(--accent-light); border-radius: 2px; margin: 0 0 18px; }
footer.site-footer { border-top: 1px solid var(--rule); background: var(--card); padding: 28px 24px; margin-top: 60px; text-align: center; color: var(--muted); font-size: 13.5px; }
footer.site-footer a { color: var(--muted); }
footer.site-footer .credit { font-style: italic; margin-top: 6px; }
.zl { font-size: 0.8em; color: var(--muted); margin-left: 4px; }
