/*
 * Account page only: the header, the overview numbers, the change-password form, and the delete-account card
 * with its red border.
 */
.account {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	max-width: 640px;
	padding-bottom: var(--space-16);
}

.account__title {
	font-size: 2.25rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.account__accent {
	color: var(--accent);
}

.account__lead {
	margin-top: var(--space-2);
	color: var(--text-muted);
	overflow-wrap: anywhere;
}

.account__section {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.account__heading {
	color: var(--text);
	font-size: var(--text-md);
	font-weight: 500;
}

.account__text {
	margin-top: var(--space-1);
	color: var(--text-muted);
	font-size: var(--text-sm);
}

.account__submit {
	align-self: flex-start;
}

.account__danger {
	border-color: var(--danger-border);
}

/* Overview: small labelled numbers in a row, wrapping on phones */
.overview {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
}

.overview__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.overview__label {
	color: var(--text-faint);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.overview__value {
	color: var(--text);
	font-size: var(--text-lg);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
	.overview {
		grid-template-columns: 1fr 1fr;
	}
}
