/* ==========================================================================
   旅集 LÜJI — 主样式
   ========================================================================== */

:root {
	--ink: #14120f;
	--ink-soft: #3a3630;
	--paper: #f6f2ea;
	--paper-deep: #eae3d5;
	--line: rgba(20, 18, 15, 0.14);
	--line-strong: rgba(20, 18, 15, 0.3);
	--accent: #a8622f;
	--muted: #726b60;
	--shell: min(1460px, calc(100% - clamp(2.2rem, 7vw, 8rem)));
	--gap: clamp(1rem, 1.9vw, 1.9rem);
	--ease: cubic-bezier(0.22, 0.61, 0.24, 1);
	--serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
	--sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
	overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

.shell--narrow {
	width: min(760px, calc(100% - clamp(2.2rem, 7vw, 8rem)));
	margin-inline: auto;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	background: var(--ink);
	color: var(--paper);
	padding: 0.6rem 1rem;
}

.skip-link:focus {
	top: 1rem;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ---------- 小标题 ---------- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0 0 1.1rem;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow::before {
	content: "";
	display: block;
	width: 2.2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

/* ---------- 页头 ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 80;
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
	border-bottom: 1px solid transparent;
}

body:not(.is-front) .site-header,
.site-header.is-scrolled {
	background: rgba(246, 242, 234, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--line);
}

.site-header__inner {
	width: var(--shell);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 1.1rem;
}

body.is-front .site-header:not(.is-scrolled) {
	color: #f4efe5;
}

body.is-front .site-header:not(.is-scrolled) .site-nav a {
	color: #f4efe5;
}

body.is-front .site-header:not(.is-scrolled) .brand__mark {
	border-color: rgba(244, 239, 229, 0.5);
	color: #f4efe5;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--line-strong);
	font-family: var(--serif);
	font-size: 1.05rem;
	transition: inherit;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	min-width: 0;
}

.brand__title {
	font-family: var(--serif);
	font-size: 1.02rem;
	letter-spacing: 0.08em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand__sub {
	margin-top: 0.3rem;
	font-size: 0.56rem;
	letter-spacing: 0.34em;
	opacity: 0.55;
}

.site-nav__list,
.footer-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.site-nav a {
	position: relative;
	display: inline-block;
	padding: 0.4rem 0;
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	color: var(--ink-soft);
	transition: color 0.3s var(--ease);
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	padding: 0.6rem;
}

.nav-toggle__bar {
	width: 24px;
	height: 1px;
	background: currentColor;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .nav-toggle__bar:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- 首页 hero ---------- */

.hero {
	position: relative;
	display: grid;
	min-height: 100svh;
	padding-top: 6rem;
	overflow: hidden;
	background: var(--paper-deep);
}

.hero__media {
	position: absolute;
	inset: 0;
	background-image: var(--hero-image, none);
	background-size: cover;
	background-position: center;
	transition: transform 12s var(--ease);
}

.hero--image .hero__media {
	animation: hero-zoom 18s var(--ease) forwards;
}

.hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.18) 38%, rgba(10, 9, 8, 0.72) 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: var(--shell);
	margin-inline: auto;
	align-self: end;
	padding-bottom: clamp(4.5rem, 11vh, 9rem);
	color: var(--paper);
}

.hero:not(.hero--image) .hero__inner {
	color: var(--ink);
}

.hero--image .eyebrow {
	color: rgba(244, 239, 229, 0.72);
}

.hero__title {
	max-width: 18ch;
	font-size: clamp(2.6rem, 6.6vw, 6rem);
	line-height: 1.06;
	letter-spacing: 0.01em;
}

.hero__desc {
	max-width: 46ch;
	margin-top: 1.6rem;
	font-size: 0.98rem;
	line-height: 1.9;
	color: rgba(244, 239, 229, 0.78);
}

.hero:not(.hero--image) .hero__desc {
	color: var(--muted);
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.6rem;
	z-index: 2;
	width: 1px;
	height: 3.2rem;
	background: rgba(244, 239, 229, 0.35);
	transform: translateX(-50%);
	overflow: hidden;
}

.hero__scroll::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--paper);
	animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes hero-zoom {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

@keyframes scroll-line {
	0% {
		transform: translateY(-100%);
	}
	60%,
	100% {
		transform: translateY(100%);
	}
}

/* ---------- 按钮与链接 ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 2.2rem;
	padding: 0.95rem 1.7rem;
	border: 1px solid rgba(244, 239, 229, 0.55);
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hero:not(.hero--image) .btn,
.not-found .btn {
	border-color: var(--line-strong);
}

.btn:hover {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
}

.hero:not(.hero--image) .btn:hover,
.not-found .btn:hover {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 1.8rem;
	font-size: 0.78rem;
	letter-spacing: 0.2em;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.35rem;
	transition: gap 0.3s var(--ease), opacity 0.3s var(--ease);
}

.link-arrow:hover {
	gap: 1.1rem;
	opacity: 0.7;
}

/* ---------- 区块 ---------- */

.section {
	padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section--collections {
	padding-top: clamp(3.5rem, 7vw, 6rem);
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	padding-bottom: 1.7rem;
	margin-bottom: clamp(2rem, 4vw, 3.4rem);
	border-bottom: 1px solid var(--line);
}

.section__head .eyebrow {
	margin-bottom: 0.9rem;
	flex-basis: 100%;
}

.section__title {
	font-size: clamp(1.8rem, 3.6vw, 3rem);
	letter-spacing: 0.02em;
}

.section__more {
	font-size: 0.76rem;
	letter-spacing: 0.2em;
	color: var(--muted);
	transition: color 0.3s var(--ease);
	white-space: nowrap;
}

.section__more:hover {
	color: var(--ink);
}

/* ---------- 瀑布流与卡片 ---------- */

.masonry {
	columns: 3;
	column-gap: var(--gap);
}

.card-collection {
	break-inside: avoid;
	margin-bottom: var(--gap);
}

.card-collection__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--paper-deep);
}

