:root {
	--color-page: #f5f5f7;
	--color-surface: #ffffff;
	--color-ink: #111111;
	--color-muted: #6e6e73;
	--color-line: #d9d9de;
	--color-soft-line: #ececf0;
	--color-accent: #0071e3;
	--color-accent-hover: #005bb8;
	--shadow-card: 0 18px 50px rgba(0, 0, 0, 0.06);
	--liquid-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
	--liquid-glass-border: rgba(255, 255, 255, 0.68);
	--liquid-glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	--radius: 8px;
	--max-width: 1320px;
	--header-height: 58px;
	font-family: "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-page);
	color: var(--color-ink);
	font-family: inherit;
	text-rendering: geometricPrecision;
}

body.wallpaper-share-site {
	background:
		radial-gradient(circle at 16% 8%, rgba(0, 113, 227, 0.1), transparent 30%),
		radial-gradient(circle at 84% 18%, rgba(123, 220, 181, 0.16), transparent 32%),
		var(--color-page);
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	backdrop-filter: saturate(180%) blur(18px);
}

.site-header__inner {
	width: min(var(--max-width), calc(100% - 40px));
	min-height: var(--header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.brand__mark {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 28% 24%, #fff 0 7%, transparent 8%),
		linear-gradient(145deg, #111, #707074);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 13px;
	color: var(--color-muted);
}

.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--color-ink);
}

.nav-toggle {
	display: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-direction: column;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 1px;
	background: var(--color-ink);
}

.site-main {
	min-height: calc(100vh - var(--header-height));
}

.hero,
.archive-head {
	width: min(var(--max-width), calc(100% - 40px));
	margin: 0 auto;
	padding: 86px 0 42px;
}

.hero__content,
.archive-head {
	max-width: 820px;
}

.hero,
.archive-head,
.filter-area {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--liquid-glass-border);
	border-radius: 28px;
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
}

.hero,
.archive-head {
	margin-top: 28px;
	padding: 64px 42px 42px;
}

.filter-area {
	padding: 16px;
}

.archive-head--center {
	text-align: center;
}

.archive-head--left {
	max-width: var(--max-width);
	text-align: left;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--color-accent);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.hero h1,
.archive-head h1,
.single-wallpaper__header h1 {
	margin: 0;
	font-size: clamp(38px, 6vw, 76px);
	line-height: 1.02;
	font-weight: 700;
}

.hero p:not(.eyebrow),
.archive-head p:not(.eyebrow),
.single-wallpaper__header p {
	max-width: 720px;
	margin: 18px 0 0;
	color: var(--color-muted);
	font-size: clamp(17px, 2vw, 22px);
	line-height: 1.55;
}

.filter-area {
	width: min(var(--max-width), calc(100% - 40px));
	margin: 18px auto 28px;
	display: grid;
	gap: 14px;
}

.category-search {
	display: grid;
	grid-template-columns: minmax(220px, 420px) auto;
	gap: 10px;
	align-items: center;
	justify-content: start;
}

.category-search input[type="search"] {
	width: 100%;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	color: var(--color-ink);
	font: inherit;
	font-size: 14px;
	outline: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-search input[type="search"]:focus {
	border-color: rgba(0, 113, 227, 0.55);
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.filter-bar {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 0 10px;
	scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
	display: none;
}

.filter-pill,
.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 14px;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--color-muted);
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-pill:hover,
.filter-pill:focus-visible,
.filter-pill.is-active,
.pill:hover,
.pill:focus-visible {
	border-color: rgba(0, 113, 227, 0.35);
	background: #fff;
	color: var(--color-accent);
}

.wallpaper-section {
	width: min(var(--max-width), calc(100% - 40px));
	margin: 0 auto;
	padding: 0 0 80px;
}

.wallpaper-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.wallpaper-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--liquid-glass-border);
	border-radius: 22px;
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.wallpaper-card::after,
.hero::after,
.archive-head::after,
.filter-area::after,
.empty-state::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 42%);
	opacity: 0.7;
}

.wallpaper-card > *,
.hero > *,
.archive-head > *,
.filter-area > *,
.empty-state > * {
	position: relative;
	z-index: 1;
}

