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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-sans-en);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--ivory);
  background-color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main,
section,
header,
footer,
nav,
article,
aside {
  display: block;
  margin: 0;
}

html[data-lang="zh"] body {
  font-family: var(--font-serif-zh);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

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

a {
  color: var(--gold-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-500);
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--ivory);
}

p {
  margin: 0;
}

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

::selection {
  background: var(--gold-300);
  color: var(--ink-deep);
}

/* bilingual toggle visibility — hide the off-language, preserve natural display type */
html[data-lang="en"] [lang="zh"] { display: none !important; }
html[data-lang="zh"] [lang="en"] { display: none !important; }

/* container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section + .section {
  border-top: var(--divider-ink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans-en);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-600);
}

html[data-lang="zh"] .eyebrow {
  font-family: var(--font-serif-zh);
  letter-spacing: var(--tracking-wider);
}

.section-title {
  font-family: var(--font-serif-en);
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin-top: var(--space-4);
}

html[data-lang="zh"] .section-title {
  font-family: var(--font-serif-zh);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-lead {
  max-width: 64ch;
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--warm-grey);
}

html[data-lang="zh"] .section-lead {
  max-width: 40em;
  line-height: 1.9;
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: var(--gold-gradient);
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.gold-rule--short {
  width: 32px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
