/* Form controls, sitewide; one rule, one job.
 *
 * iOS Safari zooms the whole page in when a focused form control computes to
 * anything under 16px, and it does not zoom back out afterwards. The reader
 * taps a field, the layout jumps to roughly 130%, and every page they visit
 * next is still magnified until they pinch out by hand.
 *
 * The threshold is exactly 16px, so this is a floor rather than a size. What
 * it catches is a control with no size of its own, which the browser would
 * otherwise render at about 13.3px: the honeypot, anything added to the legacy
 * Livewire forms, and whatever gets written next year by someone who has never
 * heard of this rule.
 *
 * `@layer base` is doing the real work here, and specificity is not.
 * app.css declares its layers in the order properties, theme, base,
 * components, utilities, and `text-[16.5px]` is generated into `utilities`,
 * the last of them. A cascade layer beats specificity outright, so an
 * unlayered `input {}` rule, weak as it looks, would override every sized
 * field on the site: measured, it silently pulled five 16.5px fields down to
 * 16px. Declaring into `base` instead puts this below `utilities`, so a field
 * that states its own size keeps it and only the unsized ones are lifted.
 *
 * On the legacy tree, whose css/app.css has its layers compiled away, this
 * still outranks the browser's defaults, which is the only thing it needs to
 * beat there, since those controls already set their own sizes.
 *
 * max() rather than a bare 16px so a reader who has raised their default text
 * size keeps the larger value instead of being pushed back down to 16.
 *
 * NOT solved with `maximum-scale=1` or `user-scalable=no` on the
 * viewport meta. That does stop the zoom, by taking pinch-to-zoom away from
 * everyone on every page: a WCAG 1.4.4 failure, and a bad trade for a problem
 * that a font size fixes outright.
 */
@layer base {
    input,
    select,
    textarea {
        font-size: max(16px, 1rem);
    }
}
