:root {
	--ink: #03586c;
	--cream: #f6efda;
	--cream-dim: #d9d1b6;
	--focus: #f6efda;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--ink);
	color: var(--cream);
	font-family: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC",
		"STSong", serif;
}

a {
	color: inherit;
}

a:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 4px;
}

.skip {
	position: absolute;
	left: 1rem;
	top: 0;
	transform: translateY(-120%);
	background: var(--cream);
	color: var(--ink);
	padding: 0.5rem 0.8rem;
	z-index: 2;
}

.skip:focus {
	transform: none;
}

.bar,
.colophon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(1.1rem, 2.4vw, 1.7rem) clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
	font-size: 0.92rem;
	font-weight: 520;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
}

.langs {
	display: flex;
	gap: 0.95rem;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
}

.langs a {
	color: var(--cream-dim);
	text-decoration: none;
}

.langs a[aria-current="page"] {
	color: var(--cream);
	text-decoration: underline;
	text-underline-offset: 0.28em;
}

.stage {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(14rem, 0.86fr) minmax(16rem, 1.14fr);
	align-items: center;
	column-gap: clamp(1.5rem, 5vw, 5.5rem);
	padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(0.5rem, 2vw, 1.5rem);
}

.mark {
	width: min(100%, 34rem);
	height: auto;
	justify-self: start;
}

h1 {
	margin: 0;
	max-width: 9.2em;
	font-size: clamp(2.8rem, 5.8vw, 5.35rem);
	font-weight: 520;
	letter-spacing: -0.035em;
	line-height: 0.94;
}

.status {
	margin: 1.35rem 0 0;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cream-dim);
}

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.35rem;
	margin: 1.7rem 0 0;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.98rem;
}

.contact a {
	text-underline-offset: 0.22em;
}

.colophon {
	justify-content: flex-start;
}

.colophon a {
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.75rem;
	color: var(--cream-dim);
	text-decoration: none;
}

html[lang="zh-CN"] h1 {
	font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.12;
	max-width: 8em;
}

html[lang="zh-CN"] .status {
	letter-spacing: 0.18em;
	text-transform: none;
}

@media (max-width: 800px) {
	.stage {
		grid-template-columns: 1fr;
		align-content: center;
		row-gap: 0.25rem;
	}

	.mark {
		width: min(42vw, 9.5rem);
	}

	h1 {
		font-size: clamp(2.35rem, 12vw, 3.5rem);
	}

	html[lang="zh-CN"] h1 {
		font-size: clamp(1.85rem, 8.2vw, 2.4rem);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.copy {
		animation: rise 740ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}
