/* =========================================================
   MAWANGDUI DIGITAL ARCHIVE
   CLEAN HIGH-FIDELITY CSS
========================================================= */


:root {
  --paper: #eee9dd;
  --ink: #151713;
  --gray: #55564f;
  --olive: #99936e;
  --green: #697f6c;
  --red: #8d2d22;
  --gold: #d5aa34;
  --dark: #102324;
  --line: rgba(37, 38, 31, 0.18);

  --page-width: 980px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    "Microsoft YaHei",
    sans-serif;

  line-height: 1.3;

  background: #cbc6bb;
}


.site {
  width: min(100%, var(--page-width));

  margin: 0 auto;

  overflow: hidden;

  background-color: var(--paper);

  background-image:
    linear-gradient(
      rgba(238, 233, 221, 0.82),
      rgba(238, 233, 221, 0.82)
    ),
    url("images/paper-bg.jpg");

  background-repeat: repeat;

  background-size:
    auto,
    580px auto;
}


img {
  display: block;
  max-width: 100%;
}


a {
  color: inherit;
  text-decoration: none;
}



/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
  height: 38px;

  background: var(--olive);
}


.top-bar-inner {
  width: calc(100% - 52px);

  height: 100%;

  margin: 0 auto;

  display: flex;

  align-items: center;
}


.brand {
  color: rgba(255, 255, 255, 0.75);

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1.7px;
}


.nav {
  margin-left: auto;
  margin-right: 22px;

  display: flex;

  gap: 18px;
}


.nav a {
  color: rgba(255, 255, 255, 0.73);

  font-size: 8px;

  font-weight: 700;
}


.search-button {
  padding: 4px 12px;

  color: #666255;

  font-size: 8px;

  border: none;

  border-radius: 20px;

  background: #fff;
}



/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  height: 370px;

  overflow: hidden;

  background: var(--dark);
}


.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;
}


.hero-shade {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 24, 26, 0.05),
      rgba(5, 24, 26, 0.18) 55%,
      rgba(5, 24, 26, 0.55)
    );
}


.hero-text {
  position: absolute;

  top: 53px;

  right: 55px;

  display: flex;

  align-items: center;

  gap: 34px;

  color: var(--gold);
}


.hero-small {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 12px;

  line-height: 1.05;
}


.hero-title {
  display: flex;

  align-items: flex-start;

  gap: 13px;
}


.hero-title h1 {
  margin: 0;

  color: var(--gold);

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

  font-size: 85px;

  font-weight: 500;

  line-height: 0.85;

  writing-mode: vertical-rl;
}


.hero-title span {
  margin-top: 5px;

  color: #fff;

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

  font-size: 14px;

  letter-spacing: 2px;

  writing-mode: vertical-rl;
}



/* =========================================================
   GENERAL
========================================================= */

.section {
  width: calc(100% - 66px);

  margin: 0 auto;

  padding: 54px 0;

  clear: both;
}


.section-heading {
  margin-bottom: 28px;
}


.heading-top {
  display: flex;

  align-items: baseline;

  gap: 9px;
}


.number {
  font-size: 21px;

  font-weight: 900;
}


.section-heading h2 {
  margin: 0;

  font-size: 26px;

  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.5px;
}


.section-heading h3 {
  margin: 12px 0 0;

  font-size: 15px;

  font-weight: 800;
}


.intro-copy {
  width: 68%;

  margin: 0;

  font-size: 13px;

  line-height: 1.28;
}



/* =========================================================
   01
========================================================= */

.intro-section {
  padding-top: 28px;

  padding-bottom: 63px;
}



/* =========================================================
   02 THREE TOMBS
========================================================= */

.tomb-section {
  padding-top: 30px;
}


.tomb-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;

  align-items: start;
}


/*
  防止误粘的其它内容被挤进三墓卡片区域。
*/

.tomb-grid > .tomb-card {
  min-width: 0;
}


.tomb-card img {
  width: 100%;

  height: 205px;

  object-fit: cover;

  border-radius: 11px;
}


.year {
  margin: 12px 0 2px;

  font-size: 10px;

  font-weight: 900;
}


.tomb-card h4 {
  margin: 0 0 4px;

  font-size: 11px;

  font-weight: 900;
}


.tomb-card > p:last-child {
  margin: 0;

  font-size: 11px;

  line-height: 1.15;
}



/* =========================================================
   03 WHAT REMAINS
========================================================= */

.objects-section {
  display: block;

  width: calc(100% - 66px);

  padding-top: 46px;

  clear: both;
}


.object-group {
  display: block;

  width: 100%;

  margin-top: 38px;

  clear: both;
}


.object-label {
  width: 100%;

  margin-bottom: 16px;
}


.object-label p {
  margin: 0;

  color: #4e4f49;

  font-size: 14px;

  letter-spacing: 0.2px;
}


.object-label span {
  display: block;

  margin-top: 2px;

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

  font-size: 14px;
}


.object-label-right {
  padding-right: 12px;

  text-align: right;
}



/* =========================================================
   03 — TOMB 01 / XIN ZHUI
========================================================= */

.xinzhui-grid {
  position: relative;

  width: 100%;

  min-height: 350px;

  display: grid;

  grid-template-columns:
    0.95fr
    1.05fr
    1.15fr;

  gap: 24px;

  align-items: start;
}


.object-card {
  margin: 0;

  min-width: 0;
}


.object-card img {
  width: 100%;

  height: 160px;

  object-fit: contain;
}


.object-card figcaption {
  margin-top: 7px;

  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  line-height: 1.15;
}


.object-card figcaption span {
  display: block;

  margin-top: 4px;
}


.silk-card {
  padding-top: 8px;
}


