:root {
  --type-display: 1.75rem;
  --type-page: 1.375rem;
  --type-section: 1rem;
  --type-subsection: .875rem;
  --type-body: .8125rem;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body {
  font-size: var(--type-body);
  line-height: 1.5;
}

h1 { font-size: var(--type-page); }
h2 { font-size: var(--type-section); }
h3 { font-size: var(--type-subsection); }

button, input, select, textarea { font: inherit; }

/* Keep editable controls above the focus-zoom threshold on touch devices. */
@media (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="color"]),
  select,
  textarea {
    font-size: max(1rem, 16px) !important;
  }
}

/* Quiet keyboard focus, without a large ring or focus shadow. */
:focus { outline: none !important; outline-offset: 0 !important; }
:focus-visible { outline: 1px solid #8b9da8 !important; outline-offset: 1px !important; }
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight !important; }
}
