:root {
  --ink: #201b17;
  --soft-ink: rgba(32, 27, 23, 0.68);
  --muted-ink: rgba(91, 67, 49, 0.78);
  --wash: rgba(250, 247, 239, 0.78);
  --line: rgba(88, 65, 47, 0.58);
  --display: Didot, "Bodoni 72", "Bodoni 72 Display", "Hoefler Text", "Times New Roman", serif;
  --serif: Georgia, "Times New Roman", serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", var(--zh);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #eee8dc;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(249, 246, 239, 0.86) 0 36%, rgba(249, 246, 239, 0.34) 55%, rgba(249, 246, 239, 0.04) 100%),
    url("assets/fabric-ivory.png") center / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 16% 52%, rgba(255, 253, 247, 0.44), transparent 36%);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  padding: clamp(42px, 6vw, 86px) clamp(38px, 7.1vw, 122px) 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  gap: 8px;
  width: max-content;
  padding-bottom: 18px;
  color: rgba(67, 45, 32, 0.9);
  line-height: 1;
}

.brand-mark span {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.brand-mark small {
  color: rgba(67, 45, 32, 0.72);
  font-family: var(--zh);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.brand-mark::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 1px;
  background: var(--line);
  content: "";
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(54px, 5.4vw, 88px);
  color: rgba(44, 33, 26, 0.82);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.32em;
}

.top-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: currentColor;
  outline: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(44, 33, 26, 0.74);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.language-toggle button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}

.language-toggle button.is-active {
  color: var(--ink);
  border-color: currentColor;
}

.language-toggle button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.language-toggle span {
  color: rgba(88, 65, 47, 0.38);
}

.menu-button {
  display: grid;
  gap: 7px;
  width: 38px;
  min-height: 34px;
  padding: 9px 1px;
  border: 0;
  background: transparent;
  color: rgba(78, 58, 43, 0.86);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(4px) rotate(18deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-4px) rotate(-18deg);
}

.menu-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.home-cover {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: clamp(150px, 18vh, 230px) clamp(38px, 7.1vw, 122px) 62px;
}

.hero-copy {
  width: min(860px, 72vw);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(104px, 13.3vw, 224px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 0.78;
}

.rule {
  display: block;
  width: 36px;
  height: 1px;
  margin: clamp(34px, 3.7vw, 58px) 0 clamp(38px, 4vw, 66px);
  background: var(--line);
}

.slogan-cn {
  margin: 0;
  color: rgba(28, 24, 21, 0.94);
  font-family: var(--zh);
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 520;
  letter-spacing: 0.32em;
  line-height: 1.35;
}

.slogan-en {
  margin: 18px 0 0;
  color: rgba(89, 68, 51, 0.76);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 34px);
  letter-spacing: 0.2em;
  line-height: 1.3;
}

html[lang="en"] .slogan-cn {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 62px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.24;
}

html[lang="en"] .slogan-en {
  color: rgba(32, 27, 23, 0.56);
  font-family: var(--zh);
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 420;
  letter-spacing: 0.16em;
}

.intro {
  margin: clamp(34px, 3.2vw, 48px) 0 0;
  color: var(--soft-ink);
  font-family: var(--zh);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 190px;
  background: var(--wash);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.info-block {
  min-width: 0;
  padding: 38px clamp(30px, 7vw, 122px) 34px 0;
}

.info-block:first-child {
  padding-left: clamp(38px, 7.1vw, 122px);
}

.info-block h2 {
  margin: 0 0 23px;
  color: rgba(128, 88, 59, 0.88);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
}

.info-block p {
  margin: 0;
  color: rgba(32, 27, 23, 0.78);
  font-family: var(--serif), var(--zh);
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.mini-rule {
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 19px;
  background: var(--line);
}

.message-panel {
  padding: 0 clamp(38px, 7.1vw, 122px) clamp(44px, 6vw, 86px);
  background: rgba(250, 247, 239, 0.84);
  backdrop-filter: blur(16px);
}

.message-panel[hidden] {
  display: none;
}

.message-panel__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 86px);
  padding-top: 42px;
  border-top: 1px solid rgba(88, 65, 47, 0.18);
}

.section-kicker {
  margin: 0 0 18px;
  color: rgba(128, 88, 59, 0.88);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
}

.message-panel__heading h2 {
  margin: 0;
  color: rgba(32, 27, 23, 0.88);
  font-family: var(--zh);
  font-size: clamp(25px, 2.2vw, 36px);
  font-weight: 520;
  letter-spacing: 0.12em;
}

