/**
 * GM Theme – logo (4.2.0).
 *
 * Rebuilt from the original logo file:
 * - Wordmark as live text in the website's typography (owner's choice "A"):
 *   Inter with the same font features and letter spacing as the body text,
 *   "Gianluca" Regular (400) like running text, "Maissen" 600 like bold
 *   text on the site. (The old logo used Light 300 + SemiBold, which appear
 *   nowhere else on the site.)
 * - Bird as vector (assets/images/logo-mark.svg), traced 1:1 from the original
 *   (pixel comparison: IoU 99.7 %, no pixel off by more than 50 %).
 * - No background at all: the logo takes the text colour (currentColor), so it
 *   works on white, on the translucent header and on the dark footer.
 *
 * All sizes are in em of the wordmark and were measured on the original:
 * gap text → bird 0.352em (ink), bird 1.1525 × 1.062em, 0.104em below the
 * baseline – the bird sits exactly where it was.
 * Change the size with --gm-brand-size.
 *
 * Markup (parts/header.html, parts/footer.html):
 * <a class="gm-brand"><span class="gm-brand__name"><span class="gm-brand__first">Gianluca</span><span class="gm-brand__last">Maissen</span></span><span class="gm-brand__mark"></span></a>
 */

.gm-brand {
	--gm-brand-size: 1.375rem;

	display: inline-flex;
	align-items: baseline;
	flex: none;
	margin: 0;
	font-family: var(--wp--preset--font-family--inter, Inter, sans-serif);
	font-size: var(--gm-brand-size);
	font-style: normal;
	line-height: 1;
	letter-spacing: -0.006em; /* as the body text (typography.css) */
	white-space: nowrap;
	color: inherit;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}

.gm-brand,
.gm-brand:hover,
.gm-brand:visited {
	color: inherit;
}

.gm-brand__name {
	display: inline-block;
}

.gm-brand__first {
	font-weight: 400;
}

.gm-brand__last {
	font-weight: 600;
}

/* Bird: the SVG is used as a mask, so it is filled with the text colour. */
.gm-brand__mark {
	position: relative;
	top: 0.1039em;
	display: inline-block;
	flex: none;
	width: 1.1525em;
	height: 1.062em;
	/* 0.352em ink gap minus side bearing of the bold "n" (0.067em) and the
	   trailing letter spacing (-0.006em). */
	margin-left: 0.291em;
	background-color: currentColor;
	-webkit-mask: url("../images/logo-mark.svg") center / contain no-repeat;
	mask: url("../images/logo-mark.svg") center / contain no-repeat;
}

.gm-brand:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 2px;
}

/* Footer (4.5.2): large and white on the almost black footer, as on the
   original site (size set in footer.css). */
.gm-brand--footer {
	--gm-brand-size: clamp(1.75rem, 0.9rem + 2.4vw, 3rem);
	color: #f5f5f7;
}

.gm-brand--footer:hover,
.gm-brand--footer:visited {
	color: #f5f5f7;
}
