:root {
  color-scheme: light;

  --cream: #efe5cf;
  --cream-light: #f6efe0;

  --ink: #211914;
  --soft-ink: #655448;

  --red: #9d261f;
  --deep-red: #681812;
  --lacquer: #421512;

  --gold: #b7964a;
  --jade: #304f43;

  --timber: #3a2119;
  --night: #171411;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

html {
  background: var(--night);
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  background: var(--cream);
  color: var(--ink);

  font-family:
    "Songti SC",
    "STSong",
    "SimSun",
    serif;

  font-size: 19px;
  line-height: 1.8;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening {
  position: relative;

  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding:
    max(60px, env(safe-area-inset-top))
    max(30px, env(safe-area-inset-right))
    60px
    max(30px, env(safe-area-inset-left));

  background:
    linear-gradient(
      to bottom,
      #5e1714 0%,
      #821e18 48%,
      #3d1412 100%
    );

  color: #f3e6c7;
}

.opening::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 0 12%,
      rgba(20, 7, 5, 0.16) 12% 13%,
      transparent 13% 87%,
      rgba(20, 7, 5, 0.16) 87% 88%,
      transparent 88%
    );
}

.opening::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 18px;

  background: var(--gold);
}

.opening-inner {
  position: relative;
  z-index: 1;

  width: min(100%, 1100px);

  text-align: center;
}

.opening h1 {
  margin: 0;

  font-family:
    "Kaiti SC",
    "STKaiti",
    "KaiTi",
    serif;

  font-size: clamp(92px, 23vw, 220px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.14em;

  text-indent: 0.14em;

  color: #f3e6c7;

  text-shadow:
    0 4px 0 rgba(59, 20, 15, 0.6),
    0 12px 35px rgba(0, 0, 0, 0.22);
}

.opening p {
  margin: 60px 0 0;

  color: #d8c9aa;

  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.9;
}

main {
  width: 100%;
}

.place {
  position: relative;

  width: 100%;

  overflow: hidden;
}

.section-name {
  position: relative;
  z-index: 4;

  font-family:
    "Kaiti SC",
    "STKaiti",
    "KaiTi",
    serif;

  font-size: clamp(56px, 9vw, 100px);
  font-weight: 400;
  line-height: 1;

  color: var(--gold);
}

.image {
  margin: 0;
  overflow: hidden;
}

.text-block p,
.hall-text p,
.garden-top p,
.garden-bottom p {
  margin: 0 0 18px;
}

.large {
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.55;
}


/* 门 */

.gate {
  min-height: 100vh;
  min-height: 100dvh;

  padding: 0;

  background: var(--lacquer);
}

.gate .section-name {
  position: absolute;

  left: clamp(24px, 7vw, 90px);
  top: clamp(34px, 8vw, 90px);

  color: #ead4a7;
}

.gate .image-wide {
  width: 100%;
  height: 82vh;
  height: 82dvh;
}

.gate .image-wide img {
  filter:
    saturate(1.12)
    contrast(1.05)
    brightness(0.88);
}

.gate .text-block.right {
  width: min(720px, calc(100% - 48px));

  margin: 0 auto;

  padding: 48px 0 65px;

  color: #eadfc7;

  text-align: center;

  font-size: clamp(20px, 2.6vw, 28px);
}

.gate .text-block.right p:last-child {
  color: #bda98b;
}


/* 庭 */

.courtyard {
  min-height: 100vh;
  min-height: 100dvh;

  padding:
    clamp(80px, 10vw, 140px)
    clamp(24px, 6vw, 80px);

  background:
    linear-gradient(
      to bottom,
      #d9c5a2 0%,
      #efe3c9 50%,
      #d1b68e 100%
    );
}

.courtyard .section-name {
  color: var(--deep-red);
}

.courtyard-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: clamp(35px, 7vw, 90px);
  align-items: center;
}

.courtyard-grid .text-block {
  max-width: 420px;
}

.courtyard-grid .image {
  height: 68vh;
  height: 68dvh;

  border: 7px solid #b48a49;
}

.courtyard-grid .image img {
  filter:
    saturate(1.12)
    contrast(1.03);
}

.courtyard .large {
  color: var(--deep-red);
}


/* 殿 */

.hall {
  min-height: 110vh;
  min-height: 110dvh;

  padding:
    clamp(80px, 10vw, 120px)
    0
    clamp(90px, 12vw, 150px);

  background: var(--timber);

  color: #f0e3c7;
}

.hall .section-name {
  margin-left: clamp(24px, 7vw, 90px);

  color: #d5b264;
}

.image-hall {
  width: min(92%, 1450px);
  height: 72vh;
  height: 72dvh;

  margin: 45px auto 0;

  border-top: 10px solid var(--deep-red);
  border-bottom: 10px solid var(--deep-red);
}

