:root {
	--bg: #f5f5f7;
	--surface: #ffffff;
	--text: #1a1a1a;
	--muted: #6b7280;
	--border: #e6e6e9;
	--accent: #d9230f;
	--accent-dark: #b81c0c;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111214;
		--surface: #1c1d20;
		--text: #f2f2f3;
		--muted: #9aa0a6;
		--border: #2c2d30;
		--accent: #ff5340;
		--accent-dark: #ff6b5a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
	}
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.site-header {
	display: flex;
	align-items: center;
	padding: 1rem 1.5rem;
}

.site-header .brand {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text);
	letter-spacing: -0.01em;
}

.site-header .brand:hover {
	text-decoration: none;
	color: var(--accent);
}

.page {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
}

h1 {
	font-size: 1.8rem;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
}

/* Search */
.search-form {
	display: flex;
	gap: 0.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.35rem 0.35rem 0.35rem 1.1rem;
	box-shadow: var(--shadow);
}

.search-form input {
	flex: 1;
	border: 0;
	background: transparent;
	font-size: 1rem;
	color: var(--text);
	outline: none;
}

.search-form input::placeholder {
	color: var(--muted);
}

.search-form button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .15s ease;
}

.search-form button:hover {
	background: var(--accent-dark);
}

.search-form button svg {
	width: 1.1rem;
	height: 1.1rem;
}

.bookmarklet-hint {
	margin-top: 1.25rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.bookmarklet-hint a {
	font-weight: 600;
}

/* Profile card */
.profile-card {
	display: flex;
	gap: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.profile-card .avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--border);
	flex-shrink: 0;
}

.profile-card .name {
	margin: 0 0 0.15rem;
	font-size: 1.25rem;
}

.profile-card .handle {
	color: var(--muted);
	font-weight: 500;
}

.profile-card .verdict {
	margin: 0.75rem 0 0;
}

.profile-card .verdict strong {
	color: var(--accent);
}

/* Unknown state */
.empty-state {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 2rem 1.5rem;
	text-align: center;
	color: var(--muted);
}

@media (max-width: 480px) {
	.profile-card {
		flex-direction: column;
		align-items: flex-start;
	}
}
