/*
 * rooster/layer-stack (now a variant of the library: BRIEF-2026-11-01-BLOCK-LIBRARY.md) (BRIEF-2026-11-01-LANDINGS-BY-TEMPLATE.md, order 2): the legacy Rooster One landing's
 * performance layer (themes/om-portal-theme/templates/landing-rooster-one.php, `.r1-runtime`, `.r1-stack`,
 * `.r1-layer`), complete on its own: the panel dark in both schemes (16 px corners, 34 px inside, the 5 px amber rule),
 * the eyebrow 11 px tracked 0.16em in the panel's sky, the heading 24 to 34 px at 800 (the template's h2), the lede
 * 17 px, the layers joined by 1 px hairlines in a 10 px rounded frame 20 px under it, each 14 px over and 18 px aside,
 * its name 14 px bold at 220 px at least beside what it does in 12.5 px; the standing-out layer warm behind a 3 px
 * amber rule. The panel's own colours are the legacy's in both schemes; the heading and the lede take the legacy's
 * darkened page colours in the dark scheme, as its rules did. Compiled by build/blocks-css.mjs.
 */

@import "../../theme.css";

/*
 * The Rooster One template's palette, defined here for this recipe (the legacy's light and dark pairs): nothing
 * reads an undefined custom property. `:where()`: a block's tone (its own sheet) re-maps the brand over it.
 */
:where(.rooster-layer-stack) {
	--wp--custom--rooster-one--amber: #feac03;
	--wp--custom--rooster-one--night: #04101f;
	--wp--custom--rooster-one--ink-on-night: light-dark(#ffffff, #eff0f0);
	--wp--custom--rooster-one--lede-on-night: light-dark(#cdd5dd, #d1d6db);
}

.rooster-layer-stack {
	--rooster-layer-stack-amber: var(--wp--custom--rooster-one--amber);
	box-sizing: border-box;
	margin: 0;
	padding: 34px;
	border-left: 5px solid var(--rooster-layer-stack-amber);
	border-radius: 16px;
	background: var(--wp--custom--rooster-one--night);
	font-size: 1rem;
	line-height: 1.5;
	color: #d9e6f5;
	overflow-wrap: normal;
	word-break: normal;
}

.rooster-layer-stack *,
.rooster-layer-stack *::before,
.rooster-layer-stack *::after {
	box-sizing: border-box;
}

.rooster-layer-stack .rooster-layer-stack__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.6;
	text-transform: uppercase;
	color: #9bdbff;
}

.rooster-layer-stack .rooster-layer-stack__heading {
	margin: 0 0 12px;
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 800;
	letter-spacing: -0.022em;
	line-height: 1.08;
	text-wrap: wrap;
	color: var(--wp--custom--rooster-one--ink-on-night);
}

.rooster-layer-stack .rooster-layer-stack__lede {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--wp--custom--rooster-one--lede-on-night);
}

.rooster-layer-stack .rooster-layer-stack__stack {
	display: grid;
	gap: 1px;
	margin: 20px 0 0;
	border: 1px solid #263141;
	border-radius: 10px;
	background: #263141;
	overflow: hidden;
}

.rooster-layer-stack .rooster-layer-stack__layer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: #10202f;
}

.rooster-layer-stack .rooster-layer-stack__name {
	min-width: 220px;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
}

.rooster-layer-stack .rooster-layer-stack__what {
	flex: 1;
	min-width: 220px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #9aa4af;
}

/* A link in the lede or a layer's words (the spec's `[text](url)`): their own colour on the night panel, underlined. */
.rooster-layer-stack :is(.rooster-layer-stack__lede, .rooster-layer-stack__what) a {
	color: inherit;
}

/* Its focus in the words' own colour: the theme's ring is drawn for the page's ground, not this one. */
.rooster-layer-stack :is(.rooster-layer-stack__lede, .rooster-layer-stack__what) a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	box-shadow: none;
}

.rooster-layer-stack .rooster-layer-stack__layer.is-hi {
	border-left: 3px solid var(--rooster-layer-stack-amber);
	background: #2a2118;
}

.rooster-layer-stack .rooster-layer-stack__layer.is-hi .rooster-layer-stack__name {
	color: light-dark(var(--rooster-layer-stack-amber), #f8ce79);
}
