If you're defining absolute width or height for an absolute positioned element, you can use auto margin to lay out these elements.
Topic: CSS
Style queries for custom properties will eliminate the need for custom media queries.
A snippet to fade out text with
mask-image
.Use
position: sticky
to create a CSS-only scroll-top link.The oklch() color function enables using the P3 color space but more importantly allows color manipulations that retain perceived lightness.