@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
}

.sr-only {
	clip: rect(0, 0, 0, 0);
	border-width: 0;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

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: .55;
	width: 100%;
	height: 100%;
	background: url("../assets/smooth-white-plaster-wall.jpg");
	background-size: 2880px;
	background-position: center;
}

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

#title-wrapper {
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

#title-image {
	width: 736px;
    height: auto;
	mix-blend-mode: multiply;
}

.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;
}

.proto-canvas img {
	position: absolute;
	width: 100%;
	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;
}

.sepa-wrapper {
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.sepa-image {
    width: 600px;
    height: auto;
    margin: 0 auto;
    mix-blend-mode: multiply;
    transform: scale(1.11);
    transform-origin: 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: 165px;
	margin-bottom: 80px;
	color: #fff;
}

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

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

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

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

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

#book-illustration-1 .proto-canvas {
	aspect-ratio: 2173 / 1606;
}

#book-illustration-2 {
	position: relative;
}

#book-illustration-2 .proto-canvas {
	aspect-ratio: 2323 / 1571;
}

#book-illustration-2 .proto-canvas.second-layer {
	aspect-ratio: 1451 / 1158;
}

#book-illustration-2 .second-layer {
    position: absolute;
    top: 2%;
    width: 88%;
    left: 18%;
}

#book-illustration-3 {
	mix-blend-mode: multiply;
	margin: calc(-2vw - 65px) auto calc(5vw - 20px);
	max-width: min(100%, 1800px);
	height: auto;
}

@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;
	}
}