:root {
  color-scheme: dark;
  --canvas: #0c1114;
  --surface: #192126;
  --text: #f4f6f2;
  --muted: #a9b5b4;
  --us: #78e1c6;
  --them: #ffc389;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--us); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--them); outline-offset: 4px; }

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

header {
  border-bottom: 1px solid #334046;
  padding-block: 22px;
}

.topline, nav, .language {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topline { justify-content: space-between; }

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
}

nav a, .language a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a[aria-current="page"] { color: var(--us); }

.notice {
  border: 1px solid #8d7049;
  border-radius: 14px;
  background: #2a241d;
  color: #f4d7ac;
  padding: 14px 18px;
  margin-block: 34px;
  font-size: 14px;
}

body.embedded h1 { display: none; }
body.embedded .language { margin-block: 12px 16px; }
body.embedded .notice { margin-block: 16px 24px; }
body.embedded .notice br { display: none; }
body.embedded .notice [lang="en"] { display: none; }
body.embedded.english-first .notice [lang="en"] { display: inline; }
body.embedded.english-first .notice [lang="zh-Hans"] { display: none; }

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.035em; }
h2 { font-size: 21px; line-height: 1.3; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; }
.language { margin-block: 20px 38px; }
.language a { border-bottom: 1px solid #52615f; padding-bottom: 3px; }

main section { border-top: 1px solid #334046; padding-block: 26px 28px; }
main section p, main section li { color: var(--muted); max-width: 68ch; }
main section strong { color: var(--text); }
ul { padding-left: 1.3em; }
li + li { margin-top: 8px; }

.eyebrow {
  color: var(--us);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  border-radius: 18px;
  background: var(--surface);
  padding: 22px;
  margin-block: 12px 38px;
}

footer {
  border-top: 1px solid #334046;
  padding-block: 26px 44px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 440px) {
  .shell { width: min(100% - 28px, 760px); }
  header { padding-block: 16px; }
  .topline { align-items: flex-start; }
  nav { gap: 12px; }
  .notice { margin-block: 24px; }
}