.card-collection__img {
	width: 100%;
	transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}

.card-collection__img.lvji-cover--empty {
	display: block;
	aspect-ratio: 4 / 5;
}

.card-collection__link:hover .card-collection__img {
	transform: scale(1.035);
	filter: brightness(0.94);
}

.card-collection__index {
	position: absolute;
	top: 0.9rem;
	left: 1rem;
	font-family: var(--serif);
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	color: #f6f2ea;
	mix-blend-mode: difference;
}

.card-collection__body {
	padding-top: 0.95rem;
}

.card-collection__title {
	font-size: clamp(1.05rem, 1.5vw, 1.22rem);
	letter-spacing: 0.02em;
	transition: opacity 0.3s var(--ease);
}

.card-collection__link:hover .card-collection__title {
	opacity: 0.62;
}

.card-collection__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0;
	margin-top: 0.5rem;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.card-collection__meta span + span::before {
	content: "·";
	margin: 0 0.55rem;
	opacity: 0.6;
}

/* ---------- 地点 ---------- */

.place-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.place-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 0.55rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--line-strong);
	font-size: 0.84rem;
	letter-spacing: 0.12em;
	transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.place-chip__count {
	font-family: var(--serif);
	font-size: 0.68rem;
	opacity: 0.55;
}

