:root {
	color-scheme: light;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	margin: 0;
	color: #181818;
	background: #f7f3ea;
}

main {
	width: min(860px, calc(100% - 32px));
	margin: 0 auto;
}

.hero {
	min-height: 82vh;
	display: grid;
	align-content: center;
	gap: 24px;
}

h1 {
	margin: 0;
	font-size: clamp(40px, 8vw, 88px);
	line-height: .94;
	letter-spacing: 0;
}

p {
	line-height: 1.55;
}

form {
	display: flex;
	gap: 10px;
	max-width: 680px;
}

input {
	flex: 1;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #bbb4a7;
	border-radius: 6px;
	font: inherit;
	background: #fffdf7;
}

button,
.link {
	padding: 14px 18px;
	border: 0;
	border-radius: 6px;
	color: white;
	background: #26211a;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0;
}

.results {
	display: grid;
	gap: 12px;
	padding-bottom: 48px;
}

.zine {
	border: 1px solid #ddd4c5;
	border-radius: 8px;
	padding: 16px;
	background: #fffdf7;
}

.zine h2 {
	margin: 0 0 6px;
	font-size: 22px;
}

.meta {
	margin: 0 0 8px;
	color: #625b50;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.top-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 680px;
}

.tag {
	padding: 4px 8px;
	border-radius: 999px;
	background: #ebe3d4;
	color: #26211a;
	font-size: 13px;
	text-decoration: none;
}

.tag span {
	color: #625b50;
}

.empty {
	padding: 32px 0;
	color: #625b50;
}

@media (max-width: 560px) {
	form,
	.topbar {
		flex-direction: column;
		align-items: stretch;
	}

	button,
	.link {
		text-align: center;
	}
}
