:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --ink: #172128;
  --muted: #5f686e;
  --rule: rgba(23, 33, 40, 0.22);
  --river: rgba(58, 93, 109, 0.32);
  --night: #16252f;
  --night-text: #edf1ef;
  --brass: #c59b4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  padding: 44px 0 12px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 112px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 8px 28px 16px;
  border-bottom: 1px solid var(--rule);
}

.wordmark,
nav a,
.index-number,
.index-status,
.footer-label,
.copyright {
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
}

.wordmark {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.wordmark span {
  color: inherit;
}

nav {
  display: flex;
  gap: 38px;
}

nav a {
  position: relative;
  padding: 6px 0;
  color: #303a40;
  font-size: 17px;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  width: calc(100% - 168px);
  max-width: 1104px;
  margin: 0 auto;
  padding: 98px 0 0;
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(88px, 10.2vw, 142px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero-en {
  margin: 38px 0 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 32px);
  font-style: normal;
  line-height: 1.3;
}

.hero-zh {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0.12em;
  line-height: 1.65;
}

.river-line {
  width: 100%;
  height: 42px;
  margin: 66px 0 23px;
  overflow: hidden;
}

.river-line svg,
.footer-river svg {
  display: block;
  width: 100%;
  height: 100%;
}

.river-line path {
  fill: none;
  stroke: var(--river);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.index-list {
  width: calc(100% - 140px);
  max-width: 1132px;
  margin: 0 auto;
}

.index-row {
  display: grid;
  grid-template-columns: 96px 46px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 202px;
  padding: 31px 0 27px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.index-row p,
.index-row h2,
.index-copy {
  margin: 0;
}

.index-number {
  display: contents;
  color: var(--ink);
}

.row-index {
  grid-column: 1;
  grid-row: 1;
  font-size: 54px;
  line-height: 0.92;
}

.row-slash {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 28px;
  line-height: 1;
}

.row-section {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  font-size: 24px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.index-copy {
  grid-column: 3;
  grid-row: 2;
  padding-top: 19px;
}

.index-row h2 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.index-status {
  margin-top: 18px !important;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.index-status--long {
  max-width: 480px;
  letter-spacing: 0.04em;
}

.site-footer {
  position: relative;
  min-height: 354px;
  color: var(--night-text);
  background: var(--night);
}

.footer-river {
  position: absolute;
  top: -18px;
  right: 0;
  left: 0;
  height: 36px;
  overflow: hidden;
  pointer-events: none;
}

.footer-river path {
  fill: none;
  stroke: rgba(183, 204, 210, 0.34);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.footer-inner {
  width: calc(100% - 156px);
  max-width: 1116px;
  margin: 0 auto;
  padding: 73px 0 36px;
}

.footer-label {
  margin: 0;
  color: var(--brass);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.footer-label::after {
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 17px;
  background: var(--brass);
  content: "";
}

.footer-copy {
  margin-top: 30px;
}

.footer-copy p {
  margin: 0;
}

.footer-en {
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-zh {
  margin-top: 14px !important;
  color: rgba(237, 241, 239, 0.84);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.copyright {
  width: 470px;
  margin: 35px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(237, 241, 239, 0.28);
  color: rgba(237, 241, 239, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 26px;
  }

  .site-header {
    display: block;
    width: calc(100% - 40px);
    padding: 0 0 20px;
  }

  .wordmark {
    display: block;
    font-size: 17px;
  }

  nav {
    justify-content: space-between;
    gap: 0;
    margin-top: 18px;
  }

  nav a {
    font-size: 14px;
  }

  .hero {
    width: calc(100% - 40px);
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(52px, 15.2vw, 59px);
    white-space: nowrap;
  }

  .hero-en {
    margin-top: 34px;
    font-size: 24px;
  }

  .hero-zh {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .river-line {
    height: 34px;
    margin: 52px 0 30px;
  }

  .index-list {
    width: calc(100% - 40px);
  }

  .index-row {
    grid-template-columns: 52px 26px minmax(0, 1fr);
    min-height: 178px;
    padding: 28px 0 24px;
  }

  .row-index {
    font-size: 38px;
  }

  .row-slash {
    font-size: 20px;
  }

  .row-section {
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  .index-copy {
    padding-top: 24px;
  }

  .index-row h2 {
    font-size: 19px;
    letter-spacing: 0.04em;
  }

  .index-status {
    margin-top: 15px !important;
    font-size: 13px;
  }

  .site-footer {
    min-height: 344px;
  }

  .footer-inner {
    width: calc(100% - 40px);
    padding: 52px 0 32px;
  }

  .footer-copy {
    margin-top: 42px;
  }

  .footer-en {
    max-width: 340px;
    font-size: 30px;
    line-height: 1.18;
    white-space: normal;
  }

  .footer-zh {
    font-size: 14px;
  }

  .copyright {
    width: 100%;
    margin-top: 38px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  nav a::after {
    transition: none;
  }
}
