/* The portrait and seasonal illustration retain their own natural proportions. */
.top .logo {
  display: block;
  flex-shrink: 0;
}

.site-logo {
  width: 174px;
  height: auto;
  /* Original white SVG, displayed as monochrome ink on the light header. */
  filter: brightness(0);
}

.hero {
  padding-top: 38px;
}

.hero .wrap {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 46px;
}

.hero-portrait {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 510px;
  justify-self: end;
  align-self: end;
  overflow: visible;
  isolation: isolate;
}

.hero-portrait > .hero-seasonal {
  position: absolute;
  z-index: 0;
  top: auto;
  right: 0;
  bottom: 8px;
  width: auto;
  max-width: none;
  height: 112%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.hero-person-window {
  position: absolute;
  z-index: 1;
  top: -8px;
  bottom: 0;
  left: -42px;
  width: 100%;
  overflow: hidden;
}

.hero-person-window .hero-person {
  display: block;
  position: static;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-portrait > .hero-gift {
  position: absolute;
  z-index: 0;
  width: 88px;
  height: 88px;
  left: auto;
  right: 8px;
  bottom: -4px;
  object-fit: contain;
  pointer-events: none;
}

.hero-ribbon {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: #d0d5de;
}

.hero-ribbon span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff00 0%, #ffffff12 36%, #ffffff00 80%);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-portrait {
    height: 490px;
  }

  .hero-person-window {
    top: 0;
    width: 100%;
  }
}

@media (max-width: 900px) and (min-width: 681px) {
  .hero {
    padding-top: 32px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .hero-copy {
    padding-bottom: 38px;
  }

  .hero-portrait {
    height: 410px;
  }

  .hero-portrait > .hero-seasonal {
    right: -4px;
    bottom: 8px;
  }

  .hero-person-window {
    top: 0;
    left: -20px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-logo {
    width: 136px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero .wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-portrait {
    order: 5;
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 36 / 43;
    align-self: center;
    margin-top: 32px;
  }

  .hero-portrait > .hero-seasonal {
    top: auto;
    bottom: 8px;
    right: -4px;
    width: auto;
    height: 112%;
  }

  .hero-person-window {
    top: 0;
    left: -16px;
    width: 100%;
  }

  .hero-portrait > .hero-gift {
    width: 64px;
    height: 64px;
    left: auto;
    right: 3px;
    bottom: 0;
  }

  .hero-ribbon {
    height: 10px;
  }

  .hero-note {
    margin-bottom: 5px;
  }
}

@media (max-width: 340px) {
  .top .wrap {
    padding-inline: 16px;
    gap: 8px;
  }

  .site-logo {
    width: 112px;
  }

  .top .btn.small {
    font-size: 12px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .hero .btn {
    font-size: 15px;
    padding-inline: 16px;
  }
}
