/*
 * About (1.21.8), loaded by page-about.php only.
 *
 * The page's copy is blocks in the editor; these rules style them by class
 * name (see page-about.php for the list). The same system as Material care:
 * one spacing scale, sections divided by the keyline, columns headed by one
 * heavy rule in the ink, paragraphs that use their column, letter spacing 0.
 * Three textures alternate: a heading beside its text (the name, the
 * material, made for one person), columns under a rule (what we make) and
 * rows of a term beside its text (what we hold to).
 *
 * Block gaps are reset here, so a paragraph the owner adds in the editor
 * takes the page's spacing rather than the editor's default.
 */

.rc-about-page {
	--rc-about-section: clamp(2.25rem, 4vw, 3.75rem);
	--rc-about-heading: clamp(1.25rem, 2vw, 1.75rem);
	padding-bottom: var(--rc-about-section);
}

.rc-about-page :is(h1, h2, h3, p, li, a) {
	letter-spacing: 0;
}

.rc-about-body :is(h2, h3, p) {
	margin: 0;
}

.rc-about-body .wp-block-group {
	margin-block: 0;
}

/* ---------- Title and opening ---------- */

/* The title and the opening paragraph read as one block: the keyline sits
 * under the paragraph, not between them. */
.rc-about-page .rc-page-hero {
	padding-bottom: 0;
	border-bottom: 0;
}

.rc-about-page .rc-page-hero h1 {
	margin: 0;
}

.rc-about-body > .rc-about-lede {
	padding-block: 1.4rem var(--rc-about-section);
	border-bottom: 1px solid var(--rc-line);
	color: var(--rc-ink);
	font-size: clamp(1.1rem, 1.6vw, 1.45rem);
	line-height: 1.42;
	text-wrap: pretty;
}

/* ---------- Sections ---------- */

.rc-about-section {
	padding-block: var(--rc-about-section);
	border-bottom: 1px solid var(--rc-line);
}

.rc-about-body > .rc-about-section:last-child {
	border-bottom: 0;
}

.rc-about-section h2 {
	margin-bottom: clamp(1.5rem, 2.6vw, 2.25rem);
	font-size: clamp(1.7rem, 3vw, 2.65rem);
	font-weight: 700;
	line-height: 0.98;
	text-transform: uppercase;
	text-wrap: balance;
}

.rc-about-section p {
	max-width: none;
	color: var(--rc-graphite);
	font-size: 1.02rem;
	line-height: 1.58;
}

.rc-about-section p + p {
	margin-top: 1rem;
}

.rc-about-body a:not(.rc-about-links a) {
	color: var(--rc-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* ---------- A heading beside its text ---------- */

/* The heading holds the left third and everything else the rest, so a line
 * runs to a readable length without a measure cap, and a paragraph added in
 * the editor stays in the text column. */
.rc-about-topic {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 0 clamp(1.5rem, 4vw, 5rem);
	align-items: start;
}

.rc-about-topic > h2 {
	grid-column: 1;
	grid-row: 1 / span 20;
	margin-bottom: 0;
}

.rc-about-topic > :not(h2) {
	grid-column: 2;
}

.rc-about-topic > p {
	color: var(--rc-ink);
	font-size: clamp(1.08rem, 1.45vw, 1.3rem);
	line-height: 1.5;
	text-wrap: pretty;
}

.rc-about-topic > p + p {
	margin-top: 1.1rem;
}

/* ---------- Columns under a heavy rule ---------- */

.rc-about-columns {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(2rem, 3.5vw, 3.25rem) clamp(1.5rem, 3vw, 3rem);
}

.rc-about-column {
	display: grid;
	align-content: start;
	gap: 0.8rem;
	padding-top: 1.2rem;
	border-top: 2px solid var(--rc-ink);
}

.rc-about-column h3 {
	font-size: var(--rc-about-heading);
	font-weight: 700;
	line-height: 1.06;
	text-transform: uppercase;
	text-wrap: balance;
}

.rc-about-body .rc-about-column h3 a {
	color: inherit;
	text-decoration: none;
}

.rc-about-body .rc-about-column h3 a:hover,
.rc-about-body .rc-about-column h3 a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}

/* One arrow after the heading's last link marks the column as a way in. */
.rc-about-column h3 a:last-child::after {
	display: inline-block;
	margin-left: 0.35em;
	content: "\2192";
	font-weight: 400;
	transition: transform 260ms var(--rc-ease);
}

.rc-about-column h3 a:last-child:hover::after {
	transform: translateX(0.25rem);
}

.rc-about-column p {
	font-size: 0.98rem;
}

/* ---------- A term beside its text ---------- */

.rc-about-rows {
	border-top: 2px solid var(--rc-ink);
}

.rc-about-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
	gap: clamp(1rem, 2.5vw, 2.5rem);
	padding: 1.15rem 0 1.2rem;
	border-bottom: 1px solid var(--rc-line);
}

.rc-about-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rc-about-row h3 {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.rc-about-row > :not(h3) {
	grid-column: 2;
}

.rc-about-row p {
	font-size: 1rem;
}

/* ---------- Links ---------- */

.rc-about-section .rc-about-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.5rem;
	margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}

.rc-about-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.78rem 0;
	border-bottom: 1px solid currentColor;
	color: var(--rc-ink);
	font-size: 0.77rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.rc-about-links a::after {
	margin-left: 2rem;
	content: "\2192";
	font-size: 0.9rem;
	transition: transform 260ms var(--rc-ease);
}

.rc-about-links a:hover::after {
	transform: translateX(0.35rem);
}

/* ---------- Narrower windows ---------- */

@media (max-width: 99.99rem) {
	.rc-about-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 74.99rem) {
	.rc-about-topic {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(1.5rem, 3vw, 2.25rem);
	}

	.rc-about-topic > h2,
	.rc-about-topic > :not(h2) {
		grid-column: 1;
		grid-row: auto;
	}

	.rc-about-topic > p + p {
		margin-top: 0;
	}

	.rc-about-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 47.99rem) {
	.rc-about-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}

	.rc-about-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
	}

	.rc-about-row > :not(h3) {
		grid-column: 1;
	}
}
