


.scroll-shelf {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6vh;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: clamp(18px, 3.5vw, 56px);
	z-index: 9;
	

	pointer-events: none;
	 
	transition: opacity 0.35s ease, visibility 0.35s ease;
}



body.shane-reading .scroll-item {
	pointer-events: none;
}



body.shane-reading.trailer-page .site-content,
body.shane-reading.trailer-page .site-main {
	height: auto !important;
}

 
.scroll-shelf .scroll-item {
	pointer-events: auto;
	cursor: pointer;
}

.scroll-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	

	transition: opacity 0.3s ease, visibility 0.3s ease,
		transform 0.2s ease, filter 0.2s ease;
	

	transform-origin: center bottom;
}



.scroll-item.is-vanished {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.scroll-art {
	

	height: 40vh;
	aspect-ratio: 214 / 1500;
	background-image: url('assets/scroll-rolled.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	

	transform-origin: bottom center;
	transform: rotate(var(--snf-tilt, 0deg));
	

	filter: brightness(1)
		drop-shadow(0 0 0px rgba(255, 244, 190, 0))
		drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
	transition: filter 2.4s ease;
}

.scroll-label {
	font-family: inherit;
	font-size: clamp(11px, 1.25vw, 15px);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fdf3d7;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
	text-align: center;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}



@media (hover: hover) {
	.scroll-item:hover {
		transform: scale(1.05);
		filter: brightness(1.28);
	}
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
	.scroll-item:hover {
		transform: none;
	}
}



.scroll-item:nth-child(1) .scroll-art { height: 46vh; --snf-tilt: -2.5deg; }
.scroll-item:nth-child(2) .scroll-art { height: 38vh; --snf-tilt: 1.5deg;  margin-bottom: 1.5vh; }
.scroll-item:nth-child(3) .scroll-art { height: 42vh; --snf-tilt: -1deg; }
.scroll-item:nth-child(4) .scroll-art { height: 36vh; --snf-tilt: 2.5deg;  margin-bottom: 1vh; }
.scroll-item:nth-child(5) .scroll-art { height: 44vh; --snf-tilt: -1.8deg; }
.scroll-item:nth-child(6) .scroll-art { height: 40vh; --snf-tilt: 1.2deg;  margin-bottom: 2vh; }



.scroll-art.is-knocked {
	animation: snf-scroll-knock 0.24s ease-out forwards;
}
@keyframes snf-scroll-knock {
	0% {
		transform: rotate(var(--snf-tilt, 0deg));
	}
	30% {
		transform: rotate(var(--snf-tilt, 0deg))
			perspective(700px)
			rotateX(var(--snf-impact-rotX, 0deg))
			rotateZ(var(--snf-impact-rotZ, 0deg));
	}
	60% {
		transform: rotate(var(--snf-tilt, 0deg))
			perspective(700px)
			rotateX(var(--snf-residual-rotX, 0deg))
			rotateZ(var(--snf-residual-rotZ, 0deg));
	}
	100% {
		transform: rotate(var(--snf-tilt, 0deg))
			perspective(700px)
			rotateX(var(--snf-residual-rotX, 0deg))
			rotateZ(var(--snf-residual-rotZ, 0deg));
	}
}



@media (max-width: 900px) and (min-height: 480px) {
	.scroll-shelf {
		left: calc(10vw + 3.5vh); 

		right: auto;
		bottom: auto;
		top: 13vh;                
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 0;
		padding: 0;
	}
	

	.scroll-item {
		flex-direction: row;
		align-items: center;
		gap: 7px;
		margin-top: -9vh;        
		transform-origin: left center;
	}
	.scroll-item:first-child {
		margin-top: 0;
	}
	

	.scroll-item:nth-child(1) .scroll-art { height: 19.5vh; --snf-tilt: -17deg; }
	.scroll-item:nth-child(2) .scroll-art { height: 18.5vh; --snf-tilt: -22deg; margin-bottom: 0; }
	.scroll-item:nth-child(3) .scroll-art { height: 20.5vh; --snf-tilt: -19deg; }
	.scroll-item:nth-child(4) .scroll-art { height: 19vh;   --snf-tilt: -24deg; margin-bottom: 0; }
	.scroll-item:nth-child(5) .scroll-art { height: 20vh;   --snf-tilt: -16deg; }
	.scroll-item:nth-child(6) .scroll-art { height: 18.5vh; --snf-tilt: -21deg; margin-bottom: 0; }
	

	.scroll-item:nth-child(2) { margin-left: 0.5vw; }
	.scroll-item:nth-child(3) { margin-left: 0.5vw; }
	.scroll-item:nth-child(4) { margin-left: 2vw; }
	.scroll-item:nth-child(5) { margin-left: 0.5vw; }
	.scroll-item:nth-child(6) { margin-left: 0.5vw; }
	.scroll-label {
		font-size: 10px;
		letter-spacing: 0.05em;
		white-space: nowrap;
		text-align: left;         
	}
}



@media (max-width: 760px) and (orientation: landscape) {
	.scroll-label {
		font-size: 10px;
		letter-spacing: 0.04em;
	}
}









.shane-blackout {
	position: fixed;
	inset: 0;
	z-index: 58;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle at 50% 45%,
		rgba(24, 21, 58, 0.88) 0%,
		rgba(15, 13, 42, 0.94) 55%,
		rgba(10, 9, 30, 0.97) 100%);
	transition: opacity 0.25s ease;
}
.shane-blackout.is-on {
	opacity: 1;
}



.shane-charge-flash {
	position: fixed;
	inset: 0;
	z-index: 59;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle at var(--snf-flash-x, 50%) var(--snf-flash-y, 40%),
		rgba(255, 250, 235, 0.9) 0%,
		rgba(255, 236, 170, 0.5) 26%,
		rgba(255, 215, 106, 0.22) 48%,
		rgba(255, 215, 106, 0) 72%);
}
.shane-charge-flash.is-on {
	animation: snf-charge-flash 0.5s ease-out forwards;
}
@keyframes snf-charge-flash {
	0% { opacity: 0; }
	14% { opacity: 0.95; }
	100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.shane-charge-flash.is-on {
		animation-duration: 0.01s;  
	}
}