.message-panel__heading p:last-child {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--soft-ink);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.message-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.message-form label {
  display: grid;
  gap: 10px;
}

.message-form span {
  color: rgba(128, 88, 59, 0.88);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(88, 65, 47, 0.34);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  outline: 0;
  padding: 8px 0;
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: rgba(32, 27, 23, 0.86);
  box-shadow: 0 1px 0 rgba(32, 27, 23, 0.56);
}

.message-form ::placeholder {
  color: rgba(32, 27, 23, 0.36);
}

.message-form__wide,
.message-form button,
.form-status,
.message-form__english {
  grid-column: 1 / -1;
}

.message-form button {
  justify-self: start;
  min-width: 150px;
  min-height: 42px;
  border: 1px solid rgba(32, 27, 23, 0.8);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 0 20px;
}

.message-form button:hover,
.message-form button:focus-visible {
  background: rgba(32, 27, 23, 0.9);
  color: #f8f3ea;
  outline: 0;
}

.form-status,
.message-form__english {
  margin: 0;
  color: rgba(32, 27, 23, 0.54);
  font-size: 12px;
  line-height: 1.5;
}

.message-form__english {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  padding: 22px clamp(24px, 6vw, 92px);
  background: rgba(250, 247, 239, 0.9);
  color: rgba(32, 27, 23, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer a {
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: currentColor;
  outline: 0;
}

@media (max-width: 980px) {
  body::before {
    background:
      linear-gradient(90deg, rgba(249, 246, 239, 0.9) 0 54%, rgba(249, 246, 239, 0.28) 100%),
      url("assets/fabric-ivory.png") 62% center / cover no-repeat;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 22px;
    padding: 32px 28px 0;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    gap: 32px;
    font-size: 12px;
  }

  .language-toggle {
    justify-self: end;
  }

  .menu-button {
    justify-self: end;
  }

  .hero {
    min-height: calc(100vh - 250px);
    padding: 166px 28px 54px;
  }

  .hero-copy {
    width: min(760px, 100%);
  }

  h1 {
    font-size: clamp(76px, 17vw, 142px);
    white-space: nowrap;
  }

  .slogan-cn {
    max-width: 100%;
    font-size: clamp(28px, 5.5vw, 42px);
    letter-spacing: 0.24em;
  }

  .slogan-en {
    max-width: 650px;
    font-size: clamp(20px, 4vw, 31px);
    letter-spacing: 0.12em;
  }

  html[lang="en"] .slogan-cn {
    max-width: 690px;
    font-size: clamp(30px, 7vw, 52px);
    letter-spacing: 0.1em;
  }

  .contact-sheet {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .message-panel {
    padding: 0 28px 48px;
  }

  .message-panel__inner {
    grid-template-columns: 1fr;
  }

  .info-block,
  .info-block:first-child {
    padding: 28px;
    border-bottom: 1px solid rgba(88, 65, 47, 0.12);
  }

  .info-block:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 540px) {
  body::before {
    background:
      linear-gradient(90deg, rgba(249, 246, 239, 0.94) 0 66%, rgba(249, 246, 239, 0.36) 100%),
      url("assets/fabric-ivory.png") 68% center / cover no-repeat;
  }

  .brand-mark {
    font-size: 12px;
  }

  .brand-mark small {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .top-nav {
    gap: 22px;
    letter-spacing: 0.22em;
  }

  .language-toggle {
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero {
    min-height: auto;
    padding: 160px 24px 50px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 86px);
    letter-spacing: 0.03em;
  }

  .rule {
    margin: 30px 0 34px;
  }

  .slogan-cn {
    font-size: clamp(24px, 8vw, 34px);
    letter-spacing: 0.12em;
  }

  .slogan-en {
    font-size: clamp(18px, 5.7vw, 25px);
    letter-spacing: 0.07em;
  }

  html[lang="en"] .slogan-cn {
    font-size: clamp(27px, 8vw, 38px);
    letter-spacing: 0.06em;
  }

  html[lang="en"] .slogan-en {
    font-size: clamp(19px, 5.8vw, 26px);
    letter-spacing: 0.08em;
  }

  .intro {
    font-size: 14px;
    letter-spacing: 0.03em;
  }

  .info-block,
  .info-block:first-child {
    padding: 25px 24px;
  }

  .message-panel {
    padding-inline: 24px;
  }

  .message-form {
    grid-template-columns: 1fr;
  }
}
