/* Core layout only: spacing, sizing, alignment, and responsive structure. */

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

body {
  margin: 0;
}

img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

main {
  min-block-size: 100vh;
}

.container {
  inline-size: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.narrow {
  max-inline-size: 44rem;
}

.section-shell {
  padding-block: 4.5rem;
}

.cta-shell {
  padding-inline: 1.5rem;
  padding-block-start: 4rem;
  padding-block-end: 5rem;
}

.site-footer {
  padding-inline: 1.5rem;
  padding-block: 3rem;
  text-align: center;
}

.hero {
  min-block-size: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

.hero-copy,
.hero-media,
.print-card,
.cta-shell .container {
  inline-size: 100%;
}

.hero-copy {
  max-inline-size: 31.25rem;
}

.scroll-cue {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  inline-size: fit-content;
}

.hero-media img,
.print-card img {
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.print-card h3 {
  margin-block-start: 0.875rem;
}

.print-card {
  overflow: hidden;
  padding: 0 0 1.25rem;
}

.print-card .stack-xs {
  padding-inline: 1.25rem;
}

.stack-xs > * + * {
  margin-block-start: 0.5rem;
}

.stack-sm > * + * {
  margin-block-start: 0.875rem;
}

.stack-md > * + * {
  margin-block-start: 1.25rem;
}

.stack-lg > * + * {
  margin-block-start: 1.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3.75rem;
  padding-inline: 1.5rem;
  padding-block: 1rem;
  inline-size: 100%;
  max-inline-size: 26rem;
}

@media (min-width: 48rem) {
  .section-shell {
    padding-block: 5.5rem;
  }

  .hero-layout {
    gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop breakpoint expands the gallery and adds more breathing room. */
@media (min-width: 70rem) {
  .section-shell {
    padding-block: 6.5rem;
  }

  .container {
    inline-size: min(100% - 4rem, 76rem);
  }

  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
  }

  .hero-copy {
    flex: 1;
  }

  .hero-media {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .print-card h3 {
    margin-block-start: 1rem;
  }
}
