@font-face {
	font-family: 'GounBatang';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Regular.woff') format('woff');
	font-weight: normal;
	font-display: swap;
}

@font-face {
	font-family: 'GounBatang';
	src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Bold.woff') format('woff');
	font-weight: 700;
	font-display: swap;
}

:root {
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

html {
	scroll-snap-type: y mandatory;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo",
		"Noto Sans KR", "Malgun Gothic", sans-serif;
	background: Canvas;
	color: CanvasText;
}

main {
	min-height: 200vh;
	position: relative;
	z-index: 1;
	padding-top: 100vh;
	padding-top: 100svh;
	padding-top: 100dvh;
}

.hero {
	position: fixed;
	inset: 0;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	overflow: hidden;
	background: Canvas;
	will-change: transform;
	transform: translateZ(0);
	z-index: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 33px;
	transform: translateX(-50%);
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.9);
	opacity: 1;
	transition: opacity 250ms ease;
	pointer-events: none;
}

.scroll-hint.is-hidden {
	opacity: 0;
}

.scroll-hint svg {
	width: 34px;
	height: 56px;
	display: block;
	fill: currentColor;
}

.hero__img {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: auto;
	min-height: 100%;
	object-fit: cover;
	object-position: center bottom;
	display: block;
}

.links {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	width: 100%;
	display: grid;
	place-items: center;
	gap: 12px;
	padding: 24px 40px;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;

	opacity: 0;
	transform: translateY(12px);
	transition: opacity 600ms ease, transform 600ms ease;
	pointer-events: none;
}

.links__inner {
	width: 100%;
	max-width: 520px;
	display: grid;
	gap: 20px;
}

.links__divider {
	width: 100%;
	height: 0;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	margin: 4px 0;
}

.links__title {
	margin: 0 0 8px;
	text-align: center;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.2px;
}

.links.is-visible {
	background: #000;
	color: #e4dbd6;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* About section */
.about {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	width: 100%;
	display: grid;
	place-items: center;
	padding: 24px 40px;
	background: rgba(0, 0, 0, 0.9);
	color: #e4dbd6;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Lesson section */
.lesson {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	width: 100%;
	display: grid;
	place-items: center;
	padding: 24px 40px;
	background: #e4dbd6;
	color: #222;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Shared section styles */
.section__inner {
	width: 100%;
	max-width: 520px;
	display: grid;
	gap: 16px;
	text-align: center;
}

.section__title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.2px;
}

.section__text {
	margin: 0;
	font-family: 'GounBatang', serif;
	font-size: 18px;
	line-height: 1.6;
}

.text-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
	transition: opacity 200ms ease;
}

.text-link:hover {
	opacity: 0.7;
}

.text-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.link-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	text-decoration: none;
	color: inherit;

	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid currentColor;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.link-button__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	display: inline-block;
}

.link-button__icon svg,
.link-button__icon img {
	width: 100%;
	height: 100%;
	display: block;
}

.link-button__icon svg {
	fill: currentColor;
}

.link-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Dot pagination indicator */
.page-dots {
	position: fixed;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 100;
	opacity: 0.15;
	transition: opacity 500ms ease;
}

.page-dots.is-scrolling {
	opacity: 1;
}

.page-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
}

.page-dot:hover {
	border-color: #fff;
}

.page-dot.is-active {
	background: #fff;
	border-color: #fff;
}

.page-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.links {
		transition: none;
		transform: none;
	}

	.page-dot {
		transition: none;
	}
}