.wallpaper-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.86);
	box-shadow: 0 28px 76px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.wallpaper-card__image {
	position: relative;
	display: block;
	aspect-ratio: 9 / 14;
	flex: 0 0 auto;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.74), transparent 44%),
		linear-gradient(135deg, rgba(240, 246, 255, 0.94), rgba(245, 247, 250, 0.72) 48%, rgba(236, 245, 241, 0.86)),
		#f1f1f3;
}

.wallpaper-card__image img {
	display: block;
}

.wallpaper-card__image-bg {
	position: absolute;
	inset: -9%;
	z-index: 0;
	width: 118%;
	height: 118%;
	object-fit: cover;
	object-position: center;
	filter: blur(18px) saturate(1.18);
	opacity: 0.7;
	transform: scale(1.03);
}

.wallpaper-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 34%),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
}

.wallpaper-card__image-main {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: filter 0.45s ease;
}

.wallpaper-card:hover .wallpaper-card__image-main {
	filter: saturate(1.06) contrast(1.02);
}

.wallpaper-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, #f8f8fa, #e5e5ea 48%, #ffffff),
		#f4f4f6;
	color: #8e8e93;
	font-size: clamp(52px, 8vw, 108px);
	font-weight: 700;
}

.wallpaper-card__body {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	padding: 14px;
}

.term-row {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 0;
}

.term-row .pill {
	min-height: 26px;
	padding: 5px 10px;
	font-size: 12px;
	background: #f8f8fa;
}

.wallpaper-card h2 {
	flex: 0 0 auto;
	margin: 12px 0 0;
	font-size: 17px;
	line-height: 1.24;
	font-weight: 700;
}

.wallpaper-card h2 a:hover,
.post-list__item h2 a:hover {
	color: var(--color-accent);
}

.wallpaper-card p {
	flex: 0 0 auto;
	margin: 8px 0 0;
	color: var(--color-muted);
	font-size: 13px;
	line-height: 1.48;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wallpaper-card__meta {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--color-muted);
	font-size: 12px;
}

.wallpaper-card__meta span {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f5f5f7;
}

.wallpaper-card__actions {
	flex: 0 0 auto;
	margin-top: auto;
	padding-top: 18px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 17px;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: #fff;
	color: var(--color-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(0, 113, 227, 0.3);
	color: var(--color-accent);
}

.button--primary {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
	background: var(--color-accent-hover);
	color: #fff;
}

.button--full {
	width: 100%;
}

.single-wallpaper {
	position: relative;
	width: min(var(--max-width), calc(100% - 40px));
	margin: 0 auto;
	padding: 70px 0 90px;
}

.single-wallpaper::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 20% 24%, rgba(0, 113, 227, 0.14), transparent 26%),
		radial-gradient(circle at 76% 10%, rgba(255, 255, 255, 0.85), transparent 24%),
		radial-gradient(circle at 68% 78%, rgba(123, 220, 181, 0.14), transparent 30%);
}

.single-wallpaper__header {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: end;
	margin-bottom: 34px;
	padding: 28px;
	overflow: hidden;
	border: 1px solid var(--liquid-glass-border);
	border-radius: 24px;
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
}

.single-wallpaper__header::after,
.single-wallpaper__media::after,
.prose::after,
.download-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 38%);
	opacity: 0.7;
	z-index: 0;
}

.single-wallpaper__header > *,
.single-wallpaper__media > *,
.prose > *,
.download-panel > * {
	position: relative;
	z-index: 1;
}

.single-wallpaper__media {
	display: grid;
	position: relative;
	place-items: center;
	width: min(100%, 560px);
	aspect-ratio: 9 / 16;
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid var(--liquid-glass-border);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.42);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(22px) saturate(180%);
	-webkit-backdrop-filter: blur(22px) saturate(180%);
}

.single-wallpaper__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-wallpaper__media .wallpaper-placeholder {
	width: 100%;
	height: 100%;
}

.single-wallpaper__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 28px;
	margin-top: 28px;
	align-items: start;
}

.prose,
.download-panel,
.post-list__item,
.empty-state {
	border: 1px solid var(--color-soft-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	box-shadow: var(--shadow-card);
}

.prose {
	position: relative;
	overflow: hidden;
	padding: 30px;
	color: #1d1d1f;
	font-size: 16px;
	line-height: 1.8;
	border-color: var(--liquid-glass-border);
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(26px) saturate(180%);
	-webkit-backdrop-filter: blur(26px) saturate(180%);
}

.prose > *:first-child {
	margin-top: 0;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.download-panel {
	position: sticky;
	top: calc(var(--header-height) + 22px);
	overflow: hidden;
	padding: 22px;
	border-color: var(--liquid-glass-border);
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(26px) saturate(180%);
	-webkit-backdrop-filter: blur(26px) saturate(180%);
}

.download-panel h2 {
	margin: 0 0 16px;
	font-size: 20px;
}

.download-panel dl {
	margin: 0 0 20px;
}

.download-panel dl div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-soft-line);
}

