/* ===== base.css · reset + 排版基线 ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
html[lang="en"] { scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

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

/* 尊重减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* 通用排版类 */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
}
.section-label {
  font-family: var(--font-serif);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-tea-500);
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-mid);
  font-weight: 600;
}
.section-lead {
  color: var(--c-text-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  max-width: 60ch;
}
.section-lead--center { margin-inline: auto; text-align: center; }
.serif { font-family: var(--font-serif); }

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

/* 图标使用：<svg class="icon"><use href="#i-x"/></svg> */
.icon {
  width: 20px; height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.icon--16 { width: 16px; height: 16px; }
.icon--24 { width: 24px; height: 24px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--c-ink-800); color: var(--c-text-invert);
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 200;
  transition: top var(--t-fast) var(--ease-soft);
}
.sr-skip:focus { top: 10px; }

/* [hidden] 必须能压过 .btn{display:inline-flex} 之类的类选择器：
   UA 样式表里的 [hidden]{display:none} 优先级过低，不加这条 el.hidden = true 会失效。 */
[hidden] { display: none !important; }
