/* Photo-derived ink details. Existing colors, content and chapter layout stay authoritative. */
.hero-stage {
  top: 130px;
  left: 31%;
  right: -5%;
  bottom: 75px;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-stage .mountain-poster {
  inset: 9% -1% 0 auto;
  width: 100%;
  height: 91%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-distant {
  position: absolute;
  top: 0;
  left: -17%;
  width: 113%;
  height: 79%;
  object-fit: contain;
  opacity: 0.52;
  pointer-events: none;
}
.hero-stage .hero-bagua {
  width: clamp(200px, 24vw, 355px);
  top: 0;
  right: 13%;
  opacity: 0.045;
}
.hero-branch {
  position: absolute;
  left: -90px;
  bottom: 75px;
  width: 360px;
  opacity: 0.13;
  transform: rotate(180deg);
  pointer-events: none;
}
.hero-landmark {
  position: absolute;
  right: 17%;
  top: 13%;
  transform: scale(1.4);
  transform-origin: top right;
  display: flex;
  align-items: center;
  gap: 13px;
  writing-mode: vertical-rl;
  color: #263f39;
  font: 600 16px/1.6 var(--serif);
  letter-spacing: 0.3em;
}
.hero-landmark i {
  font-size: inherit;
  font-style: normal;
  letter-spacing: inherit;
}
.hero-landmark b {
  color: #793326;
  border: 1px solid currentColor;
  outline: 1px solid #8c3a2b55;
  outline-offset: -3px;
  padding: 5px 3px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.hero-margin {
  display: none;
}
.chapter-ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.chapter > :not(.chapter-ornament) {
  position: relative;
  z-index: 1;
}
.chapter-ornament img {
  position: absolute;
  height: auto;
}
.margin-inscription {
  position: absolute;
  right: 25px;
  top: 44%;
  writing-mode: vertical-rl;
  font: 12px/1.8 var(--serif);
  letter-spacing: 0.38em;
  color: var(--mountain);
  opacity: 0.6;
}
.ornament-origin .ornament-ridge {
  width: 650px;
  left: -160px;
  bottom: -55px;
  opacity: 0.3;
}
.ornament-origin .ornament-branch {
  width: 350px;
  right: -90px;
  top: 130px;
  opacity: 0.2;
}
.ornament-landscape .ornament-eaves {
  width: 300px;
  right: -40px;
  top: 115px;
  opacity: 0.16;
}
.ornament-landscape .ornament-water {
  width: 700px;
  left: -220px;
  bottom: -70px;
  opacity: 0.2;
}
.ornament-landscape .margin-inscription {
  top: 70%;
}
.ornament-ancestry .ornament-eaves {
  width: 330px;
  right: -60px;
  top: 125px;
  opacity: 0.18;
}
.ornament-ancestry .ornament-ridge {
  width: 620px;
  left: -140px;
  bottom: -130px;
  opacity: 0.25;
}
.ornament-ancestry .margin-inscription {
  top: 51%;
}
.ornament-taichi .ornament-water {
  width: 870px;
  left: -230px;
  bottom: -120px;
  opacity: 0.17;
}
.ornament-taichi .ornament-ridge {
  width: 740px;
  right: -170px;
  bottom: -70px;
  opacity: 0.25;
  transform: scaleX(-1);
}
.ornament-customs .ornament-leaves {
  width: 470px;
  right: -75px;
  top: 120px;
  opacity: 0.28;
}
.ornament-customs .ornament-branch {
  width: 420px;
  left: -100px;
  bottom: 25px;
  opacity: 0.15;
  transform: rotate(180deg);
}
.ornament-customs .margin-inscription {
  top: 47%;
}
.ornament-bracelet .ornament-cloud {
  width: 900px;
  right: -190px;
  top: 50px;
  opacity: 0.22;
}
.ornament-bracelet .ornament-cloud.second {
  width: 750px;
  left: -140px;
  top: auto;
  bottom: -90px;
  opacity: 0.14;
  transform: scaleX(-1);
}
.ornament-bracelet .margin-inscription {
  color: var(--light-gold);
  opacity: 0.5;
}
.scent-orbit {
  position: absolute;
  width: 560px;
  height: 560px;
  border: 1px solid #d4bc8626;
  border-radius: 50%;
  right: 10px;
  top: 95px;
}
.ornament-closing .ornament-ridge {
  width: 650px;
  left: -180px;
  top: 175px;
  opacity: 0.32;
}
.ornament-closing .ornament-ridge.second {
  width: 680px;
  left: auto;
  right: -160px;
  top: 125px;
  opacity: 0.28;
  transform: scaleX(-1);
}
.closing-message::before {
  display: none;
}
/* A narrow fade gives existing photographs an ink-wash edge without obscuring them. */
.panorama > img,
.gate-photo > img,
.eaves-photo > img,
.custom-story figure > img {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
@media (min-width: 701px) and (max-width: 1100px) {
  .hero-stage {
    left: 26%;
    right: -13%;
    top: 185px;
    bottom: 70px;
  }
  .hero-landmark {
    top: 7%;
    right: 22%;
  }
  .margin-inscription {
    right: 14px;
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .hero-stage {
    left: -22%;
    right: -10%;
    top: 450px;
    bottom: 55px;
  }
  .hero-stage .mountain-poster {
    inset: -4% 0 0;
    width: 100%;
    height: 112%;
    object-fit: contain;
  }
  .hero-distant {
    top: -18%;
    left: -5%;
    width: 115%;
    height: 100%;
    opacity: 0.5;
  }
  .hero-stage .hero-bagua {
    width: 190px;
    right: 12%;
    top: -8%;
    opacity: 0.035;
  }
  .hero-landmark {
    right: 12%;
    top: -3%;
    transform: scale(1.3);
    font-size: 12px;
    gap: 9px;
  }
  .hero-landmark i {
    display: none;
  }
  .hero-landmark b {
    font-size: 11px;
  }
  .hero-branch {
    width: 180px;
    left: -70px;
    bottom: 52px;
    opacity: 0.1;
  }
  .margin-inscription {
    display: none;
  }
  .ornament-origin .ornament-ridge {
    width: 430px;
    left: -180px;
    bottom: -45px;
    opacity: 0.24;
  }
  .ornament-origin .ornament-branch {
    width: 190px;
    right: -60px;
    top: 125px;
    opacity: 0.14;
  }
  .ornament-landscape .ornament-eaves,
  .ornament-ancestry .ornament-eaves {
    width: 220px;
    right: -75px;
    top: 90px;
    opacity: 0.14;
  }
  .ornament-landscape .ornament-water {
    width: 420px;
    left: -160px;
    bottom: -45px;
  }
  .ornament-ancestry .ornament-ridge {
    width: 430px;
    bottom: -90px;
  }
  .ornament-taichi .ornament-ridge {
    width: 410px;
    right: -190px;
    bottom: -10px;
    opacity: 0.2;
  }
  .ornament-taichi .ornament-water {
    width: 470px;
    left: -210px;
    bottom: 15px;
    opacity: 0.13;
  }
  .ornament-customs .ornament-leaves {
    width: 280px;
    right: -110px;
    top: 100px;
    opacity: 0.23;
  }
  .ornament-customs .ornament-branch {
    width: 240px;
    left: -100px;
    bottom: 15px;
  }
  .ornament-bracelet .ornament-cloud {
    width: 650px;
    top: 180px;
    right: -300px;
    opacity: 0.16;
  }
  .scent-orbit {
    width: 390px;
    height: 390px;
    top: 610px;
    right: -110px;
  }
  .ornament-closing .ornament-ridge {
    width: 330px;
    left: -210px;
    top: 190px;
    opacity: 0.25;
  }
  .ornament-closing .ornament-ridge.second {
    width: 350px;
    right: -200px;
    top: 250px;
  }
}
@media print {
  .chapter-ornament,
  .hero-branch,
  .hero-landmark {
    display: none;
  }
}
