01 / Name it
Say what each thing is.
This demo has three subjects: a guide, a document and your notes. The markup names them and says nothing about columns, drawers or slides.
<aside data-identity="guide">
<main data-identity="document">
<aside data-identity="notes">
Give the subject a stable name before deciding where it belongs.
02 / Relate it
Say what job it does.
A guide navigates the document; notes support it. Declare the relationship, and one CSS rule turns it into a responsibility and a grid area.
[data-relation="navigates"] {
--place: var(--place-navigator, supporting);
}
.scene > [data-relation] { grid-area: var(--place); }
03 / Compose it
Pick a recipe. Let the browser resolve it.
Reading, Workspace and Presentation are three CSS rules that set a few named choices. Style queries turn those choices into areas, drawers and slides.
[data-lens="presentation"] {
--arrangement: focus;
--path: slides;
}
Open Explore the composition contract and set Navigation to Keep in the layout. An explicit policy outranks the recipe.