/*
  Page 2 / first screen — mobile-first CSS.
  The 786px and 1200px media queries follow the viewport ranges in the course board.
  The image is exported from the Figma design and stored next to these files.
*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&display=swap");

:root {
  --color-background: #15120f;
  --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;
  --motion-range-end: 24%;
}

/* =========================================================
MOTION LAYER · HTML + CSS ONLY
Keeps the original layout and resting appearance unchanged.
   ========================================================= */

@media (min-width: 786px) {
  :root {
    --motion-enter-distance: 18px;
    --motion-duration: 0.55s;
    --motion-card-content-lift: -3px;
    --motion-symbol-lift: -5px;
    --motion-range-end: 30%;
  }
}

@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;
    --motion-range-end: 34%;
  }
}

@keyframes motion-fade-up {
  from {
    opacity: 0;
    transform: translateY(var(--motion-enter-distance));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Opening sequence: responsive FadeUp movement with staggered timing. */
.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;
}

/* Pure-CSS in-view FadeUp. Unsupported browsers keep the original page. */
@supports (animation-timeline: view()) {
  .section-heading > *,
  .map-background,
  .map-title,
  .map-pin,
  .map-note,
  .source-note,
  .story-figure > *,
  .story-cards > *,
  .story-quote,
  .paths-heading > *,
  .paths-grid > *,
  .section-next,
  .mawangdui-hero__image,
  .mawangdui-index > *,
  .mawangdui-layers > *,
  .mawangdui-register > *,
  .mawangdui-copy > *,
  .final-heading > *,
  .archive-grid > *,
  .final-message > *,
  .return-link,
  .site-footer > * {
    animation-name: motion-fade-up;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-timeline: view();
    animation-range:
      entry var(--motion-range-offset, 0%)
      cover calc(var(--motion-range-end) + var(--motion-range-offset, 0%));
  }

  .story-card:nth-child(2),
  .path-card:nth-child(2),
  .archive-card:nth-child(2),
  .map-pin:nth-of-type(2),
  .layer-row:nth-of-type(2),
  .register-row:nth-of-type(2),
  .mawangdui-copy:nth-child(2) > * {
    --motion-range-offset: 3%;
  }

  .story-card:nth-child(3),
  .archive-card:nth-child(3),
  .map-pin:nth-of-type(3),
  .layer-row:nth-of-type(3),
  .register-row:nth-of-type(3),
  .mawangdui-copy:nth-child(3) > * {
    --motion-range-offset: 6%;
  }

  .map-pin:nth-of-type(4),
  .layer-row:nth-of-type(4),
  .register-row:nth-of-type(4) {
    --motion-range-offset: 9%;
  }

  .layer-row:nth-of-type(5) {
    --motion-range-offset: 12%;
  }
}

/* Spotlight-style border without pointer tracking or JavaScript. */
.story-card,
.register-row,
.archive-card,
.map-note,
.mawangdui-copy,
.final-message {
  position: relative;
}

.story-card::after,
.path-card::after,
.register-row::after,
.archive-card::after,
.map-note::after,
.mawangdui-copy::after,
.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;
}

.story-card:hover::after,
.story-card:focus-within::after,
.path-card:hover::after,
.path-card:focus-within::after,
.register-row:hover::after,
.register-row:focus-within::after,
.archive-card:hover::after,
.archive-card:focus-within::after,
.map-note:hover::after,
.map-note:focus-within::after,
.mawangdui-copy:hover::after,
.mawangdui-copy:focus-within::after,
.final-message:hover::after,
.final-message:focus-within::after {
  background-position: 0 50%;
  opacity: 1;
}

/* The two black comparison cards clip outside effects, so their light ring
   is drawn inside the existing border. */
.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:hover,
.paths-grid .path-card:focus-within {
  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:hover > :not(.path-symbol),
.paths-grid .path-card:focus-within > :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:hover .path-symbol,
.paths-grid .path-card:focus-within .path-symbol {
  transform: translateY(var(--motion-symbol-lift)) scale(1.025);
  color: rgb(231 213 177 / 10%);
}

/* Button/link movement uses transforms, so surrounding layout never shifts. */
.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));
}

/* Touch screens receive press feedback instead of depending on hover. */
@media (hover: none), (pointer: coarse) {
  .story-card:active::after,
  .path-card:active::after,
  .register-row:active::after,
  .archive-card:active::after,
  .map-note:active::after,
  .mawangdui-copy:active::after,
  .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));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title > span,
  .hero__description,
  .hero__link,
  .hero__chapter,
  .section-heading > *,
  .map-background,
  .map-title,
  .map-pin,
  .map-note,
  .source-note,
  .story-figure > *,
  .story-cards > *,
  .story-quote,
  .paths-heading > *,
  .paths-grid > *,
  .section-next,
  .mawangdui-hero__image,
  .mawangdui-index > *,
  .mawangdui-layers > *,
  .mawangdui-register > *,
  .mawangdui-copy > *,
  .final-heading > *,
  .archive-grid > *,
  .final-message > *,
  .return-link,
  .site-footer > * {
    animation: none;
  }

  .story-card::after,
  .path-card::after,
  .register-row::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;
  }
}

