/* English genealogy landing pages: archival reading room */
.ancestry-page {
  --landing-blue: hsl(211, 56%, 24%);
  --landing-red: hsl(9, 49%, 37%);
  --landing-wash: hsl(38, 35%, 89%);
}

.ancestry-page .site-header {
  background: rgba(250, 247, 238, .92);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem clamp(3.5rem, 7vw, 6rem);
  background: var(--color-paper);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 245, 236, .97) 0%, rgba(248, 245, 236, .82) 48%, rgba(248, 245, 236, .32) 100%);
}

.landing-letter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 30%;
  opacity: .38;
  filter: sepia(.25) contrast(.9);
}

.landing-wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.landing-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  color: var(--landing-red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.landing-kicker::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.landing-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.035em;
}

.landing-hero h1 em { color: var(--landing-red); }
.landing-lede { max-width: 590px; margin: 1.6rem 0 2rem; color: var(--color-slate-600); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.landing-hero .store-badges { justify-content: flex-start; margin-top: 1.3rem; }
.store-price-note { max-width: 500px; margin-top: .8rem; color: var(--color-slate-500); font-size: .78rem; line-height: 1.55; }
.landing-actions .btn-primary { background: var(--landing-blue); box-shadow: none; }
.landing-actions .btn-primary:hover { background: hsl(211, 56%, 18%); }

.landing-section { padding: clamp(3.75rem, 7vw, 6.5rem) 1.5rem; }
.landing-section--white { background: var(--color-white); }
.landing-section--ink { color: hsl(40, 23%, 92%); background: var(--landing-blue); }
.landing-section--ink h2, .landing-section--ink h3 { color: inherit; }
.landing-section--ink p { color: hsl(40, 20%, 84%); }
.landing-eyebrow { margin-bottom: .75rem; color: var(--landing-red); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.landing-section--ink .landing-eyebrow { color: hsl(37, 69%, 72%); }
.landing-section h2 { max-width: 720px; font-family: var(--font-serif); font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 600; line-height: 1.03; letter-spacing: -.025em; }
.landing-section h2 em { color: var(--landing-red); }
.landing-intro { max-width: 680px; margin-top: 1.25rem; color: var(--color-slate-600); font-size: 1.08rem; line-height: 1.8; }

.ancestry-timeline { max-width: 890px; margin: 3rem auto 0; border-left: 1px solid var(--color-paper-dark); }
.timeline-item { position: relative; padding: 0 0 2.8rem 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { position: absolute; top: .48rem; left: -.4rem; width: .72rem; height: .72rem; border: 2px solid var(--landing-red); border-radius: 50%; background: var(--color-white); content: ""; }
.timeline-year { display: block; margin-bottom: .25rem; color: var(--landing-red); font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
.timeline-item h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; }
.timeline-item p { max-width: 650px; margin-top: .35rem; color: var(--color-slate-600); line-height: 1.75; }

.letter-pullquote { max-width: 780px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem); border-top: 1px solid hsl(37, 30%, 45%); border-bottom: 1px solid hsl(37, 30%, 45%); text-align: center; }
.letter-pullquote blockquote { font-family: var(--font-serif); font-size: clamp(1.65rem, 3.7vw, 2.75rem); font-style: italic; line-height: 1.25; }
.letter-pullquote cite { display: block; margin-top: 1.25rem; font-size: .84rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }

.learning-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.learning-list { margin-top: 1.75rem; list-style: none; }
.learning-list li { position: relative; padding: .9rem 0 .9rem 1.6rem; border-bottom: 1px solid var(--color-paper-dark); color: var(--color-slate-600); }
.learning-list li::before { position: absolute; left: 0; color: var(--landing-red); content: "—"; }
.app-frame { position: relative; max-width: 340px; margin: 0 auto; padding: .65rem; border: 1px solid var(--color-paper-dark); border-radius: 1.2rem; background: var(--color-white); box-shadow: 13px 16px 0 var(--landing-wash); transform: rotate(2deg); }
.app-frame img { display: block; border-radius: .8rem; }
.app-frame figcaption { padding: .8rem .45rem .2rem; color: var(--color-slate-500); font-size: .78rem; text-align: center; }

.video-shell { max-width: 890px; margin: 2.75rem auto 0; }
.video-consent { width: 100%; min-height: 300px; padding: 2rem; border: 1px solid hsl(211, 30%, 36%); background: linear-gradient(135deg, hsl(211, 48%, 20%), hsl(211, 42%, 28%)); color: hsl(40, 23%, 92%); text-align: center; }
.video-consent h3 { margin-bottom: .65rem; font-family: var(--font-serif); font-size: 2rem; font-weight: 600; }
.video-consent p { max-width: 540px; margin: 0 auto 1.35rem; color: hsl(40, 20%, 82%); line-height: 1.65; }
.video-consent button { border: 1px solid hsl(37, 60%, 70%); background: transparent; color: hsl(40, 23%, 92%); }
.video-consent button:hover { border-color: hsl(40, 23%, 92%); color: hsl(40, 23%, 92%); background: rgba(255,255,255,.08); }
.video-note { margin-top: .8rem; color: var(--color-slate-500); font-size: .78rem; text-align: center; }
.video-loaded { position: relative; padding-top: 56.25%; }
.video-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.landing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.landing-card { padding: 1.7rem; border-top: 3px solid var(--landing-red); background: var(--color-paper); }
.landing-card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.landing-card p { margin-top: .5rem; color: var(--color-slate-600); font-size: .94rem; line-height: 1.7; }
.source-note { max-width: 840px; margin: 3rem auto 0; padding: 1.25rem 1.4rem; border-left: 3px solid var(--landing-red); background: hsl(38, 29%, 91%); color: var(--color-slate-600); font-size: .88rem; line-height: 1.65; }
.source-note strong { color: var(--color-ink); }
.practical-faq { max-width: 820px; margin: 2.75rem auto 0; }
.practical-faq details { border-bottom: 1px solid var(--color-paper-dark); }
.practical-faq summary { padding: 1rem 0; color: var(--color-ink); cursor: pointer; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }
.practical-faq p { max-width: 720px; padding: 0 0 1.2rem; color: var(--color-slate-600); line-height: 1.75; }
.landing-download { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; max-width: 900px; margin: 0 auto; }
.landing-download h2 { max-width: 520px; }
.landing-download .store-badges { justify-content: flex-start; }

.audience-resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.audience-resource-links a { padding: .65rem 1rem; border: 1px solid var(--color-paper-dark); border-radius: 99px; background: var(--color-white); color: var(--color-ink-blue); font-size: .88rem; }
.audience-resource-links a:hover { border-color: var(--color-ink-blue); }

@media (max-width: 700px) {
  .landing-hero::after { background: rgba(248, 245, 236, .88); }
  .landing-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .learning-layout, .landing-cards { grid-template-columns: 1fr; }
  .learning-layout { gap: 3rem; }
  .app-frame { max-width: 300px; }
  .video-consent { min-height: 260px; }
  .landing-download { align-items: flex-start; }
}