/**
 * Section 5 — the metrics band.
 *
 * No background is declared. The design's section is transparent and the page behind it is white,
 * and saying so twice would mean two places to change it.
 */

.as-figures {
	display: flex;
	flex-direction: column;
	gap: 120px;
	align-items: center;
	padding: 124px 32px;
}

.as-figures__intro {
	width: 100%;
	max-width: var(--as-container-narrow);
}

.as-figures__title {
	margin: 0;
	font-size: 48px;
	font-weight: 500;
	line-height: var(--as-lh-display);
	letter-spacing: -0.05em;
	color: var(--as-ink);
}

.as-figures__group {
	display: flex;
	flex-direction: row;
	/*
	 * flex-start, not stretch. The first figure is 419 tall and the other two are 491, and that is
	 * not an accident of content: the dividers belong to the second and third, and a divider has to
	 * run the full height of the band. Only those two are stretched, below.
	 */
	align-items: flex-start;
	width: 100%;
	max-width: var(--as-container-narrow);
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-figure {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 88px;
	min-width: 0;
	padding: 32px;
}

/*
 * The divider is an inset shadow rather than a border, so it cannot widen the figure it belongs to.
 * A left border would make that column 371 wide against the other two at 370, and the whole row
 * would shift by a pixel.
 */
.as-figure:not(:first-child) {
	align-self: stretch;
	box-shadow: inset 1px 0 0 var(--as-hairline);
}

.as-figure__head {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.as-figure__value {
	margin: 0;
	font-family: var(--as-font-display);
	font-size: 100px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	color: var(--as-ink);
}

/* Held at 48 whether the label runs to one line or two. See the template. */
.as-figure__label {
	height: 48px;
}

.as-figure__label-text,
.as-figure__body {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: var(--as-lh-snug);
	letter-spacing: -0.04em;
}

.as-figure__label-text {
	color: var(--as-ink-50);
}

.as-figure__body {
	color: var(--as-ink);
}

@media (max-width: 1199px) {
	.as-figures__title {
		font-size: 46px;
	}

	.as-figures__group {
		flex-direction: column;
	}

	.as-figure {
		flex: 0 0 auto;
		gap: 100px;
		align-self: stretch;
		padding: 20px;
	}

	.as-figure__label-text,
	.as-figure__body {
		font-size: 18px;
	}
}

/*
 * The tablet keeps a vertical divider on the second figure alone, which is a leftover from the row
 * layout: the figures are stacked here, so it draws as a stray hairline down the left edge of the
 * middle one, and the third has none at all. Reproduced as measured, and on the list for the
 * designer - the fix is to use the same horizontal rule the phone already uses.
 *
 * The fixed 548 is the design's too, and it leaves 194px of empty space under the shortest figure.
 * Measured at three window heights, so it is a flat value rather than anything derived.
 */
@media (max-width: 1199px) and (min-width: 810px) {
	.as-figure {
		height: 548px;
	}

	.as-figure:not(:first-child) {
		box-shadow: none;
	}

	.as-figure:nth-child(2) {
		box-shadow: inset 1px 0 0 var(--as-hairline);
	}
}

@media (max-width: 809px) {
	.as-figures {
		padding: 80px 20px;
	}

	.as-figures__title {
		font-size: 36px;
	}

	.as-figure__label-text,
	.as-figure__body {
		font-size: 16px;
	}

	/* Stacked, so the rule goes between them: a bottom edge on every figure but the last. */
	.as-figure:not(:first-child) {
		box-shadow: none;
	}

	.as-figure:not(:last-child) {
		box-shadow: inset 0 -1px 0 var(--as-hairline);
	}
}
