/* Ezra LaTalmid — Tribute Site
   In memory of Rabbi Nachman Morgan, זצ"ל */

:root {
  --navy: #1b2a3d;
  --navy-dark: #101c29;
  --cream: #faf6ee;
  --cream-deep: #f2ead9;
  --gold: #a8783f;
  --gold-light: #c79a5c;
  --charcoal: #2b2b28;
  --muted: #6b6b63;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hebrew {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  direction: rtl;
  unicode-bidi: isolate;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--navy);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
}

.brand .hebrew {
  color: var(--gold-light);
  font-size: 17px;
  margin-inline-start: 10px;
}

.site-nav a {
  color: var(--cream-deep);
  margin-left: 22px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.site-nav a:hover { color: var(--gold-light); }

.site-nav a.emphasis {
  border: 1px solid var(--gold-light);
  padding: 6px 14px;
  border-radius: 3px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 64px 24px 56px;
}

.hero-portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--cream-deep);
  border: 3px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait svg { width: 60%; height: 60%; }

.hero h1 {
  color: var(--cream);
  font-size: 40px;
  margin: 0 0 6px;
}

.hero .hebrew-name {
  font-size: 26px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 14px;
}

.hero .dates {
  color: var(--cream-deep);
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.hero .tagline {
  font-style: italic;
  font-size: 19px;
  color: var(--gold-light);
  max-width: 520px;
  margin: 18px auto 0;
}

/* Sections */
section { padding: 56px 0; }

section h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 36px;
  font-size: 17px;
}

.intro p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

/* Shiurim callout */
.shiurim-callout {
  background: var(--cream-deep);
  border-top: 1px solid #e5dcc7;
  border-bottom: 1px solid #e5dcc7;
}

.callout-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.callout-box h2 { margin-bottom: 12px; }

.callout-box p { color: var(--muted); margin-bottom: 28px; }

.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--cream) !important;
  padding: 16px 38px;
  border-radius: 3px;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.btn-primary:hover { background: var(--gold); }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  padding: 13px 30px;
  border-radius: 3px;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  text-decoration: none !important;
}

.btn-secondary:hover { background: var(--navy); color: var(--cream) !important; }

/* Biography */
.biography .container { max-width: 720px; }

.biography p { margin-bottom: 20px; }

.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--navy);
}

.pull-quote .hebrew, .pull-quote .yiddish {
  display: block;
  font-style: normal;
  margin-top: 6px;
  color: var(--gold);
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 15px;
  color: var(--muted);
}

/* Gallery */
.gallery {
  background: var(--cream-deep);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.gallery-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid #e8e0cd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(27,42,61,0.06);
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
}

.gallery-grid figcaption {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* In the News */
.press ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
}

.press li {
  border-top: 1px solid #e5dcc7;
  padding: 16px 0;
}

.press li:last-child { border-bottom: 1px solid #e5dcc7; }

.press .source {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.press a.headline {
  display: block;
  color: var(--navy);
  font-size: 18px;
  text-decoration: none;
}

.press a.headline:hover { color: var(--gold); text-decoration: underline; }

/* Legacy */
.legacy {
  background: var(--navy);
  color: var(--cream-deep);
}

.legacy .container { max-width: 700px; text-align: center; }

.legacy h2 { color: var(--cream); }

.legacy p { color: var(--cream-deep); }

.glossary {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  text-align: left;
  font-size: 16px;
}

.glossary div {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 10px;
}

.glossary .hebrew { color: var(--gold-light); }

/* Shiurim page */
.shiurim-hero {
  background: var(--cream-deep);
  text-align: center;
  padding: 56px 24px;
}

.shiurim-hero h1 { font-size: 34px; margin-bottom: 8px; }

.shiurim-hero .hebrew { display: block; color: var(--gold); font-size: 22px; margin-bottom: 18px; }

.shiurim-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); }

.shiur-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.shiur-card {
  background: #fff;
  border: 1px solid #e8e0cd;
  border-radius: 6px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(27,42,61,0.05);
}

.shiur-card h3 { margin-top: 0; font-size: 21px; }

.shiur-card p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }

.method-note {
  max-width: 700px;
  margin: 56px auto 0;
  text-align: center;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--cream-deep);
  padding: 34px 24px 26px;
  text-align: center;
  font-size: 14px;
}

.site-footer .yahrzeit {
  color: var(--gold-light);
  margin-bottom: 14px;
  font-size: 15px;
}

.site-footer .hebrew { font-size: 15px; }

.donate-line {
  margin-top: 18px;
  font-size: 12.5px;
  opacity: 0.7;
}

.donate-line a { color: var(--cream-deep); text-decoration: underline; }

.site-footer .copyright {
  margin-top: 16px;
  font-size: 11.5px;
  opacity: 0.5;
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 30px; }
  .site-nav a { margin-left: 12px; font-size: 14px; }
  section { padding: 40px 0; }
}
