@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap");
/* ==========================================================
   Profile "book" — home page left column + open-book overlay
   ========================================================== */
:root {
	--book-ease: cubic-bezier(.2, .8, .2, 1);
	--book-cover-bg:
		radial-gradient(120% 70% at 85% 0%, rgba(255, 255, 255, .9), transparent 60%),
		linear-gradient(160deg, #EEF2FF, #F5EFFC);
	--book-spine: linear-gradient(90deg, #3558D6, #4770FF 55%, #6A8BFF);
}

/* ---------- Closed book in the left column ---------- */
.book {
	position: relative;
	perspective: 1800px;
}
@media (min-width: 1200px) {
	.book { position: sticky; top: 24px; }
}
/* Page edges peeking out on the right */
.book::before {
	content: "";
	position: absolute; top: 10px; bottom: 10px; right: -7px; width: 14px;
	border-radius: 0 6px 6px 0;
	background: repeating-linear-gradient(90deg, #fff 0 2px, #E4E7EE 2px 3px);
	box-shadow: 2px 2px 8px rgba(26, 31, 44, .08);
}
/* A page behind the cover, seen when the cover lifts on hover */
.book::after {
	content: ""; position: absolute; inset: 0; border-radius: 6px 16px 16px 6px;
	background: #fff; box-shadow: inset 10px 0 18px -14px rgba(26, 31, 44, .25);
}
.book.is-away .book-cover { visibility: hidden; }

/* Placeholder: while the book is away, its spot becomes a white-ish glass frame
   (it sits in the page, so the grey backdrop covers it) */
.book::before, .book::after { transition: opacity .35s ease, background-color .35s ease, box-shadow .35s ease; }
.book.is-away::before, .book.is-merging::before { opacity: 0; }
.book.is-away::after, .book.is-merging::after {
	background: rgba(255, 255, 255, .38);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), 0 1px 3px rgba(26, 31, 44, .06);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Merge: the book lands slightly inset inside the frame, then grows to fill it,
   so the frame's rim thins out and disappears behind the cover */
.book.is-merging .book-cover {
	transform-origin: center;
	animation: book-merge .5s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes book-merge {
	from { transform: scale(var(--merge-from, .94)); }
	to   { transform: none; }
}

/* ---------- The cover (used in the column and in the overlay) ---------- */
.book-cover, .book-face-front {
	display: flex; flex-direction: column;
	padding: 28px 24px 22px 40px;
	text-align: left; color: var(--black);
	border-radius: 6px 16px 16px 6px;
	background: var(--book-cover-bg);
}
.book-cover {
	position: relative; z-index: 2;
	width: 100%; border: 0; cursor: pointer;
	box-shadow: 0 1px 1px rgba(26, 31, 44, .04), 0 12px 28px -14px rgba(26, 31, 44, .28);
	transform-origin: left center;
	transition: transform .55s var(--book-ease), box-shadow .55s var(--book-ease);
	/* keep the cover on its own layer at all times, so text renders identically
	   during and after an animation (no subpixel snap when the merge ends) */
	will-change: transform;
}
.book-cover::before, .book-face-front::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px;
	border-radius: 6px 0 0 6px; background: var(--book-spine);
}
.book-cover::after, .book-face-front::after {
	content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px;
	background: linear-gradient(90deg, rgba(26, 31, 44, .10), rgba(255, 255, 255, .8));
}

.book-label {
	display: flex; justify-content: space-between; align-items: center;
	font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--light-black);
}
.book-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: inline-block; margin-right: 6px; vertical-align: middle; }
.book-photo { display: block; margin: 46px auto 0; width: 62%; }
.book-photo img { display: block; width: 100%; height: auto; }
.book-title { display: block; margin-top: 18px; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.book-title .primary { color: var(--primary); }
.book-subtitle { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--light-black); }
.book-footer {
	margin-top: auto; padding-top: 16px;
	display: flex; justify-content: space-between; align-items: center;
	border-top: 1px solid rgba(26, 31, 44, .08);
	font-size: 13px; font-weight: 500; color: var(--light-black);
}
.book-open-hint {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px; border-radius: 999px;
	background: var(--black); color: var(--white); font-weight: 600;
	transition: background-color .2s;
}
.book-open-hint svg { transition: transform .4s var(--book-ease); }

@media (hover: hover) {
	.book .book-cover:hover {
		transform: rotateY(-16deg);
		box-shadow: 0 1px 1px rgba(26, 31, 44, .04), 18px 22px 40px -18px rgba(26, 31, 44, .4);
	}
	.book-cover:hover .book-open-hint { background: var(--primary); }
	.book-cover:hover .book-open-hint svg { transform: translateX(3px); }
}
/* the cover in the column hugs its content */
.book > .book-cover .book-footer { margin-top: 24px; }
.book-cover:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.book .book-cover:active { transform: rotateY(-22deg); transition-duration: .2s; }

/* ---------- Overlay ---------- */
.book-overlay { position: fixed; inset: 0; z-index: 2000; }
.book-overlay[hidden] { display: none; }
.book-backdrop {
	position: absolute; inset: 0;
	background: rgba(26, 31, 44, .55);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* The open spread. It is laid out at the exact size of the cover in the column
   (--pw × --ph, set by book.js) and scaled up as a whole, so the cover never
   changes proportions while it travels. */
.book-spread {
	position: absolute; top: 0; left: 0;
	width: calc(var(--pw, 300px) * 2); height: var(--ph, 540px);
	transform-origin: 0 0;
	perspective: 2400px;
}
.book-page-right {
	position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
	padding: 28px 24px 22px;
	background: #fff;
	border-radius: 0 16px 16px 0;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), inset 14px 0 20px -16px rgba(26, 31, 44, .28);
	display: flex; flex-direction: column; overflow: auto;
}
/* Page edges on the right of the open book */
.book-page-right::after {
	content: ""; position: absolute; top: 8px; bottom: 8px; right: 0; width: 6px;
	background: repeating-linear-gradient(90deg, #fff 0 2px, #E4E7EE 2px 3px);
	border-radius: 0 6px 6px 0;
}

.book-flip {
	position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
	transform-origin: left center;
	transform-style: preserve-3d;
	z-index: 2;
}
.book-face {
	position: absolute; inset: 0;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	border-radius: 6px 16px 16px 6px;
	overflow: hidden;
}
.book-face-front { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.book-face-back {
	transform: rotateY(180deg);
	border-radius: 16px 0 0 16px;
	padding: 28px 24px 22px;
	background: #FBFAFF;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), inset -14px 0 20px -16px rgba(26, 31, 44, .28);
	display: flex; flex-direction: column;
}

/* Page content */
.book-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.book-overlay h3 { margin-top: 8px; font-size: 22px; line-height: 1.2; }
.book-overlay p { margin-top: 8px; font-size: 14px; color: var(--light-black); font-weight: 500; line-height: 1.5em; }
.book-overlay p strong { color: var(--black); font-weight: 600; }
.book-signature { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 20px; }
.book-signature img { width: 44px; height: 44px; }
.book-signature span { font-size: 12px; color: var(--light-black); line-height: 1.4; }
.book-signature strong { display: block; color: var(--black); font-size: 14px; }

.book-chapters { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px dashed var(--border); }
.book-chapters li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.book-chapters .num { font-size: 12px; font-weight: 600; color: var(--primary); padding-top: 3px; }
.book-chapters .role { font-size: 14px; font-weight: 600; color: var(--black); line-height: 1.35; }
.book-chapters .meta { grid-column: 2; font-size: 12px; color: var(--light-black); line-height: 1.4; }

.book-actions { margin-top: auto; padding-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.book-actions .btn {
	padding: 9px 13px; border-radius: 7px; font-weight: 600; font-size: 13px; line-height: 1;
	background: var(--primary); color: var(--white); border: 1px solid var(--primary);
}
.book-actions .btn:hover { filter: brightness(1.08); color: var(--white); }
.book-actions .btn.btn-ghost { background: transparent; color: var(--black); border-color: var(--border); }
.book-actions .btn.btn-ghost:hover { border-color: var(--primary); color: var(--primary); filter: none; }

.book-page-right > *, .book-face-back > * { transition: opacity .35s ease; }
.book-overlay:not(.is-open) .book-page-right > *, .book-overlay:not(.is-open) .book-face-back > * { opacity: 0; }

.book-close {
	position: fixed; top: 20px; right: 20px; z-index: 3;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--black);
	font: 600 14px/1 var(--font-family); cursor: pointer;
	transition: opacity .3s ease, transform .3s var(--book-ease);
}
.book-close:hover { background: #fff; transform: translateY(-1px); }
.book-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.book-overlay:not(.is-open) .book-close { opacity: 0; pointer-events: none; }

.mobile-only { display: none; }

/* ---------- Phones: one page instead of a spread ---------- */
@media (max-width: 0px) { /* old phone layout, off since 2026-11-12: small screens show the spread one page at a time */
	.book-spread { width: var(--pw, 300px); }
	.book-page-right, .book-flip { left: 0; width: 100%; }
	.book-page-right { border-radius: 6px 16px 16px 6px; }
	.book-face-back { display: none; }
	.mobile-only { display: block; }
	.mobile-only + .book-kicker { margin-top: 24px; display: block; }
}

body.book-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.book.is-merging .book-cover { animation: none; }
	.book .book-cover:hover, .book .book-cover:active { transform: none; }
}

/* "Now" block on the About page */
.book-now { margin-top: 18px; padding: 14px 14px 12px; border-radius: 10px; background: rgba(71, 112, 255, .06); border: 1px solid rgba(71, 112, 255, .12); }
.book-now-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--primary); border-radius: 999px; padding: 3px 8px; }
.book-now strong { display: block; margin-top: 8px; font-size: 15px; color: var(--black); }
.book-now-meta { display: block; font-size: 12px; color: var(--light-black); }
.book-overlay .book-now p { margin-top: 6px; font-size: 13px; }

/* Wavy dividers between the book's list items */
.book-overlay {
	--wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 3 Q3 0.5 6 3 T12 3' fill='none' stroke='%23E9A799' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.book-overlay .book-chapters { border-top: 0; background: var(--wave) repeat-x 0 0 / 12px 6px; padding-top: 6px; }
.book-overlay .book-chapters li { border-bottom: 0; padding-bottom: 17px; background: var(--wave) repeat-x 0 100% / 12px 6px; }

/* ---------- Story page doodle (Taiwan → France) ---------- */
.book-doodle { display: block; width: 100%; height: auto; margin: 10px 0 2px; overflow: visible; }
.doodle-ink { stroke: var(--black); stroke-width: 1.6; }
.doodle-ink-soft { stroke: #B9BFCC; stroke-width: 1.4; }
.doodle-fill-coral { fill: rgba(233, 167, 153, .35); }
.doodle-fill-blue { fill: rgba(71, 112, 255, .12); }
.doodle-path { stroke: #E9A799; stroke-width: 2; stroke-dasharray: 1 7; }
.doodle-reveal { stroke-dasharray: 1; }
.doodle-pin circle { fill: var(--primary); }
.doodle-pin .doodle-pulse { fill: none; stroke: var(--primary); stroke-width: 1.5; opacity: 0; transform-origin: 230px 62px; }
.doodle-plane { fill: #fff; stroke: var(--black); stroke-width: 1.5; stroke-linejoin: round; }
.doodle-label { font-family: "Caveat", cursive; font-size: 17px; font-weight: 600; fill: var(--black); }

/* Looping doodles: the path and plane loop through SMIL in the HTML (4.5s cycle,
   started from book.js); the pulse and the loop icon follow the same rhythm */
.book-overlay.is-open .doodle-pulse { animation: doodle-pulse 4.5s ease-out 1.85s infinite; }
@keyframes doodle-pulse { 0% { opacity: .8; transform: scale(.4); } 35%, 100% { opacity: 0; transform: scale(1.6); } }

.book-loop { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; color: #E9A799; }
.book-loop svg { flex: none; width: 30px; height: 30px; margin-top: 4px; }
.book-overlay.is-open .book-loop svg { animation: doodle-spin 4.5s cubic-bezier(.45, .05, .3, 1) 1.6s infinite; }
@keyframes doodle-spin { 0% { transform: rotate(0); } 27%, 100% { transform: rotate(-360deg); } }
.book-overlay .book-loop p { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
	.doodle-reveal { stroke-dashoffset: 0; }
	.doodle-plane { display: none; }
	.book-overlay.is-open .doodle-pulse, .book-overlay.is-open .book-loop svg { animation: none; }
}


/* ---------- Crayon style (D3) for the doodles ---------- */
.book-doodle .doodle-fill-coral { fill: rgba(233, 167, 153, .55); stroke: #D2654F; stroke-width: 3; }
.book-doodle .doodle-fill-blue { fill: rgba(71, 112, 255, .3); stroke: #2B50D9; stroke-width: 3; }
.book-doodle .doodle-ink-soft { stroke: #A9B6E8; stroke-width: 2.4; }
.book-doodle .doodle-path { stroke: #D2654F; stroke-width: 3; stroke-dasharray: 1 8; }
.book-doodle .doodle-pin circle { fill: #2B50D9; }
.book-doodle .doodle-pin .doodle-pulse { fill: none; stroke: #2B50D9; }
.book-doodle .doodle-plane { fill: rgba(233, 167, 153, .6); stroke: #D2654F; stroke-width: 2.6; }
.book-doodle .doodle-label { fill: #1A1F2C; }
.book-loop svg { width: 34px; height: 34px; margin-top: 2px; }


/* ---------- Chapter 1 as a journal page ---------- */
.book-face-back.journal, .book-page-right.journal, .book-leaf-back.journal {
	background-color: #FFFDF8;
	/* coral margin line + dotted journal grid */
	background-image:
		linear-gradient(90deg, transparent 15px, rgba(210, 101, 79, .35) 15px 16px, transparent 16px),
		radial-gradient(circle, rgba(43, 80, 217, .16) 0 1px, transparent 1.4px);
	background-size: auto, 16px 16px;
	background-position: 0 0, 4px 6px;
	padding: 28px 22px 20px 30px;
}
.journal > .book-kicker { margin-top: 3px; font-size: 10.5px; line-height: 1.6; }
.j-photo {
	position: relative; margin: 16px 6px 4px; padding: 8px 8px 4px;
	background: #fff; border-radius: 3px;
	box-shadow: 0 1px 2px rgba(26, 31, 44, .08), 0 8px 18px -10px rgba(26, 31, 44, .35);
	transform: rotate(-1.6deg);
}
.j-photo .book-doodle { margin: 0; }
.j-tape {
	position: absolute; top: -9px; width: 58px; height: 18px;
	background: rgba(71, 112, 255, .22);
	border-left: 2px dotted rgba(255, 255, 255, .6); border-right: 2px dotted rgba(255, 255, 255, .6);
}
.j-tape-l { left: -12px; transform: rotate(-24deg); }
.j-tape-r { right: -12px; transform: rotate(20deg); background: rgba(233, 167, 153, .45); }
.book-overlay .j-text {
	margin-top: 14px; font-size: 13.5px; line-height: 24px;
}
.j-text mark { background: linear-gradient(transparent 55%, rgba(233, 167, 153, .55) 55% 92%, transparent 92%); color: var(--black); padding: 0 1px; }
.book-loop.j-note {
	margin-top: auto; align-self: flex-end; width: 82%;
	gap: 8px; align-items: center;
	padding: 10px 12px; background: #EEF2FF; border-radius: 2px;
	box-shadow: 0 6px 14px -8px rgba(26, 31, 44, .35);
	transform: rotate(1.8deg);
	font-family: "Caveat", cursive; font-size: 19px; font-weight: 600; line-height: 1.05; color: #2B50D9;
}
.book-loop.j-note svg { width: 30px; height: 30px; margin-top: 0; }
@media (max-width: 0px) { /* old phone layout, off since 2026-11-12: small screens show the spread one page at a time */
	.mobile-only .book-loop.j-note { margin: 18px 0 8px; align-self: auto; }
	.journal > .mobile-only + .book-kicker { margin-top: 28px; }
}

/* ---------- Chapter 2 on the same journal paper ---------- */
.j-photo-r { transform: rotate(1.4deg); margin-top: 26px; }
.journal .book-actions { align-items: center; }
.j-cta {
	flex-basis: 100%; display: flex; align-items: center; gap: 4px; margin-bottom: 2px;
	font-family: "Caveat", cursive; font-size: 20px; font-weight: 600; color: #D2654F;
	transform: rotate(-3deg);
}
.j-cta svg { width: 30px; height: 12px; transform: rotate(14deg) translateY(4px); }

/* Looping doodles (4.5s, same rhythm as the map) */
.ch2-doodle .ch2-knob, .ch2-doodle .ch2-cursor, .ch2-doodle .ch2-spark { transform-box: fill-box; transform-origin: center; }
.ch2-doodle .ch2-cursor { transform-origin: 0 0; }
.ch2-doodle .ch2-speed, .ch2-doodle .ch2-caret { opacity: 0; }
.book-overlay.is-open .ch2-track { animation: ch2-track 4.5s ease .6s infinite; }
@keyframes ch2-track { 0%, 16% { fill: rgba(71, 112, 255, .3); } 24%, 60% { fill: rgba(71, 112, 255, .62); } 68%, 100% { fill: rgba(71, 112, 255, .3); } }
.book-overlay.is-open .ch2-knob { animation: ch2-knob 4.5s cubic-bezier(.34, 1.4, .5, 1) .6s infinite; }
.book-overlay.is-open .ch2-cursor { animation: ch2-tap 4.5s ease-out .6s infinite; }
.book-overlay.is-open .ch2-speed { animation: ch2-speed 4.5s ease-out .6s infinite; }
.book-overlay.is-open .ch2-caret { animation: ch2-caret 1s steps(1) .6s infinite; }
.book-overlay.is-open .ch2-spark-a { animation: ch2-spark 4.5s ease-in-out .6s infinite; }
.book-overlay.is-open .ch2-spark-b { animation: ch2-spark 4.5s ease-in-out 1.4s infinite; }
@keyframes ch2-knob {
	0%, 14% { transform: translateX(0); }
	24%, 60% { transform: translateX(36px); }
	70%, 100% { transform: translateX(0); }
}
@keyframes ch2-tap {
	0%, 10% { transform: scale(1); } 14% { transform: scale(.82); } 20%, 56% { transform: scale(1); }
	60% { transform: scale(.82); } 66%, 100% { transform: scale(1); }
}
@keyframes ch2-speed {
	0%, 15% { opacity: 0; transform: translateX(14px); } 20% { opacity: 1; } 30%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes ch2-caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ch2-spark {
	0%, 100% { transform: scale(.7) rotate(0); opacity: .7; }
	20% { transform: scale(1.15) rotate(45deg); opacity: 1; }
	40% { transform: scale(.85) rotate(90deg); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
	.book-overlay.is-open .ch2-knob, .book-overlay.is-open .ch2-cursor, .book-overlay.is-open .ch2-speed,
	.book-overlay.is-open .ch2-caret, .book-overlay.is-open .ch2-spark, .book-overlay.is-open .ch2-track { animation: none; }
}

/* ---------- Turnable page (pages 2 + 3 on one sheet) ---------- */
.book-leaf {
	position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
	transform-origin: left center;
	transform-style: preserve-3d;
	z-index: 1;                       /* under the cover while the book opens */
}
.book-leaf.is-up { z-index: 3; }      /* above Chapter 1 once it is turned */
.book-leaf > .book-leaf-front {
	left: 0; width: 100%;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.book-leaf-back {
	position: absolute; inset: 0;
	transform: rotateY(180deg);
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	border-radius: 16px 0 0 16px; overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), inset -14px 0 20px -16px rgba(26, 31, 44, .28);
}
.book-leaf-back > *, .book-page-4 > * { transition: opacity .35s ease; }
.book-overlay:not(.is-open) .book-leaf-back > *, .book-overlay:not(.is-open) .book-page-4 > * { opacity: 0; }

.j-placeholder {
	margin: auto 0 !important; text-align: center;
	font-family: "Caveat", cursive; font-size: 22px !important; font-weight: 600; color: #C9C2B4 !important;
}

/* The page corner: folds up when you hover a page that can be turned */
.page-corner {
	position: absolute; bottom: 0; width: 0; height: 0;
	padding: 0; border: 0; background: none; cursor: pointer; z-index: 5;
	transition: width .35s var(--book-ease), height .35s var(--book-ease);
}
.page-corner::before, .page-corner::after { content: ""; position: absolute; inset: 0; }
.page-corner-next { right: 0; }
/* what's revealed under the fold */
.page-corner-next::before {
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	background: linear-gradient(135deg, transparent 50%, rgba(26, 31, 44, .22) 50%, #E6E0D3 62%, #ECE7DC 100%);
}
/* the folded flap (back of the paper) */
.page-corner-next::after {
	clip-path: polygon(0 0, 100% 0, 0 100%);
	background: linear-gradient(135deg, #DDD3BE 0%, #F3EEE2 38%, #FFFFFF 49%);
}
.page-corner-prev { left: 0; }
.page-corner-prev::before {
	clip-path: polygon(0 0, 100% 100%, 0 100%);
	background: linear-gradient(225deg, transparent 50%, rgba(26, 31, 44, .22) 50%, #E6E0D3 62%, #ECE7DC 100%);
}
.page-corner-prev::after {
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	background: linear-gradient(225deg, #DDD3BE 0%, #F3EEE2 38%, #FFFFFF 49%);
}
@media (hover: hover) {
	.book-leaf-front:hover .page-corner-next, .book-leaf-back:hover .page-corner-prev { width: 44px; height: 44px; }
	.book-leaf .page-corner:hover { width: 62px; height: 62px; }
}
@media (hover: none) {
	.page-corner { width: 34px; height: 34px; }
}
.page-corner:focus-visible { width: 62px; height: 62px; outline: 2px solid var(--primary); outline-offset: -2px; }
.book-overlay:not(.is-open) .page-corner, .book-leaf.is-turning .page-corner { visibility: hidden; }

@media (max-width: 0px) { /* old phone layout, off since 2026-11-12: small screens show the spread one page at a time */
	.book-leaf { left: 0; width: 100%; }
	.book-leaf-back, .book-page-4, .page-corner { display: none; }
}
