@font-face {
	font-family: "Ma Shan Zheng";
	src: url("../fonts/MaShanZheng-sub.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Klee One";
	src: url("../fonts/KleeOne-600-sub.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Song Myung";
	src: url("../fonts/SongMyung-sub.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--red: #EE3524;
	--red-dark: #C9281A;
	--dark: #4D4D4F;
	--gray: #A7A9AC;
	--ink: #2B2B2D;
	--paper: #FAF8F4;
	--paper-2: #F1EEE7;
	--line: #E2DED5;
	--muted: #77797D;
	--font: Helvetica, "Helvetica Neue", Arial, sans-serif;
	--cjk: "Ma Shan Zheng", "KaiTi", "STKaiti", serif;
	--zh: "Ma Shan Zheng", "KaiTi", "STKaiti", "BiauKai", serif;
	--ja: "Klee One", "YuKyokasho", "HGKyokashotai", "UD Digi Kyokasho N-R", serif;
	--ko: "Song Myung", "Gungsuh", "GungSeo", serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--paper);
	color: var(--dark);
	font: 400 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

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

.wrap {
	width: 100%;
	max-width: 1360px;
	margin-inline: auto;
	padding-inline: clamp(20px,5vw,80px);
}

[lang="zh"][lang="zh"][lang="zh"] {
	font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", "BiauKai", serif !important;
	font-style: normal !important;
	font-weight: 400 !important;
	text-transform: none !important;
	font-synthesis: none !important;
}

[lang="ja"][lang="ja"][lang="ja"] {
	font-family: "Klee One", "YuKyokasho", "HGKyokashotai", "UD Digi Kyokasho N-R", serif !important;
	font-style: normal !important;
	font-weight: 600 !important;
	text-transform: none !important;
	font-synthesis: none !important;
}

[lang="ko"][lang="ko"][lang="ko"] {
	font-family: "Song Myung", "Gungsuh", "GungSeo", serif !important;
	font-style: normal !important;
	font-weight: 400 !important;
	text-transform: none !important;
	font-synthesis: none !important;
}

section {
	padding: clamp(80px,10vw,140px) 0;
}

.alt {
	background: var(--paper-2);
}

.h2 {
	font: 300 clamp(34px,5vw,62px)/1.04 var(--font);
	letter-spacing: -.02em;
	color: var(--ink);
	margin-left: -.02em;
}

.h2 b {
	font-weight: 700;
}

.sub {
	color: var(--muted);
	max-width: 56ch;
	margin-top: 16px;
}

.head {
	margin-bottom: clamp(40px,5vw,72px);
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 24px;
	flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

@media (min-width: 981px) {
	section {
		padding-block: clamp(40px,6vh,72px);
	}

	.head {
		margin-bottom: clamp(24px,4vh,72px);
	}
}

@media (max-width: 980px) {
	html {
		scroll-padding-top: 68px;
	}

	section[id] {
		scroll-margin-top: 68px;
	}
}

html {
	scroll-padding-top: 104px;
}
