/* 共用幾何契約。皮膚不得覆寫本檔 token；元件使用 token，不在年代檔加版面規則。 */
:root {
  color-scheme: var(--color-scheme);
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --font-size-caption: 0.875rem;
  --font-size-body: 1rem;
  --font-size-lead: 1.25rem;
  --font-size-section: 1.5625rem;
  --font-size-title: 1.953125rem;
  --font-size-display: 2.44140625rem;
  --font-weight-body: 400;
  --font-weight-label: 600;
  --font-weight-heading: 700;
  --line-height-heading: 1.35;
  --line-height-body: 1.8;
  --line-height-control: 1.5;
  --letter-spacing-heading: 0.04em;
  --radius-small: 0.25rem;
  --radius-card: 0.75rem;
  --radius-button: 0.75rem;
  --shadow-none: none;
  --shadow-1: 0 1px 3px rgb(0 0 0 / 0.08);
  --shadow-2: 0 4px 12px rgb(0 0 0 / 0.12);
  --shadow-3: 0 12px 32px rgb(0 0 0 / 0.18);
  --control-min-size: 44px;
  --button-min-height: 3rem;
  --input-min-height: 3rem;
  --icon-size: 1.5rem;
  --content-max-width: 42rem;
  --page-gutter: 1rem;
  --card-padding: 1.5rem;
  --section-gap: 2rem;
  --illustration-aspect: 16 / 9;
  --portrait-aspect: 9 / 16;
  --border-width: 1px;
  --focus-width: 3px;
  --focus-offset: 3px;
  --motion-fast: 120ms;
  --motion-normal: 200ms;
  --motion-slow: 320ms;
  --motion-easing: cubic-bezier(0.2, 0, 0, 1);
  --motion-distance: 0.25rem;
  --surface-texture-size: auto, auto, 4px 4px;
  --heavy-image-opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-normal: 0ms;
    --motion-slow: 0ms;
    --motion-distance: 0;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
