@font-face {
	font-family: "EB Garamond";
	src: url("../font/EBGaramond-Regular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "EB Garamond";
	src: url("../font/EBGaramond-Italic.ttf") format("truetype");
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: "Raleway";
	src: url("../font/Raleway-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: "EB Garamond";
	src: url("../font/EBGaramond-Bold.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;
}

.inline-block {
	display: inline-block
}

body {
	font-family: "EB Garamond", serif;
	font-size: 16px;
	color: #272723;
}

main {
	position: relative;
	background-color: #f5f5dc;
	overflow: hidden;
}

.big-spacer {
	height: 340px;
}

#paper-texture {
	position: absolute;
	opacity: .85;
	width: 100%;
	height: 100%;
	background: url("../assets/smooth-white-plaster-wall.jpg");
	background-size: 1920px;
	background-position: center;
}

.container {
	padding: 16px;
	position: relative;
	max-width: min(100%, 1024px);
	margin: 0 auto;
}

.main-title {
	font-size: 32px;
	line-height: 1;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.proto-section:not(.autostart) {
	padding-block: 80px;
}

.seq-title {
	font-size: 26px;
}

.proto-title {
	font-size: 18px;
}

.proto-canvas {
	position: relative;
    overflow: hidden;
	margin-top: 15px;
	aspect-ratio: 2173 / 1606;
}

.proto-canvas img {
	position: absolute;
	max-width: 100%;
	height: auto;
	mix-blend-mode: multiply;
	transform: scale(1.15);
    transform-origin: center;
}

.play-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 24px auto 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: linear-gradient(180deg, #4a4a4a 0%, #1a1a1a 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.25) inset,
		0 -3px 4px rgba(0, 0, 0, 0.5) inset,
		0 4px 8px rgba(0, 0, 0, 0.4),
		0 1px 2px rgba(0, 0, 0, 0.3);
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.play-btn svg {
	width: 22px;
	height: 22px;
	fill: #f2f2f2;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.play-btn:hover {
	background: linear-gradient(180deg, #5a5a5a 0%, #222 100%);
}

.play-btn:active {
	transform: scale(0.94);
	box-shadow:
		0 2px 5px rgba(0, 0, 0, 0.6) inset,
		0 1px 2px rgba(0, 0, 0, 0.3);
}

.proto-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
	justify-content: center;
	margin: 32px auto 0;
	max-width: 520px;
}

.proto-control {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #333;
}

.proto-control span {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.proto-control input[type="range"] {
	width: 160px;
}

.proto-control select {
	font: inherit;
	padding: 4px 6px;
}

#title-section {
	text-align: center;
}

#book-title {
	font-family: Raleway, sans-serif;
	font-size: 60px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.12em;
	margin-bottom: 0.5em;
}

#book-author,
#book-editor,
#book-date {
	font-size: 1.75rem;
}

.book-chapter-index {
	font-size: 150px;
	margin-bottom: 80px;
}

#book-text {
	font-size: 1.75rem;
}

#book-text p {
	line-height: 1.3em;
	margin-bottom: 1em;
}

.book-two-cols {
	display: flex;
}

.book-text-col {
	flex-shrink: 1;
	width: 50%;
}

#book-illustration-1 {
	flex: 1;
	margin-right: -31%;
	margin-top: -19%;
}

@media(max-width: 1023px) {
	#book-title {
		font-size: 2rem;
	}

	#book-author,
	#book-editor,
	#book-date {
		font-size: 1.3rem;
	}

	#book-text {
		padding: 0 20px;
		font-size: 1.4rem;
	}

	.book-two-cols {
		display: block;
	}

	.book-text-col {
		width: 100%;
	}

	#book-illustration-1 {
		flex: 1;
		margin-right: 0;
		margin-top: -50px;
	}
}