/* Homepage-only full-viewport hero treatment. */
body.admin-bar .site-header { top: 32px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: #ead6c3;
}

.hero-media {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: 0;
  width: 100%;
  height: auto;
  min-width: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(248, 242, 234, .97) 0%, rgba(248, 242, 234, .91) 24%, rgba(248, 242, 234, .58) 43%, rgba(248, 242, 234, .08) 66%),
    linear-gradient(180deg, rgba(48, 35, 29, .03), rgba(48, 35, 29, .10));
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 64% 48%;
  transform: scale(1.002);
}

.hero-copy-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: var(--shell);
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: clamp(46px, 6vh, 76px) 0;
}

.hero-copy {
  width: min(560px, 48vw);
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(66px, 7vw, 102px);
  text-wrap: balance;
}

.hero-lead {
  max-width: 470px;
}

.hero-notes {
  max-width: 500px;
  margin-top: clamp(34px, 5vh, 56px);
  border-color: rgba(48, 36, 30, .22);
}

.hero-media figcaption {
  z-index: 2;
  color: rgba(48, 36, 30, .78);
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero h1 { font-size: clamp(62px, 6.4vw, 88px); }
  .hero-kicker { margin-bottom: 20px; }
  .hero-lead { margin-top: 24px; line-height: 1.75; }
  .hero-actions { margin-top: 26px; }
  .hero-notes { margin-top: 28px; padding-top: 16px; }
}

@media (max-width: 1060px) and (min-width: 761px) {
  .hero-copy { width: min(500px, 54vw); }
  .hero-media img { object-position: 61% 48%; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .navigation-mobile-drawer { inset-block-start: calc(var(--nav-header-h, 66px) + 46px); }
  body.admin-bar .hero-copy-wrap { padding-bottom: 48px; }

  .hero {
    display: flex;
    min-height: calc(100svh - 70px - env(safe-area-inset-bottom));
    padding-top: var(--header-h);
    color: #fffaf4;
    background: #30231d;
  }

  .hero-media {
    position: absolute;
    inset: var(--header-h) 0 0;
    order: initial;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(36, 25, 20, .02) 10%, rgba(36, 25, 20, .14) 42%, rgba(36, 25, 20, .88) 76%, rgba(36, 25, 20, .97) 100%);
  }

  .hero-media img {
    object-fit: cover;
    object-position: 50% 42%;
    transform: none;
  }

  .hero-copy-wrap {
    order: initial;
    align-items: flex-end;
    width: 100%;
    min-height: calc(100svh - var(--header-h) - 70px - env(safe-area-inset-bottom));
    padding: 164px 18px 28px;
  }

  .hero-copy { width: 100%; }
  .hero-kicker { margin-bottom: 13px; color: #ff8a82; }
  .hero h1 { max-width: 7em; font-size: clamp(44px, 13vw, 56px); color: #fffaf4; }
  .hero-heart { display: none; }
  .hero-lead { max-width: 34em; margin-top: 16px; color: rgba(255, 250, 244, .82); font-size: 13px; line-height: 1.65; }
  .hero-actions { flex-direction: row; align-items: center; gap: 18px; margin-top: 20px; }
  .hero-actions .button { min-height: 42px; padding-inline: 18px; color: #30231d; background: #fffaf4; }
  .hero-actions .text-action { color: #fffaf4; }
  .hero-notes { display: none; }
  .hero-media figcaption { top: 16px; right: 14px; bottom: auto; left: 14px; color: rgba(48, 36, 30, .72); }
}

@media (max-width: 390px) {
  .hero-copy-wrap { padding-inline: 14px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 50px); }
  .hero-actions { gap: 13px; }
  .hero-actions .button { padding-inline: 14px; font-size: 11px; }
  .hero-actions .text-action { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { transform: none; }
}
