main {
	margin-bottom: 0;
}

.index-layout {
	padding: 16px;
	min-height: 100vh;
	width: 100%;

	display: flex;
	align-items: center;
	justify-content: center;
}
.index-layout > main {
	display: flex;
	flex-direction: column;
	row-gap: 32px;
}

#leading-image {
	position: relative;
	width: 100%;
}
#leading-image .frame {
	position: absolute;
	top: -24px;
	left: -24px;
	width: calc(100% + 48px);
	height: calc(100% + 48px);
}

.text-group {
	display: flex;
	flex-direction: column;
	row-gap: 16px;
}

nav {
	display: flex;
	flex-direction: column;
	align-items: unset;
	row-gap: 12px;
}

@media only screen and (min-width: 586px) {  /* Tablet and desktop */
	.index-layout > main {
		max-width: calc((var(--column-width-tablet) * 12) + (var(--column-gap-tablet) * 11));
	}
}

@media only screen and (min-width: 1024px) {  /* Desktop only */
	.index-layout > main {
		width: 100%;
		max-width: calc((var(--column-width-desktop) * 12) + (var(--column-gap-desktop) * 11));

		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	#leading-image {
		width: calc((var(--column-width-desktop) * 6) + (var(--column-gap-desktop) * 5));  /* 6 columns */
	}
	
	.text-group {
		width: calc((var(--column-width-desktop) * 5) + (var(--column-gap-desktop) * 4));  /* 5 columns */
	}
}