.lacquer-card {
  padding-top: 8px;
}


/* 素纱襌衣 */

.robe-card {
  position: relative;

  top: -68px;

  z-index: 2;
}


.robe-card img {
  width: 130%;

  max-width: none;

  height: 330px;

  margin-left: -15%;

  object-fit: contain;
}


.robe-card figcaption {
  margin-top: -3px;
}



/* =========================================================
   03 — TOMB 02 / LI CANG
========================================================= */

.seal-group {
  margin-top: 12px;
}


.seal-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 36px;

  align-items: end;
}


.seal-grid figure {
  margin: 0;

  min-width: 0;
}


.seal-grid img {
  width: 100%;

  height: 135px;

  object-fit: contain;
}


.seal-grid figcaption {
  margin-top: 8px;

  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;
}



/* =========================================================
   03 — TOMB 03
========================================================= */

.tomb03-group {
  display: block;

  width: 100%;

  margin-top: 52px;

  clear: both;
}


.tomb03-grid {
  position: relative;

  width: 100%;

  height: 305px;

  display: grid;

  grid-template-columns:
    1.15fr
    0.68fr
    0.95fr
    0.92fr;

  gap: 24px;

  align-items: start;
}


.tomb03-item {
  margin: 0;

  min-width: 0;
}


.tomb03-item img {
  display: block;

  width: 100%;

  object-fit: contain;
}


.tomb03-item figcaption {
  margin-top: 7px;

  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 7.3px;

  line-height: 1.15;
}


.tomb03-item figcaption span {
  display: block;

  margin-top: 2px;

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

  font-size: 7px;
}



/* 1 — 漆盘 */

.vessel-item {
  padding-top: 78px;
}


.vessel-item img {
  width: 100%;

  height: 132px;

  object-fit: cover;

  border-radius: 7px;
}



/* 2 — boshu3 */

.boshu3-item {
  padding-top: 64px;
}


.boshu3-item img {
  height: 162px;
}



/* 3 — boshu1 */

.boshu1-item {
  padding-top: 30px;
}


.boshu1-item img {
  height: 210px;
}



/* 4 — boshu2 */

.boshu2-item {
  padding-top: 0;
}


.boshu2-item img {
  height: 270px;
}



/* =========================================================
   04 LIFE
========================================================= */

.life-section {
  display: block;

  width: 100%;

  margin-top: 15px;

  clear: both;

  background:
    rgba(247, 243, 235, 0.52);
}


.life-inner {
  padding-top: 46px;

  padding-bottom: 38px;
}


.life-grid {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  background:
    rgba(255, 255, 255, 0.36);
}


.life-grid article {
  min-width: 0;

  border-right:
    1px solid
    var(--line);
}


.life-grid article:last-child {
  border-right: none;
}


.life-text {
  min-height: 104px;

  padding: 11px 10px;

  display: flex;

  gap: 8px;
}


.life-text b {
  color: var(--red);

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

  font-size: 38px;

  font-weight: 400;

  line-height: 1;
}


.life-text strong {
  font-size: 8px;
}


.life-text p {
  margin: 3px 0 0;

  color: var(--gray);

  font-size: 7px;

  line-height: 1.2;
}


.life-grid article > img {
  width: 100%;

  height: 92px;

  object-fit: cover;
}



/* =========================================================
   05 ARCHIVE
========================================================= */

.archive-section {
  position: relative;

  padding-top: 53px;

  padding-bottom: 58px;
}


.archive-feature {
  position: relative;

  min-height: 215px;
}


.archive-feature p {
  width: 55%;

  margin: 42px auto 0;

  text-align: center;

  font-size: 12px;
}


.archive-lacquer {
  position: absolute;

  top: -80px;

  right: -63px;

  width: 270px;

  height: 270px;

  object-fit: contain;
}


.archive-grid {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 5px;
}


.archive-grid figure {
  margin: 0;
}


.archive-grid img {
  width: 100%;

  height: 185px;

  object-fit: cover;

  border-radius: 9px;
}


.archive-copy {
  width: 78%;

  margin: 22px 0 0;

  font-size: 11px;

  line-height: 1.25;
}



/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 20px 34px 28px;

  color:
    rgba(255, 255, 255, 0.84);

  background: var(--green);
}


.footer p {
  margin: 1px 0;

  font-size: 7px;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .site {
    width: 100%;
  }


  .brand,
  .nav {
    display: none;
  }


  .top-bar-inner {
    justify-content: flex-end;
  }


  .hero {
    height: 310px;
  }


  .hero-text {
    top: 45px;

    right: 20px;

    gap: 15px;
  }


  .hero-small {
    font-size: 8px;
  }


  .hero-title h1 {
    font-size: 55px;
  }


  .section {
    width: calc(100% - 32px);

    padding: 42px 0;
  }


  .intro-copy {
    width: 100%;
  }


  .tomb-grid,
  .xinzhui-grid,
  .seal-grid,
  .tomb03-grid {
    height: auto;

    grid-template-columns: 1fr;
  }


  .tomb-card img {
    height: auto;
  }


  .robe-card {
    top: 0;
  }


  .robe-card img {
    width: 100%;

    height: 300px;

    margin: 0;
  }


  .vessel-item,
  .boshu3-item,
  .boshu1-item,
  .boshu2-item {
    padding-top: 0;
  }


  .vessel-item img,
  .boshu3-item img,
  .boshu1-item img,
  .boshu2-item img {
    height: auto;
  }


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


  .life-grid article {
    border-right: none;

    border-bottom:
      1px solid
      var(--line);
  }


  .archive-lacquer {
    width: 190px;

    height: 190px;

    right: -65px;
  }


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


  .archive-grid img {
    height: auto;
  }

}