/* Landing page: a grid of theme cards. Same palette as the demo bar. */
:root {
	--landing-bg: #f4f5f7;
	--landing-card: #fff;
	--landing-fg: #14161a;
	--landing-muted: #5b616e;
	--landing-line: #e2e4e9;
	--landing-chip: #eef0f3;
	--landing-accent: #f5b301;
	--landing-accent-fg: #14161a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--landing-bg: #0e0f12;
		--landing-card: #181a1f;
		--landing-fg: #f3f4f6;
		--landing-muted: #9ca3af;
		--landing-line: #2c3038;
		--landing-chip: #23262d;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body.wpruby-landing {
	margin: 0;
	background: var(--landing-bg);
	color: var(--landing-fg);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wpruby-landing a {
	color: inherit;
}

.wpruby-landing__header,
.wpruby-landing__grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.wpruby-landing__header {
	padding-top: 56px;
	padding-bottom: 32px;
}

.wpruby-landing__header h1 {
	margin: 0 0 8px;
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.15;
}

.wpruby-landing__header p {
	max-width: 60ch;
	margin: 0;
	color: var(--landing-muted);
}

.wpruby-landing__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 24px;
	padding-bottom: 64px;
}

.wpruby-landing__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--landing-line);
	border-radius: 12px;
	background: var(--landing-card);
}

.wpruby-landing__shot {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--landing-chip);
	border-bottom: 1px solid var(--landing-line);
}

.wpruby-landing__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.wpruby-landing__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.wpruby-landing__body h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
}

.wpruby-landing__body h2 a {
	text-decoration: none;
}

.wpruby-landing__body p {
	margin: 0;
	color: var(--landing-muted);
}

.wpruby-landing__demos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpruby-landing__demos a {
	display: block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--landing-chip);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wpruby-landing__demos a:hover {
	background: var(--landing-line);
}

.wpruby-landing__buy {
	align-self: flex-start;
	margin-top: auto;
	padding: 8px 16px;
	border-radius: 6px;
	background: var(--landing-accent);
	color: var(--landing-accent-fg) !important;
	font-weight: 700;
	text-decoration: none;
}

.wpruby-landing__buy:hover {
	filter: brightness(1.08);
}

.wpruby-landing a:focus-visible {
	outline: 2px solid var(--landing-accent);
	outline-offset: 2px;
}
