The fold is not a line. It is a range.
Every screen your card lands on is a different width. Design the card once, decide where its content asks for a new shape, and let the container do the rest.
clamp(46px, 9.6vw, 168px)renders at 0px right nowStop designing three mockups. A layout is a range, not a set of screens. Grab the violet handle and drag: the page inside reflows with real container queries, and snaps at its breakpoints.
Rooms that bend to the light.
Modular shelving that reflows like a good layout: one system, any wall, every width.
Every screen your card lands on is a different width. Design the card once, decide where its content asks for a new shape, and let the container do the rest.
Every width.
Every width.
/* one declaration, every width */ h1 { font-size: clamp( 2rem, /* 32px floor */ 0.63rem + 6.087vw, /* the slope */ 5.5rem /* 88px ceiling */ ); }
Break where the content breaks, not where the devices do.
Lay the content out in one column at 320px. Get the order and the hierarchy right before anything sits side by side.
Drag the viewport wider. Lines get too long, images get too big, white space goes slack. That width is your breakpoint, whatever the device charts say.
Components rarely know the viewport. With container queries a card reflows to the column it sits in, so the same card works in a sidebar and a hero.
Between breakpoints, type and space should glide with clamp() instead of jumping. Fewer breakpoints, smoother layouts.
The classic responsive patterns, each in its own frame with two container breakpoints at 520 and 820px. Throw the handle and watch the blocks snap between states.
A multi-column grid that just gets wider, then stops at a max width and centres. The most common pattern on the web.
Columns sit side by side when there is room, and drop below one another as the width runs out.
The most adaptive pattern. Blocks do not just stack, they move to new positions at each breakpoint.
Secondary content waits off screen on small widths, and slides into view as columns when there is space.