/* box-sizing makes padding and borders easier to include in responsive widths. */
*,
*::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);
}

/* =========================================================
HIGH-FIDELITY HEADER
   ========================================================= */

.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;
  color: rgb(240 223 186 / 88%);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    animation: none;
  }

  .site-nav a::after,
  .header-soundscape {
    transition: none;
  }
}

/* MOBILE: the image is decorative; text remains real, selectable HTML text. */
.hero {
  position: relative;
  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: url("https://res.cloudinary.com/nl0zlafe/image/upload/v1790221756/changsha-gate.webp");
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Darken the illustration behind small-screen text without changing the asset. */
.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%));
}

.hero__content {
  position: relative;
  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 {
  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;
}

/* TABLET: allow the headline and description more room. */
@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;
  }
}
/* DESKTOP: proportions taken from the 1684 × 888 Figma hero. */
@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);
    line-height: 1.03;
    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;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* =========================================================
CHANGSHA UNDERGROUND STORIES
CSS FROM CHAPTER 00 TO FOOTER

This part continues after the existing HERO CSS.
Mobile first:
1. Mobile = default styles
2. Tablet = min-width: 786px
3. Desktop = min-width: 1200px
   ========================================================= */


/* =========================================================
SHARED STYLES
Common styles used by the following sections
   ========================================================= */

.chapter,
.paths,
.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;
}


/* =========================================================
CHAPTER 00
THE OLD CITY
   ========================================================= */

.old-city {
  min-height: 100vh;
  background-color: #18140f;
}

.old-city .section-heading {
  margin-bottom: 3rem;
}

.story-map {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-area {
  position: relative;
  width: 100%;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid #574a38;
  background-color: #272019;
}
.map-background {
  display: block;
  width: 100%;
  height: auto;
}
.map-title {
    position: absolute;

    top: 7cqw;
    left: 8cqw;

    display: flex;
    flex-direction: column;
    z-index: 2;
}

.map-title span {
    font-size: clamp(0.55rem, 2.2cqw, 1rem);
    letter-spacing: 0.22em;
    color: #b99c70;
}

.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;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ead9b6;
  text-decoration: none;
}

.map-pin__number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: clamp(1.75rem, 8cqw, 4.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 {
    margin-top: clamp(0.25rem, 1.2cqw, 0.75rem);

    padding:
        clamp(0.25rem, 1.2cqw, 0.65rem)
        clamp(0.45rem, 2.2cqw, 1.15rem);

    background-color: rgba(23, 19, 15, 0.9);

    font-size: clamp(0.65rem, 3.2cqw, 1.25rem);
    line-height: 1;

    letter-spacing: 0.08em;
    white-space: nowrap;
}

.map-pin--one {
  top: 25%;
  left: 18%;
}

.map-pin--two {
  top: 58%;
  left: 31%;
}

.map-pin--three {
  top: 37%;
  right: 20%;
}

.map-pin--four {
  right: 12%;
  bottom: 15%;
}

.map-note {
  padding: clamp(1.4rem, 6vw, 2.8rem);
  border: 1px solid #574a38;
  background-color: #201a14;
}

.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;
}

.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;
}


/* =========================================================
CHAPTER 01
TUFUZI
   ========================================================= */

.tufuzi {
  background-color: #d4c29c;
  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;
}
/* Tufuzi responsive figure */

.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 {
  padding: 1.8rem;
  border: 1px solid #8e795a;
  background-color: rgba(239, 221, 183, 0.38);
}

.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 > 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 PATHS
   ========================================================= */

.paths {
  background-color: #12100d;
  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 {
  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
   ========================================================= */

.final-archive {
  background-color: #d3c29e;
  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 > 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;
}

.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;
  background-color: #100e0c;
  color: #8f816d;
}

.site-footer p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
}


/* =========================================================
TABLET
786px and above
   ========================================================= */

@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;
  }


  /* Chapter 00 */

  .story-map {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1.5rem;
  }

  .map-area {
    aspect-ratio: 1.5 / 1;
  }

  .map-background {
    height: 100%;
    object-fit: contain;
    object-position: center;
  }


  .map-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


  /* Tufuzi */

  .story-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .story-card {
    min-height: 340px;
  }

  .story-quote p {
    font-size: 2rem;
  }


  /* Two Paths */

  .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
