@font-face {
  font-family: Cormorant;
  src: url(fonts/cormorant-garamond-cyrillic-wght-normal.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Cormorant;
  src: url(fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url(fonts/cormorant-garamond-cyrillic-wght-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Cormorant;
  src: url(fonts/cormorant-garamond-latin-wght-italic.woff2) format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #22181a;
  --wine-black: #1b1015;
  --ink-dark: #0d0d10;
  --paper: #f4ede3;
  --ivory: #fcf2e5;
  --muted: #c4b6b5;
  --ink-muted: #615353;
  --wine: #7c283d;
  --rose: #efb8b6;
  --line-dark: rgb(244 237 227 / 20%);
  --line-light: rgb(34 24 26 / 21%);
  --display: Cormorant, Georgia, serif;
  --body: Manrope, system-ui, sans-serif;
  --pad: clamp(24px, 6vw, 98px);
  --safe-left: max(var(--pad), env(safe-area-inset-left));
  --safe-right: max(var(--pad), env(safe-area-inset-right));
  --max: 1512px;
  --ease: cubic-bezier(.2, .7, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--wine-black); color: var(--ivory); font: 400 1rem/1.61 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--wine); color: var(--ivory); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 9; top: 8px; left: 8px; padding: 12px 18px; color: var(--ink); background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.frame { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--safe-left) var(--safe-right); }
.eyebrow { font-size: .76rem; line-height: 1.3; font-weight: 750; text-transform: uppercase; letter-spacing: .19em; }
.display { font: 500 clamp(4.3rem, 8vw, 8.6rem)/.82 var(--display); letter-spacing: -.065em; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: .82rem 1.6rem; border: 1px solid transparent; border-radius: 100vw; font-size: .84rem; font-weight: 750; line-height: 1.25; transition: background-color 230ms, color 230ms, border-color 230ms, transform 230ms var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { background: #fff9f0; }
.button-dark { color: var(--ivory); background: var(--wine); }
.button-dark:hover { background: #5e1a2c; }
.button-outline { color: var(--ivory); border-color: rgb(252 242 229 / 47%); }
.button-outline:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.text-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 6px; font-size: .86rem; font-weight: 700; }

.site-header { position: fixed; z-index: 7; inset: max(12px, env(safe-area-inset-top)) env(safe-area-inset-right) auto env(safe-area-inset-left); display: flex; justify-content: center; pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 3px; max-width: calc(100% - 24px); padding: 3px 7px; color: var(--ivory); background: #21171fe8; border: 1px solid #f8e1d934; border-radius: 99px; box-shadow: 0 8px 28px #0b060a66; backdrop-filter: blur(16px) saturate(125%); pointer-events: auto; transition: opacity .3s, transform .4s var(--ease); }
.site-header[data-floating]:not([data-visible]):not(:has(:focus-visible)) .header-inner { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.wordmark { display: inline-flex; gap: 12px; width: fit-content; align-items: center; white-space: nowrap; font-size: .8rem; font-weight: 720; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.header-inner .wordmark { display: grid; min-width: 44px; min-height: 44px; place-items: center; border-radius: 99px; }
.header-inner .brand-mark, .footer .brand-mark { padding: 3px; border: 1px solid #ebbd903f; border-radius: 10px; background: linear-gradient(145deg, #57323c, #281820 86%); }
.header-inner .brand-mark { width: 32px; height: 32px; }
.header-inner .wordmark:hover .brand-mark { border-color: #ebbd90a1; }
.main-nav { display: flex; align-items: center; gap: 1px; }
.main-nav a, .header-link, .footer nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .8rem; font-weight: 650; transition: color 200ms, background 200ms; }
.main-nav a, .header-link { padding-inline: 13px; border-radius: 99px; white-space: nowrap; }
.main-nav a:hover, .header-link:hover, .main-nav a[aria-current="location"] { color: #fff1e5; background: #ffdfcf21; }
.header-link { color: #efc6b2; }
.site-header :focus-visible { outline-offset: -3px; }
.footer nav a:hover { color: var(--rose); }

.hero { min-height: max(720px, 100svh); display: grid; position: relative; isolation: isolate; overflow: hidden; background: #26131b; }
.hero-picture { position: absolute; inset: 0; display: block; z-index: -3; transform-origin: 74% 36%; transform: translate3d(0, var(--hero-offset, 0px), 0) scale(var(--hero-scale, 1)); }
.hero-photo { height: 100%; object-fit: cover; object-position: 61% 45%; }
.hero-wash { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgb(15 8 12 / 64%), rgb(18 10 15 / 31%) 42%, transparent 67%), linear-gradient(0deg, rgb(16 9 14 / 75%), transparent 29%), linear-gradient(180deg, rgb(15 8 12 / 39%), transparent 18%); }
.hero-glow { position: absolute; z-index: -1; inset: -15%; opacity: var(--hero-glow, 0); transform: translate3d(var(--glow-offset, 0px), 0, 0); background: radial-gradient(ellipse at 67% 62%, #d6956151 0%, #a2593b18 32%, transparent 53%); pointer-events: none; }
.hero-inner { display: grid; align-items: center; padding-top: 108px; padding-bottom: 115px; }
.hero-text { width: min(100%, 690px); position: relative; transform: translate3d(0, var(--hero-text-offset, 0px), 0); opacity: var(--hero-copy-opacity, 1); }
.hero-text:focus-within { opacity: 1; }
.hero-text > * { animation: fade-up 800ms var(--ease) both; }
.hero-text h1 { animation-delay: 70ms; }
.hero-description { animation-delay: 165ms; }
.hero-actions { animation-delay: 230ms; }
.hero-role { display: flex; gap: 12px; align-items: center; max-width: 35ch; margin-bottom: 26px; color: #f5d1cb; font-size: clamp(.84rem, 1.18vw, 1rem); font-weight: 680; line-height: 1.35; }
.hero-role .brand-mark { width: 38px; height: 38px; }
.hero h1 { font: 500 clamp(6.2rem, 11.2vw, 12.2rem)/.72 var(--display); letter-spacing: -.071em; margin-left: -.047em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-weight: 500; font-style: italic; margin-left: .07em; color: #ffe5dc; }
.hero-description { display: grid; margin-top: clamp(25px, 4.2vh, 43px); max-width: 395px; font-size: clamp(.95rem, 1.23vw, 1.17rem); color: #f5e9e4; }
.hero-description > span { grid-area: 1 / 1; min-width: 0; }
.hero-description[data-typing] .type-copy { opacity: 0; }
.type-caret { display: inline-block; width: 1px; height: .88em; margin-inline: 2px -3px; vertical-align: -.08em; background: #edbf93; animation: type-blink .85s step-end infinite; }
@keyframes type-blink { 50% { opacity: 0; } }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.scroll-cue { position: absolute; inset: auto var(--safe-right) max(22px, env(safe-area-inset-bottom)) var(--safe-left); display: inline-flex; width: fit-content; min-height: 44px; max-width: calc(100% - var(--safe-left) - var(--safe-right)); gap: 10px; align-items: center; padding: 8px 1px; color: #e4d3d3; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; transform: translateY(var(--hero-cue-offset, 0px)); }
.scroll-cue span { width: 1px; height: 22px; background: currentColor; transform-origin: top; animation: cue 2.1s var(--ease) 1s 2; }
@keyframes cue { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.48); } }

/* Reading room */
.worlds { background: var(--ink-dark); position: relative; }
.worlds.cinema-scroll { min-height: 475svh; }
.world-stage { position: relative; isolation: isolate; overflow: hidden; --paper-page: #f2e5d1; --page-ink: #30211d; --opening: 0; }
.cinema-scroll .world-stage { position: sticky; top: 0; height: 100svh; }
.world-backdrop, .scene, .world-vignette { position: absolute; inset: 0; }
.world-backdrop { z-index: -2; background: #101017; overflow: hidden; }
.scene { background-position: center; background-size: cover; opacity: 0; transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(var(--scene-zoom, 1.065)); transition: opacity 430ms var(--ease); }
.scene-prichal { background-color: #151c2a; background-image: url(media/scene-prichal.webp); }
.scene-pricel-1 { background-color: #192231; background-image: url(media/scene-pricel-1.webp); }
.scene-pricel-2 { background-color: #102521; background-image: url(media/scene-pricel-2.webp); }
.scene-fern { background-color: #102b2c; background-image: url(media/scene-fern.webp); }
.scene-guard { background-color: #1d1628; background-image: url(media/scene-guard.webp); }
.scene-jullex { background-color: #123222; background-image: url(media/scene-jullex.webp); }
.world-stage[data-edition="prichal"] .scene-prichal,
.world-stage[data-edition="pricel-1"] .scene-pricel-1,
.world-stage[data-edition="pricel-2"] .scene-pricel-2,
.world-stage[data-edition="fern"] .scene-fern,
.world-stage[data-edition="guard"] .scene-guard,
.world-stage[data-edition="jullex"] .scene-jullex { opacity: 1; }
.world-vignette { background: linear-gradient(90deg, #08080ae8 0, #0a0a0f92 39%, transparent 69%), linear-gradient(0deg, #09090cf2, transparent 25%), linear-gradient(180deg, #0d0d1075, transparent 24%); }
.world-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; gap: 12px 26px; padding: 76px var(--safe-right) 25px var(--safe-left); }
.cinema-scroll .world-inner { height: 100%; }
.world-copy { position: relative; z-index: 2; min-width: 0; container-type: inline-size; }
.world-copy > .eyebrow { color: #e6d4d0; margin-bottom: 23px; }
.world-description h2 { font: 500 clamp(3rem, 19cqw, 8.5rem)/.78 var(--display); letter-spacing: -.064em; margin-left: -.037em; }
.world-volume { margin-top: 18px; color: #efd6d1; font: 630 clamp(1.45rem, 2.65vw, 2.15rem)/1.05 var(--display); }
.world-synopsis { color: #efe6e4; margin-top: 1.5rem; max-width: 365px; }
.world-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; }
.world-read { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 14px; border: 1px solid #f3e1cb; border-radius: 100vw; background: #f3e1cb; color: #38262a; font-size: .81rem; font-weight: 740; }
.world-read:hover { background: #fff0df; }
.cinema-scroll .world-copy { opacity: var(--book-opacity, 1); }
.world-reading { position: relative; height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); }
.book-visual { position: relative; isolation: isolate; display: grid; align-items: center; min-width: 0; min-height: 340px; touch-action: pan-y pinch-zoom; }
.cinema-scroll .book-visual { align-self: stretch; min-height: 0; }
.world-stage .book-visual { transform: translate3d(var(--book-shift, 0px), 0, 0); opacity: var(--book-opacity, 1); }
.world-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(var(--book-scale, 1)) rotate(var(--book-tilt, 0deg)); }
.world-stage.webgl-ready .world-cover-image { visibility: hidden; }
.world-stage.webgl-ready .world-canvas { visibility: visible; }
.world-book-hit { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(82%, 445px); height: 87%; transform: translate(-50%, -50%) scale(var(--book-scale, 1)); border-radius: 5px; cursor: pointer; }
.world-book-hit:focus-visible { outline-offset: 6px; }
.world-canvas { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.world-canvas canvas { display: block; width: 100%; height: 100%; }
.reader-deck { position: relative; width: min(100%, 740px); margin-inline: auto; }
.reader-spread { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 345px; color: var(--page-ink); filter: drop-shadow(0 18px 28px #0009); }
.reader-enabled .reader-spread { opacity: clamp(0, calc((var(--opening) - .24) * 2.3), 1); transform: translateX(calc((1 - var(--opening)) * 15%)) scaleX(calc(.76 + var(--opening) * .24)); }
.reader-leaf { position: relative; min-width: 0; display: flex; flex-direction: column; padding: clamp(22px, 3.3vw, 40px) clamp(23px, 4.5vw, 52px) 64px; overflow-wrap: break-word; }
.reader-left { border-radius: 3px 0 0 3px; background: linear-gradient(90deg, #e5d6be, #f3e7d2 8%, #f6ead5 81%, #d0b795); }
.reader-right { border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #d4bb98, #f3e7d2 8%, #f6ead5 81%, #ede0c8); }
.reader-titlepage { margin: auto 0; text-align: center; padding-block: 28px; }
.reader-titlepage h3 { font: 630 clamp(2.05rem, 4.25vw, 3.3rem)/.99 var(--display); letter-spacing: -.035em; margin: 19px 0 20px; }
.reader-titlepage h3::after { content: ""; display: block; width: 30px; height: 1px; margin: 20px auto 0; background: #956a58; }
.reader-titlepage [data-reader-field="meta"] { font-size: .73rem; line-height: 1.4; font-weight: 660; color: #723544; }
.reader-kicker { font-size: .71rem; line-height: 1.36; font-weight: 710; letter-spacing: .065em; text-transform: uppercase; color: #723544; }
.reader-running { padding-bottom: 6px; border-bottom: 1px solid #ad8e765f; margin-bottom: 15px; font: italic 540 .8rem/1.36 var(--display); color: #79594d; }
.reader-label { font: 630 clamp(1.6rem, 3vw, 2.36rem)/1.03 var(--display); color: #40291f; margin-bottom: 14px; letter-spacing: -.016em; }
.reader-text { font: 530 clamp(1.12rem, 2.5vw, 1.4rem)/1.31 var(--display); }
.reader-text p + p { margin-top: .65em; }
.reader-plate { margin: 0; }
.reader-plate img { display: block; width: 100%; height: auto; box-shadow: 0 2px 10px #573c2925; }
.reader-plate figcaption { margin-top: 10px; color: #6f534a; font: italic 530 1rem/1.3 var(--display); }
.reader-folio { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); font: 550 .72rem/1 var(--body); color: #76584a; }
.reader-jacket { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; pointer-events: none; transform: translateX(calc(var(--opening) * -18%)) perspective(900px) rotateY(calc(var(--opening) * -155deg - 7deg)); opacity: clamp(0, calc((.74 - var(--opening)) * 3), 1); }
.reader-enabled .reader-jacket { display: flex; }
.reader-jacket img { width: auto; height: 92%; max-width: 80%; object-fit: contain; filter: drop-shadow(10px 13px 14px #050409bf); border-radius: 2px; }
.reader-enabled.webgl-ready .world-canvas { visibility: visible; }
.reader-enabled.webgl-ready .reader-deck { position: absolute; width: 100%; inset: 0; }
.reader-enabled.webgl-ready .reader-spread { position: absolute; width: 1px; min-height: 0; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reader-enabled.webgl-ready .reader-jacket { display: none; }
.reader-ink { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.reader-ink > * { position: absolute; pointer-events: auto; }
.reader-corner { width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 4px; border: 1px solid #a17b6455; color: #632b3c; background: linear-gradient(135deg, #fdf2df, #dcc5a5); box-shadow: 0 3px 8px #4b2b2130; border-radius: 50%; font: 640 2rem/1 var(--display); transition: color 180ms, background 180ms, box-shadow 180ms; }
.reader-corner:hover { color: #fff1e2; background: #7c283d; box-shadow: 0 3px 12px #4b2b214d; }
.reader-prev { bottom: 9px; left: 11px; }
.reader-next { bottom: 9px; right: 11px; }
.reader-reading-links { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: calc(50% - 36px); left: 75%; bottom: 47px; transform: translateX(-50%); text-align: center; }
.reader-read { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 6px .95rem; border: 1px solid #9f5d6c; border-radius: 99px; background: #6d273a; color: #fff5e9; font-size: .77rem; font-weight: 750; line-height: 1.25; box-shadow: 0 4px 11px #4b2b214d; transition: background 180ms; }
.reader-read:hover { background: #8e3950; }
.reader-related { display: inline-flex; align-items: center; min-height: 36px; color: #5c303e; font-size: .75rem; font-weight: 720; line-height: 1.25; text-decoration: underline; text-underline-offset: 4px; }
.reader-reading-links :focus-visible, .reader-corner:focus-visible { outline: 2px solid #8b4d60; outline-offset: 3px; }
.webgl-ready .reader-corner, .webgl-ready .reader-reading-links { bottom: auto; right: auto; transform: translate(-50%, -50%); }
.webgl-ready .reader-prev { left: var(--prev-x); top: var(--prev-y); }
.webgl-ready .reader-next { left: var(--next-x); top: var(--next-y); }
.webgl-ready .reader-reading-links { left: var(--read-x); top: var(--read-y); width: min(24%, 248px); }
.reader-ink[data-turning] > * { pointer-events: none; opacity: 0; }
.reader-turn { position: absolute; z-index: 1; inset: 0 0 0 50%; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; }
.reader-turn[data-backward] { inset: 0 50% 0 0; transform-origin: right center; }
.reader-turn .reader-leaf { position: absolute; inset: 0; backface-visibility: hidden; }
.reader-turn .reader-reverse { transform: rotateY(180deg); }
.reader-resting { position: absolute; inset: 0 50% 0 0; pointer-events: none; }
.reader-resting.reader-right { inset: 0 0 0 50%; }
.reader-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid #eadbd58a; border-radius: 100vw; color: var(--ivory); background: #190f1eb3; font-size: .82rem; font-weight: 720; }
.reader-open:hover { background: var(--ivory); color: var(--ink); }
.reader-enabled:not(.webgl-ready):not([data-pose="open"]) .reader-spread { pointer-events: none; }
.world-console { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; }
.world-buttons { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 42px); }
.world-buttons button { min-height: 45px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #cbbdc3; white-space: nowrap; font-size: .82rem; font-weight: 720; }
.world-buttons button:hover, .world-buttons button[aria-pressed="true"] { color: var(--ivory); border-color: var(--ivory); }
.cinema-scroll .world-edition-picker, .worlds:not(.cinema-scroll) .world-buttons { display: none; }
.world-edition-picker select { appearance: none; max-width: 100%; min-height: 44px; padding: 0 28px 0 10px; border: 1px solid #eadbd559; border-radius: 4px; background: linear-gradient(45deg, transparent 50%, #f4ede3 50%) calc(100% - 13px) 51% / 5px 5px no-repeat, linear-gradient(135deg, #f4ede3 50%, transparent 50%) calc(100% - 8px) 51% / 5px 5px no-repeat, #1b151a; color: var(--ivory); font: 650 .78rem/1.3 var(--body); }
.world-edition-picker { max-width: 100%; }
.world-shortcuts { display: flex; align-items: center; gap: 17px; }
.world-shortcuts a { display: inline-flex; min-height: 44px; align-items: center; font-size: .78rem; font-weight: 730; text-decoration: underline; text-underline-offset: 5px; }
.world-scroll-hint { display: none; color: #eee1e1; font-size: .74rem; }
.cinema-scroll .world-scroll-hint { display: block; }

.world-progress { display: none; flex-basis: 100%; position: relative; height: 1px; background: #f7e9d92c; pointer-events: none; }
.cinema-scroll .world-progress { display: block; }
.world-progress::before { content: ""; position: absolute; inset: 0; background: #f3d9b8e6; transform: scaleX(var(--world-progress, 0)); transform-origin: left; }

.worlds[data-swipe] { min-height: 0; }
.worlds[data-swipe] .world-stage { position: relative; height: auto; touch-action: pan-y pinch-zoom; }
.worlds[data-swipe] .world-reading { height: auto; grid-template-rows: minmax(0, 1fr) auto; gap: 3px; }
.worlds[data-swipe] .book-visual { transform: translate3d(var(--world-drag, 0px), 0, 0) rotate(var(--world-drag-tilt, 0deg)); opacity: 1; }
.worlds[data-swipe] .scene { transform: translate3d(calc(var(--world-drag, 0px) * .16), 0, 0) scale(1.075); transition: opacity 430ms var(--ease), transform 320ms var(--ease); }
.worlds[data-dragging] .scene { transition-property: opacity; }
.worlds[data-dragging] .world-inner { user-select: none; }
.worlds[data-swipe] .world-edition-picker { display: none; }
.worlds[data-swipe] .world-console { justify-content: center; }
.world-swipe-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: min(100% - 26px, 290px); margin: 0 auto; }
.world-swipe-controls button { display: grid; width: 44px; height: 44px; padding: 0 0 3px; place-items: center; border: 1px solid #f9debf7a; border-radius: 50%; color: #fff0da; background: #201720d9; font: 600 1.8rem/1 var(--display); }
.world-swipe-controls button:hover:not([aria-disabled="true"]) { background: #523047; border-color: #f9dec0; }
.world-swipe-controls button[aria-disabled="true"] { opacity: .42; cursor: default; }
.world-swipe-label { display: grid; justify-items: center; gap: 3px; line-height: 1.25; color: #f4e4d6; }
.world-swipe-count { font-size: .83rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.world-swipe-hint { font-size: .72rem; color: #ebd5d3; }

@media (min-width: 1000px) and (min-height: 720px) {
  .cinema-scroll .world-inner { display: block; padding-block: 0; }
  .cinema-scroll .world-copy, .cinema-scroll .world-reading { position: absolute; top: 0; left: 0; }
  .cinema-scroll .world-copy { width: min(41vw, 570px); transform: translate3d(var(--copy-x, 25vw), var(--copy-y, 50svh), 0) translate(-50%, -50%); }
  .cinema-scroll .world-reading { width: min(56vw, 850px); height: min(85svh, 865px); transform: translate3d(var(--book-x, 70vw), var(--book-y, 48svh), 0) translate(-50%, -50%); pointer-events: none; }
  .cinema-scroll .world-stage .book-visual { transform: none; }
  .cinema-scroll .world-book-hit { pointer-events: auto; }
  .cinema-scroll .world-console { position: absolute; inset: auto 0 23px; width: min(100% - 2 * var(--pad), 1320px); margin-inline: auto; }
  .world-stage[data-layout="copy-right"] .world-vignette { background: linear-gradient(270deg, #08080aeb, #100d11a1 35%, #0b0b100f 68%), linear-gradient(0deg, #09090cda, transparent 25%); }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-copy { width: min(75vw, 780px); text-align: center; }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-copy > .eyebrow { margin-bottom: 12px; }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-copy h2 { font-size: clamp(3.2rem, 5.35vw, 6.4rem); line-height: .88; }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-copy h2 br { display: none; }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-volume { margin-top: 9px; font-size: clamp(1.25rem, 1.8vw, 1.65rem); }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-synopsis { max-width: 510px; margin: 11px auto 0; font-size: .95rem; }
  .world-stage:is([data-layout="copy-below"], [data-layout="copy-above"]) .world-actions { justify-content: center; margin-top: 13px; }
  .world-stage[data-layout="copy-below"] .world-vignette { background: linear-gradient(0deg, #080b10, #0a111a91 31%, transparent 71%); }
  .world-stage[data-layout="copy-above"] .world-vignette { background: linear-gradient(180deg, #0b1111f0, #0a10109e 28%, transparent 64%), linear-gradient(0deg, #0a0f10de, transparent 26%); }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Catalog gallery */
.catalog { position: relative; isolation: isolate; overflow: clip; color: var(--ivory); padding-block: clamp(76px, 9.4vw, 142px); }
.catalog-atmosphere { position: absolute; z-index: -1; inset: -14% -20%; pointer-events: none; background: radial-gradient(ellipse at 27% 30%, #713d454e 0%, #572c382b 26%, transparent 53%), radial-gradient(ellipse at 74% 62%, #36545b49 0%, #273a421e 32%, transparent 57%); }
.catalog, .about { scroll-margin-top: 60px; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 32px; margin-bottom: clamp(24px, 4vw, 52px); }
.catalog-heading .display { font-size: clamp(4.4rem, 8.2vw, 8rem); }
.filters { display: flex; flex-wrap: wrap; gap: 5px 7px; }
.filters button { min-height: 44px; border: 1px solid var(--line-dark); border-radius: 100vw; background: transparent; color: #ecdcda; padding: 0 15px; font-size: .79rem; font-weight: 710; transition: background 200ms, color 200ms, border-color 200ms; }
.filters button:hover { border-color: #ecd0cb; }
.filters button[aria-pressed="true"] { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(22px, 4.4vw, 62px); row-gap: clamp(44px, 6.6vw, 97px); }
.catalog-book { display: grid; grid-template-rows: 1fr auto; min-width: 0; border-bottom: 1px solid var(--line-dark); }
.catalog-book:focus-within { border-color: var(--rose); }
.card-hit { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.card-hit:focus-visible { outline-offset: 9px; }
.card-art { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(242px, 28vw, 380px); isolation: isolate; }
.card-art::before { content: ""; position: absolute; z-index: -1; bottom: 3.5%; left: 50%; width: min(67%, 236px); height: clamp(17px, 2.45vw, 29px); transform: translateX(-50%) rotate(-2deg); background: radial-gradient(ellipse, #070409b8, #07040972 31%, transparent 72%); }
.card-art img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 63%; transition: transform 560ms var(--ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-hit:hover .card-art img { transform: translateY(-8px) rotateZ(-1.8deg) scale(1.045); }
}
@media (prefers-reduced-motion: no-preference) {
  .card-hit:focus-visible .card-art img { transform: translateY(-6px) scale(1.025); }
}
.card-copy { display: flex; flex-direction: column; align-items: start; padding: 14px 0 17px; }
.card-meta { display: flex; align-items: baseline; gap: 5px 10px; justify-content: space-between; width: 100%; color: #d8b7b8; font-size: .76rem; font-weight: 710; line-height: 1.4; }
.card-meta span { color: #f2bfbb; white-space: nowrap; }
.catalog-book h3 { font: 610 clamp(1.85rem, 3vw, 3.15rem)/.94 var(--display); letter-spacing: -.037em; margin: 10px 0 12px; }
.card-summary { max-width: 360px; font-size: .91rem; color: #e4d4d6; line-height: 1.55; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0 15px; padding-bottom: 10px; }
.card-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #f5d4ce; font-size: .79rem; font-weight: 750; text-underline-offset: .29em; }
.card-actions a:first-child { text-decoration: underline; }
.card-actions a:last-child { padding-inline: 10px; border: 1px solid #f8d9d260; border-radius: 100vw; }
.card-actions a:hover { color: #fff1e8; text-decoration: underline; }

/* Author portrait and writing room */
.about { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); background: #24291d; }
.about-backdrop { position: absolute; z-index: -2; inset: -9% 0; display: block; pointer-events: none; }
.about-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 43% 49%; }
.about::after { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, #13161112 0%, #1d21152b 39%, #171d13b3 76%, #141810d5), linear-gradient(0deg, #171a13e8 0%, #181a1440 12%, transparent 29%), linear-gradient(180deg, #1b1015a6, transparent 22%); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .98fr); grid-template-areas: "portrait story"; gap: clamp(28px, 5.5vw, 86px); align-items: center; min-height: clamp(655px, 61vw, 850px); padding-block: 51px 0; }
.about-image { grid-area: portrait; align-self: end; min-width: 0; width: min(100%, 640px); }
.about-portrait { display: block; width: 100%; mask-image: linear-gradient(#000 0% 96%, transparent 100%); }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 1122 / 1402; }
.about-copy { grid-area: story; min-width: 0; padding-block: 25px 68px; }
.about-copy h2 { margin-bottom: clamp(25px, 3.35vw, 42px); font-size: clamp(3rem, 6.15vw, 6.6rem); line-height: .88; }
.about-copy h2 em { display: block; font-weight: 500; color: #f8debd; }
.about-copy p { max-width: 495px; color: #f0e7d8; font-size: clamp(1rem, 1.16vw, 1.13rem); line-height: 1.65; margin-bottom: 17px; }
.about-copy .about-greeting { color: #f8e2c8; font: 630 clamp(1.65rem, 2.4vw, 2.45rem)/1.04 var(--display); margin-bottom: 12px; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; }
.about-actions .text-link { color: #fbe1bf; }

.story-gallery { scroll-margin-top: 60px; padding-block: clamp(67px, 8.6vw, 128px) clamp(56px, 7.6vw, 110px); background: radial-gradient(ellipse at 80% 19%, #382026 0%, transparent 47%), linear-gradient(165deg, #201a1b, #1a131a 73%); }
.story-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 22px 54px; align-items: end; margin-bottom: clamp(29px, 4.6vw, 62px); }
.story-heading .display { font-size: clamp(3.75rem, 6.8vw, 7.1rem); line-height: .88; }
.story-heading .display em { display: block; color: #e9bdab; font-weight: 500; }
.story-heading p { max-width: 40ch; color: #ebdad5; line-height: 1.64; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 4vw, 60px) clamp(13px, 2.1vw, 30px); --art-height: clamp(275px, 28.5vw, 435px); }
.story-grid figure { margin: 0; min-width: 0; }
.story-feature, .story-landscape { grid-column: span 2; }
.story-grid img { width: 100%; height: var(--art-height); object-fit: cover; border-radius: 5px 5px 2px 2px; background: #201a20; }
.story-landscape img { height: auto; aspect-ratio: 1.83; }
.story-art-link { display: block; overflow: hidden; border-radius: 5px 5px 2px 2px; }
.story-gallery[data-lightbox] .story-art-link { position: relative; cursor: zoom-in; }
.story-gallery[data-lightbox] .story-art-link::after { position: absolute; right: 10px; bottom: 10px; display: grid; width: 34px; height: 34px; place-items: center; content: "+"; border: 1px solid #f2d5bc74; border-radius: 50%; color: #fff0d9; background: #1b151cce; font: 400 1.35rem/1 var(--body); transition: border-color 200ms, background 200ms; }
.story-gallery[data-lightbox] .story-art-link:hover::after,
.story-gallery[data-lightbox] .story-art-link:focus-visible::after { border-color: #fce1c2; background: #43293c; }
.story-portrait img { object-position: 50% 29%; }
.story-pair img { object-position: 50% 40%; }
.story-grid figcaption { padding-top: 13px; border-top: 1px solid #e8bda53d; margin-top: 12px; }
.story-grid h3 { color: var(--ivory); font: 630 clamp(1.35rem, 2.4vw, 2.25rem)/1 var(--display); }
.story-grid p { color: #dac3c3; font-size: .8rem; line-height: 1.46; margin-top: 6px; }
.story-cta { margin-top: clamp(16px, 2.6vw, 32px); color: #f7d3c2; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story-art-link img { transition: transform 520ms var(--ease); }
  .story-art-link:hover img { transform: scale(1.035); }
}
@media (max-width: 879px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-feature { grid-column: 1 / -1; }
  .story-landscape { grid-column: auto; }
  .story-feature img { height: auto; aspect-ratio: 4 / 3; }
  .story-portrait img { height: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 540px) {
  .story-landscape img { aspect-ratio: 4 / 3; }
}

.character-dialog { position: fixed; inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); width: min(1080px, calc(100% - max(27px, env(safe-area-inset-left)) - max(27px, env(safe-area-inset-right)))); max-width: none; max-height: calc(100dvh - max(26px, env(safe-area-inset-top)) - max(26px, env(safe-area-inset-bottom))); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid #d9a9814d; border-radius: 12px; background: #1b1720; color: var(--ivory); box-shadow: 0 28px 112px #060309d9; --character-accent: #e8c69f; --character-ink: #211b29; }
.character-dialog[data-world="port"] { --character-accent: #edc3a3; --character-ink: #221820; }
.character-dialog[data-world="jullex"] { --character-accent: #dfe0b0; --character-ink: #172724; }
.character-dialog::backdrop { background: #100b13d9; backdrop-filter: blur(7px); }
.character-sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .92fr); isolation: isolate; position: relative; overflow: hidden; min-height: min(570px, 78dvh); background: var(--character-ink); }
.character-sheet::before { position: absolute; z-index: -1; inset: -26px; content: ""; pointer-events: none; background: var(--character-art) center / cover; filter: blur(18px) brightness(.58); opacity: .46; }
.character-visual { position: relative; overflow: hidden; min-height: 100%; background: #110e16a0; }
.character-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 39%; }
.character-visual::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, transparent 83%, #0e0a1251), linear-gradient(0deg, #0e0a1236, transparent 20%); }
.character-copy { align-self: center; min-width: 0; padding: clamp(42px, 5vw, 80px) clamp(27px, 4.5vw, 68px); background: linear-gradient(115deg, #150e1740, #140d1747); }
.character-world { color: var(--character-accent); margin-bottom: 18px; line-height: 1.4; }
.character-copy h2 { font-size: clamp(3.1rem, 5.5vw, 6rem); letter-spacing: -.05em; line-height: .85; }
.character-epithet { color: var(--character-accent); font: italic 550 clamp(1.42rem, 2.15vw, 2rem)/1.04 var(--display); margin-top: 17px; }
.character-epithet::after { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, var(--character-accent), transparent); content: ""; margin-top: 22px; }
.character-entries { display: grid; gap: 15px; margin-top: 21px; color: #f3e7e4; font-size: 1rem; line-height: 1.62; }
.character-entries h3 { color: var(--character-accent); font: 650 1.32rem/1.17 var(--display); margin-bottom: 3px; }
.character-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 5px; margin-top: 25px; }
.character-actions .text-link { color: var(--character-accent); }
.character-dismiss { position: sticky; z-index: 2; top: 12px; display: grid; width: 44px; height: 44px; margin: 12px 12px -56px auto; place-items: center; border: 1px solid #f2d5bc80; border-radius: 50%; background: #1b151eeb; color: var(--ivory); font: 400 1.75rem/1 var(--display); }
.character-dismiss:hover { color: var(--ink); background: var(--ivory); }
.character-dismiss:focus-visible { outline-offset: -4px; }
@keyframes character-enter { from { opacity: 0; transform: translateY(22px) scale(.971); } to { opacity: 1; transform: none; } }
@keyframes character-art-enter { from { transform: scale(1.075); } to { transform: scale(1); } }
@keyframes character-copy-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes character-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes character-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .character-dialog[open] { animation: character-enter 410ms var(--ease) both; }
  .character-dialog[open]::backdrop { animation: character-backdrop-in 360ms ease both; }
  .character-dialog[data-closing]::backdrop { animation: character-backdrop-out 200ms ease both; }
  .character-dialog[open] .character-visual img { animation: character-art-enter 670ms var(--ease) both; }
  .character-dialog[open] .character-copy { animation: character-copy-enter 365ms var(--ease) 90ms both; }
}
@media (max-width: 720px) {
  .character-dialog { width: min(520px, calc(100% - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)))); max-height: calc(100dvh - max(13px, env(safe-area-inset-top)) - max(13px, env(safe-area-inset-bottom))); }
  .character-sheet { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .character-visual { min-height: 0; height: min(43dvh, 385px); }
  .character-copy { padding: 27px clamp(19px, 6vw, 37px) 30px; }
  .character-copy h2 { font-size: clamp(3rem, 10.7vw, 4.8rem); }
  .character-world { margin-bottom: 11px; }
  .character-epithet { margin-top: 13px; }
  .character-epithet::after { margin-top: 16px; }
  .character-entries { margin-top: 17px; }
}
.chronicles { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(510px, 49vw, 690px); padding-block: clamp(78px, 8vw, 130px); background: #2c1b25; }
.chronicles-backdrop { position: absolute; z-index: -4; display: block; inset: -11% -3%; pointer-events: none; }
.chronicles-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.chronicles::before { position: absolute; z-index: -3; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, #200f1bf5, #25141fca 33%, #21172237 66%, transparent 86%), linear-gradient(0deg, #1a1116 0%, #1a111666 18%, transparent 43%), linear-gradient(180deg, #1a1616bb, transparent 23%); }
.season-decor { position: absolute; z-index: -1; height: auto; width: var(--decor-size); opacity: var(--decor-opacity, 1); transform: translate3d(0, 0, 0) rotate(0deg); pointer-events: none; user-select: none; transition: transform 920ms var(--ease), opacity 720ms var(--ease); }
.season-decor[data-awaiting-reveal] { opacity: 0; transform: translate3d(var(--decor-x, 42px), var(--decor-y, -24px), 0) rotate(var(--decor-angle, 6deg)); }
.hero-branch { --decor-size: min(34vw, 510px); --decor-y: 30px; --decor-opacity: .9; right: -1.4%; bottom: 0; }
.catalog-branch { --decor-size: min(24vw, 300px); --decor-x: -40px; --decor-angle: -7deg; --decor-opacity: .77; left: -3.6%; top: -28px; }
.about-branch { --decor-size: min(19vw, 275px); --decor-opacity: .83; right: -3.8%; top: -20px; scale: -1 -1; }
.chronicles-ornament { --decor-size: min(38vw, 520px); top: -5%; right: -3%; }
.site-snow { position: fixed; z-index: 6; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chronicles-inner { display: grid; justify-items: start; align-content: center; gap: clamp(27px, 4vw, 44px); }
.chronicles .display { font-size: clamp(4.5rem, 8.15vw, 8.5rem); }
.chronicles .display em { font-weight: 500; color: #f9daca; }
.chronicles p { max-width: 32ch; font-size: 1rem; margin-bottom: 22px; }
.footer { background: #1a1116; }
.footer-inner { min-height: 94px; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 18px max(18px, env(safe-area-inset-bottom)); }
.footer nav { display: flex; gap: clamp(14px, 3vw, 45px); flex-wrap: wrap; }
.footer .brand-mark { width: 39px; height: 39px; }
.snow-toggle { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0; border: 0; background: transparent; color: #e8c7b4; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.snow-toggle span { color: #efd9c2; font-size: 1.05em; }
.snow-toggle[aria-pressed="false"] span { opacity: .55; }
.snow-toggle:hover { color: var(--ivory); }

/* Full-screen catalog reader */
.catalog-reader { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ivory); background: none; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; --page-ink: #30211d; --paper-page: #f2e5d1; }
.catalog-reader[open] { display: grid; grid-template-rows: auto minmax(min-content, 1fr) auto; align-items: center; }
.catalog-reader::backdrop { background: #130e14ed; backdrop-filter: blur(9px); transition: opacity 330ms, backdrop-filter 330ms; }
.catalog-reader[data-flight]::backdrop { opacity: .53; backdrop-filter: blur(4px); }
.catalog-reader-header { position: sticky; z-index: 5; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 67px; width: min(100%, 1380px); margin-inline: auto; padding: max(8px, env(safe-area-inset-top)) max(16px, 3vw, env(safe-area-inset-right)) 8px max(16px, 3vw, env(safe-area-inset-left)); }
.catalog-reader-title { font-size: clamp(.81rem, 1.3vw, 1.05rem); font-weight: 690; color: #eadbd8; }
.catalog-reader-close { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #fff3e16b; border-radius: 50%; background: #231720; color: var(--ivory); font: 450 1.9rem/1 var(--display); padding: 0 0 3px; }
.catalog-reader-close:hover { background: var(--ivory); color: var(--ink); }
.catalog-reader-stage { display: grid; position: relative; align-items: center; justify-items: stretch; min-width: 0; width: min(100% - 64px, 1090px); max-width: calc(100% - max(13px, env(safe-area-inset-left)) - max(13px, env(safe-area-inset-right))); margin-inline: auto; --opening: 0; }
.catalog-reader-stage .book-visual { min-height: min(74svh, 730px); }
.catalog-reader-stage .reader-deck { width: min(100%, 830px); }
.catalog-reader-stage.webgl-ready .reader-deck { width: 100%; }
.catalog-reader-stage .reader-leaf { min-height: min(52svh, 485px); }
.catalog-reader-stage[data-pose="cover"] .reader-spread { visibility: hidden; }
.catalog-reader[data-flight] .catalog-reader-stage { opacity: 0; }
.catalog-reader-flight { position: absolute; z-index: 4; max-width: none; pointer-events: none; transform-origin: 50% 50%; }
.book-source-hidden .card-art img, .book-source-hidden .world-cover-image, .world-stage.book-source-hidden .world-canvas { visibility: hidden; }
.catalog-reader-footer { display: flex; width: min(100% - 36px, 810px); justify-self: center; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 15px; min-height: 49px; margin-block: 0 max(13px, env(safe-area-inset-bottom)); font-size: .79rem; color: #d7c6ca; }
.catalog-reader-progress { color: #eee0da; font-variant-numeric: tabular-nums; }
.catalog-reader:not([data-phase="reading"]) .catalog-reader-footer { visibility: hidden; }
@media (max-width: 680px) {
  .catalog-reader-stage { width: calc(100% - 20px); }
  .catalog-reader-stage .book-visual { min-height: min(66svh, 550px); }
  .catalog-reader-stage .reader-leaf { min-height: 300px; }
  .catalog-reader-header { min-height: 60px; background: #171118ed; }
}

@media (min-width: 1513px) {
  .scroll-cue { left: calc((100% - var(--max)) / 2 + var(--pad)); }
}
@media (max-width: 950px) {
  .hero h1 { font-size: clamp(5.6rem, 13.1vw, 9rem); }
  .hero-photo { object-position: 76% 45%; }
}
@media (max-width: 680px) {
  :root { --pad: 24px; }
  .main-nav a, .header-link { font-size: .73rem; padding-inline: 8px; }
  .hero { min-height: 100svh; }
  .hero-picture { transform-origin: 56% 29%; }
  .hero-photo { object-position: 56% 29%; }
  .hero-wash { background: linear-gradient(0deg, #190d14 0%, #190d14ed 14%, #190d14bb 34%, #190d1433 59%, transparent 75%), linear-gradient(180deg, #160a13b8, transparent 22%); }
  .hero-inner { align-items: end; padding-top: clamp(192px, 39svh, 350px); padding-bottom: max(65px, calc(env(safe-area-inset-bottom) + 51px)); }
  .hero h1 { font-size: clamp(4.2rem, 18vw, 7.6rem); }
  .hero-role { gap: 9px; margin-bottom: 16px; }
  .hero-role .brand-mark { width: 31px; height: 31px; }
  .hero-branch { --decor-size: min(59vw, 310px); right: -9%; bottom: -1%; }
  .hero-description { margin-top: 22px; max-width: 330px; }
  .wide-only { display: none; }
  .hero-actions { margin-top: 19px; }
  .scroll-cue { bottom: max(10px, env(safe-area-inset-bottom)); }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 31px 16px; }
  .catalog-heading { margin-bottom: 19px; gap: 20px; }
  .card-art { height: clamp(142px, 52vw, 265px); }
  .card-copy { padding-top: 6px; }
  .catalog-book h3 { font-size: clamp(1.55rem, 6.35vw, 2.55rem); }
  .card-summary { font-size: .83rem; }
  .card-meta { font-size: .69rem; }
  .filters button { font-size: .72rem; padding-inline: 11px; }
  .about-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "story" "portrait"; gap: 18px; min-height: 0; padding-block: 58px 0; }
  .about-image { width: min(94%, 430px); justify-self: center; }
  .about-backdrop img { object-position: 21% 44%; }
  .about::after { background: linear-gradient(180deg, #191e14f5, #1b2115ea 49%, #181d1270 78%, #181b13eb), linear-gradient(90deg, transparent, #191e1380); }
  .about-copy { padding-block: 12px 0; }
  .about-copy h2 { font-size: clamp(3.55rem, 12.4vw, 5.6rem); margin-bottom: 24px; }
  .about-copy p { color: #f8edda; }
  .story-heading { grid-template-columns: minmax(0, 1fr); }
  .story-heading .display { font-size: clamp(3.1rem, 11.3vw, 5.45rem); }
  .story-grid figcaption { padding-top: 9px; margin-top: 9px; }
  .chronicles { align-items: end; min-height: 590px; padding-block: 210px 57px; }
  .chronicles-backdrop img { object-position: 75% 60%; }
  .chronicles::before { background: linear-gradient(0deg, #1a1116 0%, #22131ff5 22%, #271623b2 47%, #1b15182b 77%), linear-gradient(90deg, #1b131a99, transparent 75%); }
  .chronicles .display { font-size: clamp(3.9rem, 14vw, 6rem); }
  .catalog-branch { --decor-size: min(34vw, 190px); left: -4.8%; top: -15px; }
  .about-branch { --decor-size: min(30vw, 150px); right: -6%; top: -10px; }
  .chronicles-ornament { --decor-size: min(62vw, 290px); top: -1%; }
  .footer-inner { flex-wrap: wrap; gap: 0 20px; }
  .worlds:not(.cinema-scroll) .world-inner { padding-top: max(72px, calc(env(safe-area-inset-top) + 59px)); }
  .worlds:not(.cinema-scroll) .book-visual { min-height: clamp(216px, 43svh, 350px); }
  .worlds:not(.cinema-scroll) .world-synopsis { display: block; margin-top: 14px; font-size: .9rem; line-height: 1.5; }
  .worlds:not(.cinema-scroll) .world-edition-picker { flex: 1 1 185px; min-width: 0; }
  .worlds:not(.cinema-scroll) .world-edition-picker select { width: 100%; font-size: 1rem; }
}
@media (max-width: 390px) {
  :root { --pad: 18px; }
  .header-inner { padding-inline: 5px; }
  .main-nav a, .header-link { padding-inline: 6px; }
}
@media (max-width: 680px) and (max-height: 660px) and (orientation: portrait) {
  .hero-wash { background: linear-gradient(0deg, #190d14 0%, #190d14ed 14%, #190d14cb 37%, #190d1489 56%, #190d1433 69%, transparent 80%); }
}
@media (max-width: 879px) {
  .world-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; padding-block: 74px 21px; gap: 9px; }
  .world-vignette { background: linear-gradient(180deg, #0c0c13dc, #10101a71 37%, transparent 69%, #0d0d10da); }
  .world-copy > .eyebrow { margin-bottom: 12px; }
  .world-description h2 { font-size: clamp(2.6rem, 12.5vw, 5.25rem); line-height: .81; }
  .world-description h2 br { display: none; }
  .world-volume { margin-top: 8px; }
  .world-synopsis { display: none; }
  .world-actions { margin-top: 13px; gap: 7px 10px; }
  .world-read { padding-inline: 10px; font-size: .75rem; }
  .world-buttons { gap: 0 12px; }
  .world-buttons button, .world-shortcuts a, .world-scroll-hint { font-size: .7rem; }
  .world-shortcuts { gap: 8px 14px; }
  .reader-leaf { padding: 22px 23px 66px; }
  [data-final-spread] .reader-right { padding-bottom: 135px; }
  .reader-label { font-size: clamp(1.55rem, 4.2vw, 2rem); }
}
@media (max-width: 540px), (orientation: landscape) and (max-height: 520px) {
  .catalog-reader-stage { width: min(100% - 26px, 410px); }
  .catalog-reader-stage .book-visual { min-height: min(66svh, 530px); }
  .reader-spread { grid-template-columns: minmax(0, 1fr); }
  .catalog-reader-stage .reader-leaf { min-height: min(64svh, 505px); border-radius: 3px; }
  [data-single-leaf="left"] .reader-spread > .reader-right,
  [data-single-leaf="right"] .reader-spread > .reader-left { display: none; }
  .reader-leaf { padding: 23px 26px 68px; }
  .reader-titlepage h3 { font-size: clamp(2.15rem, 10vw, 3.3rem); }
  .reader-text { font-size: clamp(1.15rem, 5.55vw, 1.38rem); }
  .reader-label { font-size: 1.9rem; }
  .reader-reading-links { left: 50%; max-width: calc(100% - 44px); width: max-content; bottom: 51px; }
  .reader-related { font-size: .72rem; }
  .card-actions { column-gap: 12px; }
  .card-actions a { font-size: .75rem; }
}
@media (max-width: 375px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .card-art { height: 248px; }
  .catalog-book h3 { font-size: 2.3rem; }
}
@media (max-width: 360px) {
  .world-reading { margin-inline: -10px; }
  .reader-leaf { padding-inline: 21px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: 100svh; }
  .hero-inner { align-items: center; padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(57px, calc(env(safe-area-inset-bottom) + 46px)); }
  .hero-text { width: min(54%, 480px); }
  .hero-picture { transform-origin: 74% 36%; }
  .hero-photo { object-position: 73% 43%; }
  .hero-wash { background: linear-gradient(90deg, #180c14f0, #180c1499 50%, transparent 78%), linear-gradient(0deg, #180c14b3, transparent 37%); }
  .hero-role { margin-bottom: 11px; }
  .hero h1 { font-size: clamp(3.7rem, 8.7vw, 5.6rem); }
  .hero-description { margin-top: 18px; }
  .hero-actions { margin-top: 11px; gap: 8px 17px; }
  .hero-actions .button { min-height: 44px; padding: .64rem 1.08rem; }
  .scroll-cue { bottom: max(9px, env(safe-area-inset-bottom)); }
  .worlds:not(.cinema-scroll) .world-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto; padding-block: 72px 16px; }
  .worlds:not(.cinema-scroll) .book-visual { min-height: 230px; }
  .world-description h2 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
  .worlds:not(.cinema-scroll) .world-synopsis { display: block; margin-top: 10px; font-size: .88rem; line-height: 1.5; }
  .character-dialog { width: min(900px, calc(100% - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right)))); max-height: calc(100dvh - max(10px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom))); }
  .character-sheet { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); min-height: 0; }
  .character-visual { height: min(70dvh, 410px); min-height: 100%; }
  .character-copy { padding: 27px clamp(20px, 3.7vw, 42px) 23px; }
  .character-copy h2 { font-size: clamp(2.7rem, 6vw, 4.3rem); }
  .character-world { margin-bottom: 11px; }
  .character-entries { gap: 10px; margin-top: 12px; }
  .character-epithet, .character-epithet::after { margin-top: 10px; }
  .character-actions { margin-top: 12px; }
  .catalog-reader-header { min-height: 58px; background: #171118ed; }
  .catalog-reader-stage { width: min(100% - 30px, 460px); }
  .catalog-reader-stage .reader-leaf { min-height: min(72svh, 370px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .worlds { min-height: 0; }
  .world-stage { position: relative; height: auto; }
  .hero-picture, .hero-text, .scene, .about-backdrop, .about-portrait { transform: none !important; }
  .site-snow { display: none; }
  .season-decor[data-awaiting-reveal] { opacity: var(--decor-opacity, 1); transform: none; }
}
