*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-zh);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 400;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.6rem 1rem;
  font-family: var(--font-en);
  font-size: var(--caption);
}

.skip-link:focus {
  top: 0.75rem;
}

.en {
  font-family: var(--font-en);
}

.label {
  display: block;
  font-family: var(--font-en);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--font-zh);
  font-size: var(--display);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.04em;
}

.h1 {
  font-family: var(--font-zh);
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.03em;
}

.h2 {
  font-family: var(--font-zh);
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.h3 {
  font-family: var(--font-en);
  font-size: var(--h3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-en);
  font-size: var(--section-title);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.lede {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 2;
}

.lede-en {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.muted {
  color: var(--muted);
}

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.band {
  padding-block: var(--section);
}

.band--white {
  background: var(--canvas);
}

.band--mist {
  background: var(--canvas-deep);
}

.band--navy {
  background: var(--navy);
  color: #f4f5f7;
}

.band--navy .section-title,
.band--navy .h2,
.band--navy .h3 {
  color: #f4f5f7;
}

.band--navy .lede,
.band--navy .muted,
.band--navy .label {
  color: rgba(244, 245, 247, 0.62);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