.shane-chapters[hidden],
.shane-chapter[hidden] {
	display: none !important;
}



.scroll-reader {
	position: relative;      

	margin: 0 auto;           
	width: 60vh;              
	height: 0;               

	overflow: hidden;         
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: center;
	filter: drop-shadow(0 0 42px rgba(0, 0, 0, 0.55));
	opacity: 0;
	transform: scale(0.6);
	transform-origin: top center;   
	pointer-events: none;
	transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1.2);
}
.scroll-reader.is-visible {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}



body.shane-reading .scroll-reader {
	margin-bottom: min(150px, 40vh);
}



.scroll-cap-top,
.scroll-cap-bottom {
	flex: none;
	

	position: relative;
	z-index: 1;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.scroll-cap-top {
	background-image: url('assets/scroll-cap-top.webp');
}
.scroll-cap-bottom {
	background-image: url('assets/scroll-cap-bottom.webp');
}
.scroll-mid {
	flex: none;                  

	position: relative;           
	background-image: url('assets/scroll-middle.webp');
	background-repeat: repeat-y;
	background-size: 100% auto;   
}



.scroll-reader-close {
	position: absolute;
	

	top: 0;
	right: 0;
	z-index: 2;
	width: 54px;
	height: 54px;
	border: none;
	background: none;             
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease;
}



.scroll-reader-close-mark {
	display: block;
	width: 40px;
	height: 40px;
}


.scroll-reader-close:hover,
.scroll-reader-close:focus {
	outline: none;
	background: none;
	border: none;
	box-shadow: none;
	transform: scale(1.1);
}
.scroll-reader-close:active {
	background: none;
	border: none;
	box-shadow: none;
	transform: scale(0.94);
}



.scroll-reader-content {
	position: relative;      

	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	outline: none;
	

	--snf-serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
	--snf-ink: #3a2a18;
	--snf-ink-strong: #4a2f16;
	--snf-gold: #8a5a1a;
	--snf-gold-soft: #a06a24;
	color: var(--snf-ink);
	font-family: var(--snf-serif);
	font-size: clamp(15px, 1.5vw, 19px);
	line-height: 1.7;
}



.scroll-chapter-title {
	flex: 0 0 auto;
	margin: 0 0 0.7em;
	text-align: center;
	font-family: var(--snf-serif);
	font-weight: 400;
	font-size: clamp(26px, 3.4vw, 44px);
	line-height: 1.15;
	letter-spacing: 0.06em;
	color: var(--snf-ink-strong);
	text-shadow: 0 1px 0 rgba(255, 240, 210, 0.45);
}
.scroll-chapter-title::after {
	content: "\2726";             
	display: block;
	text-align: center;
	font-size: 0.5em;
	line-height: 1;
	margin-top: 0.5em;
	color: var(--snf-gold);
	letter-spacing: 0;
}



.scroll-chapter-body {
	flex: none;                  

}



.scroll-chapter-body h1,
.scroll-chapter-body h2,
.scroll-chapter-body h3,
.scroll-chapter-body h4 {
	color: var(--snf-ink-strong);
	font-family: var(--snf-serif);
	font-weight: 600;
	line-height: 1.25;
	margin: 1.3em 0 0.6em;
	letter-spacing: 0.02em;
}
.scroll-chapter-body h1 {
	font-size: 1.7em;
	text-align: center;
}
.scroll-chapter-body h2 {
	font-size: 1.35em;
	text-align: center;
}
.scroll-chapter-body h2::after {
	content: "";
	display: block;
	width: 4.5em;
	height: 1px;
	margin: 0.55em auto 0;
	background: linear-gradient(90deg, transparent, var(--snf-gold-soft) 25%, var(--snf-gold-soft) 75%, transparent);
}
.scroll-chapter-body h3 {
	font-size: 1.15em;
}
.scroll-chapter-body h4 {
	font-size: 1em;
	font-style: italic;
}



.scroll-chapter-body p {
	margin: 0 0 1em;
}
.scroll-chapter-body > p:first-of-type::first-letter,
.scroll-chapter-body > .shane-chapter > p:first-of-type::first-letter {
	float: left;
	font-family: var(--snf-serif);
	font-weight: 700;
	font-size: 3.05em;
	line-height: 0.82;
	padding: 0.05em 0.12em 0 0;
	color: var(--snf-gold);
}
.scroll-chapter-body a {
	color: var(--snf-gold);
	text-decoration: underline;
	text-decoration-thickness: 0.05em;
	text-underline-offset: 0.12em;
}
.scroll-chapter-body a:hover {
	color: #6b4415;
}

 
.scroll-chapter-body ul,
.scroll-chapter-body ol {
	margin: 0 0 1.2em 1.6em;
	padding: 0;
}
.scroll-chapter-body li {
	margin: 0 0 0.5em;
	line-height: 1.6;
}
.scroll-chapter-body li::marker {
	color: var(--snf-gold);
}



.scroll-chapter-body img,
.scroll-chapter-body figure,
.scroll-chapter-body video {
	max-width: 100%;
	height: auto;
}



.scroll-chapter-body .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}
.scroll-chapter-body .wp-block-embed.is-type-video iframe {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	border: 0;
}
.scroll-chapter-body img {
	border-radius: 6px;
	border: 1px solid rgba(74, 47, 22, 0.28);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}



