:root {
  --max-width: 1220px;
  --nav-height: 90px;
  --ink: #243b36;
  --muted: #6c7d76;
  --green: #38684f;
  --blue: #5a9bbd;
  --paper: #f6f8f4;
  --white: #fff;
  --line: #dce5df;
  --gold: #bc925f;
  --focus: #e5ae5c;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--max-width), calc(100% - 88px));
  margin: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.23em;
  font-weight: 750;
  text-transform: uppercase;
}

.overline {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.overline:before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.brand-cn,
.brand-en {
  display: block;
}

.mobile-menu,
.mobile-menu .menu-close {
  display: none;
}

.mobile-menu[open] .menu-open {
  display: none;
}

.mobile-menu[open] .menu-close {
  display: inline;
}

summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 31;
  inset: 12px auto auto 12px;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

/* NAV */
.nav {
  width: 100%;
}
.nav-hero {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  color: #fff;
  border-bottom: 1px solid #ffffff38;
}
.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand-symbol {
  height: 34px;
  width: 41px;
  flex-shrink: 0;
}
.brand-cn {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: 0.065em;
}
.brand-en {
  font-size: 9px;
  opacity: 0.8;
  letter-spacing: 0.19em;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.nav-links a {
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 0.66;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-pill {
  font-size: 12px;
  border: 1px solid #ffffff80;
  padding: 12px 19px;
  border-radius: 100px;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle {
  display: none;
  cursor: pointer;
  list-style: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 5px;
}
/* FOOTER */
.footer {
  background: #1f3931;
  color: #eef3ef;
  padding: 73px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-bottom: 65px;
}
.footer h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 550;
  letter-spacing: 0.08em;
  margin: 20px 0;
}
.footer p {
  color: #b2c4b8;
  line-height: 2;
  font-size: 14px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 45px;
  align-content: center;
  font-size: 13px;
  color: #d9e7da;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid #ffffff30;
  color: #aebeb3;
  font-size: 12px;
}
/* MENU */
.mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #254d43;
  padding: 25px 30px;
  box-shadow: 0 18px 30px #0003;
}
.mobile-menu[open] .mobile-panel {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.mobile-panel a {
  font-size: 15px;
}

.nav-light {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgb(246 248 244 / .97);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
}
.nav-light .nav-inner { height: 83px; gap: 26px; }
.nav-light .brand-symbol { color: var(--green); }
.nav-light .nav-links { gap: 31px; }
.nav-light .nav-links a[aria-current] { color: var(--green); text-decoration: underline; text-underline-offset: .3em; }
.nav-light .nav-pill { border-color: #bacfc1; }
.nav-light .mobile-panel { background: var(--paper); gap: 0; }
.nav-light .mobile-panel a { padding: 12px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .wrap { width: min(var(--max-width), calc(100% - 50px)); }
  .nav-links, .nav-light .nav-links { gap: 17px; }
  .nav-pill { display: none; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 38px); }
  :root { --nav-height: 76px; }
  .nav-light .nav-inner { height: 69px; }
  .brand-cn { font-size: 18px; }
  .brand-symbol { width: 34px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .menu-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: inherit; }
  .footer { padding-top: 60px; }
  .footer-grid { display: block; padding-bottom: 45px; }
  .footer-nav { margin-top: 28px; gap: 19px; }
  .footer-bottom { display: block; line-height: 2; }
}


.subpage {
  --page-title-size: clamp(1.85rem, 3.3vw, 2.75rem);
  --section-title-size: clamp(1.4rem, 2.5vw, 1.85rem);
  --topic-title-size: 1.125rem;
  --body-size: 1rem;
  --caption-size: .875rem;
  --body-leading: 1.85;
}
