/* squatch.cc home: the hero is the owner's photo of the Ozark woods, framed low on the meadow and the trunk bases (50% 97%), the copy
 * over it. No figure lives here any more: he only peeks (peeks.css, peeks.js), and the stage below is where he does it in the hero.
 * The stage is the photo's own box (3:4, covered and placed exactly like the photo), so a trunk cut from the photo and a peek placed in
 * photo percentages stay glued to the same trunk at every width and height. */
.hero-art__art { overflow: hidden; container-type: size; }
.hero-art__art .hero-art__photo { object-position: 50% 97%; }
.peek-stage { position: absolute; --sw: max(100cqw, 75cqh); width: var(--sw); height: calc(var(--sw) * 4 / 3);
  left: calc((100cqw - var(--sw)) / 2); top: calc((100cqh - var(--sw) * 4 / 3) * .97); }

/* a narrow laptop or a tablet: the copy fills the top; the foot of the hero stays open on the meadow */
@media (max-width: 52em) {
  .hero-art { padding-bottom: calc(clamp(3rem, 8vw, 6rem) + 10.5rem); }
  .hero-art::after {
    background: linear-gradient(180deg, rgba(28,20,12,.74) 0%, rgba(28,20,12,.64) 34%, rgba(28,20,12,.62) 66%, rgba(28,20,12,.18) 86%, rgba(28,20,12,.42) 100%); }
}

/* a short landscape screen (a phone on its side): the hero is the screen under the header, less the cookie bar while that is up
   (--bar-space); the words sit left at a size set by the hero's own height (cqh), the woods stay open on the right. */
@media (orientation: landscape) and (max-height: 620px) {
  .hero-art {
    --pad: clamp(.5rem, 3svh, 1.5rem); --side: max(1rem, 3vw);
    --hh: calc(100svh - var(--nav-h) - 1px - var(--bar-space, 0px));
    container-type: size; display: flex; align-items: center;
    height: var(--hh); min-height: 0; padding: var(--pad) var(--side);
  }
  .hero-art__inner { width: min(60%, 34rem); margin: 0; }
  .hero-art__copy { max-width: none; }
  .hero-eyebrow__a { display: block; } .hero-eyebrow__sep { display: none; }     /* place and year on their own line, as on a phone */
  .hero-art .eyebrow { font-size: clamp(.55rem, 4.4cqh, .75rem); line-height: 1.3; margin: 0; }
  .hero-art__title { font-size: clamp(1rem, min(11.5cqh, 5.2cqw), 2.75rem); line-height: 1.04; margin-top: .25em; }
  .hero-art__lede { font-size: clamp(.7rem, 6.2cqh, 1.05rem); line-height: 1.4; margin-top: clamp(.25rem, 3cqh, .9rem); max-width: 46ch; }
  .hero-art__ctas { margin-top: clamp(.4rem, 4cqh, 1.25rem); gap: .5rem; flex-wrap: nowrap; }
  .hero-art__ctas .btn { min-height: 0; padding: clamp(.3rem, 2.6cqh, .7rem) clamp(.7rem, 2vw, 1.25rem); font-size: clamp(.72rem, 6cqh, 1rem); white-space: nowrap; }
}
@media (orientation: landscape) and (max-height: 620px) {
  @container (max-height: 15rem) { .hero-art__lede-more { display: none; } }
}

/* after dark: the eyeshine moves down with the framing, into the shade beside the big trunk at the meadow's edge */
@media (prefers-color-scheme: dark) {
  .night .hero-art::before { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1600" width="1200" height="1600"%3E%3Cg fill="%23dfeaa8"%3E%3Ccircle cx="690" cy="1125" r="4" fill-opacity=".22"/%3E%3Ccircle cx="708" cy="1125" r="4" fill-opacity=".22"/%3E%3Ccircle cx="690" cy="1125" r="1.6"/%3E%3Ccircle cx="708" cy="1125" r="1.6"/%3E%3C/g%3E%3C/svg%3E'); background-position: 50% 97%; }
}
@media (prefers-color-scheme: dark) and (max-width: 48rem) {
  .night .hero-art::before { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1600" width="1200" height="1600"%3E%3Cg fill="%23dfeaa8"%3E%3Ccircle cx="690" cy="1125" r="9" fill-opacity=".22"/%3E%3Ccircle cx="708" cy="1125" r="9" fill-opacity=".22"/%3E%3Ccircle cx="690" cy="1125" r="4"/%3E%3Ccircle cx="708" cy="1125" r="4"/%3E%3C/g%3E%3C/svg%3E'); }
}