.image-hall img {
  filter:
    saturate(1.18)
    contrast(1.08)
    brightness(0.9);
}

.hall-text {
  width: min(720px, calc(100% - 48px));

  margin:
    55px
    auto
    0;

  color: #dccbad;

  font-size: clamp(20px, 2.6vw, 27px);
}

.hall-text p:first-child {
  color: #f4e7cb;

  font-size: clamp(27px, 4vw, 42px);
}


/* 廊 */

.corridor {
  min-height: 100vh;
  min-height: 100dvh;

  padding:
    clamp(90px, 12vw, 150px)
    clamp(24px, 6vw, 80px);

  background:
    linear-gradient(
      120deg,
      #8c251f 0%,
      #9d2c24 38%,
      #6c1b17 100%
    );

  color: #f0dfbf;
}

.corridor .section-name {
  color: #e4c47a;
}

.corridor-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: clamp(35px, 6vw, 80px);
  align-items: center;
}

.corridor-image {
  height: 74vh;
  height: 74dvh;

  border: 6px solid #b18d48;
}

.corridor-image img {
  filter:
    saturate(1.12)
    contrast(1.06);
}

.corridor-text {
  max-width: 420px;
}

.corridor-text .large {
  color: #f4e2b5;
}

.corridor-text p:last-child {
  margin-top: 45px;

  color: #d0b99b;

  font-size: 18px;
}


/* 苑 */

.garden {
  min-height: 110vh;
  min-height: 110dvh;

  padding:
    clamp(100px, 13vw, 170px)
    clamp(24px, 7vw, 90px);

  background:
    linear-gradient(
      to bottom,
      #253f36 0%,
      #304f43 48%,
      #1f322c 100%
    );

  color: #e9dec5;
}

.garden .section-name {
  color: #d9bf79;
}

.garden-top {
  width: min(800px, 82%);

  margin:
    0
    auto
    55px;

  color: #f0e5cd;

  font-size: clamp(30px, 5vw, 55px);

  text-align: center;
}

.garden-image {
  width: min(90%, 1300px);
  height: 72vh;
  height: 72dvh;

  margin: 0 auto;

  border: 5px solid #a78e58;
}

.garden-image img {
  filter:
    saturate(1.15)
    contrast(1.04)
    brightness(0.92);
}

.garden-bottom {
  width: min(650px, 80%);

  margin:
    45px
    auto
    0;

  color: #c9c0a8;

  text-align: center;

  font-size: 20px;
}


/* 结束 */

.ending {
  min-height: 85vh;
  min-height: 85dvh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding:
    80px
    max(26px, env(safe-area-inset-right))
    max(90px, env(safe-area-inset-bottom))
    max(26px, env(safe-area-inset-left));

  background:
    linear-gradient(
      to bottom,
      #461411,
      #6b1a16
    );

  color: #eadfc8;

  text-align: center;
}

.ending p {
  margin: 0 0 60px;

  font-size: clamp(23px, 4vw, 38px);
}

[data-contact] {
  appearance: none;

  border: 1px solid #b79552;

  padding: 9px 18px;

  background: transparent;
  color: #e7d5ae;

  font-family:
    "Songti SC",
    "STSong",
    "SimSun",
    serif;

  font-size: 17px;

  cursor: pointer;
}

[data-contact]:hover {
  background: #b79552;
  color: #401410;
}


/* mobile */

@media (max-width: 720px) {
  body {
    font-size: 18px;
  }

  .opening {
    min-height: 100dvh;
  }

  .opening h1 {
    font-size: clamp(78px, 31vw, 135px);
  }

  .opening p {
    margin-top: 45px;
  }

  .gate .image-wide {
    height: 72dvh;
  }

  .courtyard {
    padding-left: 20px;
    padding-right: 20px;
  }

  .courtyard-grid {
    grid-template-columns: 1fr;
  }

  .courtyard-grid .image {
    height: 58dvh;
  }

  .hall {
    min-height: auto;
  }

  .image-hall {
    width: 100%;
    height: 58dvh;

    border-left: 0;
    border-right: 0;
  }

  .hall-text {
    width: auto;

    margin-left: 22px;
    margin-right: 22px;
  }

  .corridor {
    padding-left: 20px;
    padding-right: 20px;
  }

  .corridor-layout {
    grid-template-columns: 1fr;
  }

  .corridor-image {
    height: 66dvh;
  }

  .garden {
    padding-left: 20px;
    padding-right: 20px;
  }

  .garden-top,
  .garden-bottom {
    width: 100%;
  }

  .garden-image {
    width: 100%;
    height: 62dvh;
  }

  .ending {
    min-height: 90dvh;
  }
}