/*
 * Zoey Made — the shared page frame (SPL-001).
 *
 * Loaded on a page that opts into `templates/page-standard.html`, and nowhere else. `page.html` and
 * every page still on it are untouched: adoption is a template a page chooses, which is the whole
 * reason this file is not in `base.css`.
 *
 * ## What the template owns, and what this owns
 *
 * The **column** is the template's: its constrained layout carries
 * `var(--wp--custom--layout--content)`, so core generates the width rules for the title and for
 * every default child of the content, and the two land on the same left edge without either of them
 * saying so. That is the point of SPL-001 — see §2.1 of the story for what the previous arrangement
 * did instead, and `docs/CSS-AND-ASSETS.md` for where page structure belongs.
 *
 * The **spacing roles** are here, because a block attribute cannot express them. Core rejects any
 * `blockGap` value containing a bracket — a guard against CSS injection through a saved attribute —
 * so a responsive `clamp()` cannot be written in the template at all, and `var:preset|…` only
 * reaches the fixed spacing scale. Measured before this file existed: the gap stayed at the global
 * 1.5rem whatever the template asked for. The tokens are in `theme.json` under
 * `custom.layout`; nothing here invents a value.
 *
 * ## The roles
 *
 * Page top and bottom are asymmetric on purpose, and both are smaller on a phone than the 4.5rem
 * `page.html` spends there: 1.5rem above the title at 390px, where the screen is the scarce thing,
 * growing to 3rem by 1440px where it is not.
 */

.zoey-page {
	padding-block: var(--wp--custom--layout--top) var(--wp--custom--layout--bottom);
}

/*
 * **Introduction to main content** — the page title to whatever the page is.
 *
 * Two classes, which is one more than core's generated `blockGap` rule carries, so this wins on
 * specificity rather than on `!important`: the same correction the Learn and Make stylesheets make
 * to core's layout rules, written the same way.
 */
.zoey-page > .wp-block-post-content {
	margin-block-start: var(--wp--custom--layout--intro);
}
