/*
Products page: the intro (intro.css), then the "Our products" divider over a grid of apps. Each app is a card on its own grained colour block
with a hard black shadow: its logo as the heading, what it does, then an action bar with its kind on the left
and a "Check it out" link to its site on the right.
*/
.products .divider {
	margin-bottom: 2rem;
}

.apps {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	gap: 2rem;
	margin: 0 0 4rem;
	padding: 0 8px 8px 0; /* Room for the cards' shadows. */
	list-style: none;
}

.app {
	--app-ink: var(--color-porcelain);

	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: none; /* layout.css caps every li at the reading width; the grid sizes the cards. */
	margin: 0;
	padding: 2.25rem;
	border: 3px solid var(--color-spicy-black);
	box-shadow: 8px 8px 0 var(--color-spicy-black);
	background-image: url("/assets/images/noise.svg");
	background-repeat: repeat;
	color: var(--app-ink);
}

.app--burvo {
	background-color: var(--color-blueprint);
}

/* A light colour block takes dark ink: set --app-ink: var(--color-spicy-black) beside its background. */

/* The logo is the card's heading; its alt text names the app. */
.app__logo {
	margin: 0;

	img {
		display: block;
		width: auto;
		max-width: 100%;
		height: 7.5rem;
		object-fit: contain;
		object-position: left center;
	}
}

.app__text {
	max-width: none;
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.5;
}

/* The action bar sits at the card's foot, so every card's bar lines up whatever the text's length. */
.app__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1.5px solid var(--app-ink);
}

.app__kind {
	padding: 0.25rem 0.6rem;
	border: 1.5px solid var(--app-ink);
	font-family: "Oswald", "Oswald Fallback", sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.app__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.55rem 1rem;
	border: 2px solid var(--color-spicy-black);
	background-color: var(--color-spicy-black);
	color: var(--color-porcelain);
	font-family: "Oswald", "Oswald Fallback", sans-serif;
	font-size: 1.1rem;
	text-decoration: none;

	&:hover {
		background-color: var(--color-porcelain);
		color: var(--color-spicy-black);
	}

	&:focus-visible {
		outline: 3px solid var(--color-jasmine);
		outline-offset: 3px;
	}
}

/* The new-tab icon: a box with an arrow leaving it. */
.app__icon {
	width: 1.1rem;
	height: 1.1rem;
}
