/* ============================================
   Jewish Mythology — Shared Design System
   Category colors, ornamental dividers, hero, footer.
   Loaded by ALL pages (homepage, text, about, library).
   ============================================ */

/* Design system tokens — shared across all pages */
:root {
  --bg: #F5F2EB;
  --bg-warm: #EDE8DF;
  --bg-card: #FDFCF9;
  --text-primary: #1B3A4B;
  --text-secondary: #3D5A5E;
  --text-muted: #8A9A94;
  --accent: #C4A661;
  --accent-light: #D4BA7A;
  --accent-bg: rgba(196, 166, 97, 0.10);
  --navy: #1B3A4B;
  --navy-light: #4A7C6F;
  --border: rgba(27, 58, 75, 0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

/* --- Shared Header --- */
.header { border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; background: var(--bg); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-img { height: 36px; width: 36px; object-fit: contain; border-radius: 50%; }
.logo-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
.header-nav { display: flex; gap: 1.25rem; align-items: center; margin-left: auto; }
.header-nav-link { font-family: 'Source Sans 3', sans-serif; font-size: 0.875rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.header-nav-link:hover { color: var(--accent); }
@media (max-width: 640px) { .header-inner { padding: 0 1rem; height: 50px; } }

/* --- Ornamental Dividers --- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--accent);
  opacity: 0.4;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- Hero Section (Homepage) --- */
.hero-section {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 166, 97, 0.06) 0%, transparent 60%);
}

.hero-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-subtitle {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 2rem;
}
.hero-subtitle-nowrap {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .hero-subtitle-nowrap { white-space: normal; }
}

.hero-search {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 16px 56px 16px 52px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.1875rem;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  -webkit-appearance: none;
  box-shadow: var(--shadow-md);
}

.hero-search input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow-md);
}

.hero-search input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.hero-search .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.hero-search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.hero-search-submit:hover {
  background: var(--accent-light);
  transform: translateY(-50%) scale(1.05);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stats strong {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem 1.5rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
  }
  .hero-search input {
    padding: 14px 48px 14px 44px;
    font-size: 1.0625rem;
  }
  .hero-stats {
    gap: 1.25rem;
    font-size: 0.8125rem;
  }
}

/* --- Shared Footer (all pages) --- */
.site-footer {
  padding: 2.5rem 2rem 2rem;
  background: var(--bg-warm);
  text-align: left;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

