/* Optional decorative layer. Original typography, layout and surfaces live in
   styles.css and stay unchanged. Every accent is outside the content flow. */
.chinese-accents,
.chinese-heading-ornament,
.chinese-seal,
.chinese-cta-corners {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.chinese-accents {
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.chinese-cloud {
  position: absolute;
  display: block;
  width: clamp(150px, 19vw, 280px);
  height: auto;
  opacity: .52;
}

.chinese-cloud--left {
  top: 185px;
  left: 4.5%;
}

.chinese-cloud--right {
  top: 132px;
  right: 4.5%;
  width: clamp(140px, 16vw, 232px);
  transform: scaleX(-1);
  opacity: .4;
}

/* Sparse gold linework in the hero's outer whitespace. */
.hero-oriental-details {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.hero-oriental-details img {
  position: absolute;
  display: block;
  height: auto;
}

.hero-bamboo {
  top: 142px;
  left: 5%;
  width: clamp(200px, 17vw, 280px);
  opacity: .48;
}

.hero-moon-window {
  top: 136px;
  right: 6%;
  width: clamp(180px, 15vw, 236px);
  opacity: .44;
}

.hero-title-rule {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 116px;
  height: 18px;
  transform: translateX(-50%);
  background: url("assets/chinese-divider.svg") center / contain no-repeat;
  opacity: .6;
  pointer-events: none;
}

@media (max-width: 1212px) and (min-width: 761px) {
  .hero-bamboo { top: 167px; left: 3%; width: clamp(136px, 18vw, 205px); opacity: .4; }
  .hero-moon-window { top: 157px; right: 4%; width: clamp(125px, 16vw, 180px); opacity: .38; }
}

@media (max-width: 760px) {
  .hero-bamboo { top: 126px; left: -56px; width: 106px; opacity: .3; }
  .hero-moon-window { top: 150px; right: -64px; width: 112px; opacity: .26; }
  .hero-title-rule { top: calc(100% + 4px); width: 86px; height: 13px; opacity: .5; }
}

.chinese-seal {
  --seal-heading-size: clamp(4rem, 6.8vw, 5.75rem);
  top: calc(1.2rem + var(--seal-heading-size) * 1.01 + 13px);
  left: calc(50% + var(--seal-heading-size) * 1.5 + 18px);
  display: grid;
  align-content: center;
  justify-items: center;
  width: 32px;
  height: 56px;
  border: 1px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: -4px;
  border-radius: 3px 2px 3px 1px;
  color: var(--brand-gold);
  font-size: 17px;
  line-height: 1.25;
  opacity: .8;
  transform: rotate(-3deg);
}

/* A short, open fret motif, drawn with the existing brand gold. */
.chinese-heading-ornament {
  top: 65px;
  left: 50%;
  z-index: 1;
  width: 132px;
  height: 20px;
  transform: translateX(-50%);
  background: url("assets/chinese-divider.svg") center / contain no-repeat;
  opacity: .65;
}

.chinese-accents--founder .chinese-cloud {
  top: 156px;
  right: 8%;
  width: clamp(180px, 22vw, 300px);
  transform: scaleX(-1);
  opacity: .44;
}

.chinese-cta-corners {
  inset: 0;
  z-index: 3;
  color: var(--brand-gold);
  opacity: .64;
}

.chinese-cta-corners > span {
  position: absolute;
  top: 23px;
  left: 23px;
  width: 49px;
  height: 49px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.chinese-cta-corners > span::before,
.chinese-cta-corners > span::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
}

.chinese-cta-corners > span::before {
  top: 5px;
  left: 5px;
  width: 29px;
  height: 29px;
  border-right: 0;
  border-bottom: 0;
}

.chinese-cta-corners > span::after {
  top: -1px;
  left: -1px;
  width: 13px;
  height: 13px;
}

.chinese-cta-corners > span:last-child {
  inset: auto 23px 23px auto;
  transform: rotate(180deg);
}

@media (max-width: 1212px) and (min-width: 761px) {
  .chinese-seal { --seal-heading-size: clamp(3.5rem, 6.7vw, 5.1rem); }
  .chinese-cloud--left { top: 260px; left: 3%; width: 180px; }
  .chinese-cloud--right { top: 185px; right: 2.5%; width: 150px; }
  .chinese-accents--founder .chinese-cloud { right: 4%; top: 135px; width: 210px; }
}

@media (max-width: 760px) {
  .chinese-cloud--left { top: 194px; left: -27px; width: 117px; opacity: .4; }
  .chinese-cloud--right { top: 66px; right: -19px; width: 108px; opacity: .34; }
  .chinese-seal {
    --seal-heading-size: clamp(3.1rem, 13.8vw, 4.35rem);
    top: calc(1.2rem + var(--seal-heading-size) * 1.01 + 6px);
    left: calc(50% + var(--seal-heading-size) * 1.5 + 12px);
    width: 23px;
    height: 40px;
    font-size: 12px;
    outline-offset: -3px;
  }
  .chinese-accents--founder .chinese-cloud { top: 24px; right: -10px; width: 146px; opacity: .36; }
  .chinese-cta-corners > span { top: 14px; left: 14px; width: 30px; height: 30px; }
  .chinese-cta-corners > span::before { width: 20px; height: 20px; }
  .chinese-cta-corners > span::after { width: 10px; height: 10px; }
  .chinese-cta-corners > span:last-child { inset: auto 14px 14px auto; }
}

@media (max-width: 520px) {
  .chinese-heading-ornament { top: 30px; width: 108px; height: 16px; }
  .chinese-seal { --seal-heading-size: clamp(2.95rem, 13.5vw, 4rem); }
}

@media (max-width: 390px) {
  .chinese-seal { --seal-heading-size: clamp(2.75rem, 13.5vw, 3.3rem); }
}
