/* Layout refinement of deployed v19. Preserve its typography, palette and motion.
   Section spacing > content grouping > control gaps; all use a four-pixel step. */
.home-page {
  --section-space: clamp(64px, 7.5vw, 96px);
  --section-tail: clamp(48px, 5.625vw, 72px);
  --group-space: 32px;
}
.home-page .collection { padding-block: var(--section-space) var(--section-tail); }
.home-page .collection-heading { margin-bottom: var(--group-space); }
.home-page .memories { padding-block: 24px 64px; }

/* The book stage still reserves the tallest reader: opening never shifts its hit area. */
.home-page .book-page-content { padding: 36px; }
.home-page .book-page-content p { margin-top: 20px; }
.home-page .book-page-content p + p { margin-top: 24px; }
.home-page .book-page-content .book-origin-lead { margin-top: 28px; }
.home-page .book-signature { margin-top: 32px; }
.home-page .book-page-picture { margin-top: 24px; }
.home-page .memories-values { gap: 20px; margin-top: 24px; }
.home-page .book-navigation { margin-top: 20px; }
.home-page .memory-book[data-ready] .book-stage { touch-action: pan-y pinch-zoom; }

/* Align the ending with the header and collection; give contact details a central place. */
.home-page .site-footer { padding-inline: 6%; }
.home-page .footer-contact { margin-inline: auto; }

@media (max-width: 800px) {
  .home-page .book-page-content { padding: 32px; }
}
@media (max-width: 700px) {
  .home-page { --section-space: 64px; --section-tail: 48px; --group-space: 24px; }
  .home-page .collection-heading { gap: 12px; }
  .home-page .memories { padding-block: 16px 48px; }
  .home-page .footer-contact { margin: 0; }
  .home-page .site-footer { padding-block: 32px; gap: 24px; }
}
@media (max-width: 480px) {
  /* Keep 24px at normal text size; enlarged text gains room without shrinking. */
  .home-page .book-page-content { padding: 28px clamp(12px, calc(36px - .75rem), 24px); }
  .home-page .book-page-picture { margin-top: 20px; }
}
