/* Design tokens — the single source of truth for the visual language. */
:root {
  /* Color: mostly black and white */
  --color-ink: #111111;
  --color-ink-soft: #444444;
  --color-ink-disabled: #949494; /* words on disabled controls only (about 2.8:1 on paper-dim; WCAG exempts inactive controls; the note beside a blocked control carries the meaning in readable text) */
  --color-paper: #ffffff;
  --color-paper-dim: #f5f5f5;
  --color-line: #d9d9d9;
  --color-line-strong: #111111;
  --color-error: #b3261e;
  --color-ok: #1b6e3c;
  /* Marketing accent, "read this first" (ADR 0004). Marketing surfaces
     only; only --color-ink sits on it; never a text color. */
  --color-accent: #ffd400;
  /* Form action color (ADR 0004). Respondent forms: fill of the one primary
     button per screen, paper text on it; never text or links. On marketing
     pages only as the drawn submit in the example-sheet miniature. */
  --color-action: #1d3fa8;
  /* Logo color (ADR 0015). Only the letters "form" in the Nemoform
     wordmark (marketing, creator app, creator emails) and the favicon.
     Never text, controls or meaning elsewhere; never on respondent forms. */
  --color-logo: #8139c4;

  /* Typography */
  --font-sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text-base: 1.25rem;    /* no small text */
  --text-sm: 1.125rem;     /* smallest allowed */
  --text-lg: 1.5rem;
  --text-xl: 2rem;
  --text-2xl: 2.75rem;
  --leading: 1.5;

  /* Spacing — be bold with white space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Shape */
  --radius: 0.5rem;
  --border: 0.125rem;

  /* Interaction (promoted from prototype literals, 2026-11-09) */
  --target-min: 3.5rem;      /* minimum touch-target height */
  --underline-offset: 0.1875rem; /* link underline offset */

  /* Layout */
  --measure: 42rem;        /* comfortable reading/filling width */
  --measure-wide: 75rem;   /* editor width */
}

/* Phone-size type overrides (promoted from the prototype's
   typography.css so consumers never hard-code token values) */
@media (max-width: 40rem) {
  :root {
    --text-2xl: 2.125rem;
    --text-xl: 1.75rem;
  }
}
