/* base.css — global reset + typography (§54.6). One typeface family total. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: var(--font-weight-bold); line-height: 1.3; margin: 0; }
h1 { font-size: var(--font-size-6); }
h2 { font-size: var(--font-size-5); }
h3 { font-size: var(--font-size-4); }

p { margin: 0; }
a { color: var(--color-accent); text-decoration: none; }

.muted { color: var(--color-text-muted); }
.secondary { color: var(--color-text-secondary); }
.danger { color: var(--color-danger); }
.success { color: var(--color-success); }
.warning { color: var(--color-warning); }

.loading { color: var(--color-text-muted); padding: var(--space-5); text-align: center; }

/* Skeleton shimmer (§54.3 loading state). */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease infinite;
  border-radius: var(--radius-2);
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.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;
}
