/* Page-specific fidelity adjustments for the catalog mockups. */

body:has(#home) .promo {
  grid-template-columns: 1fr 1fr;
}

body:has(#home) .promo span:first-child,
body:has(#shop) .promo {
  display: none;
}

body:has(#home) .promo span:nth-child(2),
body:has(#home) .promo span:last-child {
  justify-self: center;
}

@media (min-width: 961px) {
  #home.hero {
    min-height: 0;
    padding-bottom: 1.8rem;
  }

  #home .hero-grid {
    grid-template-columns: minmax(25rem, 0.84fr) minmax(34rem, 1.16fr);
    gap: 0;
  }

  #home .hero-copy,
  #home .hero-art {
    min-height: 42rem;
  }

  #home .hero-copy {
    z-index: 2;
    padding: 3rem 1.5rem 2.2rem 0;
  }

  #home .hero-title {
    max-width: 31rem;
    font-size: clamp(5rem, 6.2vw, 7.2rem);
    line-height: 0.84;
  }

  #home .hero-art {
    overflow: visible;
  }

  #home .blue-poster {
    inset: 0 -3rem -5.8rem -6%;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 56% 89%, 49% 83%, 41% 84%, 34% 74%, 28% 70%, 23% 57%, 15% 52%, 18% 39%, 9% 31%, 13% 20%, 4% 12%);
  }

  #home .hero-family-scene {
    top: 2.2rem;
    right: -2rem;
    width: 112%;
    height: calc(100% - 3.5rem);
    object-fit: contain;
    object-position: center;
    box-shadow: none;
  }

  #home .hero-mascot {
    right: 31%;
    top: 4%;
  }

  #home .icon-panel {
    position: relative;
    z-index: 4;
    margin-top: 1.25rem;
  }

  .home-featured {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .home-featured .collection-head {
    margin-bottom: 0.8rem;
  }

  .home-featured .section-title {
    display: none;
  }

  .home-featured .featured-product-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-featured .product-grid-featured {
    display: contents;
  }

  .home-featured .product-media {
    aspect-ratio: 1.12 / 1;
  }

  .home-featured .product-body {
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .home-featured .product-actions {
    grid-template-columns: 1fr 2.65rem;
  }

  .home-featured .product-actions .button {
    min-height: 2.65rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.72rem;
  }

  #home-story-teaser {
    padding-top: 0;
  }

  #home-story-teaser .story-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
    gap: 0;
    align-items: stretch;
  }

  #home-story-teaser .lifestyle-photo,
  #home-story-teaser .about-panel {
    min-height: 23rem;
  }

  #home-story-teaser .lifestyle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #home-story-teaser .about-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 3rem;
    border-radius: 0;
  }

  #shop.section {
    padding: 1.1rem 2.5rem 2rem;
  }

  #shop .section-inner {
    grid-template-columns: minmax(21rem, 0.34fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0.8rem 1.6rem;
  }

  #shop .collection-side {
    grid-row: 1 / span 2;
    gap: 0.85rem;
    min-height: 42rem;
    padding: 1rem 2rem 1rem 0;
  }

  #shop .collection-side .section-title,
  #shop .collection-side .serif-copy {
    max-width: 17rem;
  }

  #shop .collection-side .section-title {
    font-size: 4.25rem;
  }

  #shop .collection-mascot {
    right: 0.6rem;
    top: 4.8rem;
    width: 6rem;
  }

  #shop .collection-side .benefit-row {
    gap: 0.55rem;
    margin: 0.3rem 0 0.45rem;
  }

  #shop .collection-side .benefit {
    gap: 0.25rem;
  }

  #shop .collection-side .benefit span {
    max-width: 4.5rem;
  }

  #shop .collection-promo-sticker {
    margin-top: 0;
  }

  #shop .email-form {
    margin-top: 0;
  }

  #shop .collection-catalog-head {
    align-self: center;
  }

  #shop .collection-controls {
    gap: 0.6rem;
  }

  #shop .tabs {
    gap: 0.45rem;
  }

  #shop .tab,
  #shop .tool-button {
    min-height: 2.35rem;
    padding: 0 0.85rem;
    font-size: 0.74rem;
  }

  #shop .product-grid {
    gap: 0.7rem;
  }

  #shop .product-media {
    aspect-ratio: 1.58 / 1;
  }

  #shop .product-body {
    gap: 0.48rem;
    padding: 0.62rem 0.7rem 0.7rem;
  }

  #shop .swatches {
    gap: 0.3rem;
  }

  #shop .swatch {
    width: 0.9rem;
    height: 0.9rem;
  }

  #shop .product-name,
  #shop .product-price {
    font-size: 0.82rem;
  }

  #shop .product-actions {
    grid-template-columns: 1fr 2.5rem;
    gap: 0.45rem;
  }

  #shop .product-actions .button {
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  #shop .product-actions .icon-add {
    width: 2.5rem;
    min-width: 2.5rem;
  }

  #shop .bundle-strip {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    padding: 0.7rem 0.9rem;
  }

  #shop .bundle-mini img {
    max-height: 4.5rem;
  }
}

@media (max-width: 960px) {
  .home-featured .featured-product-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .home-featured .product-grid-featured {
    display: contents;
  }
}

@media (max-width: 620px) {
  .home-featured .featured-product-rail {
    grid-template-columns: 1fr;
  }
}
