/* EitherDIY custom tweaks — kept in a separate static file
   so Hugo's template engine never has to parse it. */

.menu-toggle:before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
	vertical-align: middle;
	margin-right: 8px;
}
.toggled .menu-toggle:before {
	box-shadow: none;
	background: transparent;
}
.menu-toggle {
	background: var(--color-mint) !important;
	border: 2px solid var(--color-ink);
	border-radius: var(--radius);
	padding: 8px 18px !important;
	margin: 12px 0;
}

.generate-back-to-top {
	font-size: 20px;
	border-radius: 50%;
	position: fixed;
	bottom: 30px;
	right: 20px;
	line-height: 52px;
	width: 52px;
	height: 52px;
	text-align: center;
	z-index: 10;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
a.generate-back-to-top:before {
	font-family: inherit;
	content: '\2191';
	font-weight: 700;
	font-size: 24px;
}
a.generate-back-to-top, a.generate-back-to-top:focus, a.generate-back-to-top:hover {
	background-color: var(--color-accent);
	color: #fff;
}

.entry-title {
	margin-bottom: 0;
	font-weight: 800;
}
#typewriter-tagline {
	border-right: 2px solid var(--color-accent);
	padding-right: 3px;
	animation: eitherdiy-blink 0.8s step-end infinite;
}
@keyframes eitherdiy-blink {
	50% { border-color: transparent; }
}

/* Fix "See Also" related posts: was a non-wrapping flex row
   squeezing every item into one row. Switch to a real grid. */
.post-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
	gap: 1.5em !important;
	margin: 0 !important;
	text-align: center;
}
.post-list li {
	flex-basis: auto !important;
	margin-bottom: 0 !important;
}

/* Logo: mint brand background as a badge behind the icon + wordmark */
.site-logo {
	background: var(--color-mint);
	border-radius: var(--radius);
	padding: 6px 14px;
	display: inline-flex;
	align-items: center;
}
