A modular type scale, a grid, and the contrast of two colors
A modular step is an exact rational power of a ratio greater than one. Grid width is columns times track, plus the gutters between them. Contrast follows the sRGB relative-luminance note in WCAG 2.2: the power 2.4 is enclosed by rationals, and black on white is the exact ratio 21. The page does not certify a whole page.
The result appears here when the page script runs.
How it is computed
Method
Sizes are base times the ratio to an integer power, as a reduced rational. Width is an integer. For a channel at most 10, relative luminance uses the linear branch as an exact rational. Above that, the power 12/5 is enclosed by searching a denominator of one million. Coefficients 0.2126, 0.7152, and 0.0722 are the exact decimals 1063/5000, 447/625, and 361/5000. Contrast adds 1/20 before dividing.
Assumptions
The enclosure can be wider than a float. A threshold is met only when the lower end clears it, missed only when the upper end falls short, and otherwise inconclusive. Anti-aliasing is not modelled.
Limits
Two colors are not a page, so the result says nothing about WCAG conformance for this site.
Reproducibility
The inputs are kept in the address bar, so the same link reruns the same calculation.