/* base.css —— 基准字号、重置、动效总则、通用排版原子。 */

/* 响应式基准字号：手机 ≈16px → 宽屏 ≈20px。
   A± 控件在此基础上缩放，偏好与两个页面共享。 */
html { font-size: clamp(16px, 15px + 0.45vw, 20px); }

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 动效总则：只做一次整体入场，不给每个元素挂过渡。
   「每张卡片都上浮」是通用模板的做法，这里不做。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* 键盘可达：焦点必须可见 */
:focus-visible {
  outline: 2px solid var(--moved);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── 通用排版 ──────────────────────────────────────────── */

.kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-3);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
