/* Base */
body {
	font-family: sans-serif;
	line-height: 1.8;
	margin: 0;
}

main {
	max-width: 800px;
	margin: 0 auto;
	padding: 32px 20px;
}

pre {
	overflow-x: auto;
	padding: 16px;
	background: #eee;
}

img {
	max-width: 100%;
}

/* Site header */
.site-header {
	background: #1f2937;
	color: #fff;
}

.site-header__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header a {
	color: inherit;
	text-decoration: none;
}

.site-header__logo {
	font-weight: 700;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-header__github {
	display: inline-flex;
	padding: 2px;
}

.site-header__github svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Accessibility */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Article likes */
.like {
	margin-top: 48px;
}

.like__button {
	padding: 8px 12px;
	font: inherit;
	cursor: pointer;
}

.like__button:disabled {
	cursor: wait;
}

.like__message {
	min-height: 1.8em;
	margin: 8px 0 0;
}
