.text {
	display: grid;
	align-content: start;
	align-items: baseline;
	gap: 0 var(--margin-double);
	grid-template-columns: 1fr 1fr;
	padding-top: 33vh;
	padding-top: 33svh;
	padding-inline: var(--margin-double);
}

.text.invert {
	padding-bottom: 33vh;
	padding-bottom: 33svh;
}

.text--small {
	font-family: "Suisse Intl Mono";
	text-transform: uppercase;
	text-wrap: balance;
}

:not(.hero, .invert, .machine, .steps) + .text.invert {
	margin-top: 33vh;
	margin-top: 33svh;
}

.text:last-of-type {
	padding-bottom: 33vh;
	padding-bottom: 33svh;
}

/* .text > h2 {
	position: sticky;
	top: var(--header);
} */

.text > :is(p, .reveal) {
	grid-column: 2;
	z-index: 1;
}

.text--small > p {
	max-width: 80ch;
	/* padding-left: 0.18em; */
}

@media (orientation: portrait) {
	.text {
		grid-template-columns: 1fr;
	}

	.text > :is(p, .reveal) {
		grid-column: 1;
	}

	.text > h2 + .reveal {
		margin-top: var(--margin-double);
	}

	/* phone spacing */
	.text--small {
		padding-top: 16.5vh; /* half the space before "You love…" */
		padding-top: 16.5svh;
	}

	.text--small + .text {
		padding-top: 22vh; /* a third less space between "You love…" and "The purpose" */
		padding-top: 22svh;
	}
}
/* "You love the espresso…" right below the hero: same space to the top as the section headings
   (the header height) */
.hero + .text--small {
	padding-top: var(--header);
}

/* The About text (small, right before the pictures): one gallery column wide, starting where the
   right half starts, lines not balanced, close above the pictures */
.text--small:has(+ .gallery) {
	text-wrap: wrap;
}

@media not (orientation: portrait) {
	.text--small:has(+ .gallery) > p {
		max-width: calc((100% - var(--margin-double)) / 2);
	}
}

.text.text--small + .gallery {
	padding-top: var(--margin-double);
}
