/* Family history page — archive layout for legacy imagery */

.history-page {
  max-width: 960px;
}

.history-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 32px 24px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(124, 211, 255, 0.08), rgba(255, 184, 92, 0.12)),
    rgba(6, 3, 38, 0.94);
  border: 2px solid rgba(191, 239, 255, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.history-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  color: #ffeec9;
  margin-bottom: 14px;
  text-shadow:
    0 0 12px rgba(255, 184, 92, 0.55),
    0 0 24px rgba(124, 211, 255, 0.45);
  line-height: 1.2;
}

.history-hero .history-lede {
  font-size: 1.15rem;
  color: #e8e4ff;
  line-height: 1.65;
  max-width: 38em;
  margin: 0 auto;
}

.history-back {
  display: inline-block;
  margin-bottom: 22px;
  color: #bfefff;
  font-weight: 700;
  text-decoration: none;
}

.history-back:hover {
  text-decoration: underline;
}

.history-chapter {
  margin-bottom: 56px;
}

.history-chapter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.history-chapter-reverse .history-chapter-inner {
  direction: rtl;
}

.history-chapter-reverse .history-chapter-inner > * {
  direction: ltr;
}

@media (max-width: 820px) {
  .history-chapter-inner,
  .history-chapter-reverse .history-chapter-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .history-chapter-reverse .history-chapter-inner > * {
    direction: ltr;
  }
}

.history-figure {
  margin: 0;
}

.history-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 3px solid rgba(255, 215, 0, 0.55);
  box-shadow:
    0 0 28px rgba(255, 200, 120, 0.35),
    0 16px 36px rgba(0, 0, 0, 0.55);
}

.history-figure figcaption {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #d6d2ff;
  font-style: italic;
  line-height: 1.55;
}

.history-chapter-text h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #fff7ff;
  margin-bottom: 16px;
  border-left: 4px solid #ff9a5c;
  padding-left: 14px;
}

.history-chapter-text p {
  color: #dde2ff;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.history-pullquote {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255, 154, 92, 0.12);
  border: 1px dashed rgba(255, 184, 92, 0.45);
  color: #ffeec9;
  font-size: 0.98rem;
  line-height: 1.55;
}

.history-footer-note {
  margin-top: 40px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(7, 4, 42, 0.9);
  border: 1px solid rgba(191, 239, 255, 0.25);
  color: #c9c4e8;
  font-size: 0.9rem;
  line-height: 1.6;
}