CHAPTER 03 · MOBILE FIRST
   ========================================================= */

.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;
  background-color: #14110e;
  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;
}


/* IMAGE AREA */

.mawangdui-hero {
  grid-area: hero;
  width: 100%;
  background-color: #14110e;
}

.mawangdui-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.mawangdui-index {
  width: 100%;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  background-color: #30231d;
}

.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;
}


/* SHARED SMALL LABEL */

.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;
}


/* LEFT - LAYERS */

.mawangdui-layers {
  grid-area: layers;
  padding: clamp(3rem, 10vw, 5rem) 6vw;
  background-color: #241c17;
}

.mawangdui-layers h3 {
  margin: 0.8rem 0 1.5rem;
  color: #eddbba;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.15;
}

.layer-row {
  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 {
  background-color: #6f7564;
}

.layer-row--two {
  background-color: #80664e;
}

.layer-row--three {
  background-color: #d2c2a1;
  color: #3d2b21;
}

.layer-row--four {
  background-color: #4c3328;
}

.layer-row--five {
  background-color: #211b19;
}

.layer-caption {
  margin: 1.4rem 0 0;
  color: #b8a387;
  font-size: 0.9rem;
}


/* LEFT - REGISTER */

.mawangdui-register {
  grid-area: register;
  padding: clamp(3rem, 10vw, 5rem) 6vw;
  background-color: #211a16;
}

.mawangdui-register h3 {
  margin: 0.8rem 0 1.8rem;
  color: #eddbba;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: 1.1;
}

.register-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 1.3rem;
  border: 1px solid #594533;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-wrap: anywhere;
}

.register-row:nth-of-type(1) {
  background-image:
    linear-gradient(rgb(20 15 12 / 58%), rgb(20 15 12 / 58%)),
    url("https://res.cloudinary.com/nl0zlafe/image/upload/v1790221753/taoqi.webp");
}

.register-row:nth-of-type(2) {
  background-image:
    linear-gradient(rgb(20 15 12 / 58%), rgb(20 15 12 / 58%)),
    url("https://res.cloudinary.com/nl0zlafe/image/upload/v1790221752/muou.webp");
}

.register-row:nth-of-type(3) {
  background-image:
    linear-gradient(rgb(20 15 12 / 58%), rgb(20 15 12 / 58%)),
    url("https://res.cloudinary.com/nl0zlafe/image/upload/v1790221753/shayi.webp");
}

.register-row:nth-of-type(4) {
  background-image:
    linear-gradient(rgb(20 15 12 / 58%), rgb(20 15 12 / 58%)),
    url("https://res.cloudinary.com/nl0zlafe/image/upload/v1790221756/sihua.webp");
}

.register-number {
  color: #b28557;
  font-size: 1.4rem;
}

.register-row strong {
  color: #f0dbba;
  font-size: 1.1rem;
}

.register-row p {
  grid-column: 2;
  margin: 0;
  color: #bdab94;
  font-size: 0.9rem;
}


/* RIGHT COLUMN COPY */

.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;
}


/* =========================================================
  TABLET
   ========================================================= */

@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-row p {
    grid-column: auto;
  }

  .mawangdui-copy {
    min-height: clamp(30rem, 64vw, 40rem);
    padding: 6rem 8vw;
  }

}


/* =========================================================
DESKTOP
FIGMA: 976.72px / 707.28px split
   ========================================================= */

@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";
  }


  /* IMAGE + INDEX */

  .mawangdui-hero__image {
    aspect-ratio: 4 / 3;
  }

  .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);
  }


  /* LAYERS */

  .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);
  }


  /* REGISTER */

  .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-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);
    min-height: clamp(6.2rem, 7.5vw, 7.9rem);
    margin-bottom: 1rem;
    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-row p {
    font-size: clamp(0.9rem, 1vw, 1.06rem);
  }


  /* RIGHT COLUMN */

  .mawangdui-copy {
    min-height: 0;
    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);
  }

  /* Other chapters */

  .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;
  }


  /* Chapter 00 */

  .old-city .section-heading {
    margin-bottom: 4rem;
  }

  .story-map {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
  }
  /* Tufuzi */

  .section-heading--wide {
    max-width: 1000px;
  }

  .story-figure {
    margin: 4rem 0;
  }
  .story-card {
    padding: 2.2rem;
    min-height: 380px;
  }

  .story-card h3 {
    font-size: 1.8rem;
  }

  .story-quote {
    margin-top: 5rem;
  }

  .story-quote p {
    font-size: 2.4rem;
  }


  /* Two Paths */

  .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 archive */

  .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;
  }


  /* Footer */

  .site-footer {
    padding-inline: max(7vw, calc((100vw - 1200px) / 2));
  }

}
