/* Part of the component CSS split: one file per component.
   Loaded by views/layout.templ in cascade order after tokens.css.
   Component: see views/components/ (same base name). */

/* Information blocks: the grid sits in the same centered content column
   as the prose (48rem) so every content block shares one axis. Two
   columns per row: four-up squeezed each card to a ~8rem text column
   where words wrapped every one or two words — unreadable. */
.card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	max-width: 48rem;
	margin: 0 auto clamp(3.5rem, 8vw, 7rem);
	border-top: 1px solid var(--border);
	border-left: 1px solid var(--border);
}

.card,
.panel,
.prose {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
}

.card {
	position: relative;
	margin: -1px 0 0 -1px;
	padding: 2rem;
	transition: background-color 160ms ease, color 160ms ease;
}

.card:hover { background: var(--bg-subtle); }

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0 0 2.5rem;
	border: 1px solid var(--border);
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 1rem;
}

.card h2,
.panel h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 2vw, 2rem);
	font-weight: 550;
	letter-spacing: -.03em;
	line-height: 1.05;
}

.card p {
	max-width: 35rem;
	margin: 0;
	color: var(--fg-muted);
	text-align: left;
	text-wrap: pretty;
}
