:root {
  color-scheme: dark;
  --ink: #f4efe2;
  --ink-soft: #d7d8cb;
  --muted: #a8b7ae;
  --deep: #061513;
  --forest: #0d2923;
  --leaf: #5f9f75;
  --leaf-bright: #91c49b;
  --gold: #d4ad62;
  --gold-soft: #f1d89d;
  --line: rgba(212, 173, 98, 0.25);
  --panel: rgba(11, 35, 29, 0.76);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-wrap: anywhere;
  background:
    radial-gradient(circle at 18% -4%, rgba(84, 145, 105, 0.26), transparent 32rem),
    radial-gradient(circle at 95% 14%, rgba(212, 173, 98, 0.10), transparent 30rem),
    linear-gradient(155deg, #081b17 0%, var(--deep) 52%, #07110f 100%);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(137, 177, 145, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 177, 145, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a {
  color: var(--gold-soft);
  text-decoration-color: rgba(241, 216, 157, 0.48);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff2ca;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(212, 173, 98, 0.54);
  border-radius: 12px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 240, 194, 0.28), transparent 32%),
    linear-gradient(145deg, rgba(137, 196, 155, 0.22), rgba(212, 173, 98, 0.12));
  box-shadow: inset 0 0 22px rgba(138, 197, 155, 0.10);
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: clamp(44px, 8vw, 96px);
  align-items: center;
  min-height: 660px;
  padding-block: 92px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 780;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.document-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.chinese-name {
  display: block;
  margin-top: 20px;
  color: var(--leaf-bright);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 560;
  letter-spacing: 0.2em;
}

.hero-title {
  max-width: 38ch;
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.6vw, 1.65rem);
  line-height: 1.45;
}

.tagline {
  max-width: 66ch;
  margin: 22px 0 0;
  color: var(--muted);
}

.archive-mark {
  position: relative;
  display: block;
  margin: 0;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 48% 48% 40% 40% / 42% 42% 52% 52%;
  background:
    radial-gradient(circle at 50% 38%, rgba(133, 194, 150, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(31, 78, 62, 0.64), rgba(8, 26, 22, 0.86));
  box-shadow: var(--shadow), inset 0 0 80px rgba(105, 172, 125, 0.08);
}

.archive-mark img {
  display: block;
  width: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

.content-section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(212, 173, 98, 0.19);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.feature-card .number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 20px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 520;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

.boundary h2 {
  margin: 0;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
}

.boundary p {
  margin: 0;
  color: var(--muted);
}

.document-hero {
  padding: 76px 0 46px;
  border-bottom: 1px solid var(--line);
}

.document-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 1.02;
}

.document-hero .tagline {
  max-width: 760px;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.language-nav a {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-main {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 38px 84px;
}

.document {
  scroll-margin-top: 24px;
}

.document + .document {
  margin-top: 74px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.document-title {
  margin: 0 0 28px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 520;
}

.document h2 {
  margin: 42px 0 12px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.32rem;
  font-weight: 560;
}

.document h3 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.document p,
.document li {
  color: var(--muted);
}

.document ul {
  padding-left: 1.25em;
}

.site-footer {
  padding-block: 34px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  max-width: 66ch;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 86px);
  align-content: center;
  justify-items: start;
  padding-block: 72px;
}

.not-found h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.not-found p:not(.eyebrow) {
  max-width: 54ch;
  margin: 28px 0 0;
  color: var(--muted);
}

.return-link {
  display: inline-flex;
  margin-top: 30px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 22px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 64px;
  }

  .archive-mark {
    min-height: 300px;
  }

  .feature-grid,
  .boundary {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .site-shell,
  .legal-main {
    width: min(100% - 28px, 1120px);
  }

  .site-nav {
    gap: 8px 16px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 17vw, 4.4rem);
  }

  .content-section {
    padding-block: 54px;
  }
}

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