:root {
  --font-ui: Inter, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: Georgia, "Times New Roman", serif;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
  --fs-4xl: 32px;
  --fs-5xl: 40px;
  --type-display: var(--fs-5xl);
  --type-title: var(--fs-3xl);
  --type-section: var(--fs-lg);
  --type-card: var(--fs-md);
  --type-body: var(--fs-base);
  --type-label: var(--fs-sm);
  --type-fine: var(--fs-xs);
}
body { font: 400 var(--type-body)/1.4 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
code, pre, samp, kbd { font-family: var(--font-mono); font-size: var(--type-label); }
h1 { font-size: var(--type-title); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--type-section); font-weight: 700; line-height: 1.3; }
h3 { font-size: var(--type-card); font-weight: 600; line-height: 1.3; }
th { font-size: var(--type-label); }
small { font-size: var(--type-fine); }
@media (pointer: coarse) {
  input, select, textarea { font-size: max(var(--fs-md), 1em); }
}
