/*
 * The leptoskit docs' own components, on top of the leptoskit_docs theme:
 * the home page hero, the gallery of rendered screens, and the brand page.
 */

/* Hero --------------------------------------------------------------------- */

.lk-hero {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 3rem;
	margin: 1rem 0 3.5rem;
}

.lk-hero-copy h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.4rem, 1.3rem + 2.6vw, 3.6rem);
	line-height: 1.02;
}

.lk-hero-copy h1 em {
	font-style: normal;
	background: linear-gradient(120deg, var(--lk-mint), var(--lk-mint-bright));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lk-hero-copy h1 .lk-anchor {
	display: none;
}

.lk-hero-copy > p:not(.lk-hero-actions) {
	max-width: 34rem;
	color: var(--lk-muted);
	font-size: 1.2rem;
}

.lk-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem !important;
}

.lk-button {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1.2rem;
	border: 1px solid var(--lk-line);
	border-radius: 0.7rem;
	background: var(--lk-bg);
	color: var(--lk-heading) !important;
	font-weight: 600;
	text-decoration: none;
	transition:
		transform 0.2s var(--lk-ease),
		box-shadow 0.2s var(--lk-ease),
		border-color 0.2s;
}

.lk-button:hover {
	border-color: var(--lk-ember-warm);
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 -1px var(--lk-ember-warm);
}

.lk-button-primary {
	border-color: transparent;
	background: linear-gradient(180deg, var(--lk-ember-warm), var(--lk-ember));
	color: #fff !important;
	box-shadow: 0 10px 24px -12px rgb(229 48 79 / 0.9);
}

.lk-button-primary:hover {
	border-color: transparent;
	box-shadow: 4px 4px 0 -1px var(--lk-heading);
}

/*
 * The mark, drawn as the layout it stands for: two ember boxes already in
 * place, a dashed slot, and the mint piece of the next release dropping into
 * it as the page loads. Hover and it lifts, ready to land again.
 */
.lk-hero-mark {
	position: relative;
	width: 11rem;
	aspect-ratio: 1;
}

.lk-box {
	position: absolute;
	border-radius: 14%;
}

.lk-box-tall,
.lk-box-square {
	background: linear-gradient(170deg, var(--lk-ember-warm), var(--lk-ember));
	box-shadow: 0 18px 30px -18px rgb(229 48 79 / 0.8);
}

.lk-box-tall {
	inset: 12.5% auto 12.5% 12.5%;
	width: 34.4%;
}

.lk-box-square {
	inset: auto 12.5% 12.5% auto;
	width: 34.4%;
	height: 34.4%;
}

.lk-box-slot {
	inset: 12.5% 12.5% auto auto;
	width: 34.4%;
	height: 34.4%;
	border: 2px dashed var(--lk-line);
}

.lk-box-ota {
	inset: 12.5% 12.5% auto auto;
	width: 34.4%;
	height: 34.4%;
	background: linear-gradient(135deg, var(--lk-mint-bright), var(--lk-mint));
	box-shadow: 0 16px 28px -14px rgb(20 191 155 / 0.9);
	transform: translate(4.7%, -4.7%) rotate(-12deg);
	animation: lk-arrive 1.1s 0.25s cubic-bezier(0.3, 1.5, 0.5, 1) both;
	transition: transform 0.45s var(--lk-ease);
}

.lk-hero-mark:hover .lk-box-ota {
	transform: translate(30%, -60%) rotate(-24deg);
}

@keyframes lk-arrive {
	from {
		transform: translate(70%, -170%) rotate(18deg);
	}
}

/* Gallery ------------------------------------------------------------------ */

.lk-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 1.5rem 1.25rem;
	margin: 2rem 0;
}

.lk-shot {
	margin: 0;
}

.lk-shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--lk-line);
	border-radius: 1.1rem !important;
	background: var(--lk-surface);
	box-shadow: var(--lk-shadow);
	transition: transform 0.3s var(--lk-ease);
}

.lk-shot:hover img {
	transform: translateY(-4px) rotate(-0.6deg);
}

.lk-shot-wide {
	grid-column: 1 / -1;
}

.lk-shot figcaption {
	margin-top: 0.75rem;
	color: var(--lk-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.lk-shot figcaption strong {
	display: block;
	color: var(--lk-heading);
	font-family: var(--lk-font-display);
	font-size: 1rem;
}

.lk-shot figcaption p {
	display: inline;
	margin: 0;
}

/* Brand -------------------------------------------------------------------- */

.lk-logos,
.lk-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 2rem;
}

.lk-logo-tile {
	display: grid;
	place-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 1.5rem 1rem 1rem;
	border: 1px solid var(--lk-line);
	border-radius: var(--lk-radius);
	background: var(--lk-paper);
}

.lk-logo-tile img {
	max-height: 4.5rem;
	border-radius: 0 !important;
}

.lk-logo-tile figcaption {
	color: #6c6377;
	font-family: var(--lk-font-mono);
	font-size: 0.78rem;
}

.lk-on-ink {
	border-color: #342b41;
	background: var(--lk-ink);
}

.lk-on-ink figcaption {
	color: #a69daf;
}

.lk-swatch {
	display: grid;
	gap: 0.15rem;
	padding: 0.6rem;
	border: 1px solid var(--lk-line);
	border-radius: var(--lk-radius);
	background: var(--lk-bg);
	font-size: 0.9rem;
}

.lk-swatch-chip {
	height: 4.5rem;
	margin-bottom: 0.45rem;
	border-radius: 0.5rem;
	box-shadow: inset 0 0 0 1px rgb(22 17 31 / 0.08);
}

.lk-swatch strong {
	color: var(--lk-heading);
}

.lk-swatch code {
	justify-self: start;
}

/* Narrow screens ------------------------------------------------------------ */

@media (max-width: 54rem) {
	.lk-hero {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		margin-top: 0;
	}

	.lk-hero-mark {
		width: 6.5rem;
	}

	.lk-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem 0.9rem;
	}
}
