.pillars {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-36);
	padding: 80px;
	overflow: clip;

	@media (min-width: 810px) and (max-width: 1199.98px) {
		padding: 50px 40px;
	}

	@media (max-width: 809.98px) {
		padding: 50px 25px;
	}
}

.pillars__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-10);
	width: 100%;
	overflow: clip;
}

.pillars__row {
	display: flex;
	align-items: flex-start;
	gap: var(--space-30);
	width: 100%;
	overflow: clip;

	@media (min-width: 810px) and (max-width: 1199.98px) {
		gap: 21px;
	}

	@media (max-width: 809.98px) {
		flex-direction: column;
	}
}

.pillars__heading {
	flex: 1 0 0;
	min-width: 1px;
	font-family: var(--font-figtree);
	font-size: var(--fs-40);
	font-weight: var(--fw-regular);
	line-height: var(--lh-140);
	letter-spacing: var(--ls-wide);
	color: var(--color-olive);

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;
	}

	/* Framer wraps this accent in <strong>, which resolves to the bold cut. */
	& em {
		font-family: var(--font-cormorant);
		font-size: 57px;
		font-style: italic;
		font-weight: var(--fw-bold);
		letter-spacing: var(--ls-tight);
		color: var(--color-sage);
	}
}

.pillars__text {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-24);
	min-width: 1px;
	max-width: 860px;
	overflow: clip;
	color: var(--color-olive);

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;
	}
}

.pillars__cards {
	display: flex;
	align-items: flex-start;
	gap: var(--space-20);
	width: 100%;
	overflow: clip;

	@media (max-width: 809.98px) {
		flex-direction: column;
	}
}

/* Framer styles the three cards individually: sage, cream and grey. */
.pillar {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-10);
	min-width: 1px;
	overflow: clip;
	background: rgb(220 227 215 / 0.3);
	border-radius: var(--radius-12);
	outline: 1px solid var(--color-sage-light);
	outline-offset: -1px;

	&:nth-child(3n + 2),
	&:nth-child(3n) {
		align-self: stretch;
		justify-content: flex-start;
		outline-color: var(--color-sand-60);

		& .pillar__content {
			flex: 1 0 0;
			padding: var(--space-30);
		}
	}

	&:nth-child(3n + 2) {
		background: var(--color-cream);
	}

	&:nth-child(3n) {
		background: var(--color-ink-10);
	}

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;

		&:nth-child(3n + 2),
		&:nth-child(3n) {
			align-self: auto;

			& .pillar__content {
				flex: none;
			}
		}
	}
}

.pillar__image {
	position: relative;
	flex: none;
	width: 100%;
	height: 201px;
}

.pillar__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-10);
	width: 100%;
	padding: 47px 30px;
	overflow: clip;
}

/* The title is wrapped in <strong> in Framer. */
.pillar__title {
	width: 100%;
	font-weight: var(--fw-bold);
}

.pillar__text {
	display: contents;
}
