@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&display=swap");
:root {
  --color-background: #15120f;
  --earth-border: #302016;
  --hero-art: url("./webp/changsha-gate.webp");
  --color-text: #f0dfba;
  --color-caption: #dfccaa;
  --color-rule: #e7ce9f;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --motion-enter-distance: 12px;
  --motion-duration: 0.48s;
  --motion-link-lift: -2px;
  --motion-card-content-lift: -2px;
  --motion-symbol-lift: -4px;
}
@media (min-width: 786px) {
  :root {
    --motion-enter-distance: 18px;
    --motion-duration: 0.55s;
    --motion-card-content-lift: -3px;
    --motion-symbol-lift: -5px;
  }
}
@media (min-width: 1200px) {
  :root {
    --motion-enter-distance: 24px;
    --motion-duration: 0.6s;
    --motion-link-lift: -3px;
    --motion-card-content-lift: -4px;
    --motion-symbol-lift: -7px;
  }
}
@keyframes motion-fade-up {
  from {
    opacity: 0;
    transform: translateY(var(--motion-enter-distance));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero__eyebrow,
.hero__title > span,
.hero__description,
.hero__link,
.hero__chapter {
  animation: motion-fade-up var(--motion-duration) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero__title > span:nth-child(1) {
  animation-delay: 0.1s;
}
.hero__title > span:nth-child(2) {
  animation-delay: 0.16s;
}
.hero__title > span:nth-child(3) {
  animation-delay: 0.22s;
}
.archive-card,
.map-note,
.mawangdui-copy,
.final-message {
  position: relative;
}
:is(.path-card, .archive-card,
    .map-note, .mawangdui-copy, .final-message)::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 12%,
    rgb(255 255 255 / 12%) 34%,
    rgb(255 255 255 / 72%) 50%,
    rgb(255 255 255 / 12%) 66%,
    transparent 88%
  );
  background-position: 100% 50%;
  background-size: 240% 100%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    background-position 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
:is(.path-card, .archive-card,
    .map-note, .mawangdui-copy, .final-message):is(:hover, :focus-within, [data-touch-active])::after {
  background-position: 0 50%;
  opacity: 1;
}
.paths-grid .path-card {
  transition:
    border-color 0.4s ease,
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.paths-grid .path-card::after {
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    115deg,
    transparent 8%,
    rgb(231 206 159 / 18%) 30%,
    rgb(255 255 255 / 88%) 50%,
    rgb(231 206 159 / 18%) 70%,
    transparent 92%
  );
  background-position: 100% 50%;
  background-size: 260% 100%;
}
.paths-grid .path-card:is(:hover, :focus-within, [data-touch-active]) {
  border-color: rgb(231 206 159 / 72%);
  box-shadow:
    inset 0 0 28px rgb(231 206 159 / 5%),
    0 18px 52px rgb(0 0 0 / 34%);
}
.paths-grid .path-card > :not(.path-symbol) {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.paths-grid .path-card:is(:hover, :focus-within, [data-touch-active]) > :not(.path-symbol) {
  transform: translateY(var(--motion-card-content-lift));
}
.paths-grid .path-symbol {
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s ease;
}
.paths-grid .path-card:is(:hover, :focus-within, [data-touch-active]) .path-symbol {
  transform: translateY(var(--motion-symbol-lift)) scale(1.025);
  color: rgb(231 213 177 / 10%);
}
.hero__link,
.text-link,
.section-next,
.mawangdui-copy a,
.return-link {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}
.hero__link:hover,
.text-link:hover,
.section-next:hover,
.mawangdui-copy a:hover,
.return-link:hover {
  transform: translateY(var(--motion-link-lift));
}
@media (hover: none), (pointer: coarse) {
  :is(.path-card, .archive-card,
    .map-note, .mawangdui-copy, .final-message):active::after {
    background-position: 0 50%;
    opacity: 1;
  }
  .paths-grid .path-card:active {
    border-color: rgb(231 206 159 / 72%);
    box-shadow: inset 0 0 20px rgb(231 206 159 / 5%);
  }
  .paths-grid .path-card:active > :not(.path-symbol) {
    transform: translateY(var(--motion-card-content-lift));
  }
  .paths-grid .path-card:active .path-symbol {
    transform: translateY(var(--motion-symbol-lift)) scale(1.015);
    color: rgb(231 213 177 / 10%);
  }
  .hero__link:active,
  .text-link:active,
  .section-next:active,
  .mawangdui-copy a:active,
  .return-link:active {
    transform: translateY(var(--motion-link-lift));
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-display);
}
/* Header and navigation */
.site-header {
  position: absolute;
  z-index: 20;
  top: clamp(0.75rem, 2.8vw, 1rem);
  left: 6vw;
  right: 6vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem 1rem;
  min-height: 3rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgb(231 206 159 / 22%);
  color: #ead9b6;
  animation: motion-fade-up var(--motion-duration) cubic-bezier(0.22, 1, 0.36, 1) 0.04s backwards;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.site-brand__icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(1.65rem, 2.4vw, 1.9rem);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
}
.site-brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1;
}
.site-brand__copy strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.72rem, 2.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-brand__copy small {
  color: rgb(234 217 182 / 58%);
  font-size: clamp(0.39rem, 1.5vw, 0.52rem);
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.site-nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 5vw, 2rem);
  width: 100%;
  padding-top: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 0.3rem 0;
  color: rgb(234 217 182 / 68%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.7rem, 2.4vw, 0.82rem);
  line-height: 1;
  text-decoration: none;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.15rem;
  left: 0;
  height: 1px;
  background-color: #b36a4e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #f0dfba;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-soundscape {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  justify-self: end;
  min-height: 1.75rem;
  padding: 0.35rem 0.68rem;
  border: 1px solid rgb(231 206 159 / 38%);
  border-radius: 999px;
  background: transparent;
  color: rgb(240 223 186 / 88%);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}
.header-soundscape[hidden] {
  display: none;
}
.header-soundscape[aria-pressed="true"] {
  border-color: #b69059;
  background-color: rgb(182 144 89 / 16%);
}
.header-soundscape[aria-pressed="true"] span {
  background-color: #f0dfba;
  box-shadow: 0 0 5px #e7ce9f;
}
.header-soundscape span {
  width: 0.26rem;
  height: 0.26rem;
  border-radius: 50%;
  background-color: #b69059;
}
.header-soundscape:hover,
.header-soundscape:focus-visible {
  border-color: rgb(240 223 186 / 72%);
  background-color: rgb(240 223 186 / 8%);
  color: #ffffff;
}
@media (min-width: 786px) {
  .site-header {
    top: clamp(0.85rem, 1.5vw, 1.2rem);
    left: 7vw;
    right: 7vw;
    gap: 0.75rem 1.5rem;
    min-height: 3.2rem;
    padding-bottom: 0.6rem;
  }
  .site-nav {
    grid-row: 2;
    padding-top: 0.45rem;
  }
  .site-brand__copy strong {
    font-size: 0.9rem;
  }
  .site-brand__copy small {
    font-size: 0.48rem;
  }
}
@media (min-width: 1200px) {
  .site-header {
    left: max(4.16vw, calc((100vw - 1120px) / 2));
    right: max(4.16vw, calc((100vw - 1120px) / 2));
  }
  .site-nav {
    gap: clamp(1rem, 1.8vw, 1.7rem);
  }
  .site-nav a {
    font-size: 0.72rem;
  }
}
@media (min-width: 1440px) {
  .site-header {
    grid-template-columns: minmax(23rem, 1fr) auto minmax(7.5rem, 1fr);
    gap: clamp(0.9rem, 1.3vw, 1.4rem);
  }
  .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    width: auto;
    gap: clamp(0.65rem, 0.9vw, 1rem);
    padding-top: 0;
    overflow: visible;
  }
  .site-nav a {
    font-size: clamp(0.62rem, 0.62vw, 0.72rem);
  }
  .header-soundscape {
    grid-column: 3;
  }
}
@media (max-width: 430px) {
  .site-brand__copy small {
    display: none;
  }
  .header-soundscape {
    padding-inline: 0.55rem;
    font-size: 0.56rem;
  }
}
/* Opening hero */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(6.5rem, 17svh, 10rem) 6vw 2rem;
  background-color: var(--color-background);
  background-image: var(--hero-art);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(13 11 9 / 69%), rgb(13 11 9 / 29%) 72%),
    linear-gradient(180deg, rgb(13 11 9 / 28%), transparent 50%, rgb(13 11 9 / 50%));
}
/* Carry the ground tones out of the cover before entering the map. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(130px, 31svh, 340px);
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgb(48 32 22 / 32%) 46%, var(--earth-border) 100%);
}
/* Painted foreground clouds. The sprite already contains transparent edges. */
.hero-clouds {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--cloud-opacity, 0);
  --cloud-travel: clamp(100px, 29vw, 460px);
  --cloud-art: url("./webp/ruyi-clouds.webp");
}
.hero-clouds > div {
  position: absolute;
  inset: 0;
  --side: -1;
  --stagger: 0%;
}
.hero-clouds > .hero-clouds__right {
  --side: 1;
  --stagger: 5%;
}
.cloud {
  position: absolute;
  top: calc(var(--cloud-y) + var(--stagger));
  width: min(var(--cloud-size), 48vw);
  filter: saturate(0.88) brightness(0.88);
  transform-origin: center;
  translate: calc(var(--cloud-exit) * var(--cloud-travel) * var(--side) * var(--cloud-depth))
    calc(var(--cloud-exit) * -84px * var(--cloud-depth));
  --cloud-scale: calc(1 - var(--cloud-exit) * 0.64 * var(--cloud-depth));
  scale: calc(var(--cloud-scale) * var(--cloud-mirror, 1)) var(--cloud-scale);
}
.hero-clouds__left .cloud { left: var(--cloud-edge); }
.hero-clouds__right .cloud { right: var(--cloud-edge); }
.hero-clouds__left :is(.cloud--high, .cloud--main) {
  left: calc(var(--cloud-edge) + clamp(10px, 0.7vw, 14px));
}
.hero-clouds__right :is(.cloud--high, .cloud--main) {
  right: calc(var(--cloud-edge) + min(1.3vw, 22px));
}
@media (min-width: 601px) {
  .hero-clouds__left .cloud--low { --cloud-edge: 0%; }
  .hero-clouds__left .cloud--tail { --cloud-edge: 4%; }
}
.hero-clouds__left .cloud--wisp, .hero-clouds__right .cloud--layered { --cloud-mirror: -1; }
.cloud--high {
  --cloud-y: 27%;
  --cloud-size: clamp(140px, 21vw, 360px);
  --cloud-edge: -3%;
  --cloud-depth: 0.60;
}
.cloud--main {
  --cloud-y: 39%;
  --cloud-size: clamp(165px, 28vw, 490px);
  --cloud-edge: -4%;
  --cloud-depth: 1;
}
.cloud--low {
  --cloud-y: 62%;
  --cloud-size: clamp(80px, 11vw, 175px);
  --cloud-edge: 4%;
  --cloud-depth: 0.76;
}
.cloud--tail {
  --cloud-y: 73%;
  --cloud-size: clamp(52px, 6vw, 106px);
  --cloud-edge: 11%;
  --cloud-depth: 0.47;
}
@media (max-width: 600px) {
  .cloud--main { --cloud-edge: -13%; }
  .cloud--high { --cloud-edge: -14%; }
  .cloud--low { --cloud-edge: 1%; }
  .cloud--tail { --cloud-edge: 7%; }
}
.cloud--layered {
  aspect-ratio: 688 / 340;
  background: var(--cloud-art) 5.778% 12.719% / 223.256% 301.176% no-repeat;
}
.cloud--jade {
  aspect-ratio: 711 / 290;
  background: var(--cloud-art) 95.879% 13.215% / 216.034% 353.103% no-repeat;
}
.cloud--ribbon {
  aspect-ratio: 699 / 175;
  background: var(--cloud-art) 5.854% 77.621% / 219.742% 585.143% no-repeat;
}
.cloud--wisp {
  aspect-ratio: 502 / 243;
  background: var(--cloud-art) 86.364% 78.745% / 305.976% 421.399% no-repeat;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}
