/* Victoria Bell — Dream Painters: A Story of Hope */

.vdp {
	--paper: #fbf7ee;
	--ink: #26211b;
	--muted: #776e62;
	--line: #e9e1d1;
	--night: #191338;
	--rainbow: linear-gradient(90deg, #8a3fb0, #3a2fa0, #2d7fd0, #2f9a49, #e2b600, #ef7a12, #c8321e);
	box-sizing: border-box;
	width: 100%;
	color: var(--ink);
	font-family: Alegreya, Georgia, serif;
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.vdp *, .vdp *::before, .vdp *::after { box-sizing: border-box; }
.vdp img { display: block; max-width: 100%; height: auto; }
.vdp [id^="vdp-p"] { scroll-margin-top: 58px; }
.vdp p { margin: 0; }
.vdp a { color: inherit; }

/* ---------- the page frame (standalone) ---------- */

.vdp-body {
	margin: 0;
	background: #fbf7ee;
	color: #26211b;
	font-family: Alegreya, Georgia, serif;
	-webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.vdp-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 4px;
	z-index: 30;
	pointer-events: none;
}
.vdp-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #8a3fb0, #3a2fa0, #2d7fd0, #2f9a49, #e2b600, #ef7a12, #c8321e);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}
.vdp-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px clamp(16px, 3vw, 48px);
	background: rgba(251, 247, 238, .92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #e9e1d1;
}
.vdp-home {
	font-family: "Caveat Brush", cursive;
	font-size: 26px;
	line-height: 1;
	color: inherit;
	text-decoration: none;
}
.vdp-top-right { display: flex; align-items: center; gap: 10px; }
.vdp-home { white-space: nowrap; }
@media (max-width: 560px) { .vdp-top-book { display: none; } }
.vdp-top-book,
.vdp-edit {
	font: 500 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	padding: 9px 14px;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.vdp-top-book { color: #26211b; background: transparent; border: 1px solid #cfc4af; }
.vdp-top-book:hover { border-color: #26211b; }
.vdp-edit { color: #fff; background: #4b2f8a; border: 1px solid #4b2f8a; }
.vdp-foot {
	text-align: center;
	font-size: 15px;
	color: #776e62;
	padding: 40px 16px 56px;
	background: #191338;
	color: #c9c2dd;
}
.vdp-foot p + p { margin-top: 8px; font-size: 14px; color: #9b93b6; }
.vdp-foot a { color: #fff; }

/* ---------- buttons ---------- */

.vdp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 500 17px/1 Alegreya, Georgia, serif;
	padding: 13px 22px;
	border-radius: 999px;
	border: 2px solid var(--ink);
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.vdp .vdp-btn { color: #fff; }
.vdp-btn:hover { transform: translateY(-1px); }
.vdp .vdp-btn-ghost { background: rgba(255, 255, 255, .55); color: var(--ink); }
.vdp-btn-ghost:hover { background: #fff; }
.vdp-link {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.vdp :focus-visible { outline: 3px solid #4b2f8a; outline-offset: 3px; }

/* ---------- paintings ---------- */

.vdp-art {
	position: relative;
	display: block;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
	background: #e9e1d1;
	box-shadow: 0 1px 2px rgba(38, 33, 27, .08), 0 14px 40px -12px rgba(38, 33, 27, .35);
	cursor: zoom-in;
}
.vdp-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vdp-art:hover img { transform: scale(1.015); }
.vdp-loupe {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #26211b;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .2s ease, transform .2s ease;
}
.vdp-art:hover .vdp-loupe,
.vdp-art:focus-visible .vdp-loupe { opacity: 1; transform: none; }
@media (hover: none) { .vdp-loupe { opacity: .85; transform: none; } }

/* ---------- cover ---------- */

.vdp-cover { position: relative; background: #8cc152; }
.vdp-cover .vdp-art {
	border-radius: 0;
	box-shadow: none;
	aspect-ratio: auto !important;
	background: #8cc152;
}
.vdp-cover .vdp-art img { height: min(calc(100vh - 56px), 64.4vw); object-position: 100% 50%; }
.vdp-cover .vdp-art:hover img { transform: none; }
.vdp-cover-words {
	position: absolute;
	left: clamp(24px, 6vw, 110px);
	top: 50%;
	transform: translateY(-50%);
	max-width: min(44%, 560px);
	color: #1f2a12;
}
.vdp-title {
	font-family: "Caveat Brush", cursive;
	font-weight: 400;
	font-size: clamp(56px, 8.4vw, 132px);
	line-height: .92;
	margin: 0;
	letter-spacing: -.01em;
}
.vdp-subtitle {
	font-style: italic;
	font-size: clamp(22px, 2.4vw, 36px);
	margin-top: .3em !important;
}
.vdp-byline {
	font-size: clamp(16px, 1.3vw, 20px);
	margin-top: 1.1em !important;
	letter-spacing: .02em;
}
.vdp-cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vdp-cover .vdp-btn { border-color: #1f2a12; }
.vdp-cover .vdp-btn:not(.vdp-btn-ghost) { background: #1f2a12; }

@media (max-width: 760px) {
	.vdp-cover .vdp-art img { height: auto; }
	.vdp-cover-words {
		position: static;
		transform: none;
		max-width: none;
		padding: 28px 20px 36px;
		text-align: center;
	}
	.vdp-cover-actions { justify-content: center; }
}

/* ---------- reviews ---------- */

.vdp-reviews {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px clamp(32px, 7vw, 120px);
	padding: clamp(36px, 6vw, 72px) 20px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.vdp-reviews figure { margin: 0; text-align: center; }
.vdp-reviews blockquote {
	margin: 0;
	font-family: "Caveat Brush", cursive;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.1;
}
.vdp-reviews figcaption { margin-top: 6px; color: var(--muted); font-style: italic; }

/* ---------- dedication ---------- */

.vdp-dedication {
	position: relative;
	max-width: 1500px;
	margin: 0 auto;
	padding: clamp(28px, 6vw, 88px) clamp(12px, 4vw, 64px);
	background: var(--paper);
}
.vdp-dedication-words {
	position: absolute;
	left: calc(clamp(12px, 4vw, 64px) + 6%);
	bottom: calc(clamp(28px, 6vw, 88px) + 16%);
	max-width: 36%;
	font-size: clamp(18px, 2vw, 30px);
	font-style: italic;
	line-height: 1.35;
	color: #3c2f12;
	pointer-events: none;
}
.vdp-dedication-words p:first-child { font-family: "Caveat Brush", cursive; font-style: normal; font-size: 1.35em; }
@media (max-width: 760px) {
	.vdp-dedication-words { position: static; max-width: none; text-align: center; margin-top: 22px; }
}

/* ---------- the story ---------- */

.vdp-story { background: var(--paper); }
.vdp-page {
	--tint: color-mix(in srgb, var(--c) 8%, #fbf7ee);
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 4vw, 72px);
	padding: clamp(40px, 7vw, 110px) clamp(16px, 5vw, 88px);
	background: var(--tint);
	border-top: 1px solid color-mix(in srgb, var(--c) 18%, #fbf7ee);
}
.vdp-page.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.vdp-page.is-flip .vdp-art { order: 2; }
.vdp-words { max-width: 30em; }
.vdp-page.is-flip .vdp-words { justify-self: end; }
.vdp-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--c) 78%, #000);
	margin-bottom: 18px !important;
}
.vdp-dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent);
}
.vdp-verse {
	font-size: clamp(21px, 1.35vw + 12px, 30px);
	line-height: 1.5;
}
.vdp-verse p + p { margin-top: 1em; }
.vdp-num {
	margin-top: 26px !important;
	font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .1em;
	color: var(--muted);
}

@media (max-width: 900px) {
	.vdp-page, .vdp-page.is-flip { grid-template-columns: 1fr; gap: 24px; padding: 36px 14px 44px; }
	.vdp-page.is-flip .vdp-art { order: 0; }
	.vdp-words, .vdp-page.is-flip .vdp-words { justify-self: center; text-align: left; padding: 0 6px; }
}

/* gentle arrival as you scroll (only when scripts run) */
.vdp-js .vdp-page .vdp-art,
.vdp-js .vdp-page .vdp-words,
.vdp-js .vdp-dedication > *,
.vdp-js .vdp-end-art,
.vdp-js .vdp-end-words {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.vdp-js .vdp-page .vdp-words { transition-delay: .18s; }
.vdp-js .is-in .vdp-art,
.vdp-js .is-in .vdp-words,
.vdp-js .vdp-dedication.is-in > *,
.vdp-js .is-in .vdp-end-art,
.vdp-js .is-in .vdp-end-words { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.vdp-js .vdp-page .vdp-art, .vdp-js .vdp-page .vdp-words, .vdp-js .vdp-dedication > *,
	.vdp-js .vdp-end-art, .vdp-js .vdp-end-words { opacity: 1; transform: none; transition: none; }
	.vdp-art img { transition: none; }
}

/* ---------- the end ---------- */

.vdp-end {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 80px);
	padding: clamp(48px, 8vw, 120px) clamp(16px, 6vw, 110px);
	background:
		radial-gradient(1.5px 1.5px at 12% 18%, #fff8 60%, transparent),
		radial-gradient(1px 1px at 72% 12%, #fff9 60%, transparent),
		radial-gradient(1.5px 1.5px at 88% 64%, #fff7 60%, transparent),
		radial-gradient(1px 1px at 40% 86%, #fff8 60%, transparent),
		radial-gradient(1px 1px at 58% 40%, #fff6 60%, transparent),
		radial-gradient(ellipse at 30% 30%, #2c2160, #191338 70%);
	color: #f4efe4;
}
.vdp-end .vdp-art { background: #2c2160; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.vdp-cheer {
	font-family: "Caveat Brush", cursive;
	font-size: clamp(54px, 7.5vw, 120px);
	line-height: .95;
	background: linear-gradient(90deg, #c39bff, #7f8cff, #5fb6ff, #6fd48a, #ffd84a, #ffa04a, #ff6a5a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.vdp-closing { margin-top: 22px !important; font-size: clamp(20px, 1.8vw, 28px); font-style: italic; }
.vdp-again { margin-top: 34px !important; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.vdp-again a {
	font-family: "Caveat Brush", cursive;
	font-size: 30px;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}
@media (max-width: 760px) {
	.vdp-end { grid-template-columns: 1fr; text-align: center; }
	.vdp-end-art { max-width: 420px; margin: 0 auto; width: 100%; }
	.vdp-again { justify-content: center; }
}

/* ---------- inside a theme (shortcode) ---------- */

.vdp.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: 100vw; }

/* ---------- look closer ---------- */

.vdp-zoom, .vdp-book {
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: Alegreya, Georgia, serif;
	-webkit-font-smoothing: antialiased;
}
.vdp-zoom {
	background: rgba(14, 11, 26, .97);
	overflow: hidden;
	touch-action: none;
	cursor: grab;
}
.vdp-zoom.is-drag { cursor: grabbing; }
.vdp-zoom img {
	position: absolute;
	left: 0;
	top: 0;
	max-width: none;
	transform-origin: 0 0;
	user-select: none;
	-webkit-user-drag: none;
	will-change: transform;
}
.vdp-zoom-hint {
	position: absolute;
	left: 50%;
	bottom: max(18px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	margin: 0;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #efe9ff;
	font-size: 15px;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity .6s ease;
}
.vdp-zoom-bar {
	position: absolute;
	top: max(14px, env(safe-area-inset-top));
	right: 14px;
	display: flex;
	gap: 8px;
}

.vdp-round {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease;
}
.vdp-round:hover { background: rgba(255, 255, 255, .26); }
.vdp-round:focus-visible { outline: 3px solid #c39bff; outline-offset: 2px; }
.vdp-round svg { width: 22px; height: 22px; }

/* ---------- read it as a book ---------- */

.vdp-book {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: #141021;
	color: #f4efe4;
	transition: background .8s ease;
}
.vdp-book-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: max(10px, env(safe-area-inset-top)) 14px 6px 20px;
}
.vdp-book-title { font-family: "Caveat Brush", cursive; font-size: 24px; opacity: .9; }
.vdp-book-count { font: 500 13px/1 system-ui, sans-serif; letter-spacing: .12em; opacity: .7; margin-right: 6px; }
.vdp-book-head-right { display: flex; align-items: center; gap: 6px; }
.vdp-book-stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 30vw);
	align-items: center;
	gap: clamp(20px, 3vw, 48px);
	padding: 8px clamp(64px, 6vw, 96px) 8px;
	min-height: 0;
}
.vdp-book-pic { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.vdp-book-pic img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 3px;
	box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7);
	cursor: zoom-in;
	transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.vdp-book-pic img.is-out { opacity: 0; transform: scale(.985); }
.vdp-book-words { max-height: 100%; overflow: auto; transition: opacity .45s ease; }
.vdp-book-words.is-out { opacity: 0; }
.vdp-book-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 12px/1.3 system-ui, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 16px;
	color: color-mix(in srgb, var(--c) 45%, #fff);
}
.vdp-book-tag .vdp-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent); }
.vdp-book-verse { font-size: clamp(20px, 1.25vw + 10px, 28px); line-height: 1.5; }
.vdp-book-verse p { margin: 0; }
.vdp-book-verse p + p { margin-top: 1em; }
.vdp-book-verse.is-title p { font-family: "Caveat Brush", cursive; font-size: 2.4em; line-height: 1; }
.vdp-book-verse.is-cheer p {
	font-family: "Caveat Brush", cursive;
	font-size: 2.2em;
	line-height: 1;
	background: linear-gradient(90deg, #c39bff, #7f8cff, #5fb6ff, #6fd48a, #ffd84a, #ffa04a, #ff6a5a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.vdp-book-by { margin: 14px 0 0; font-style: italic; opacity: .8; }
.vdp-book-prev, .vdp-book-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}
.vdp-book-prev { left: max(10px, env(safe-area-inset-left)); }
.vdp-book-next { right: max(10px, env(safe-area-inset-right)); }
.vdp-book-prev[disabled], .vdp-book-next[disabled] { opacity: .25; cursor: default; }
.vdp-book-dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	padding: 12px 16px max(16px, env(safe-area-inset-bottom));
	flex-wrap: wrap;
}
.vdp-book-dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--c);
	opacity: .35;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}
.vdp-book-dots button[aria-current="true"] { opacity: 1; transform: scale(1.35); }
.vdp-book-dots button:hover { opacity: .8; }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
	.vdp-book-stage {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr);
		padding: 4px 14px;
		gap: 16px;
	}
	.vdp-book-words { align-self: start; text-align: center; padding: 0 8px; }
	.vdp-book-tag { justify-content: center; }
	.vdp-book-prev, .vdp-book-next { top: auto; bottom: 8px; transform: none; }
	.vdp-book-verse { font-size: clamp(17px, 4.4vw, 22px); }
}
@media (prefers-reduced-motion: reduce) {
	.vdp-book-pic img, .vdp-book-words { transition: none; }
}
.vdp-noscroll { overflow: hidden !important; }
.vdp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
