
ALT Infographic titled "CSS 🤝 Math" demonstrating algorithmic design. - Top: A rendered "Technology" button with a white checkmark icon. - Bottom: An annotated version of the same button showing the underlying CSS logic. - `--py: 0.875em` (vertical padding) is the single source of truth. - `--px` (horizontal padding) is derived via: `calc(var(--py) + (1lh - 1cap)/2)`, where `1lh` is line-height and `1cap` is cap-height. - The icon's size is set to `1lh`. - The icon's right margin is adjusted with: `calc(var(--py) - var(--px))` to visually center the icon relative to the text and padding.

ALT Comparación entre margin-block: 1em y margin-block: 1lh en dos bloques de texto. A la izquierda, el uso de 1em provoca que los párrafos se desajusten respecto a la línea base, como si fueran borrachos en una coreografía. A la derecha, con 1lh, todo queda perfectamente alineado, como si el CSS tuviera TOC. Un texto en amarillo remata: “El párrafo se va desajustando por los márgenes.














