:root {
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", Arial, sans-serif;
	background: #f8fafc;
	color: #0f172a;
}

header {
	padding: 24px 32px;
	background: #0f172a;
	color: #e2e8f0;
}

header h1 {
	margin: 0;
	font-size: 24px;
	letter-spacing: -0.02em;
}

header p {
	margin: 8px 0 0;
	color: #cbd5e1;
}

main {
	max-width: 960px;
	margin: 28px auto 48px;
	padding: 0 20px;
}

.grid {
	display: grid;
	gap: 16px;
}

.card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	display: grid;
	gap: 10px;
	align-items: center;
}

.card header {
	padding: 0;
	background: none;
	color: inherit;
}

.card h2 {
	margin: 0;
	font-size: 18px;
}

.meta {
	font-size: 13px;
	color: #475569;
}

.code-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

code {
	padding: 8px 10px;
	border-radius: 10px;
	background: #0f172a;
	color: #e2e8f0;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	white-space: nowrap;
	overflow-x: auto;
}

.actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

button,
a.copy-link {
	border: 1px solid #0ea5e9;
	background: #0ea5e9;
	color: #0b1224;
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 120ms ease, box-shadow 120ms ease;
	box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

button:hover,
a.copy-link:hover {
	transform: translateY(-1px);
}

button:active,
a.copy-link:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18);
}

@media (max-width: 640px) {
	code {
		width: 100%;
	}
}
