Write CSS for a real card, trace each element’s computed value and where it came from: written, inherited, browser default, initial. Where do initial, unset…
Inheritance and the keywords are the CSS basics people mix up most ("why isn’t initial the normal look?", "why doesn’t the button follow the page font?"). Seeing the real computed value and where it came from on every element turns memorising into an accurate model.
What comes down is the parent’s computed value, and only for inherited properties
initial to go back to "the site’s normal style", and getting plain black initial = the spec’s initial value (color → CanvasText: black in a light theme, white in a dark one), the same for every element. Want the parent’s colour? inherit. Want the browser’s own style (link blue)? revert.border does not come down to the child though it is set on the parent border is deliberately not inherited (picture every child framed too). Want to force it down? Write border: inherit on the child.font-size: 2em on the parent, and the child inherits the resulting px, not "2em" worked out again.initial, unset, then revert on the link Pick "initial on the link", then change the keyword. Black (CanvasText), soga, link blue: three different sources.border: inherit on .isi Pick "border on the card" first: the thread to the paragraph is cut. With inherit, the frame is forced down.1.5em of 20px = 30px. The link inside inherits 30px, not 1.5em again (which would be 45px).all: unset on the button Trace background-color: the button loses its default background (not inherited → initial), while its text colour and font follow the card (inherited → inherit).