.download-panel dt {
	color: var(--color-muted);
	font-size: 13px;
}

.download-panel dd {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.muted {
	color: var(--color-muted);
}

.pagination-wrap {
	margin-top: 40px;
}

.pagination-wrap ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination-wrap a,
.pagination-wrap span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: #fff;
	color: var(--color-muted);
	font-size: 14px;
}

.pagination-wrap .current {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

.empty-state {
	position: relative;
	overflow: hidden;
	grid-column: 1 / -1;
	padding: 42px;
	text-align: center;
	border-color: var(--liquid-glass-border);
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	backdrop-filter: blur(26px) saturate(180%);
	-webkit-backdrop-filter: blur(26px) saturate(180%);
}

.empty-state h2 {
	margin: 0;
	font-size: 26px;
}

.empty-state p {
	margin: 12px auto 0;
	max-width: 560px;
	color: var(--color-muted);
	line-height: 1.6;
}

.post-list {
	display: grid;
	gap: 14px;
}

.post-list__item {
	padding: 24px;
}

.post-list__item h2 {
	margin: 0;
	font-size: 22px;
}

.post-list__item p {
	margin: 10px 0 0;
	color: var(--color-muted);
	line-height: 1.6;
}

.site-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	color: var(--color-muted);
	font-size: 12px;
}

.site-footer__inner {
	width: min(var(--max-width), calc(100% - 40px));
	margin: 0 auto;
	padding: 24px 0;
	display: flex;
	justify-content: flex-start;
	gap: 18px;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 1180px) {
	.wallpaper-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.single-wallpaper__media {
		width: min(100%, 520px);
	}

	.single-wallpaper__body {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

@media (max-width: 920px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.hero,
	.archive-head {
		padding-top: 64px;
	}

	.wallpaper-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.single-wallpaper__header,
	.single-wallpaper__body {
		grid-template-columns: 1fr;
	}

	.download-panel {
		position: static;
	}
}

@media (max-width: 680px) {
	:root {
		--header-height: 54px;
	}

	.site-header__inner,
	.hero,
	.archive-head,
	.filter-bar,
	.filter-area,
	.wallpaper-section,
	.single-wallpaper,
	.site-footer__inner {
		width: min(100% - 28px, var(--max-width));
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 14px 14px;
		background: rgba(255, 255, 255, 0.96);
		border-bottom: 1px solid var(--color-soft-line);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__menu {
		display: contents;
	}

	.site-nav a {
		min-height: 42px;
		display: flex;
		align-items: center;
		border-bottom: 1px solid var(--color-soft-line);
	}

	.hero,
	.archive-head {
		padding: 46px 20px 30px;
		border-radius: 22px;
	}

	.filter-area {
		padding: 14px;
		border-radius: 22px;
	}

	.hero h1,
	.archive-head h1,
	.single-wallpaper__header h1 {
		font-size: 40px;
	}

	.wallpaper-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.wallpaper-card {
		display: flex;
	}

	.wallpaper-card__image {
		aspect-ratio: 9 / 14;
	}

	.wallpaper-card__body {
		padding: 14px;
	}

	.wallpaper-card h2 {
		font-size: 17px;
	}

	.wallpaper-card p {
		-webkit-line-clamp: 2;
	}

	.wallpaper-card__actions {
		padding-top: 12px;
	}

	.button {
		min-height: 38px;
		padding: 9px 14px;
		font-size: 13px;
	}

	.category-search {
		grid-template-columns: 1fr;
	}

	.prose,
	.download-panel,
	.empty-state {
		padding: 20px;
	}

	.single-wallpaper {
		padding-top: 44px;
	}

	.single-wallpaper__media {
		width: min(100%, 430px);
	}

	.site-footer__inner {
		flex-direction: column;
	}
}

@media (max-width: 420px) {
	.wallpaper-grid {
		grid-template-columns: 1fr;
	}

	.term-row .pill,
	.wallpaper-card__meta {
		display: none;
	}
}
