/* Round 2 local candidate: product-first homepage and faster product browsing. */

.sq-home-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.sq-home-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: 8vw;
  padding-block: clamp(68px, 7vw, 104px) clamp(54px, 5vw, 76px);
}

.sq-home-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(70px, 7.5vw, 96px);
  font-weight: 400;
  line-height: 0.94;
}

.sq-home-hero-copy > div {
  padding-bottom: 4px;
}

.sq-home-hero-copy > div p {
  max-width: 29em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.sq-home-hero-copy > div a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.sq-home-hero-products {
  display: grid;
  grid-template-columns: 1.26fr 0.87fr 0.87fr;
  gap: 8px;
  width: 100%;
  background: var(--paper);
}

.sq-home-product {
  position: relative;
  display: block;
  min-width: 0;
  color: #fff;
  background: var(--green-deep);
  text-decoration: none;
  overflow: hidden;
}

.sq-home-product figure {
  height: clamp(500px, 58vw, 780px);
  margin: 0;
  overflow: hidden;
}

.sq-home-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: transform 800ms cubic-bezier(.2, .75, .25, 1);
}

.sq-home-product::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 15, 0.72));
  content: "";
  pointer-events: none;
}

.sq-home-product > span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.sq-home-product strong,
.sq-home-product small {
  display: block;
}

.sq-home-product strong {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 40px);
  font-weight: 400;
}

.sq-home-product small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.sq-home-product:hover img,
.sq-home-product:focus-visible img {
  transform: scale(1.018);
}

.sq-home-hero + .taste-paths {
  padding-block: 96px 108px;
}

.taste-paths {
  gap: 72px;
}

.taste-path-list a {
  padding-block: 18px;
}

.taste-path-list strong {
  font-size: 25px;
}

.products-taste-page .pt-hero {
  min-height: 0;
  padding-block: clamp(74px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}

.products-taste-page .pt-hero-copy {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  margin-bottom: 0;
}

.products-taste-page .pt-collection {
  padding-top: 0;
}

.products-taste-page .pt-order-list {
  margin-top: 0;
  margin-bottom: 86px;
}

.pt-hero-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .sq-home-hero-copy {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sq-home-hero-products {
    grid-template-columns: 1fr 1fr;
  }

  .sq-home-product-main {
    grid-column: 1 / -1;
  }

  .sq-home-product figure {
    height: 58vw;
  }

  .sq-home-product-main figure {
    height: min(78vw, 620px);
  }

  .products-taste-page .pt-hero-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .sq-home-hero-copy {
    width: calc(100vw - 40px);
    padding-block: 50px 40px;
  }

  .sq-home-hero h1 {
    font-size: clamp(58px, 20vw, 76px);
    line-height: 0.98;
  }

  .sq-home-hero-copy > div p {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .sq-home-hero-products {
    gap: 3px;
  }

  .sq-home-product-main figure {
    height: 118vw;
  }

  .sq-home-product:not(.sq-home-product-main) figure {
    height: 76vw;
  }

  .sq-home-product > span {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .sq-home-product strong {
    font-size: 23px;
  }

  .sq-home-product:not(.sq-home-product-main) strong {
    font-size: 18px;
  }

  .sq-home-product:not(.sq-home-product-main) small {
    display: none;
  }

  .sq-home-hero + .taste-paths {
    padding-block: 64px 72px;
  }

  .taste-paths {
    gap: 34px;
  }

  .taste-path-list a {
    padding-block: 16px;
  }

  .taste-path-list strong {
    font-size: 23px;
  }

  .products-taste-page .pt-hero {
    padding: 48px 20px 42px;
  }

  .products-taste-page .pt-hero-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .products-taste-page .pt-hero-copy h1 {
    font-size: 58px;
  }

  .products-taste-page .pt-collection {
    padding-top: 0;
  }

  .products-taste-page .pt-order-list {
    margin-top: 0;
    margin-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sq-home-product img {
    transition: none;
  }
}
