/* All three paper textures are samples of the original Sugar Bit foldout. */
.hp-collection {
  --foldout-ground: #efe4d4;
  background: var(--foldout-ground) url('https://dcts99982ui0s.cloudfront.net/images/cab7800f-14ea-4d7c-bc15-9e324b937e4d.webp') center top / min(100%, 1000px) auto repeat;
}

/* Show the entire printed bottom edge at its natural aspect ratio. */
.hp-collection .hp-dye-hero {
  min-height: 0;
  max-height: none;
  aspect-ratio: 1426 / 800;
}
.hp-collection .hp-dye-hero picture img {object-fit: fill}

.hp-collection .hp-chart-section {
  background: #06274c url('https://dcts99982ui0s.cloudfront.net/images/b5399d9c-56df-4388-a22c-84d6bacc5f50.webp') center / 100% 100% no-repeat;
  --chart-rule: #e3e9eb54;
}
.hp-collection .hp-chart-subhead,
.hp-collection .hp-chart-note,
.hp-collection .hp-chart-head > span,
.hp-collection .hp-selection-copy .hp-folio {color: #e4e7e5}

.hp-collection .hp-wolf {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.hp-collection .hp-wolf::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  background: url('https://dcts99982ui0s.cloudfront.net/images/3eebf00a-25f4-406f-850a-ce4edbee8baa.webp') center / 100% 100% no-repeat;
  mask-image: linear-gradient(to bottom, black 75%, transparent);
}

/* The unprinted paper stays visible under the collection and bends back to ink
   at the very end of the maker link, meeting the dark site footer. */
.hp-collection .hp-maker-link {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 0;
  padding-bottom: clamp(96px, 13vw, 195px);
  background: transparent;
  color: #17344f;
}
.hp-collection .hp-maker-link::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(70px, 10vw, 160px);
  content: '';
  pointer-events: none;
  background: url('https://dcts99982ui0s.cloudfront.net/images/3eebf00a-25f4-406f-850a-ce4edbee8baa.webp') center / 100% 100% no-repeat;
  mask-image: linear-gradient(to bottom, black 64%, transparent);
  transform: scaleY(-1);
}
.hp-collection .hp-maker-link a {background: #15364f; color: #fffdf6}
.hp-collection .hp-maker-link a:hover {background: #244b69}
body:has(.hp-collection) .sa-footer.hn-footer {
  background: linear-gradient(to bottom, #061e40 0, #17191f 105px);
}

/* The middle of the mobile sheet is unprinted. Stretch just that strip to
   fit wrapping text; keep the beetle and the photographed hem at full width. */
@media (max-width: 760px) {
  .hp-collection .hp-dye-hero {
    aspect-ratio: auto;
    background: var(--foldout-ground);
  }
  .hp-collection .hp-dye-hero picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1426 / 540;
    overflow: hidden;
  }
  .hp-collection .hp-dye-hero picture img {
    display: block;
    width: 100%;
    height: auto;
    object-position: center top;
  }
  .hp-collection .hp-dye-copy {
    margin: 0;
    padding: .25rem var(--hp-gutter) .5rem;
    border-style: solid;
    border-color: transparent;
    border-width: 0 0 17.3913vw;
    border-image-source: url('https://dcts99982ui0s.cloudfront.net/images/864f04f9-a37f-4dbf-82aa-ecaa6450bd15.webp');
    border-image-slice: 540 0 248 fill;
    border-image-width: 0 0 1 0;
    border-image-repeat: stretch;
  }
}
