/* Haru is encountered in the same garden as the homepage introduction. */
.character-opening {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(620px, auto);
  background: #29382e;
  color: #f4f0e6;
  min-height: 0;
  height: auto;
  padding-top: 76px;
}
.character-opening > .character-art {
  grid-area: 1 / 1 / 2 / 9;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, #000 62%, transparent);
}
.character-opening .story-words {
  grid-area: 1 / 8 / 2 / 13;
  position: relative;
  inset: auto;
  max-width: none;
  padding: 56px clamp(32px, 5.5vw, 96px) 56px 24px;
  color: #f4f0e6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.character-opening .story-words h1 {
  font:
    400 clamp(64px, 7vw, 96px)/1.1 Lora,
    serif;
}
.character-opening .story-words .hand {
  font-size: 38px;
  line-height: 1.15;
  color: #e4d9b9;
  margin-bottom: 28px;
}
.character-opening .story-words > p:not(.hand) {
  font-size: 20px;
  line-height: 1.6;
  max-width: 32ch;
  margin-bottom: 32px;
}
.character-opening .primary-link {
  border-radius: 5px;
  margin-top: auto;
  color: #29382e;
  background: #f4f0e6;
}
.character-opening a:focus-visible {
  outline-color: #f4f0e6;
}
@media (max-width: 1000px) {
  .character-opening {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    padding-top: 68px;
  }
  .character-opening > .character-art {
    grid-area: 1 / 1;
    height: auto;
    aspect-ratio: 3 / 2;
    object-position: center;
    mask-image: linear-gradient(#000 65%, transparent);
  }
  .character-opening .story-words {
    grid-area: 2 / 1;
    padding: 16px 8% 48px;
  }
  .character-opening .story-words h1 {
    font-size: 56px;
  }
  .character-opening .story-words .hand {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .character-opening .story-words > p:not(.hand) {
    font-size: 19px;
  }
}

.haru-page .character-opening {
  min-height: 100svh;
  grid-template-rows: minmax(calc(100svh - 76px), auto);
}
@media (max-width: 1000px) {
  .haru-page .character-opening {
    grid-template-rows: auto 1fr;
  }
}

.character-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1001px) {
  .haru-page .character-art {
    grid-column: 1 / 8;
  }
  .haru-page .character-art img {
    object-position: 35% center;
  }
  .haru-page .character-opening .story-words {
    grid-column: 8 / 13;
    justify-content: center;
    padding: 48px clamp(28px, 5vw, 96px) 48px clamp(28px, 4vw, 72px);
  }
  .haru-page .character-opening .primary-link {
    margin-top: 16px;
  }
}
@media (max-width: 1000px) {
  .character-art img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}
@media (max-width: 1000px) {
  .haru-page .character-opening {
    padding-top: 84px;
  }
  .haru-page .character-opening .primary-link {
    margin-top: 24px;
  }
}

/* Keep the corrected garden pose intact rather than enlarging the old frame. */
.haru-page .story-rest > img {
  transform: none;
  object-position: 76% center;
}
@media (max-width: 700px) {
  .haru-page .story-rest {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #29382e;
  }
  .haru-page .story-rest > img {
    position: relative;
    height: 58svh;
    min-height: 340px;
    object-position: 83% center;
    mask-image: linear-gradient(#000 80%, transparent);
  }
  .haru-page .story-rest::after {
    display: none;
  }
  .haru-page .story-rest .story-words {
    position: relative;
    inset: auto;
    max-width: none;
    padding: 24px 8% 48px;
  }
}
