/* /faces (faces.html, filled by faces/page.ts): every collector wearing a
   muse as their OpenSea picture, each a big card. The shell is site.css and
   the face's hexagon header.css .av-hex; this is the page's own. */

main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px var(--pad) calc(56px + env(safe-area-inset-bottom));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}
.intro {
	display: grid;
	gap: 8px;
}
.f-count {
	margin: 4px 0 0;
	font-size: 18px;
	color: var(--soft);
}
.f-count b {
	color: var(--gold-hi);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
section h2 {
	margin: 0;
	font: italic 600 clamp(28px, 6.5vw, 40px) / 1.08 var(--serif);
	letter-spacing: -0.02em;
	text-wrap: balance;
}
section h2 em {
	color: var(--gold);
}

/* The faces: three to a row, two on a tablet, one on a phone. While there are
   only a few (.few) every card is as big as the lead; otherwise the lead, the
   rarest muse, spans two columns. */
.faces {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
	.faces {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.faces:not(.few) .fc.lead {
		grid-column: span 2;
	}
}
@media (min-width: 1000px) {
	.faces:not(.few) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.faces.few:has(> .fc:only-child) {
		grid-template-columns: minmax(0, 560px);
		justify-content: center;
	}
}

.fc {
	--tg: linear-gradient(100deg, var(--gold-hi), var(--gold));
	min-width: 0;
}
.fc-in {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 8px;
	padding: 0 20px 22px;
	border-radius: 24px;
	background: var(--card);
	text-align: center;
}
/* A soft light from under the face in its tier's colors. */
.fc-in::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: radial-gradient(
		60% 45% at 50% 30%,
		var(--glow, rgba(var(--gold-rgb), 0.12)),
		transparent 70%
	);
	pointer-events: none;
}
.fc-banner {
	display: block;
	width: calc(100% + 40px);
	height: 120px;
	margin: 0 -20px;
	background: linear-gradient(
		135deg,
		hsl(var(--h, 40) 40% 18%),
		hsl(calc(var(--h, 40) + 40) 35% 10%)
	);
}
.fc-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fc-face {
	display: block;
	margin-top: -96px;
	border-radius: 50%;
}
.fc .fc-av {
	--av-ring: 5px;
	display: block;
	overflow: hidden;
	border-radius: 50%;
	width: 192px;
	height: 192px;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}
.faces.few .fc .fc-av,
.fc.lead .fc-av {
	--av-ring: 6px;
	width: min(260px, 64vw);
	height: min(260px, 64vw);
}
.faces.few .fc-face,
.fc.lead .fc-face {
	margin-top: -110px;
}
/* The ring takes the muse's tier colors in place of plain gold, once the
   picture is in (it shimmers until then). */
.fc .fc-av.av-hex:not(.loading) {
	background: var(--tg);
	animation: none;
}
.fc-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fc-who {
	margin-top: 6px;
	color: var(--bone);
	text-decoration: none;
	max-width: 100%;
}
.fc-name {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 600 26px / 1.15 var(--serif);
	letter-spacing: -0.01em;
}
.fc-who:hover .fc-name {
	color: var(--gold-hi);
}
.fc-bio {
	margin: 0;
	max-width: 44ch;
	font-size: 15px;
	line-height: 1.5;
	color: var(--soft);
	text-wrap: pretty;
}
.fc-muse {
	margin: 4px 0 0;
	font-size: 16px;
	color: var(--soft);
}
.fc-muse a {
	color: var(--gold-hi);
	font-weight: 600;
	text-decoration-color: var(--underline);
	text-underline-offset: 3px;
}
.fc-tier {
	margin: 0;
	font-size: 14px;
	color: var(--dim);
	font-variant-numeric: tabular-nums;
}
.fc-go {
	margin: 8px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

/* The cards' skeletons while the faces load. */
.fc-skel .fc-in {
	min-height: 360px;
}
.fc-skel .fc-av {
	display: block;
	width: 192px;
	height: 192px;
	margin-top: -96px;
}
.fc-skel .skel-line {
	margin: 4px auto;
}

.f-none {
	display: grid;
	gap: 8px;
	padding: 28px 20px;
	text-align: center;
}
.f-none p {
	margin: 0;
	color: var(--soft);
}

/* Wear yours: three steps and the way to OpenSea's settings. */
.wear {
	display: grid;
	gap: 20px;
	padding: 24px 20px;
}
.steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
	display: grid;
	gap: 14px;
}
@media (min-width: 760px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.steps li {
	counter-increment: step;
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(var(--gold-rgb), 0.06);
}
.steps li b {
	color: var(--bone);
	font-size: 16px;
}
.steps li b::before {
	content: counter(step) ". ";
	color: var(--gold);
}
.steps li span {
	font-size: 15px;
	line-height: 1.5;
	color: var(--soft);
}
.wear-go {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
