.svg-link {
	display: inline-block;
	width: 96px;
	height: 48px;
	box-sizing: border-box;
	border-radius: 8px;
	overflow: hidden;
}

/* the anchor fills the whole tile, so every pixel is clickable */
.svg-link > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 8px;
	box-sizing: border-box;
	border-radius: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease-in-out;
}

/* scale the svg to fit the box, keeping its aspect ratio */
.svg-link > a > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.svg-link > a:hover {
	background-color: rgba(0, 0, 0, 0.06);
}

/* keyboard focus must stay visible */
.svg-link > a:focus-visible {
	outline: 2px solid #3874cb;
	outline-offset: -2px;
}

@media (prefers-color-scheme: dark) {
	.svg-link > a:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
}

.masthead {
	display: flex;
	align-items: stretch;	/* the link column is as tall as the logo */
	gap: 24px;
}

.masthead-logo {
	display: block;
	height: auto;
	max-width: 100%;
}

.masthead-links {
	display: flex;
	flex-direction: column;
	justify-content: center;	/* centre the pair within the logo's height */
	gap: 6px;			/* the only space between git and sai */
}