.place-chip:hover {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

/* ---------- 手记列表 ---------- */

.note-list {
	border-top: 1px solid var(--line);
}

.card-note {
	border-bottom: 1px solid var(--line);
}

.card-note__link {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 1.4rem 2rem;
	padding: 1.6rem 0;
	transition: padding 0.4s var(--ease);
}

.card-note__link:hover {
	padding-left: 0.6rem;
}

.card-note__date {
	font-family: var(--serif);
	font-size: 0.84rem;
	letter-spacing: 0.14em;
	color: var(--muted);
}

.card-note__title {
	font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

.card-note__excerpt {
	margin-top: 0.5rem;
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.8;
}

.card-note__arrow {
	font-size: 1.1rem;
	opacity: 0.35;
	transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.card-note__link:hover .card-note__arrow {
	transform: translateX(0.4rem);
	opacity: 0.9;
}

/* ---------- 关于 ---------- */

.section--about {
	background: var(--ink);
	color: var(--paper);
}

.section--about .eyebrow {
	color: rgba(246, 242, 234, 0.6);
}

.about-block {
	padding-block: clamp(1rem, 3vw, 2.5rem);
}

.about-block__title {
	font-size: clamp(1.9rem, 4vw, 3.2rem);
	margin-bottom: 1.6rem;
}

.about-block__text {
	max-width: 58ch;
	font-size: 1.02rem;
	line-height: 2;
	color: rgba(246, 242, 234, 0.78);
}

.about-block__text p + p {
	margin-top: 1.2em;
}

.about-block .link-arrow {
	color: var(--paper);
}

/* ---------- 内页页头 ---------- */

.page-head {
	padding-top: clamp(8rem, 14vw, 11.5rem);
	padding-bottom: clamp(2rem, 4vw, 3.2rem);
}

.page-head__title {
	font-size: clamp(2.2rem, 5vw, 4rem);
	max-width: 22ch;
}

.page-head__desc {
	margin-top: 1.1rem;
	max-width: 52ch;
	font-size: 0.95rem;
	color: var(--muted);
	line-height: 1.9;
}

.page-head--article {
	padding-bottom: 1.4rem;
}

/* ---------- 旅集详情 ---------- */

.collection-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 72vh;
	padding-top: 7rem;
	overflow: hidden;
	background: var(--paper-deep);
}

.collection-hero.has-cover {
	color: var(--paper);
}

.collection-hero.has-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cover);
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
}

.collection-hero.has-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 9, 8, 0.45) 0%, rgba(10, 9, 8, 0.1) 40%, rgba(10, 9, 8, 0.78) 100%);
}

.collection-hero__inner {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(3rem, 7vh, 5.5rem);
}

.collection-hero.has-cover .eyebrow {
	color: rgba(244, 239, 229, 0.72);
}

.collection-hero__title {
	font-size: clamp(2.4rem, 5.6vw, 5rem);
	max-width: 20ch;
	line-height: 1.08;
}

.collection-hero__desc {
	max-width: 50ch;
	margin-top: 1.3rem;
	font-size: 0.96rem;
	line-height: 1.9;
	color: rgba(244, 239, 229, 0.8);
}

.collection-hero:not(.has-cover) .collection-hero__desc {
	color: var(--muted);
}

.meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.2rem;
	margin-top: 1.8rem;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(244, 239, 229, 0.28);
	font-size: 0.76rem;
	letter-spacing: 0.12em;
}

.collection-hero:not(.has-cover) .meta-line {
	border-top-color: var(--line);
}

.meta-line__item {
	display: flex;
	gap: 0.6rem;
}

.meta-line__label {
	opacity: 0.55;
}

.meta-line__value {
	font-family: var(--serif);
	letter-spacing: 0.06em;
}

.collection-body {
	padding-top: clamp(3rem, 6vw, 5rem);
}

