/* Shared typography: edit here for reference and prototype. */
:root {
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-head: "Literata", Georgia, "Times New Roman", serif;

  --type-micro-size: 10px;
  --type-micro-line: 14px;
  --type-caption-size: 12px;
  --type-caption-line: 16px;
  --type-body-size: 14px;
  --type-body-line: 20px;
  --type-lead-size: 16px;
  --type-lead-line: 24px;
  --type-series-size: 16px;
  --type-series-line: 20px;
  --type-quote-size: 20px;
  --type-quote-line: 26px;
  --type-section-size: 20px;
  --type-section-line: 26px;
  --type-panel-size: 24px;
  --type-panel-line: 32px;
  --type-display-size: 32px;
  --type-display-line: 40px;
  --type-page-size: 40px;
  --type-page-line: 52px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-normal: 0;
  --tracking-section: -0.01em;
  --tracking-panel: -0.6px;
  --tracking-page: -1.4px;
  --tracking-label: 0.08em;
}

/* Safari zooms focused fields under 16px. Keep pinch-zoom; do not lock the viewport. */
@media (pointer: coarse) {
  :is(input, textarea, select):not(
    [type="checkbox"],
    [type="radio"],
    [type="range"],
    [type="file"],
    [type="button"],
    [type="submit"],
    [type="reset"],
    [type="hidden"],
    [type="image"],
    [type="color"]
  ) {
    font-size: 16px !important;
  }
}

/* iPad with a mouse still has a finger pointer; Mac Safari with only a mouse does not. */
@supports (-webkit-touch-callout: none) {
  @media (any-pointer: coarse) {
    :is(input, textarea, select):not(
      [type="checkbox"],
      [type="radio"],
      [type="range"],
      [type="file"],
      [type="button"],
      [type="submit"],
      [type="reset"],
      [type="hidden"],
      [type="image"],
      [type="color"]
    ) {
      font-size: 16px !important;
    }
  }
}
