[content][home-page] {
	max-width: 72rem;
	margin-block: clamp(1.5rem, 4vw, 3.5rem);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

[hero] {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	align-items: end;
	gap: 2.5rem;
	padding: clamp(1.5rem, 4.5vw, 3.5rem);
	border: 1px solid var(--border-card);
	border-top: 4px solid var(--footer-bg);
	border-radius: 4px;
	background: var(--home-frame);
}

[home-page] [hero] h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.2rem, 6.4vw, 5.25rem);
	font-weight: 400;
	letter-spacing: -.055em;
	line-height: 1.06;
}

[home-welcome] {
	padding-bottom: .3rem;
}

[home-intro] {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.65;
}

[hero] [small] {
	max-width: 22rem;
	margin: 1rem 0 0;
	font-size: .8rem;
}

[cards] {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: start;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

/* Small fabric swatches: a plain weave, a folded hem and a running stitch. */
[card] {
	--cloth: #d5e2e6;
	--stitch: #6f8a97;
	position: relative;
	isolation: isolate;
	min-width: 0;
	padding: clamp(1.65rem, 3vw, 2.15rem);
	border: 1px solid #84959966;
	border-radius: 3px 5px 4px 2px;
	background-color: var(--cloth);
	background-image: url("fabric.svg"), linear-gradient(115deg, #fffdf52e, transparent 45%, #334d4a08);
	box-shadow: inset 0 0 0 5px #fffdf51c, inset 0 0 0 6px #53665b10, 1px 3px 4px #344b5014;
}

[card]::before {
	content: "";
	position: absolute;
	inset: 10px;
	z-index: -1;
	border: 1px dashed var(--stitch);
	border-radius: 2px 4px 3px 2px;
	box-shadow: 0 1px 0 #ffffff66;
	pointer-events: none;
}

[card]:nth-child(2) {
	--cloth: #ece1c9;
	--stitch: #9b8665;
	border-radius: 4px 2px 5px 3px;
	background-position: 3px 2px, center;
}

[card]:nth-child(3) {
	--cloth: #dce4d5;
	--stitch: #7a8d71;
	border-radius: 2px 4px 3px 5px;
	background-position: 1px 4px, center;
}

[home-tutorial] {
	display: inline-block;
	margin-top: .85rem;
	padding-block: .35rem;
	font-size: .875rem;
	text-decoration: underline;
}

[card-symbol] {
	flex-shrink: 0;
	font-size: 1.4rem;
	line-height: 1;
}

[card] h2 {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: -.025em;
}

[card] p {
	margin: .75rem 0 0;
	color: var(--text-primary);
	font-size: .95rem;
}

[card] summary,
[card-link] {
	min-height: 44px;
	padding-block: .6rem;
	font-size: .875rem;
	font-weight: 600;
}

[card-link] {
	color: #254e68;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin-top: .75rem;
}

[card] details {
	margin-top: .75rem;
}

[card] summary {
	color: #254e68;
	cursor: pointer;
}

[card] summary:hover {
	text-decoration: underline;
	text-underline-offset: .2em;
}

@media (max-width: 850px) {
	[hero] {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	[home-welcome] {
		max-width: 32rem;
	}

	[home-page] [hero] h1 {
		font-size: clamp(3.2rem, 9vw, 5.25rem);
	}

	[hero] [small] {
		max-width: none;
	}

	[cards] {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	[cards] {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
