/*
 * Anonymous GET / first-screen only. These selectors intentionally mirror
 * SiteHeader, Hero, HomeArchive, PostCard and Pagination while remaining
 * scoped to the server snapshot; SPA takeover removes that subtree, so none
 * of these rules can restyle the live application or later client routes.
 */

#glyph-home-snapshot .site {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

#glyph-home-snapshot .site-main {
	flex: 1;
}

#glyph-home-snapshot .site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
}

#glyph-home-snapshot .header-inner {
	width: min(var(--shell-width), 100% - 2rem);
	height: var(--header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

#glyph-home-snapshot .brand {
	flex-shrink: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--color-fg);
}

#glyph-home-snapshot .site-header.light .brand {
	color: #fff;
}

#glyph-home-snapshot .hero {
	position: relative;
	height: 60vh;
	min-height: 22rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-bg-tertiary);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

#glyph-home-snapshot .hero-slogan {
	margin: 0;
	padding: 0 1.5rem;
	text-align: center;
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

#glyph-home-snapshot .home-shell {
	width: min(var(--shell-width), 100% - 2rem);
	margin: 0 auto;
	padding-bottom: 3rem;
}

#glyph-home-snapshot .main-raised {
	padding: 2rem 0;
}

#glyph-home-snapshot .post-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

#glyph-home-snapshot .empty {
	margin: 0;
	color: var(--color-fg-muted);
}

#glyph-home-snapshot .post-card {
	display: flex;
	gap: 1.5rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--color-border);
}

#glyph-home-snapshot .card-body {
	flex: 1;
	min-width: 0;
}

#glyph-home-snapshot .card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem;
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	color: var(--color-fg-muted);
}

#glyph-home-snapshot .meta-sep {
	color: var(--color-fg-faint);
}

#glyph-home-snapshot .meta-cat {
	color: inherit;
	text-decoration: none;
}

#glyph-home-snapshot .meta-cat:hover {
	color: var(--color-accent);
}

#glyph-home-snapshot .card-title {
	margin: 0 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

#glyph-home-snapshot .card-title a {
	color: var(--color-fg);
}

#glyph-home-snapshot .post-card:hover .card-title a {
	color: var(--color-accent);
}

#glyph-home-snapshot .prose.card-excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--color-fg-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#glyph-home-snapshot .card-excerpt p {
	margin-bottom: 0.5em;
}

#glyph-home-snapshot .card-excerpt > *:last-child {
	margin-bottom: 0;
}

#glyph-home-snapshot .card-thumb {
	flex: none;
	align-self: flex-start;
	width: 96px;
	height: 96px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--color-bg-secondary);
}

#glyph-home-snapshot .card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#glyph-home-snapshot .pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 2.5rem;
}

#glyph-home-snapshot .page-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	min-width: 2.1rem;
	height: 2.1rem;
	padding: 0 0.6rem;
	font-size: 0.88rem;
	color: var(--color-fg-secondary);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

#glyph-home-snapshot a.page-item:hover {
	color: var(--color-accent);
	border-color: var(--color-accent-soft);
	background: var(--color-accent-wash);
}

#glyph-home-snapshot .page-num.is-current {
	font-weight: 600;
	color: var(--color-accent);
	background: var(--color-accent-wash);
	border-color: var(--color-accent);
}

#glyph-home-snapshot .page-ellipsis {
	padding: 0 0.25rem;
	color: var(--color-fg-faint);
}

@media (max-width: 720px) {
	#glyph-home-snapshot .hero {
		height: 52vh;
		min-height: 18rem;
	}

	#glyph-home-snapshot .main-raised {
		padding: 1.25rem 0;
	}

	#glyph-home-snapshot .post-card {
		gap: 1rem;
		padding: 1.25rem 0;
	}

	#glyph-home-snapshot .card-thumb {
		width: 72px;
		height: 72px;
	}
}
