:root {
	--maxw: 1080px;
	--text: 720px;
	--img: 720px;     /* 单张/横幅图片最大宽度 */
	--img-h: 70vh;    /* 单张图片最大高度（限制竖幅图过高） */
	--row: 980px;     /* 并排小图组最大宽度 */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	background: #ffffff;
	color: #000000;
	font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* 任何媒体都不得超出容器 */
img {
	max-width: 100%;
	height: auto;
}

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 0.25rem 6rem;
}

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

/* 顶部导航 */
header {
	position: sticky;
	top: 0;
	background: #ffffff;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #000000;
	z-index: 10;
}

.logo {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

nav {
	display: flex;
	gap: 1.5rem;
	align-items: baseline;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

nav a:hover,
nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

nav .lang {
	opacity: 0.45;
}

/* hero 陈述句 */
.hero {
	padding: 5.5rem 0 4.5rem;
	border-bottom: 1px solid #000000;
	margin-bottom: 4.5rem;
}

.hero h1 {
	font-size: clamp(2rem, 6vw, 4rem);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.02em;
	max-width: 18ch;
}

/* 小标签 */
.eyebrow {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-bottom: 2.5rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid #000000;
}

.project {
	margin-bottom: 5.5rem;
}

.project > h2 {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-bottom: 0.6rem;
}

.meta {
	font-size: 0.95rem;
	margin-bottom: 2rem;
}

.statement {
	max-width: var(--text);
	margin-bottom: 1.5rem;
}

.lead {
	font-size: clamp(1.3rem, 3.2vw, 1.9rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	max-width: var(--text);
	margin-bottom: 2rem;
}

figure {
	margin: 2.25rem 0;
}

/* 图片左对齐；横幅限宽、竖幅限高，按比例缩放（contain） */
figure img {
	display: block;
	margin: 0;
	width: auto;
	height: auto;
	max-width: min(var(--img), 100%);
	max-height: var(--img-h);
}

figcaption,
.cap {
	margin-top: 0.6rem;
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.7;
	max-width: var(--text);
}

/* 作品标签（图说）与作品说明之间留出间距 */
.cap + .statement {
	margin-top: 1.75rem;
}

/* 单张图片后紧跟图说标签时，去掉图片底部大间距，使图—标签间距与其他作品一致 */
figure:has(+ .cap) {
	margin-bottom: 0;
}

/* 每组作品图片与其上方文字内容之间留出更大间距 */
.meta + figure,
.meta + .row,
.statement + figure,
.statement + .row {
	margin-top: 4rem;
}

.row {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin: 2.25rem 0 0;
	max-width: var(--row);
}

.row figure {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
}

.row figure img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--img-h);
}

/* 四张并排：等分一排（不换行） */
.row.cols-4 {
	flex-wrap: nowrap;
}

.row.cols-4 figure {
	flex: 1 1 0;
	min-width: 0;
}

.row.cols-4 figure img {
	width: 100%;
	max-width: 100%;
	max-height: none;
}

/* 兜底：任意正好含 4 张图的并排组，自动等分一排（无需 cols-4 类） */
.row figure:first-child:nth-last-child(4),
.row figure:first-child:nth-last-child(4) ~ figure {
	flex: 1 1 0;
	min-width: 0;
}

.row figure:first-child:nth-last-child(4) img,
.row figure:first-child:nth-last-child(4) ~ figure img {
	width: 100%;
	max-width: 100%;
	max-height: none;
}

footer {
	margin-top: 5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #000000;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.6;
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}
	.wrap {
		padding: 0 1rem 4rem;
	}
	.hero {
		padding: 3rem 0;
		margin-bottom: 3rem;
	}
	.project {
		margin-bottom: 4rem;
	}
	.row {
		flex-direction: column;
		gap: 0;
	}
	.row figure {
		margin: 1.25rem 0;
	}
}