.hero__eyebrow {
  margin: 0 0 1.75rem;
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  line-height: 1.45;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px #000;
}
.hero__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.9rem, 9.2vw, 4.35rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.018em;
  text-shadow: 0 3px 18px #000;
}
.hero__title span {
  display: block;
}
.hero__description {
  max-width: 38rem;
  margin: 1.3rem 0 1.7rem;
  font-size: clamp(0.92rem, 3.6vw, 1.125rem);
  line-height: 1.65;
  letter-spacing: 0.05em;
  text-shadow: 0 3px 18px #000;
  overflow-wrap: break-word;
  animation-delay: 0.3s;
}
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  width: fit-content;
  min-height: 3.6rem;
  padding: 0.65rem 0.125rem;
  border-bottom: 1px solid var(--color-rule);
  color: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-shadow: 0 3px 18px #000;
  animation-delay: 0.4s;
}
.hero__link:hover {
  border-bottom-width: 2px;
}
.hero__link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 5px;
}
.hero__link-arrow {
  font-size: 1.45rem;
  line-height: 1;
}
.hero__chapter {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin: auto 0 0;
  padding-top: 3rem;
  color: var(--color-caption);
  text-align: right;
  text-shadow: 0 3px 18px #000;
  animation-delay: 0.5s;
}
.hero__chapter span,
.hero__chapter strong {
  display: block;
}
.hero__chapter span {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
}
.hero__chapter strong {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
@media (min-width: 786px) {
  .hero {
    padding: clamp(7.5rem, 18svh, 10rem) 7vw 2.5rem;
  }
  .hero::before {
    background:
      radial-gradient(circle at 50% 48%, transparent 16%, rgb(16 13 10 / 58%) 90%),
      linear-gradient(90deg, rgb(13 11 9 / 69%), transparent 52%);
  }
  .hero__eyebrow {
    font-size: 0.69rem;
    letter-spacing: 0.32em;
  }
  .hero__title {
    font-size: clamp(4.6rem, 8.2vw, 7.9rem);
    line-height: 1.03;
    letter-spacing: 0.045em;
  }
  .hero__description {
    max-width: none;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
    font-size: clamp(1.05rem, 1.37vw, 1.35rem);
    letter-spacing: 0.1em;
  }
  .hero__chapter strong {
    font-size: 1.125rem;
  }
}
@media (min-width: 1200px) {
  .hero {
    padding-inline: max(4.16vw, calc((100vw - 1120px) / 2));
    padding-bottom: 2.7rem;
  }
  .hero__eyebrow {
    margin-bottom: 1.75rem;
  }
  .hero__title {
    font-size: clamp(6.1rem, 8.2vw, 8.625rem);
    letter-spacing: 0.069em;
  }
  .hero__description {
    margin-top: 1.75rem;
    margin-bottom: 1.55rem;
    font-size: 1.4375rem;
    letter-spacing: 0.14em;
  }
  .hero__chapter {
    position: absolute;
    right: 4.16vw;
    bottom: 2.7rem;
    padding: 0;
  }
}
.chapter,
.paths,
/* Final archive */
.final-archive {
  width: 100%;
  padding: 5rem 6vw;
}
.chapter {
  background-color: #17130f;
  color: #ead9b6;
}
.section-heading,
.paths-heading,
.final-heading {
  width: 100%;
  max-width: 760px;
}
.chapter-label,
.small-label,
.card-number {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.chapter-label {
  color: #b55b3d;
}
.small-label,
.card-number {
  color: #a78c67;
}
.section-heading h2,
.paths-heading h2,
.final-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.chapter-intro {
  max-width: 650px;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #423d33;
}
.text-link,
.section-next,
.return-link {
  display: inline-block;
  color: #ead9b6;
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #8f7657;
  padding-bottom: 0.35rem;
}
.text-link:hover,
.section-next:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
/* Old Changsha and map */
.old-city {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--earth-border), #251910 19rem, #18140f 40rem);
}
.old-city::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(110px, 22vw, 250px);
  pointer-events: none;
  background: var(--hero-art) center 69% / max(1450px, 390vw) auto no-repeat;
  filter: sepia(0.75) saturate(0.65);
  opacity: 0.27;
  mask-image: linear-gradient(180deg, transparent, #000 30%, rgb(0 0 0 / 55%) 60%, transparent);
}
.old-city .section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}
.old-city .chapter-intro {
  color: #c8b99c;
}
.story-map {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.map-area {
  position: relative;
  width: 100%;
  container-type: inline-size;
  touch-action: pan-y pinch-zoom;
  align-self: start;
  overflow: hidden;
  border: 1px solid #574a38;
  background-color: #272019;
}
/* Pointer spotlight for the map illustration. */
.map-area::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(
    circle clamp(76px, 20cqw, 190px) at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    transparent 30%,
    rgb(21 16 12 / 25%) 68%,
    rgb(21 16 12 / 72%) 100%
  );
}
.map-area[data-spotlight]::after {
  opacity: 1;
}
.map-background {
  display: block;
  width: 100%;
  height: auto;
}
.map-title {
    position: absolute;
    top: 7cqw;
    left: 8cqw;
    display: flex;
    flex-direction: column;
    z-index: 2;
    text-shadow: 0 1px 3px #17130f, 0 0 10px #17130f;
}
.map-title span {
    font-size: clamp(0.55rem, 2.2cqw, 1rem);
    letter-spacing: 0.22em;
    color: #ead9b6;
}
.map-title strong {
    margin-top: 1.2cqw;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 6.2cqw, 3.75rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #ead9b6;
}
.map-pin {
  position: absolute;
  z-index: 2;
  inset: var(--pin-y) auto auto var(--pin-x);
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  color: #ead9b6;
  text-decoration: none;
}
.map-pin::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
}
.map-pin__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.5rem, 7cqw, 3.5rem);
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px solid #c26b45;
  border-radius: 50%;
  background-color: #211813;
  font-size: clamp(0.65rem, 2.2cqw, 1rem);
  line-height: 1;
}
.map-pin__name {
    position: absolute;
    top: calc(100% + clamp(0.15rem, 0.7cqw, 0.55rem));
    padding:
        clamp(0.25rem, 1.2cqw, 0.65rem)
        clamp(0.35rem, 1.6cqw, 1rem);
    background-color: rgba(23, 19, 15, 0.9);
    font-size: clamp(0.68rem, 2.7cqw, 1.15rem);
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
/* Small movement and color contrast distinguish the map controls. */
.map-pin__number,
.map-pin__name,
.map-title strong {
  transition: translate 180ms ease, scale 180ms ease, color 180ms ease, background-color 180ms ease;
}
.map-pin:is(:hover, :focus-visible, [data-map-active]) .map-pin__number {
  translate: 0 -4px;
  scale: 1.08;
  background-color: #e4cc9f;
  color: #251a14;
}
.map-pin:is(:hover, :focus-visible, [data-map-active]) .map-pin__name {
  translate: 0 3px;
  background-color: #4a2b22;
  color: #fff1cf;
}
.map-title strong {
  transform-origin: left center;
}
.map-title:is(:hover, [data-map-active]) strong {
  translate: 0 -4px;
  scale: 1.025;
  color: #fff0cb;
}
.map-pin--one {
  --pin-x: 28%;
  --pin-y: 34%;
}
.map-pin--two {
  --pin-x: 42%;
  --pin-y: 66%;
}
.map-pin--three {
  --pin-x: 73%;
  --pin-y: 45%;
}
.map-pin--four {
  --pin-x: 84%;
  --pin-y: 72%;
}
.map-note {
  padding: clamp(1.4rem, 6vw, 2.8rem);
  border: 1px solid #574a38;
  background-color: #201a14;
}
.map-note > * {
  position: relative;
  z-index: 2;
}
.map-note h3 {
  margin: 0 0 clamp(0.6rem, 1.5vw, 1rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  line-height: 1.1;
  font-weight: 400;
}
.map-note .small-label {
  margin: 0 0 clamp(0.7rem, 2vw, 1rem);
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  line-height: 1.2;
  letter-spacing: clamp(0.12em, 0.4vw, 0.2em);
}
.map-note p {
  font-size: clamp(0.95rem, 3.2vw, 1.2rem);
  line-height: 1.6;
  color: #c8b99c;
}
.map-note .text-link {
  margin-top: clamp(1rem, 4vw, 1.8rem);
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  line-height: 1.3;
}
@media (min-width: 960px) {
  .story-map {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }
  .map-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.4rem, 2.4vw, 2.8rem);
  }
}
.source-note {
  max-width: 700px;
  margin: clamp(1rem, 3vw, 1.8rem) 0 0;
  font-size: clamp(0.75rem, 2.3vw, 0.95rem);
  line-height: 1.7;
  color: #897c68;
}
/* Tufuzi */
.tufuzi {
  --chapter-from: #18140f;
  --chapter-edge: clamp(2.5rem, 7vw, 5rem);
  --chapter-color: #d4c29c;
  --chapter-entry: #dfb889;
  background-color: var(--chapter-color);
  color: #292018;
}
.tufuzi .chapter-label,
.tufuzi .card-number {
  color: #813d2d;
}
.tufuzi .chapter-intro {
  color: #55483a;
}
.section-heading--wide {
  max-width: 850px;
}
.story-figure {
  width: 100%;
  margin: 3rem 0;
}
.story-figure__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #8f795b;
  background-color: #8e7a5e;
}
.story-figure__photo {
  display: block;
  width: 100%;
  height: auto;
}
.story-figure__image span {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  display: inline-block;
  padding: 0.45rem 0.65rem;
  background-color: #292018;
  color: #ed7d5b;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
}
.story-figure figcaption {
  max-width: 700px;
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #5b4b3b;
}
.story-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.story-card {
  position: relative;
  display: grid;
  min-width: 0;
  perspective: 1050px;
}
.story-card__faces {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
}
.story-card__front,
.story-card__back {
  backface-visibility: hidden;
}
.story-card__front {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.8rem;
  border: 1px solid #8e795a;
  background-color: rgba(239, 221, 183, 0.38);
}
.story-card__back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #8e795a;
  background-color: #38261a;
  transform: rotateY(180deg);
}
.story-card__back img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card__flip {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.story-card__flip span {
  position: absolute;
  inset: auto 0.5rem 0.5rem auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #8e795a;
  border-radius: 50%;
  background-color: #e9d6af;
  color: #59402e;
  font: 1rem/1 Georgia, serif;
}
.story-card__flip:focus-visible {
  outline: 2px solid #813d2d;
  outline-offset: 3px;
}
.story-card h3 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}
.story-card__front > p:not(.card-number):not(.evidence-label) {
  line-height: 1.75;
  color: #55483a;
}
.evidence-label {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}
.evidence-label--legend {
  color: #853d2e;
}
.evidence-label--oral {
  color: #48584a;
}
.evidence-label--fact {
  color: #6b542c;
}
.story-quote {
  max-width: 850px;
  margin: 4rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid #8e795a;
  border-bottom: 1px solid #8e795a;
}
.story-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: center;
}
/* Two underground narratives */
.paths {
  --chapter-from: #d4c29c;
  --chapter-edge: clamp(2.5rem, 7vw, 5rem);
  --chapter-color: #12100d;
  --chapter-entry: #503322;
  background-color: var(--chapter-color);
  color: #e7d5b1;
}
.paths-heading {
  margin-bottom: 2.5rem;
}
.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.path-card {
  position: relative;
  min-height: 310px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid #514536;
  background-color: #1d1914;
}
.path-card h3 {
  max-width: 420px;
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
}
.path-card p:not(.small-label) {
  position: relative;
  z-index: 2;
  max-width: 480px;
  line-height: 1.75;
  color: #b8aa8e;
}
.path-symbol {
  pointer-events: none;
  position: absolute;
  right: 1rem;
  bottom: -2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10rem;
  line-height: 1;
  color: rgba(231, 213, 177, 0.06);
}
.section-next {
  margin-top: 2.5rem;
}
.final-archive {
  --chapter-from: #14110e;
  --chapter-edge: clamp(2.5rem, 7vw, 5rem);
  --chapter-color: #d3c29e;
  --chapter-entry: #e6bc92;
  background-color: var(--chapter-color);
  color: #292018;
}
.final-archive .chapter-label {
  color: #823e2f;
}
.final-heading {
  margin-bottom: 3rem;
}
.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.archive-card {
  min-height: 300px;
  padding: 1.8rem;
  border: 1px solid #8b775a;
  background-color: rgba(239, 222, 187, 0.35);
}
.archive-letter {
  display: block;
  margin-bottom: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
  color: #843e2e;
}
.archive-card h3 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
}
.archive-card__text > p:last-child {
  line-height: 1.75;
  color: #594b3b;
}
.final-message {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid #8b775a;
  border-bottom: 1px solid #8b775a;
}
.final-message p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.6;
}
.archive-card,
.final-message > p {
  touch-action: pan-y pinch-zoom;
}
.final-message__text {
  display: inline-block;
}
.return-link {
  margin-top: 2.5rem;
  color: #292018;
  border-bottom-color: #7e684c;
}
.return-link:hover {
  color: #823e2f;
  border-bottom-color: #823e2f;
}
/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 6vw;
  border-top: 1px solid #40372c;
  --chapter-from: #d3c29e;
  --chapter-edge: 1.35rem;
  --chapter-color: #100e0c;
  --chapter-entry: #4b3226;
  background-color: var(--chapter-color);
  color: #8f816d;
}
.site-footer p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
@media (min-width: 786px) {
  .chapter,
  .paths,
  .final-archive {
    padding: 7rem 7vw;
  }
  .section-heading h2,
  .paths-heading h2,
  .final-heading h2 {
    font-size: 4rem;
  }
  .chapter-intro {
    font-size: 1.05rem;
  }
  .story-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .story-card {
    min-height: 340px;
  }
  .story-quote p {
    font-size: 2rem;
  }
  .paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .path-card {
    min-height: 380px;
  }
  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: 7vw;
  }
}
/* Mawangdui */
.mawangdui {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "hero"
    "copy-one"
    "layers"
    "copy-two"
    "register"
    "copy-three";
  width: 100%;
  overflow: hidden;
  --chapter-from: #12100d;
  --chapter-edge: clamp(2rem, 5vw, 4rem);
  --chapter-color: #14110e;
  --chapter-entry: #493126;
  background-color: var(--chapter-color);
  color: #ede0c7;
}
.mawangdui-left,
.mawangdui-right {
  display: contents;
}
.mawangdui-hero,
.mawangdui-layers,
.mawangdui-register,
.mawangdui-copy {
  min-width: 0;
}
.mawangdui h2,
.mawangdui h3,
.mawangdui p,
.mawangdui span,
.mawangdui a {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.mawangdui-hero {
  grid-area: hero;
  width: 100%;
  background-color: #14110e;
}
.mawangdui-hero__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2114 / 1586;
  object-fit: contain;
  object-position: center;
}
.mawangdui-index {
  --chapter-from: transparent;
  --chapter-edge: 0px;
  width: 100%;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  --chapter-color: #30231d;
  --chapter-entry: #51382a;
  background-color: var(--chapter-color);
}
.mawangdui-index p {
  margin: 0;
  color: #b08757;
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  letter-spacing: 0.16em;
}
.mawangdui-index h2 {
  margin: 0.4rem 0;
  color: #eddbb8;
  font-size: clamp(2.4rem, 12vw, 4.5rem);
  line-height: 1;
}
.mawangdui-index span {
  display: block;
  color: #c7b296;
  font-size: clamp(0.9rem, 3.4vw, 1.1rem);
  line-height: 1.55;
}
.mawangdui-small {
  margin: 0;
  color: #b99253;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.mawangdui-layers {
  grid-area: layers;
  padding: clamp(3rem, 10vw, 5rem) 6vw;
  --chapter-from: #14110e;
  --chapter-edge: 2.5rem;
  --chapter-color: #241c17;
  --chapter-entry: #523728;
  background-color: var(--chapter-color);
}
.mawangdui-layers h3 {
  margin: 0.8rem 0 1.5rem;
  color: #eddbba;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.15;
}
.layer-row {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  border: 0;
  font-family: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  margin-bottom: 0.8rem;
  padding: 1.1rem 1.2rem;
  color: #f0dbb8;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  line-height: 1.45;
}
.layer-row--one {
  --layer-band: 0;
  background-color: #6f7564;
}
.layer-row--two {
  --layer-band: 1;
  background-color: #80664e;
}
.layer-row--three {
  --layer-band: 2;
  background-color: #d2c2a1;
  color: #3d2b21;
}
.layer-row--four {
  --layer-band: 3;
  background-color: #4c3328;
}
.layer-row--five {
  --layer-band: 4;
  background-color: #211b19;
}
.layer-row:focus-visible {
  outline: 2px solid #e8c998;
  outline-offset: 3px;
}
.layer-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgb(18 12 9 / 64%), rgb(18 12 9 / 16%) 76%),
    url("./webp/mawangdui-strata.webp") center calc(10% + var(--layer-band) * 20%) / max(100%, 24rem) auto no-repeat;
  transition: opacity 160ms ease;
}
.layer-row:is([data-layer-hover], [aria-pressed="true"], :focus-visible) {
  color: #fff3db;
  text-shadow: 0 1px 5px #170f0b;
}
.layer-row:is([data-layer-hover], [aria-pressed="true"], :focus-visible)::before {
  opacity: 1;
  animation: reveal-layer-image 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes reveal-layer-image {
  from {
    clip-path: inset(0 calc(100% - var(--layer-origin, 50%)) 0 var(--layer-origin, 50%));
  }
  to {
    clip-path: inset(0);
  }
}
.layer-word, .layer-letter {
  display: inline-block;
}
.layer-letter {
  transition: translate 140ms ease;
}
.layer-row .layer-letter:is(:hover, [data-layer-active]) {
  translate: 0 -2px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.layer-caption {
  margin: 1.4rem 0 0;
  color: #b8a387;
  font-size: 0.9rem;
}
.mawangdui-register {
  grid-area: register;
  padding: clamp(3rem, 10vw, 5rem) 6vw;
  --chapter-from: #241c17;
  --chapter-edge: 2.5rem;
  --chapter-color: #211a16;
  --chapter-entry: #483326;
  background-color: var(--chapter-color);
}
.mawangdui-register h3 {
  margin: 0.8rem 0 1.8rem;
  color: #eddbba;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: 1.1;
}
.register-list {
  --register-height: clamp(6.6rem, 14vw, 7.75rem);
  --register-squeeze: clamp(0.7rem, 1.2vw, 1.25rem);
  display: grid;
  gap: 0.8rem;
}
.register-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: center;
  gap: 0.8rem;
  block-size: var(--register-height);
  padding: 0.9rem 1.3rem;
  border: 1px solid #594533;
  background: var(--artifact-image) center / cover no-repeat;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: block-size 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.register-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(20 15 12 / 58%);
}
.register-row::before,
.register-row > * {
  pointer-events: none;
  transition: opacity 180ms ease;
}
.register-list:has([aria-pressed="true"]) .register-row {
  block-size: calc(var(--register-height) - var(--register-squeeze));
}
.register-list .register-row[aria-pressed="true"] {
  block-size: calc(var(--register-height) + 3 * var(--register-squeeze));
}
.register-row[aria-pressed="true"]::before,
.register-row[aria-pressed="true"] > * {
  opacity: 0;
}
.register-row:focus-visible {
  outline: 2px solid #e8c998;
  outline-offset: 2px;
}
.register-row:nth-of-type(1) {
  --artifact-image: url("./webp/taoqi.webp");
}
.register-row:nth-of-type(2) {
  --artifact-image: url("./webp/shayi.webp");
}
.register-row:nth-of-type(3) {
  --artifact-image: url("./webp/muou.webp");
}
.register-row:nth-of-type(4) {
  --artifact-image: url("./webp/sihua.webp");
}
.register-number {
  color: #b28557;
  font-size: 1.4rem;
}
.register-row strong {
  color: #f0dbba;
  font-size: 1.1rem;
}
.register-description {
  grid-column: 2;
  margin: 0;
  color: #bdab94;
  font-size: 0.9rem;
}
.mawangdui-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(3.5rem, 12vw, 5rem) 8vw;
}
.mawangdui-copy:nth-child(1) {
  grid-area: copy-one;
}
.mawangdui-copy:nth-child(2) {
  grid-area: copy-two;
}
.mawangdui-copy:nth-child(3) {
  grid-area: copy-three;
}
.mawangdui-copy h2 {
  margin: 1rem 0;
  color: #ede0c7;
  font-size: clamp(2.6rem, 12vw, 4.8rem);
  line-height: 1.08;
}
.mawangdui-copy > p:not(.mawangdui-small) {
  max-width: 540px;
  color: #d8cab1;
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  line-height: 1.9;
}
.mawangdui-copy a {
  width: fit-content;
  margin-top: 1.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #a98755;
  color: #e4d3b2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  text-decoration: none;
}
@media (min-width: 786px) {
  .mawangdui-index {
    padding: 2.5rem 7vw;
  }
  .mawangdui-layers,
  .mawangdui-register {
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .register-row {
    grid-template-columns: 60px 1.2fr 1.4fr;
    align-items: center;
  }
  .register-description {
    grid-column: auto;
  }
  .mawangdui-copy {
    min-height: clamp(30rem, 64vw, 40rem);
    padding: 6rem 8vw;
  }
}
@media (min-width: 1200px) {
  .mawangdui {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    grid-template-areas:
      "hero copy-one"
      "layers copy-two"
      "register copy-three";
  }
  .mawangdui-index {
    min-height: clamp(11rem, 16vw, 16.75rem);
    padding: clamp(2.2rem, 3.5vw, 4.5rem);
  }
  .mawangdui-index p {
    font-size: clamp(0.75rem, 0.9vw, 0.94rem);
  }
  .mawangdui-index h2 {
    margin: 0.45rem 0;
    font-size: clamp(3.8rem, 4.6vw, 4.8rem);
    line-height: 1.1;
  }
  .mawangdui-index span {
    font-size: clamp(1rem, 1.25vw, 1.3rem);
  }
  .mawangdui-layers {
    min-height: clamp(42rem, 52vw, 55.5rem);
    padding: clamp(3.5rem, 4.3vw, 4.5rem) clamp(3rem, 4vw, 4.2rem);
  }
  .mawangdui-layers h3 {
    margin: 0.9rem 0;
    font-size: clamp(2.7rem, 3.1vw, 3.25rem);
    line-height: 1.1;
  }
  .layer-row {
    min-height: clamp(4.2rem, 4.9vw, 5.2rem);
    margin-bottom: 0.9rem;
    padding: clamp(1rem, 1.3vw, 1.4rem) clamp(1.3rem, 1.8vw, 1.9rem);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
  }
  .layer-caption {
    margin-top: 0;
    font-size: clamp(0.9rem, 1.1vw, 1.12rem);
  }
  .mawangdui-register {
    min-height: clamp(44rem, 57vw, 61rem);
    padding: clamp(3.5rem, 4.6vw, 4.9rem) clamp(3rem, 4vw, 4.2rem);
  }
  .mawangdui-register h3 {
    margin: 1rem 0;
    font-size: clamp(3.1rem, 3.8vw, 4rem);
  }
  .register-list {
    --register-height: clamp(6.2rem, 7.5vw, 7.9rem);
    gap: 1rem;
  }
  .register-row {
    grid-template-columns: clamp(3rem, 3.7vw, 3.9rem) minmax(10rem, 1.2fr) minmax(0, 1fr);
    gap: clamp(0.9rem, 1.2vw, 1.25rem);
    padding: clamp(1.2rem, 1.5vw, 1.6rem) clamp(1.2rem, 1.7vw, 1.8rem);
  }
  .register-number {
    font-size: clamp(1.5rem, 2vw, 2.05rem);
  }
  .register-row strong {
    font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  }
  .register-description {
    font-size: clamp(0.9rem, 1vw, 1.06rem);
  }
  .mawangdui-copy {
    padding: clamp(4rem, 5.2vw, 5.5rem) 12%;
  }
  .mawangdui-copy h2 {
    margin: 1.25rem 0;
    font-size: clamp(3.8rem, 4.9vw, 5.15rem);
  }
  .mawangdui-copy > p:not(.mawangdui-small) {
    font-size: clamp(1rem, 1.1vw, 1.13rem);
    line-height: 2;
  }
  .mawangdui-copy a {
    padding: 0.75rem 1rem;
    font-size: clamp(0.75rem, 0.8vw, 0.82rem);
  }
  .chapter,
  .paths,
  .final-archive {
    padding: 9rem max(7vw, calc((100vw - 1200px) / 2));
  }
  .section-heading,
  .paths-heading,
  .final-heading {
    max-width: 900px;
  }
  .section-heading h2,
  .paths-heading h2,
  .final-heading h2 {
    font-size: 5rem;
  }
  .chapter-intro {
    font-size: 1.1rem;
  }
  .old-city .section-heading {
    margin-bottom: 4rem;
  }
  .story-map {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
  }
  .section-heading--wide {
    max-width: 1000px;
  }
  .story-figure {
    margin: 4rem 0;
  }
  .story-card {
    min-height: 380px;
  }
  .story-card__front {
    padding: 2.2rem;
  }
  .story-card h3 {
    font-size: 1.8rem;
  }
  .story-quote {
    margin-top: 5rem;
  }
  .story-quote p {
    font-size: 2.4rem;
  }
  .paths-heading {
    margin-bottom: 3.5rem;
  }
  .paths-grid {
    gap: 2rem;
  }
  .path-card {
    min-height: 440px;
    padding: 3rem;
  }
  .path-card h3 {
    font-size: 2rem;
  }
  .path-symbol {
    font-size: 15rem;
  }
  .final-heading {
    margin-bottom: 4rem;
  }
  .archive-grid {
    gap: 1.5rem;
  }
  .archive-card {
    min-height: 380px;
    padding: 2.2rem;
  }
  .archive-letter {
    font-size: 5.5rem;
  }
  .final-message {
    margin-top: 5rem;
  }
  .final-message p {
    font-size: 1.7rem;
  }
  .site-footer {
    padding-inline: max(7vw, calc((100vw - 1200px) / 2));
  }
}
.story-card__watermark {
  position: absolute;
  z-index: -1;
  inset: auto 0.06em -0.14em auto;
  font: 400 clamp(7rem, 17vw, 12rem) / 1 Georgia, serif;
  color: rgb(255 251 231 / 63%);
  pointer-events: none;
}
.map-pin:focus-visible {
  z-index: 3;
  outline-offset: 3px;
}
/* Scroll progress is sampled by the site script. */
:is(.tufuzi, .paths, .mawangdui, .mawangdui-index,
    .mawangdui-layers, .mawangdui-register, .final-archive, .site-footer) {
  background-color: color-mix(in srgb, var(--chapter-entry), var(--chapter-color) var(--chapter-color-progress, 100%));
  background-image:
    linear-gradient(180deg, var(--chapter-from, transparent), transparent var(--chapter-edge, 0px)),
    radial-gradient(ellipse at var(--chapter-glow-x, 50%) 22%,
      color-mix(in srgb, var(--chapter-entry) var(--chapter-glow-strength, 0%), transparent), transparent 72%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 90svh;
}
@media (prefers-reduced-motion: no-preference) {
  [data-scroll-reveal] {
    opacity: calc(1 - var(--scroll-remainder) * 0.76);
    translate: 0 var(--scroll-shift);
    transform: perspective(900px) rotateX(calc(var(--scroll-remainder) * -21deg));
    transform-origin: top center;
  }
  .hero__content[data-scroll-exit] {
    opacity: calc(1 - var(--hero-scroll) * 0.56);
    translate: 0 calc(var(--hero-scroll) * -80px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title > span,
  .hero__description,
  .hero__link,
  .hero__chapter {
    animation: none;
  }
  .path-card::after,
  .archive-card::after,
  .map-note::after,
  .mawangdui-copy::after,
  .final-message::after,
  .paths-grid .path-card,
  .hero__link,
  .text-link,
  .section-next,
  .mawangdui-copy a,
  .return-link {
    transition: none;
  }
  .paths-grid .path-card > :not(.path-symbol),
  .paths-grid .path-symbol {
    transition: none;
  }
  .site-header {
    animation: none;
  }
  .site-nav a::after,
  .map-area::after,
  .map-pin__number,
  .map-pin__name,
  .map-title strong,
  .register-row,
  .register-row::before,
  .register-row > *,
  .layer-row::before,
  .layer-letter,
  .header-soundscape {
    transition: none;
  }
  .map-pin:is(:hover, :focus-visible, [data-map-active]) .map-pin__number,
  .map-pin:is(:hover, :focus-visible, [data-map-active]) .map-pin__name,
  .map-title:is(:hover, [data-map-active]) strong {
    translate: none;
    scale: none;
  }
  .layer-row:is([data-layer-hover], [aria-pressed="true"], :focus-visible)::before {
    animation: none;
  }
  .layer-row .layer-letter:is(:hover, [data-layer-active]) {
    translate: none;
  }
  html {
    scroll-behavior: auto;
  }
}