.collection-photos {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- 正文排版 ---------- */

.prose {
	font-size: 1.04rem;
	line-height: 2;
	color: var(--ink-soft);
	overflow-wrap: break-word;
}

.prose > * + * {
	margin-top: 1.55em;
}

.prose h2,
.prose h3,
.prose h4 {
	color: var(--ink);
	line-height: 1.35;
}

.prose h2 {
	font-size: 1.6rem;
	margin-top: 2.4em;
}

.prose h3 {
	font-size: 1.28rem;
	margin-top: 2.1em;
}

.prose a {
	border-bottom: 1px solid var(--line-strong);
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.prose a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.prose img {
	margin-block: 0.6em;
}

.prose blockquote {
	margin-inline: 0;
	padding-left: 1.4rem;
	border-left: 2px solid var(--accent);
	color: var(--muted);
}

.prose ul,
.prose ol {
	padding-left: 1.2rem;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li + li {
	margin-top: 0.5em;
}

.prose code {
	padding: 0.1em 0.4em;
	background: rgba(20, 18, 15, 0.06);
	font-size: 0.9em;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image figcaption,
.photo-grid__caption {
	margin-top: 0.55rem;
	font-size: 0.76rem;
	letter-spacing: 0.04em;
	color: var(--muted);
	text-align: left;
}

/* ---------- 图片墙 ---------- */

.photo-grid {
	columns: 3;
	column-gap: clamp(0.45rem, 0.9vw, 0.9rem);
}

.photo-grid--col2 {
	columns: 2;
}

.photo-grid--col4 {
	columns: 4;
}

.photo-grid__item {
	break-inside: avoid;
	margin: 0 0 clamp(0.45rem, 0.9vw, 0.9rem);
}

.photo-grid__link {
	display: block;
	overflow: hidden;
	background: var(--paper-deep);
	cursor: zoom-in;
}

.photo-grid__img {
	width: 100%;
	transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}

.photo-grid__link:hover .photo-grid__img {
	transform: scale(1.02);
	opacity: 0.92;
}

/* ---------- 上一篇 / 下一篇 ---------- */

.adjacent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin-top: clamp(2rem, 5vw, 4rem);
	padding-block: 2.2rem;
	border-top: 1px solid var(--line);
}

.adjacent__item--next {
	text-align: right;
}

.adjacent__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.68rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}

.adjacent__title {
	font-family: var(--serif);
	font-size: 1.1rem;
}

.adjacent a:hover .adjacent__title {
	opacity: 0.6;
}

/* ---------- 手记详情 ---------- */

.note-hero {
	padding-top: clamp(8rem, 14vw, 11rem);
}

.note-hero__title {
	font-size: clamp(2rem, 4.4vw, 3.4rem);
	max-width: 26ch;
	line-height: 1.2;
}

.note-hero__desc {
	margin-top: 1rem;
	font-size: 0.98rem;
	color: var(--muted);
	line-height: 1.9;
}

.note-cover {
	margin-top: clamp(1.8rem, 4vw, 3rem);
}

.note-cover__img {
	width: 100%;
}

.single-note .prose {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.page-cover {
	margin: 0 0 2rem;
}

/* ---------- 分页 ---------- */

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-block: clamp(2.5rem, 5vw, 4rem);
}

.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding-inline: 0.8rem;
	border: 1px solid var(--line);
	font-size: 0.8rem;
	transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- 搜索表单 ---------- */

.search-form {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	max-width: 26rem;
	margin-top: 1.6rem;
	border-bottom: 1px solid var(--line-strong);
	padding-bottom: 0.5rem;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	padding: 0.4rem 0;
	border: 0;
	background: transparent;
	font-family: var(--serif);
	font-size: 1rem;
	color: var(--ink);
}

.search-form .search-field:focus {
	outline: none;
}

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

.search-form .search-submit {
	padding: 0.3rem 0;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	color: var(--muted);
	transition: color 0.3s var(--ease);
}

.search-form .search-submit:hover {
	color: var(--ink);
}

/* ---------- 404 ---------- */

.not-found {
	min-height: 78vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 8rem;
	padding-bottom: 4rem;
}

.not-found__title {
	font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.not-found__desc {
	margin-top: 1.2rem;
	max-width: 44ch;
	color: var(--muted);
	line-height: 1.9;
}

.empty-state {
	padding-block: 3rem;
	color: var(--muted);
}

/* ---------- 页脚 ---------- */

.site-main {
	padding-bottom: clamp(2rem, 5vw, 4rem);
}

.site-footer {
	margin-top: 0;
	padding-block: 3.4rem;
	background: var(--ink);
	color: rgba(246, 242, 234, 0.75);
}

.site-footer__inner {
	width: var(--shell);
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.4rem 2rem;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.site-footer .brand__mark {
	border-color: rgba(246, 242, 234, 0.35);
	color: var(--paper);
	width: 2.1rem;
	height: 2.1rem;
}

.site-footer__name {
	font-family: var(--serif);
	font-size: 1rem;
	letter-spacing: 0.08em;
}

.footer-nav__list {
	gap: 1.6rem;
}

.footer-nav a {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
	color: var(--paper);
}

.site-footer__note {
	width: 100%;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(246, 242, 234, 0.14);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: rgba(246, 242, 234, 0.45);
}

/* ---------- 灯箱 ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	background: rgba(10, 9, 8, 0.96);
	color: var(--paper);
	transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	max-width: 94vw;
}

.lightbox__img {
	max-width: min(1400px, 94vw);
	max-height: 78vh;
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: default;
}

.lightbox__caption {
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	color: rgba(246, 242, 234, 0.6);
	max-width: 60ch;
	text-align: center;
}

.lightbox__counter {
	position: absolute;
	top: 1.6rem;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--serif);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	color: rgba(246, 242, 234, 0.55);
}

.lightbox__nav,
.lightbox__close {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(246, 242, 234, 0.3);
	border-radius: 50%;
	color: var(--paper);
	font-size: 0.9rem;
	transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__nav:hover,
.lightbox__close:hover {
	background: var(--paper);
	color: var(--ink);
}

.lightbox__nav--prev {
	left: clamp(0.6rem, 3vw, 2.4rem);
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__nav--next {
	right: clamp(0.6rem, 3vw, 2.4rem);
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__close {
	top: 1.2rem;
	right: 1.2rem;
}

.lightbox__nav[hidden] {
	display: none;
}

/* ---------- 滚动出现 ---------- */

.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
	.masonry {
		columns: 2;
	}

	.photo-grid {
		columns: 2;
	}

	.photo-grid--col4 {
		columns: 3;
	}
}

@media (max-width: 900px) {
	.site-header__inner {
		padding-block: 0.9rem;
	}

	.site-nav {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 90;
		width: min(84vw, 360px);
		padding: 6.5rem 2rem 2rem;
		background: var(--paper);
		border-left: 1px solid var(--line);
		transform: translateX(101%);
		transition: transform 0.5s var(--ease);
		overflow-y: auto;
	}

	.site-nav.is-open {
		transform: translateX(0);
	}

	body.is-front .site-nav.is-open {
		color: var(--ink);
	}

	body.is-front .site-nav.is-open a {
		color: var(--ink-soft);
	}

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.site-nav__list li {
		width: 100%;
		border-bottom: 1px solid var(--line);
	}

	.site-nav a {
		display: block;
		padding: 1.1rem 0;
		font-size: 0.95rem;
	}

	.nav-toggle {
		display: flex;
		position: relative;
		z-index: 100;
	}

	.card-note__link {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.card-note__date {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	:root {
		--shell: calc(100% - 2.4rem);
	}

	.masonry,
	.photo-grid,
	.photo-grid--col4 {
		columns: 1;
	}

	.photo-grid--col2 {
		columns: 2;
	}

	.hero {
		min-height: 92svh;
	}

	.hero__title {
		font-size: clamp(2.2rem, 10vw, 3.2rem);
	}

	.section__head {
		align-items: flex-start;
	}

	.section__more {
		margin-top: -0.4rem;
	}

	.adjacent {
		grid-template-columns: 1fr;
		gap: 1.6rem;
	}

	.adjacent__item--next {
		text-align: left;
	}

	.lightbox__nav {
		display: none;
	}

	.collection-hero {
		min-height: 62vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
