.site-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.site-header {
  border-bottom: var(--rule);
}

.breadcrumb {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.breadcrumb-separator {
  color: var(--grey);
}

main {
  animation: page-in 420ms ease-out both;
}

.hero-grid,
.chapter-hero {
  display: grid;
  min-height: min(760px, 82vh);
  border-inline: var(--rule);
  border-bottom: var(--rule);
}

.hero-grid {
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
}

.chapter-hero {
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
}

.hero-copy,
.chapter-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 5rem);
}

.hero-art,
.chapter-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-left: var(--rule);
  background: var(--yellow);
  place-items: center;
}

.hero-art img,
.chapter-art img {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding-block: var(--section-gap);
}

.section-rule {
  border-bottom: var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: 2.5rem;
}

.asym-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: var(--rule);
  border-left: var(--rule);
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.flow > * + * {
  margin-top: 1.25rem;
}

.two-part {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: var(--rule);
}

.two-part > * {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.two-part > * + * {
  border-left: var(--rule);
}

.page-footer {
  border-top: var(--rule);
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: grid;
  min-height: 180px;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: 2rem;
  padding-block: 2.5rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-home {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  color: var(--yellow);
  font-weight: 700;
  text-underline-offset: 5px;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .site-shell {
    padding-inline: 1rem;
  }

  .hero-grid,
  .chapter-hero,
  .section-heading,
  .two-part,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .chapter-hero {
    min-height: 0;
  }

  .hero-copy,
  .chapter-copy {
    min-height: 440px;
    padding: 2rem 1.25rem;
  }

  .hero-art,
  .chapter-art {
    min-height: 280px;
    border-top: var(--rule);
    border-left: 0;
  }

  .asym-grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: 1;
  }

  .two-part > * + * {
    border-top: var(--rule);
    border-left: 0;
  }

  .footer-home {
    justify-self: start;
  }
}
