:root {
	/* School for Advanced Studies palette (purple + yellow) */
	--brand-purple: #3b2160; /* deep purple used in the logo */
	--brand-yellow: #ffd23f; /* bright warm yellow used for CTA */
	--muted: #6b6f76;
	--bg: #f7f9fb;
	--card-bg: #ffffff;
	--radius: 10px;
	--max-width: 980px;
}

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	background: var(--bg);
	color: #102027;
}
.wrap {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 24px;
}
.site-header {
	/* purple header with a subtle gradient */
	background: linear-gradient(90deg, var(--brand-purple), #5b2f7a);
	color: white;
	padding: 28px 0;
	border-bottom: 4px solid rgba(0, 0, 0, 0.06);
}
.site-header h1 {
	margin: 0;
	font-size: 1.6rem;
}
.lead {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, 0.9);
}

.grid {
	display: grid;
	/* single column layout so buttons can expand to available width and avoid overflow */
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 22px;
}
.card {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 18px 20px;
	background: var(--card-bg);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--brand-purple);
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(16, 32, 39, 0.06);
	border: 1px solid rgba(59, 33, 96, 0.06);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
	/* ensure long filenames/wrapping don't overflow the card */
	overflow-wrap: anywhere;
	white-space: normal;
}

/* On larger screens switch to a multi-column layout and let cards size to their content */
@media (min-width: 720px) {
	.grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
	.card {
		/* allow card width to be driven by content within column limits */
		width: auto;
		justify-content: flex-start;
		padding-left: 18px;
		padding-right: 18px;
	}
	.card .label {
		display: block;
		word-break: break-word;
		overflow-wrap: anywhere;
	}
}

.card .label {
	display: block;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.card:focus {
	outline: 3px solid color-mix(in srgb, var(--brand-yellow) 40%, white);
	transform: translateY(-2px);
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(16, 32, 39, 0.12);
}
.card code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
	font-size: 0.9rem;
}

.note {
	margin: 28px 0;
	color: var(--muted);
	font-size: 0.95rem;
}
footer.note code {
	background: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}
