/* ===========================================================================
   intro-manifesto-rule — editorial manifesto statement
   ---------------------------------------------------------------------------
   Scope: .vbs-intro-manifesto-rule
   Depends on: css/tokens.css, css/base.css
   Contains no literal colour, font, size, radius, shadow or duration.

   Structure: a narrow left rail carrying the eyebrow, a wide right column
   carrying one display-2 statement, both fenced by hairline rules top and
   bottom. Underneath, three credentials divided by vertical hairlines that
   flip to horizontal ones on small screens.
   ========================================================================= */

/* --- the ruled fence ------------------------------------------------------
   border-block draws both hairlines from one declaration, so a brand that
   thickens --vb-border-hair (Brutalist doubles it) thickens both together. */
.vbs-intro-manifesto-rule__block {
	display: grid;
	gap: 1.5rem;
	padding-block: clamp(2rem, 4vw, 3.25rem);
	border-block: var(--vb-border-hair) solid var(--vb-color-rule);
}

@media (min-width: 56rem) {
	.vbs-intro-manifesto-rule__block {
		grid-template-columns: minmax(9rem, 1fr) minmax(0, 3.2fr);
		gap: clamp(2rem, 5vw, 5rem);
		padding-block: clamp(2.5rem, 4.5vw, 4rem);
	}
}

/* --- left rail ------------------------------------------------------------
   A short accent hairline sits above the eyebrow: the only colour in the
   composition, and the one thing a client will recognise as theirs. */
.vbs-intro-manifesto-rule__rail { align-self: start; }

.vbs-intro-manifesto-rule__rail::before {
	content: "";
	display: block;
	inline-size: clamp(2rem, 5vw, 3.25rem);
	block-size: var(--vb-border-hair);
	margin-block-end: 1.15rem;
	background-color: var(--vb-color-accent);
}

.vbs-intro-manifesto-rule__rail-note {
	display: block;
	margin-block-start: 1rem;
	max-inline-size: 18rem;
	color: var(--vb-color-ink-soft);
}

/* --- the statement --------------------------------------------------------
   One <h2>. The opening claim carries full ink; the qualifying sentences drop
   to ink-soft so the eye lands on the claim first. Nothing but a colour role
   changes, so it survives every preset. */
.vbs-intro-manifesto-rule__statement {
	align-self: start;
	text-wrap: pretty;
}

.vbs-intro-manifesto-rule__statement-soft { color: var(--vb-color-ink-soft); }

/* --- credentials ----------------------------------------------------------
   Stacked and hairline-separated on small screens. */
.vbs-intro-manifesto-rule__creds {
	display: grid;
	margin-block-start: clamp(2rem, 4vw, 3.25rem);
}

.vbs-intro-manifesto-rule__cred {
	padding-block: 1.5rem;
	border-block-start: var(--vb-border-hair) solid var(--vb-color-rule);
}
.vbs-intro-manifesto-rule__cred:first-child {
	padding-block-start: 0;
	border-block-start: 0;
}
.vbs-intro-manifesto-rule__cred:last-child { padding-block-end: 0; }

/* From tablet up the same list becomes three columns split by vertical
   hairlines — the divider is a border on each item's inline start, so adding
   or removing a credential needs no other edit. */
@media (min-width: 48rem) {
	.vbs-intro-manifesto-rule__creds {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 4vw, 3.5rem);
	}
	.vbs-intro-manifesto-rule__cred {
		padding-block: 0;
		padding-inline-start: clamp(1.25rem, 3vw, 2.5rem);
		border-block-start: 0;
		border-inline-start: var(--vb-border-hair) solid var(--vb-color-rule);
	}
	.vbs-intro-manifesto-rule__cred:first-child {
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

.vbs-intro-manifesto-rule__cred-index { color: var(--vb-color-mute); }

.vbs-intro-manifesto-rule__cred-figure {
	display: block;
	margin-block-start: 0.9rem;
	font-family: var(--vb-font-display);
	font-size: var(--vb-fs-h2);
	line-height: var(--vb-lh-h2);
	letter-spacing: var(--vb-ls-h2);
	font-weight: var(--vb-weight-heading);
	color: var(--vb-color-ink);
}

.vbs-intro-manifesto-rule__cred-label {
	display: block;
	margin-block-start: 0.65rem;
	max-inline-size: 44ch;
	color: var(--vb-color-ink-soft);
}
