/* Layout */

.container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--space-md);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.container--wide {
	max-width: var(--container-wide);
}

.site-main {
	padding-block: var(--space-2xl);
}

/* Homepage sections carry their own vertical padding, so the main wrapper and
   the footer must not stack another band of page background between them. */
.site-main--home {
	padding-block-end: 0;
}

.site-main--home + .gd-site-footer {
	margin-top: 0;
}

.section {
	padding-block: var(--space-2xl);
}

.section--sm {
	padding-block: var(--space-xl);
}

.section--lg {
	padding-block: var(--space-3xl);
}

.content-width {
	max-width: var(--content-max-width);
}

.grid {
	display: grid;
	gap: var(--space-lg);
}

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

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

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

.flex {
	display: flex;
	gap: var(--space-md);
}

.flex--center {
	align-items: center;
	justify-content: center;
}

.flex--between {
	align-items: center;
	justify-content: space-between;
}

.stack > * + * {
	margin-top: var(--space-md);
}

.stack--sm > * + * {
	margin-top: var(--space-sm);
}

.stack--lg > * + * {
	margin-top: var(--space-xl);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
}

.page-header {
	margin-bottom: var(--space-xl);
}

.page-title {
	font-size: var(--font-size-2xl);
	line-height: var(--line-height-tight);
}

.archive-description {
	margin-top: var(--space-sm);
	color: var(--color-text-muted);
}
