@font-face {
	font-family: "Shadows Into Light";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/shadows-into-light.ttf") format("truetype");
}

html {
	scroll-snap-type: y proximity;
	scroll-behavior: smooth;
}

.story-page {
	margin: 0;
	background: #ffffff;
	color: #1e1e1e;
}

.story-page .section {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.story-page .section.beat-ink { background-color: #9fe1d8; }
.story-page .section.beat-crimson { background-color: #d82545; }
.story-page .section.beat-gold { background-color: #feac58; }
.story-page .section.beat-navy { background-color: #273c67; }
.story-page .section.beat-warm { background-color: #7b9d21; }

.story-page .section.first-section {
	display: block;
	height: 695px;
	min-height: 695px;
	overflow: hidden;
	background: #1f1f1f url(../images/top_bg/top_bg.png) repeat-x;
}

.story-page .section.first-section::before {
	content: none;
}

.story-page .section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url(../images/top_bg/sketch.png) center top / cover no-repeat;
	z-index: 0;
	pointer-events: none;
}

.story-page .section.beat-crimson::before,
.story-page .section.beat-navy::before {
	transform: scaleX(-1);
}

.beat-inner {
	position: relative;
	z-index: 1;
	width: min(820px, 88vw);
	margin: 0 auto;
	padding: 8vh 4vw 10vh;
	box-sizing: border-box;
}

.story-page .beat-inner p {
	margin: 0;
	font-family: "Shadows Into Light", cursive;
	font-size: clamp(2.05rem, 3.6vw, 3.2rem);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.01em;
	text-align: center;
	color: #ffffff;
}

.story-page .footer {
	height: 100px;
	max-height: 100px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	background-color: #d82545;
	color: #1e1e1e;
}

.story-page .footer img,
.story-page .footer p {
	margin: 0;
	padding: 0;
}

.story-page .footer img {
	display: block;
	width: auto;
	height: 64px;
	margin: 0 auto;
}

.story-page .footer p {
	line-height: 1;
	font-size: 13px;
}

.story-page .arrow {
	position: absolute;
	left: 50%;
	bottom: 18px;
	width: 54px;
	height: 24px;
	margin-left: 0;
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 1;
}

.story-page .arrow img {
	display: block;
	width: 54px;
	height: 24px;
	object-fit: contain;
}

@media (max-width: 760px) {
	.beat-inner {
		width: min(92vw, 640px);
		margin-left: 0;
		padding: 8vh 5vw 12vh;
	}

	.story-page .beat-inner p {
		font-size: clamp(1.7rem, 6.5vw, 2.4rem);
		line-height: 1.4;
	}

	.story-page .arrow {
		display: none;
	}
}

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