.scroll-chapter-body .wp-block-cover__image-background {
	height: 100%;
	border: none;
	border-radius: 0;
	box-shadow: none;
}
.scroll-chapter-body figure {
	margin: 1.2em 0;
	text-align: center;
}
.scroll-chapter-body figcaption {
	font-size: 0.85em;
	font-style: italic;
	color: #6b4a26;
	margin-top: 0.4em;
}

 
.scroll-chapter-body blockquote {
	margin: 1em 0;
	padding: 0.1em 0 0.1em 1em;
	border-left: 3px solid var(--snf-gold-soft);
	color: #4a3017;
	font-style: italic;
}



.scroll-item.is-returned .scroll-art {
	filter: brightness(2.2)
		drop-shadow(0 0 40px rgba(255, 244, 190, 0.95))
		drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
	transition: none;  
}



@media (prefers-reduced-motion: reduce) {
	.scroll-reader {
		transition: opacity 0.45s ease;  
		transform: none;
	}
	.scroll-reader.is-visible {
		transform: none;
	}
	.scroll-art,
	.scroll-item.is-returned .scroll-art {
		transition: none;
	}
	.scroll-art.is-knocked {
		animation: none;  
	}
	.scroll-reader-close,
	.scroll-reader-close:hover,
	.scroll-reader-close:focus,
	.scroll-reader-close:active {
		transition: none;
		transform: none;
	}
	.scroll-reader-close-mark {
		transition: none;
	}
}






.trailer-page .main-navigation {
	display: none !important;
}
.trailer-page .site-footer {
	display: none !important;
}

.shane-nav {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 70;                
	display: flex;
	justify-content: center;
	align-items: center;
	

	background: rgba(10, 13, 20, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	 
	pointer-events: none;
}

.shane-nav-top {
	top: 0;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255, 215, 106, 0.14);
}

.shane-nav-bottom {
	bottom: 0;
	padding: 6px 14px 8px;
	border-top: 1px solid rgba(255, 215, 106, 0.14);
	flex-direction: column;
}

.shane-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2px 12px;
}

.shane-nav-li {
	margin: 0;
}



.shane-nav-item {
	appearance: none;
	background: none;
	border: none;
	margin: 0;
	padding: 6px 10px;
	cursor: pointer;
	pointer-events: auto;
	font-family: inherit;
	font-size: clamp(12px, 1.3vw, 16px);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fdf3d7;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.shane-nav-item:hover {
	color: #ffd76a;
}



.shane-nav-item.is-active {
	color: #ffd76a;
	text-shadow:
		0 0 4px rgba(255, 255, 255, 0.9),
		0 0 10px rgba(255, 255, 255, 0.6);
}

 
.shane-nav-item:focus-visible {
	outline: none;
	color: #ffd76a;
	text-shadow:
		0 0 4px rgba(255, 255, 255, 0.9),
		0 0 10px rgba(255, 255, 255, 0.6);
}

 
.shane-copyright {
	margin-top: 2px;
	font-size: 8px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: rgba(253, 243, 215, 0.55);
	pointer-events: none;
}



@media (max-width: 600px) {
	body.shane-reading {
		overflow-x: hidden;
	}
}



@media (max-width: 760px) {
	.shane-nav {
		padding-left: 5px;
		padding-right: 5px;
	}
	.shane-nav-list {
		gap: 1px 5px;
	}
	.shane-nav-item {
		font-size: 11px;
		letter-spacing: 0.04em;
		padding: 4px 5px;
		white-space: normal;    
	}
	.shane-copyright {
		font-size: 7px;
	}
}
