/* The same winter woods can be seen through the glass throughout the storefront. */
body {
  --bb-forest: url("home-scenes/winter-forest.webp");
}

body::before,
body[data-page="home"]::before {
  background: linear-gradient(145deg, #351d15c4, #2d1913a3 50%, #28140ebd),
              var(--bb-forest) center / cover no-repeat, #2e1a14;
}

/* An independent photo layer keeps the animal in view as headings change length. */
.static-page .page-hero,
.seo-page .seo-intro,
.page-catalog #catalog > .section-heading {
  --scene-photo: url("home-scenes/winter-spruce.webp?v=20261127b");
  --scene-focus: 73% 34%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d9c49287;
  color: #f9f4e6;
  background: radial-gradient(ellipse at 8% 0, #614840, transparent 65%), #321c15;
  box-shadow: inset 0 1px #fff2c836, 0 12px 34px #23100b59;
}

.static-page .page-hero::before,
.seo-page .seo-intro::before,
.page-catalog #catalog > .section-heading::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  z-index: -1;
  pointer-events: none;
  background: var(--scene-photo) var(--scene-focus) / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #0009 23%, #000 48%);
}

.static-page .page-content:has(.delivery-pickup, .contact-page-grid) .page-hero {
  --scene-photo: url("home-scenes/winter-beagle.webp");
  --scene-focus: 74% 33%;
}

.static-page :is(#blogListing, .page-content:has(#sourceArticleBody)) .page-hero,
.seo-page .seo-intro--blog {
  --scene-photo: url("home-scenes/winter-setter.webp");
  --scene-focus: 29% 33%;
}

@media (min-width: 721px) {
  .static-page .page-hero > :is(h1, p), .seo-page .seo-intro > :is(h1, p) {
    max-width: 57%;
  }

  .static-page :is(#blogListing, .page-content:has(#sourceArticleBody)) .page-hero,
  .seo-page .seo-intro--blog {
    padding-inline-start: 46%;
  }

  .static-page :is(#blogListing, .page-content:has(#sourceArticleBody)) .page-hero::before,
  .seo-page .seo-intro--blog::before {
    inset-inline: 0 auto;
    width: 54%;
    mask-image: linear-gradient(270deg, transparent, #0009 22%, #000 48%);
  }

  .static-page :is(#blogListing, .page-content:has(#sourceArticleBody)) .page-hero > :is(h1, p),
  .seo-page .seo-intro--blog > :is(h1, p) {
    max-width: 100%;
  }

  .page-catalog #catalog > .section-heading {
    --scene-focus: 73% 12%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .7rem;
    min-height: clamp(160px, 13vw, 210px);
  }

  .page-catalog #catalog > .section-heading > :first-child { max-width: 58%; }
  .page-catalog #catalog > .section-heading .catalog-mode { background: #341e17e8; }
}

#accountMain #authView .auth-intro {
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 0 0, #614840, transparent 70%), #39221b;
}

#accountMain #authView .auth-intro::before {
  background: url("home-scenes/winter-spruce.webp?v=20261127b") 74% 36% / cover no-repeat;
}

@media (max-width: 720px) {
  body { --bb-forest: url("home-scenes/winter-forest-small.webp"); }

  .static-page .page-hero,
  .seo-page .seo-intro,
  .page-catalog #catalog > .section-heading {
    --scene-height: clamp(106px, 32vw, 170px);
    padding-top: calc(var(--scene-height) + 8px);
  }

  .static-page .page-hero::before,
  .seo-page .seo-intro::before,
  .page-catalog #catalog > .section-heading::before {
    inset: 0 0 auto;
    height: calc(var(--scene-height) + 14px);
    width: 100%;
    mask-image: linear-gradient(#000 60%, transparent);
  }
}
