/* Reset 與版面基礎 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-brand-700); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 var(--sp-3); font-weight: 900; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 var(--sp-3); }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-gold-300);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-brand-900);
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.section { padding: var(--section-gap) 0 0; }
.section:last-of-type { padding-bottom: var(--section-gap); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden, [hidden] { display: none !important; }
.skip-link {
  position: absolute; left: var(--sp-3); top: -100px; z-index: 100;
  background: var(--color-gold-300); color: var(--color-brand-900);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill); font-weight: 700;
}
.skip-link:focus { top: var(--sp-2); }
.muted { color: var(--color-text-muted); }
.note { font-size: var(--fs-note); color: var(--color-text-muted); }

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