/* The home masthead uses the approved centered layout and continuous background. */
:root { --control-ink: var(--muted); }

.home-intro {
  padding-block: clamp(32px, 3.4vw, 48px) clamp(30px, 3.2vw, 46px);
  text-align: center;
}

.home-intro h1 {
  font: 300 clamp(29px, 3.5vw, 50px)/1.35 var(--display);
  letter-spacing: .105em;
  text-wrap: balance;
}

.home-intro .hero-tagline {
  margin-top: 10px;
  font-size: clamp(12px, 1.12vw, 15px);
  line-height: 1.65;
  letter-spacing: .055em;
  text-wrap: balance;
}

.home-intro + .collection { padding-top: 0; }
.home-intro + .collection .featured-carousel { margin-top: 0; }
.home-intro + .collection .all-products {
  margin-block-start: 99px;
  padding-block-start: 0;
  border-block-start: 0;
}
.home-intro + .collection .featured-carousel[hidden] ~ .all-products { margin-block-start: 0; }

.product-dialog--refined,
.product-dialog--refined > .dialog-toolbar,
.product-dialog--refined .product-dialog-actions { background-color: var(--paper); }

.home-intro + .collection .featured-media { background: rgb(255 255 255 / 18%); }

.featured-loading { display: none; }
.featured-carousel[data-loading] .featured-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.featured-carousel[data-loading] .featured-loading .pearl-loading-orbit {
  animation-play-state: running;
}
.featured-carousel[data-loading] .featured-open { visibility: hidden; }
.featured-carousel[data-loading] .featured-text-stack::before {
  content: "";
  align-self: center;
  width: 28%;
  height: .65rem;
  border-radius: 999px;
  background: rgb(101 74 121 / 13%);
}
.featured-carousel[data-loading] .featured-description-stack::before {
  align-self: start;
  width: 76%;
  margin-top: .65rem;
  box-shadow: 0 1.95rem rgb(101 74 121 / 10%), 0 3.9rem rgb(101 74 121 / 8%);
}
.featured-carousel[data-loading] .featured-price-stack::before { width: 16%; }

@media (min-width: 761px) {
  .home-intro + .collection .featured-carousel {
    max-width: 984px;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(36px, 6vw, 88px);
  }
  .home-intro + .collection .featured-copy {
    max-width: 26rem;
    padding: 0;
  }
  .featured-carousel[data-loading] .featured-description-stack { min-height: 6rem; }
}

@media (max-width: 760px) {
  .home-intro { padding-bottom: 26px; }
  .home-intro + .collection .all-products { margin-block-start: 61px; }

  /* Use the same copy space before and after the catalog response. */
  .home-intro + .collection .featured-copy { --description-lines: 4; }
  .home-intro + .collection .featured-title-stack { min-height: 45.9px; }
  .home-intro + .collection .featured-price-stack { min-height: 44.2px; }
  .home-intro + .collection .featured-description-stack {
    min-height: calc(var(--description-lines) * 1.95rem);
  }
  .home-intro + .collection .featured-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--description-lines);
    overflow: hidden;
  }
}

@media (max-width: 360px) {
  .home-intro + .collection .featured-copy { --description-lines: 5; }
}

@media (min-width: 480px) and (max-width: 760px) {
  .home-intro + .collection .featured-copy { --description-lines: 3; }
}

@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .home-intro { padding-block: 23px 24px; }
}
