/* RH GoldenWolf Publisher: storybook edition */

:root {
  --night: #0e0b0d;
  --night-2: #17121a;
  --ink: #1b140e;
  --gold: #c9a24a;
  --gold-hi: #f0d38c;
  --gold-lo: #8a6a2a;
  --amber: #ffb25a;
  --burgundy: #6e1f2c;
  --burgundy-2: #43101a;
  --parchment: #f2e6cc;
  --parchment-2: #e6d4ae;
  --paper: #fbf5e6;
  --teal: #13302f;
  --text: #f1e8d4;
  --text-muted: #c4b69a;
  --text-dark: #2a2015;
  --text-dark-muted: #5f4f37;
  --line: rgba(201, 162, 74, 0.3);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(80px, 11vw, 140px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 3px; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 28px; border-radius: 3px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, color .3s, border-color .3s;
}
.btn span { position: relative; z-index: 1; }
.btn-gold {
  color: #2a1a06; border-color: #e3c477;
  background: linear-gradient(180deg, #f6dc94, #d1aa52 55%, #a9802f);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 30px -12px rgba(240,190,90,.65);
}
.btn-gold::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg) translateX(0); transition: transform .9s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 34px -12px rgba(240,190,90,.85); }
.btn-gold:hover::after { transform: skewX(-20deg) translateX(420%); }
.btn-ghost { color: var(--gold-hi); border-color: var(--line); background: rgba(14,11,13,.35); backdrop-filter: blur(4px); }
.btn-ghost::before {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 10px; height: 1px; background: var(--gold-hi);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-ghost:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px) scale(.98); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(14,11,13,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(240,190,90,.35)); }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--text); white-space: nowrap; line-height: 1; }
.brand-name span { color: var(--gold); font-style: italic; font-weight: 600; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative; display: block; padding: 10px 12px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; white-space: nowrap; transition: color .25s;
}
.site-nav a::after { content: "✦"; position: absolute; left: 50%; bottom: -2px; font-size: 9px; color: var(--gold); opacity: 0; transform: translate(-50%, 4px); transition: .3s var(--ease); }
.site-nav a:hover { color: var(--gold-hi); }
.site-nav a:hover::after { opacity: 1; transform: translate(-50%, 0); }
.site-nav a.nav-cta { color: var(--gold-hi); border: 1px solid var(--line); border-radius: 3px; margin-left: 6px; }

.secrets { position: relative; }
.secrets-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  background: rgba(201,162,74,.1); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: 13px; letter-spacing: .06em; color: var(--gold-hi); transition: background-color .3s;
}
.secrets-chip:hover { background: rgba(201,162,74,.2); }
.secrets-star { display: inline-block; animation: twinkle 2.6s ease-in-out infinite; }
.secrets-chip.bump .secrets-star { animation: bump .6s var(--ease); }
@keyframes bump { 50% { transform: scale(1.8) rotate(90deg); } }
.secrets-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 290px; z-index: 5;
  background: var(--paper); color: var(--text-dark); border-radius: 4px; padding: 18px 18px 14px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); border: 1px solid #d8c595;
}
.secrets-title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.secrets-hint { font-size: 14px; color: var(--text-dark-muted); margin-top: 4px; }
.secrets-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.secrets-list li { display: flex; gap: 8px; align-items: baseline; }
.secrets-list li::before { content: "○"; color: #b7a37a; }
.secrets-list li.is-found::before { content: "✦"; color: var(--burgundy); }
.secrets-list li:not(.is-found) { color: #a7977a; }

.menu-toggle { display: none; width: 46px; height: 46px; margin-right: -8px; background: none; border: 0; cursor: pointer; color: var(--gold-hi); align-items: center; justify-content: center; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s, background-color .25s; }
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; } .menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hidden buttons in pictures ---------- */
.hotspot {
  position: absolute; left: var(--x); top: var(--y); z-index: 4;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: zoom-in;
}
.hotspot::before {
  content: ""; position: absolute; inset: 17px; border-radius: 50%;
  background: radial-gradient(circle, #fff7d8 0 30%, var(--gold-hi) 31% 60%, transparent 62%);
  box-shadow: 0 0 12px 3px rgba(255,214,130,.55); opacity: .75; transition: transform .3s var(--ease), opacity .3s;
}
.hotspot::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(255,220,150,.8);
  animation: ping 3.2s var(--ease) infinite; animation-delay: var(--delay, 0s);
}
.hotspot:hover::before, .hotspot:focus-visible::before { transform: scale(1.6); opacity: 1; }
.hotspot.is-found::after { animation: none; opacity: 0; }
.hotspot.is-found::before { opacity: .35; }
@keyframes ping { 0% { transform: scale(.5); opacity: 0; } 15% { opacity: 1; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.hotspot-plain { cursor: zoom-in; background: none; border: 0; padding: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); overflow: hidden;
  display: flex; align-items: center;
  background: radial-gradient(ellipse 70% 60% at 75% 40%, #2a1d1a 0%, var(--night) 70%);
}
.hero-stage { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1; z-index: 1; will-change: transform; }
.hero-stage-inner {
  position: absolute; inset: -4% -4% -4% -4%; will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 18%);
  mask-composite: intersect;
}
.hero-house { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); transition: filter 1.2s ease; }
.glow {
  position: absolute; width: 18%; aspect-ratio: 1; margin: -9% 0 0 -9%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,190,100,.55), rgba(255,160,70,.15) 45%, transparent 70%);
  mix-blend-mode: screen; animation: flicker 4s ease-in-out infinite; transition: opacity 1.2s;
}
.glow-1 { left: 42%; top: 18%; } .glow-2 { left: 60%; top: 22%; animation-delay: -1.3s; } .glow-3 { left: 74%; top: 25%; animation-delay: -2.1s; }
.glow-door { left: 60%; top: 60%; width: 30%; margin: -15% 0 0 -15%; opacity: .7; animation-duration: 6s; }
@keyframes flicker { 0%, 100% { opacity: .85; transform: scale(1); } 30% { opacity: .65; transform: scale(.97); } 55% { opacity: 1; transform: scale(1.03); } 70% { opacity: .75; } }

.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(14,11,13,.92) 0%, rgba(14,11,13,.6) 38%, transparent 62%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero-inner { z-index: 5; padding-top: 96px; padding-bottom: 96px; pointer-events: none; }
.hero-copy { max-width: 590px; will-change: transform; pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { margin-top: 22px; font-size: clamp(48px, 7vw, 96px); line-height: .98; letter-spacing: -.015em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.lede { margin-top: 26px; max-width: 33em; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero.lights-low .hero-house { filter: brightness(.55) saturate(.9); }
.hero.lights-low .glow { opacity: 1; animation-duration: 2.2s; }
.hero.lights-low .glow-door { opacity: 1; }

/* Candle on a stack of books */
.hero-fg { position: absolute; z-index: 6; left: 46%; bottom: 0; will-change: transform; }
.candle { position: relative; display: block; width: 150px; height: 200px; }
.candle-stack { position: absolute; left: 0; right: 0; bottom: 0; }
.cbook { display: block; height: 22px; border-radius: 2px 4px 4px 2px; margin: 0 auto; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.12); }
.cb1 { width: 120px; background: linear-gradient(90deg, #5a1a24, #7b2633 40%, #5a1a24); transform: translateX(6px); }
.cb2 { width: 136px; background: linear-gradient(90deg, #17283f, #23395a 40%, #17283f); }
.cb3 { width: 146px; height: 26px; background: linear-gradient(90deg, #4a3215, #6b4a1f 40%, #4a3215); transform: translateX(-4px); }
.cbook::after { content: ""; display: block; height: 3px; margin: 9px 18px 0; background: linear-gradient(90deg, transparent, rgba(240,211,140,.7), transparent); }
.candle-body {
  position: absolute; left: 50%; bottom: 70px; width: 28px; height: 74px; margin-left: -14px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #d8c8a6, #fbf1db 45%, #cdbb96);
}
.candle-body::before { content: ""; position: absolute; left: -10px; right: -10px; bottom: -6px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse, #8a6a2a, #4b3814); }
.wick { position: absolute; left: 50%; top: -8px; width: 2px; height: 9px; margin-left: -1px; background: #2a1d10; border-radius: 1px; }
.flame {
  position: absolute; left: 50%; top: -42px; width: 16px; height: 34px; margin-left: -8px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 15%, #ffe39a 30%, #ffb14a 60%, rgba(255,120,30,0) 72%);
  transform-origin: 50% 90%; animation: flame 1.8s ease-in-out infinite; transition: opacity .4s, transform .4s;
}
.flame::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,90,.28), transparent 65%); pointer-events: none;
}
@keyframes flame { 0%, 100% { transform: rotate(-2deg) scaleY(1); } 25% { transform: rotate(2deg) scaleY(1.08); } 50% { transform: rotate(-1deg) scaleY(.94); } 75% { transform: rotate(3deg) scaleY(1.04); } }
.candle.is-out .flame { opacity: 0; transform: scale(.2); }
.candle.is-out .wick::after {
  content: ""; position: absolute; left: -6px; bottom: 6px; width: 14px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(220,220,220,.35), transparent 70%); animation: smoke 2.4s ease-out infinite;
}
@keyframes smoke { from { transform: translateY(0) scaleX(.6); opacity: .8; } to { transform: translateY(-50px) scaleX(1.6); opacity: 0; } }
.candle:hover .flame { animation-duration: .7s; }

.scroll-cue { position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 22px; z-index: 6; display: grid; justify-items: start; gap: 8px; text-decoration: none; color: var(--text-muted); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: -1px; width: 3px; height: 14px; background: var(--gold-hi); border-radius: 2px; animation: drip 2s var(--ease) infinite; }
@keyframes drip { from { top: -14px; } to { top: 46px; } }

/* ---------- Section shared ---------- */
.section { position: relative; padding: var(--section-pad) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head h2 { margin-top: 20px; font-size: clamp(38px, 5.2vw, 64px); }
.section-intro { margin-top: 18px; font-size: 18px; max-width: 38em; }
.ribbon {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 22px 7px 18px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #fbefd2;
  background: linear-gradient(180deg, #8a2a38, #5e1823);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 8px 50%);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}
.ribbon-light { background: linear-gradient(180deg, #f2d48a, #c49a45); color: #3a240a; }
.ribbon-ink { background: #f3e4bf; color: #121212; }
.badge { font-size: 10.5px; letter-spacing: .16em; padding: 2px 8px; border-radius: 999px; background: #121212; color: #f3e4bf; }
.script { font-family: var(--script); font-weight: 400; font-size: 1.25em; color: var(--gold-hi); letter-spacing: 0; padding: 0 .05em; }

/* ---------- Chapter I: diary ---------- */
.diary {
  color: var(--text-dark);
  background:
    radial-gradient(circle at 12% 18%, rgba(160,110,50,.13), transparent 18%),
    radial-gradient(circle at 86% 70%, rgba(160,110,50,.1), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(120,90,50,.08) 31px 32px),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
}
.diary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(var(--night), transparent); opacity: .35; pointer-events: none; }
.diary .section-intro { color: var(--text-dark-muted); }
.diary-board { position: relative; }
.frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(22px, 3vw, 44px); }
.frame { transform: rotate(var(--r)); }
.frame-photo {
  position: relative; margin: 0; padding: 12px 12px 14px; background: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 22px 40px -22px rgba(60,40,15,.65);
  transition: transform .5s var(--ease), box-shadow .5s;
  transform-style: preserve-3d;
}
.frame-photo::before {
  content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 24px; margin-left: -45px; z-index: 2;
  background: rgba(235,220,180,.75); box-shadow: 0 1px 2px rgba(0,0,0,.12); transform: rotate(-3deg);
}
.frame-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.12) saturate(1.05); transition: transform 1.2s var(--ease); }
.frame:hover .frame-photo { box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 34px 50px -24px rgba(60,40,15,.75); }
.frame:hover .frame-photo img { transform: scale(1.06); }
.frame-num {
  position: absolute; z-index: 3; left: -10px; top: -10px; width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fbefd2;
  background: radial-gradient(circle at 35% 30%, #b8394a, #6e1f2c 60%, #43101a); border-radius: 50%;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,.5);
}
.frame h3 { margin-top: 18px; font-size: 27px; font-style: italic; }
.frame p { margin-top: 8px; font-size: 15.5px; color: var(--text-dark-muted); }
.paw { position: absolute; right: -6px; top: 47%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; transform: rotate(18deg); }
.paw svg { width: 26px; height: 26px; fill: #6b4d24; opacity: .28; transition: opacity .3s, transform .3s; }
.paw::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(110,31,44,.4); animation: ping 3.4s var(--ease) infinite 1s; }
.paw:hover svg, .paw:focus-visible svg { opacity: .8; transform: scale(1.2); }
.paw.is-found::after { display: none; }

/* What we publish: 3D books */
.shelf-wrap { margin-top: clamp(80px, 10vw, 130px); text-align: center; }
.shelf-title { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(30px, 3.6vw, 42px); color: var(--burgundy); }
.shelf-title svg { width: 110px; height: 12px; color: var(--gold-lo); }
.shelf-hint { margin-top: 6px; font-family: var(--script); font-size: 26px; color: var(--text-dark-muted); }
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: clamp(60px, 9vw, 140px); margin-top: 36px; perspective: 1400px; padding: 0 0 0 120px; }
.book3d { position: relative; width: 200px; height: 286px; }
.book-btn {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(4deg);
  transition: transform .7s var(--ease);
}
.book3d:hover .book-btn, .book-btn:focus-visible { transform: rotateY(-34deg) rotateX(6deg) translateY(-12px) translateZ(30px); }
.book-cover {
  position: absolute; inset: 0; transform-origin: left center; transform: translateZ(14px);
  background: linear-gradient(135deg, var(--c1), var(--c2)); border-radius: 2px 7px 7px 2px; overflow: hidden;
  box-shadow: inset 6px 0 10px -4px rgba(0,0,0,.5), inset -1px 0 0 rgba(255,255,255,.08);
  transition: transform 1s var(--ease); backface-visibility: hidden; display: grid; place-items: center;
}
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1.1s var(--ease); }
.book3d:hover .book-cover::after { transform: translateX(100%); }
.book-art .book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.book-art .book-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,30,26,.9)); }
.cover-frame {
  position: relative; z-index: 1; margin: 14px; align-self: stretch; justify-self: stretch;
  border: 1px solid rgba(240,211,140,.6); outline: 1px solid rgba(240,211,140,.25); outline-offset: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; text-align: center;
}
.book-art .cover-frame { justify-content: flex-end; }
.cover-kicker { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(240,211,140,.85); }
.cover-title { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.05; color: var(--gold-hi); text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.cover-orn { width: 110px; height: 12px; color: var(--gold); }
.cover-seal { width: 54px; height: 54px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.book-spine {
  position: absolute; left: 0; top: 0; width: 28px; height: 100%; transform-origin: left center; transform: translateZ(-14px) rotateY(-90deg);
  background: linear-gradient(90deg, var(--c2), var(--c1) 50%, var(--c2));
  box-shadow: inset 0 22px 0 -18px rgba(240,211,140,.7), inset 0 -22px 0 -18px rgba(240,211,140,.7);
}
.book-pages {
  position: absolute; right: 0; top: 4px; width: 26px; height: calc(100% - 8px); transform-origin: right center; transform: translateZ(-13px) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f7efdc 0 2px, #e2d4b2 2px 3px);
}
.book-inside {
  position: absolute; inset: 4px 0 4px 6px; z-index: -1; padding: 22px 18px; text-align: left; opacity: 0;
  background: linear-gradient(90deg, #e9dcbc, var(--paper) 12%); border-radius: 0 5px 5px 0;
  box-shadow: 0 20px 30px -18px rgba(0,0,0,.5); transition: opacity .5s .25s;
}
.book-inside h4 { font-size: 24px; color: var(--burgundy); }
.book-inside p { margin-top: 10px; font-size: 15px; color: var(--text-dark-muted); }
/* Inside of the front cover (marbled endpaper), seen once the book is open */
.book-btn::before {
  content: ""; position: absolute; inset: 0; transform-origin: left center; transform: translateZ(13px); opacity: 0;
  border-radius: 7px 2px 2px 7px; transition: transform 1s var(--ease), opacity .2s .1s;
  background:
    radial-gradient(circle at 20% 30%, rgba(240,211,140,.25) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 60%, rgba(240,211,140,.2) 0 12%, transparent 13%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.12) 0 10%, transparent 11%),
    repeating-radial-gradient(circle at 30% 40%, var(--c1) 0 6px, var(--c2) 6px 11px);
  box-shadow: inset 0 0 0 8px rgba(0,0,0,.18), inset 0 0 0 9px rgba(240,211,140,.4);
}
.book3d.is-open .book-btn::before { opacity: 1; transform: translateZ(14px) rotateY(-165deg); transition: transform 1s var(--ease), opacity .1s; }
.book3d.is-open { z-index: 3; }
.book3d.is-open .book-btn { transform: rotateY(0) rotateX(0) translateZ(0); }
.book3d.is-open .book-cover { transform: translateZ(14px) rotateY(-165deg); }
.book3d.is-open .book-inside { opacity: 1; z-index: 1; }
.book3d.is-open .book-spine, .book3d.is-open .book-pages { opacity: 0; }
.shelf-plank { height: 22px; margin: -4px auto 0; max-width: 980px; border-radius: 3px; background: linear-gradient(180deg, #7a5230, #4a2f19); box-shadow: 0 18px 30px -12px rgba(60,35,10,.6), inset 0 2px 0 rgba(255,255,255,.15); }

/* ---------- Chapter III: map journey ---------- */
.journey {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(60,120,110,.25), transparent 70%),
    repeating-radial-gradient(circle at 80% 120%, transparent 0 22px, rgba(201,162,74,.05) 22px 23px),
    linear-gradient(180deg, #0f2526, var(--teal));
}
.journey .section-intro { color: var(--text-muted); }
.journey-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.map {
  position: relative; aspect-ratio: 1; border-radius: 4px; padding: 12px;
  background: linear-gradient(135deg, #5a3a1e, #2e1d0e); box-shadow: 0 40px 70px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(240,211,140,.25);
}
.map-inner { position: relative; height: 100%; overflow: hidden; border-radius: 2px; }
.map-inner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.map-banner, .map-plaque {
  position: absolute; display: grid; place-items: center; text-align: center; color: #4a2a12; font-family: var(--serif); font-weight: 700;
  background: linear-gradient(180deg, #f1dfb2, #d9bf86); border: 1px solid #8a6a2a; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5);
}
.map-banner { left: 14%; right: 14%; top: 4.5%; height: 10%; font-size: clamp(16px, 2.6vw, 30px); letter-spacing: .06em; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.map-plaque { left: 36%; right: 36%; top: 85%; height: 7%; font-size: clamp(10px, 1.3vw, 15px); font-style: italic; }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-path path { fill: none; stroke: #7d1d2b; stroke-width: .7; stroke-linecap: round; stroke-dasharray: .018 .014; vector-effect: none; }
.map-path .draw { stroke: #fff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.waypoint {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 0; border-radius: 50%; cursor: pointer; color: #fbefd2; font-family: var(--serif); font-size: 18px; font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #c23e50, #7d1d2b 55%, #48101a);
  box-shadow: 0 6px 12px -4px rgba(0,0,0,.6), inset 0 0 0 3px rgba(0,0,0,.15), inset 0 0 0 5px rgba(240,190,170,.18);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.waypoint:hover, .waypoint.is-active { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(240,211,140,.55), 0 10px 18px -4px rgba(0,0,0,.6); }
.waypoint.is-active::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--gold-hi); animation: ping 2.4s var(--ease) infinite; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stop {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 4px;
  border: 1px solid transparent; background: rgba(255,255,255,.02); transition: background-color .4s, border-color .4s, transform .4s var(--ease);
}
.stop.is-active { background: rgba(240,211,140,.08); border-color: var(--line); transform: translateX(-6px); }
.stop-seal { position: relative; width: 52px; height: 52px; }
.stop-seal svg { width: 100%; height: 100%; }
.stop-seal b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: #fbefd2; }
.stop h3 { font-size: 27px; color: var(--gold-hi); }
.stop p { margin-top: 6px; color: var(--text-muted); font-size: 16px; }

/* ---------- Calls: envelope ---------- */
.calls { background: radial-gradient(ellipse 80% 70% at 70% 50%, #6e1f2c, #3b0e17 75%); overflow: hidden; }
.dapple {
  position: absolute; inset: -20%; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 120px 60px at 20% 30%, rgba(255,230,180,.9), transparent 70%),
    radial-gradient(ellipse 200px 90px at 60% 20%, rgba(255,230,180,.8), transparent 70%),
    radial-gradient(ellipse 160px 70px at 80% 60%, rgba(255,230,180,.85), transparent 70%),
    radial-gradient(ellipse 90px 50px at 35% 75%, rgba(255,230,180,.8), transparent 70%),
    radial-gradient(ellipse 240px 80px at 55% 85%, rgba(255,230,180,.7), transparent 70%);
  animation: dapple 14s ease-in-out infinite alternate;
}
@keyframes dapple { from { transform: translate(-2%, -1%) rotate(-2deg); } to { transform: translate(3%, 2%) rotate(2deg); } }
.calls-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.calls-copy h2 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); }
.calls-copy p { margin-top: 18px; color: #e9d6c2; max-width: 34em; }
.calls-copy .btn { margin-top: 30px; }

.envelope-scene { display: grid; place-items: center; padding: 140px 0 20px; will-change: transform; }
.envelope { position: relative; width: min(440px, 100%); aspect-ratio: 3 / 2; perspective: 1200px; }
.env-back { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(160deg, #5a1823, #3a0d15); box-shadow: 0 40px 60px -30px rgba(0,0,0,.8); }
.letter {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 92%; z-index: 1; padding: 22px 26px; border-radius: 2px;
  background: linear-gradient(180deg, var(--paper), #efe2c2); color: var(--text-dark); text-align: center;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); transition: transform 1s var(--ease) .35s;
}
.letter-kicker { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lo); }
.letter-title { margin-top: 6px; font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--burgundy); line-height: 1.1; }
.letter-orn { width: 120px; height: 12px; margin: 8px auto; color: var(--gold-lo); }
.letter p:not([class]) { font-size: 14.5px; color: var(--text-dark-muted); }
.letter-sign { margin-top: 8px; font-family: var(--script); font-size: 26px; color: var(--burgundy); }
.ticket {
  position: absolute; z-index: 1; right: 4%; top: 18%; width: 62%; padding: 10px 14px; text-align: center; border-radius: 3px;
  background: linear-gradient(180deg, #fbf3dc, #efdfb4); border: 1px solid #c9a24a; outline: 1px dashed rgba(138,106,42,.5); outline-offset: -6px;
  display: grid; gap: 2px; color: #6a4b16; transform: rotate(4deg); opacity: 0; transition: transform 1s var(--ease) .6s, opacity .5s .6s;
}
.ticket-top { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; }
.ticket-main { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #8a6a2a; background: linear-gradient(180deg, #d9b45d, #8a6a2a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ticket-sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.env-front {
  position: absolute; inset: 0; z-index: 2; border-radius: 4px; pointer-events: none;
  background:
    linear-gradient(to top right, #6a1c28 49.6%, transparent 50%) left bottom / 51% 100% no-repeat,
    linear-gradient(to top left, #6a1c28 49.6%, transparent 50%) right bottom / 51% 100% no-repeat,
    linear-gradient(to top, #7a2231 0%, #5e1823 100%) bottom / 100% 52% no-repeat;
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,.25));
}
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: top center;
  background: linear-gradient(180deg, #7b2433, #5a1622); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform .8s var(--ease), z-index 0s .4s; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35));
}
.seal-btn {
  position: absolute; left: 50%; top: 58%; z-index: 4; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0;
  background: none; border: 0; cursor: pointer; transition: transform .4s var(--ease), opacity .5s;
}
.seal-btn svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); transition: transform .5s var(--ease); }
.seal-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; font-weight: 700; font-style: italic; color: rgba(255,220,200,.6); text-shadow: 0 -1px 0 rgba(0,0,0,.35); pointer-events: none; }
.seal-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 10px; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.seal-btn:hover svg { transform: rotate(-8deg) scale(1.06); }
.seal-btn:not([aria-expanded="true"]) svg { animation: nudge 3.5s ease-in-out infinite 2s; }
@keyframes nudge { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-9deg); } 94% { transform: rotate(7deg); } 97% { transform: rotate(-3deg); } }
.envelope[data-open="true"] .env-flap { transform: rotateX(180deg); z-index: 0; transition: transform .8s var(--ease), z-index 0s .4s; }
.envelope[data-open="true"] .letter { transform: translateY(-58%); }
.envelope[data-open="true"] .ticket { z-index: 3; opacity: 1; transform: translate(44%, 60%) rotate(10deg); }
.envelope[data-open="true"] .seal-btn { top: 104%; transform: scale(.6); }
.envelope[data-open="true"] .seal-label { font-size: 16px; }

/* ---------- Chapter IV: comics ---------- */
.comics { background: #121010; overflow: hidden; }
.halftone { position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(circle, #c9a24a 1.2px, transparent 1.6px); background-size: 12px 12px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 60%); mask-image: linear-gradient(135deg, #000, transparent 60%); }
.comics .section-intro { color: var(--text-muted); }
.panels { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto auto; gap: 16px; padding: 16px; background: #f3e4bf; border-radius: 3px; transform: rotate(-.6deg); box-shadow: 0 40px 70px -30px rgba(0,0,0,.9); }
.panel { position: relative; margin: 0; overflow: hidden; border: 4px solid #121010; background: #121010; min-height: 240px; }
.panel-a { grid-row: span 2; min-height: 520px; }
.panel-d { grid-column: 1 / -1; min-height: 0; padding: 22px 26px; background: #efe0b8; color: #121010; background-image: radial-gradient(circle, rgba(0,0,0,.14) 1px, transparent 1.4px); background-size: 6px 6px; }
.panel-art { position: absolute; inset: -12% 0; will-change: transform; }
.panel-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; }
.panel:hover .panel-art img { transform: scale(1.05); filter: contrast(1.1); }
.caption {
  position: absolute; left: 12px; top: 12px; z-index: 2; max-width: 74%; padding: 8px 12px;
  background: #f6e7b9; color: #121010; border: 2.5px solid #121010; box-shadow: 4px 4px 0 #121010;
  font-size: 14px; line-height: 1.35; transform: rotate(-1deg);
}
.caption b { display: block; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.strip-kicker { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.strip-title { margin-top: 2px; font-family: var(--serif); font-size: 34px; font-weight: 700; }
.panel-d p:last-child { margin-top: 4px; }
.bubble {
  position: absolute; z-index: 3; left: 54%; top: 6%; width: 210px; padding: 12px 14px; border-radius: 20px;
  background: #fff; color: #121010; border: 2.5px solid #121010; font-size: 15px; font-weight: 600; line-height: 1.3;
  transform: scale(0) rotate(-6deg); transform-origin: 0% 100%; transition: transform .5s cubic-bezier(.3,1.6,.5,1);
}
.bubble::after { content: ""; position: absolute; left: 10px; bottom: -16px; border: 9px solid transparent; border-top: 14px solid #121010; border-left-width: 4px; }
.panel-a.is-talking .bubble { transform: scale(1) rotate(-3deg); }
.comics-note { margin-top: clamp(40px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.comics-note p { max-width: 36em; color: var(--text-muted); }
.btn-comic { background: #f6e7b9; color: #121010; border: 2.5px solid #121010; box-shadow: 5px 5px 0 var(--gold); letter-spacing: .14em; }
.btn-comic:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); }
.btn-comic:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--gold); }

/* ---------- Chapter V: desk + letter ---------- */
.desk {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px, rgba(255,255,255,.02) 9px 10px, transparent 10px 23px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 160px),
    linear-gradient(180deg, #3a2414, #24160c);
}
.desk-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 15% 20%, rgba(255,180,90,.22), transparent 70%); animation: flicker 5s ease-in-out infinite; }
.desk-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.card-col h2 { margin-top: 18px; font-size: clamp(38px, 5vw, 62px); }
.card-col .section-intro { color: var(--text-muted); }
.index-card {
  position: relative; margin-top: 36px; padding: 22px 22px 14px; color: var(--text-dark); transform: rotate(-2deg);
  background: repeating-linear-gradient(180deg, var(--paper) 0 27px, #cfe0e6 27px 28px); background-position: 0 44px;
  border-top: 2px solid #c4566a; box-shadow: 0 30px 50px -24px rgba(0,0,0,.8); transition: transform .5s var(--ease);
}
.card-title { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--burgundy); }
.contact-list { margin: 10px 0 0; display: grid; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 7px 0; }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark-muted); padding-top: 3px; }
.contact-list dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.contact-list dd a { color: var(--text-dark); text-decoration-color: var(--burgundy); text-underline-offset: 3px; }
.placeholder { display: inline-block; padding: 0 9px; border: 1px dashed #8a6a2a; border-radius: 3px; color: var(--text-dark-muted); font-size: 14px; background: rgba(201,162,74,.12); }
.stamp { position: absolute; right: 14px; top: -24px; width: 70px; height: 84px; perspective: 600px; transform: rotate(6deg); }
.stamp-face {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; padding: 8px;
  background: #f4e9cf; color: var(--burgundy); font-family: var(--serif); font-size: 15px;
  -webkit-mask: radial-gradient(circle 3.5px at 50% 50%, transparent 98%, #000) -3.5px -3.5px / 9px 9px; mask: radial-gradient(circle 3.5px at 50% 50%, transparent 98%, #000) -3.5px -3.5px / 9px 9px;
  box-shadow: inset 0 0 0 7px #f4e9cf, inset 0 0 0 8px #b8394a; transition: transform .7s var(--ease);
}
.stamp-face img { width: 34px; height: 34px; }
.stamp:hover .stamp-face { transform: rotate(-6deg) scale(1.06); }
.stamp.is-found .stamp-face { transform: rotateY(180deg); }
.stamp.is-found .stamp-face > * { opacity: 0; }
.stamp.is-found::after { content: "Posted from India"; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--script); font-size: 18px; line-height: 1; color: var(--burgundy); pointer-events: none; }
.stamp::before { content: ""; position: absolute; inset: 10px; z-index: 2; border-radius: 50%; border: 1px solid rgba(110,31,44,.45); animation: ping 3.6s var(--ease) infinite .5s; pointer-events: none; }
.stamp.is-found::before { display: none; }

.letter-form {
  position: relative; padding: clamp(28px, 4vw, 48px); color: var(--text-dark); transform: rotate(.8deg);
  background: linear-gradient(180deg, var(--paper), #efe2c4);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(138,106,42,.25) inset;
}
.letter-form::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 1px; background: rgba(196,86,106,.35); }
.letter-salute { font-family: var(--script); font-size: 34px; color: var(--burgundy); margin-bottom: 14px; }
.field { display: grid; gap: 4px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text-dark); background: transparent;
  border: 0; border-bottom: 1px solid rgba(90,64,30,.45); border-radius: 0; padding: 8px 2px; min-height: 44px;
  transition: border-color .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 130px; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(90,64,30,.18) 31px 32px); line-height: 32px; border: 0; padding-top: 0; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e1f2c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 26px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--burgundy); background-color: rgba(201,162,74,.08); }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; background-color: rgba(179,38,30,.06); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; }
.letter-sign-off { font-family: var(--script); font-size: 28px; color: var(--text-dark-muted); }
.seal-submit { position: relative; width: 104px; height: 104px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; margin-bottom: 26px; }
.seal-submit svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(60,20,10,.45)); transition: transform .35s var(--ease); }
.seal-submit .seal-mono { font-size: 30px; }
.seal-submit-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); }
.seal-submit:hover svg { transform: rotate(10deg) scale(1.06); }
.seal-submit:active svg, .seal-submit.is-stamping svg { animation: stamp .55s var(--ease); }
@keyframes stamp { 0% { transform: scale(1); } 35% { transform: scale(1.25) translateY(-14px); } 60% { transform: scale(.88); } 100% { transform: scale(1); } }
.form-status { min-height: 1.4em; font-size: 15px; color: var(--burgundy); font-weight: 500; }
.form-status.is-error { color: #b3261e; }
.form-hint { font-size: 13.5px; color: var(--text-dark-muted); }

/* ---------- Footer: book-spine street ---------- */
.site-footer { background: linear-gradient(180deg, #24160c 0, #151019 140px, #120d15); }
.street { position: relative; height: clamp(220px, 26vw, 320px); overflow: hidden; }
.street::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 60% at 50% 100%, rgba(255,170,80,.18), transparent 70%); }
.lights { position: absolute; left: 0; right: 0; top: 18px; width: 100%; height: 60px; z-index: 3; }
.bulbs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bulb { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffe2a0; box-shadow: 0 0 8px 2px rgba(255,200,110,.8); animation: twinkle var(--t, 2.4s) ease-in-out infinite; animation-delay: var(--d, 0s); }
.spines { position: absolute; left: 0; right: 0; bottom: 26px; height: 100%; display: flex; align-items: flex-end; justify-content: center; will-change: transform; }
.spines-back { bottom: 40px; z-index: 1; opacity: .55; filter: brightness(.55) saturate(.8); }
.spines-front { z-index: 2; gap: 0; }
.spine {
  position: relative; height: var(--h); width: var(--w); background: var(--c); flex: none;
  border-radius: 3px 3px 0 0; box-shadow: inset -6px 0 10px -6px rgba(0,0,0,.6), inset 6px 0 8px -6px rgba(255,255,255,.12);
  background-image:
    linear-gradient(transparent 12%, rgba(240,211,140,.55) 12% 13%, transparent 13% 86%, rgba(240,211,140,.55) 86% 87%, transparent 87%),
    radial-gradient(circle at 30% 35%, rgba(255,214,140,.95) 0 3px, transparent 3.5px),
    radial-gradient(circle at 70% 55%, rgba(255,214,140,.8) 0 3px, transparent 3.5px);
  background-size: 100% 100%, 100% 40px, 100% 52px;
}
.spine::before { content: ""; position: absolute; left: 4px; right: 4px; top: -7px; height: 8px; border-radius: 2px 2px 0 0; background: repeating-linear-gradient(90deg, #f3e6c6 0 2px, #cdbb92 2px 3px); }
.sign { position: absolute; left: 50%; top: 22%; transform: translateX(-50%) rotate(-90deg); white-space: nowrap; font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink, #f3e4bf); }
.street-window {
  position: absolute; left: 50%; top: 26%; width: 22px; height: 30px; margin-left: -11px; border-radius: 10px 10px 2px 2px; z-index: 2;
  background: linear-gradient(#ffe7a8, #ffb84d); box-shadow: 0 0 18px 4px rgba(255,190,90,.6); border: 2px solid #3a2a18; transition: box-shadow .4s, transform .3s;
}
.street-window:hover { box-shadow: 0 0 28px 10px rgba(255,190,90,.8); transform: scale(1.1); }
.street-window::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,220,150,.7); animation: ping 3s var(--ease) infinite 1.5s; }
.street-window.is-found::after { display: none; }
.street-road { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; z-index: 3; background: repeating-linear-gradient(90deg, #2a2020 0 26px, #231a1b 26px 28px), #2a2020; border-top: 2px solid #3a2c22; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.footer-tag { font-size: 14px; color: var(--text-muted); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.site-footer nav a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-hi); }
.footer-legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(201,162,74,.15); font-size: 13px; color: #8f836c; }

/* ---------- Italic accents in headings ---------- */
.section-head h2 em, .card-col h2 em, .hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.diary .section-head h2 em { color: var(--burgundy); }
.inline-link { color: var(--burgundy); font-weight: 500; text-decoration-color: rgba(110,31,44,.45); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: var(--burgundy); }

/* Crest on the Academic book */
.book-crest .cover-crest { width: 92px; height: 92px; object-fit: cover; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%); mask-image: radial-gradient(circle, #000 52%, transparent 70%); margin: -8px 0 -6px; }
.book-crest .cover-title { font-size: 24px; }

/* Crest on the invitation letter */
.letter-crest { width: 34px; height: 34px; margin: -8px auto 4px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(138,106,42,.55), 0 0 0 3px rgba(251,245,230,.9), 0 0 0 4px rgba(138,106,42,.3); }

/* ---------- Chapter II: the cover room ---------- */
.covers {
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 132px),
    linear-gradient(180deg, #1a1524 0%, #13101b 55%, #0e0b0d 100%);
}
.covers::before { content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 2px; background: linear-gradient(90deg, transparent, rgba(240,211,140,.45) 15%, rgba(240,211,140,.45) 85%, transparent); }
.spotlights {
  position: absolute; inset: 0; pointer-events: none; animation: flicker 7s ease-in-out infinite;
  background:
    radial-gradient(ellipse 22% 55% at 18% 0%, rgba(255,205,130,.16), transparent 70%),
    radial-gradient(ellipse 22% 55% at 50% 0%, rgba(255,205,130,.12), transparent 70%),
    radial-gradient(ellipse 22% 55% at 82% 0%, rgba(255,205,130,.16), transparent 70%);
}
.covers .section-intro { color: var(--text-muted); }
.covers-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.covers .section-head { margin-bottom: 44px; }
.house-crest { margin: 0 0 30px; width: 220px; text-align: center; }
.house-crest img {
  width: 220px; height: 220px; object-fit: cover; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 70%); mask-image: radial-gradient(circle, #000 50%, transparent 70%);
  filter: drop-shadow(0 0 30px rgba(240,190,90,.25)); animation: float 7s ease-in-out infinite;
}
.house-crest figcaption { margin-top: -6px; font-family: var(--script); font-size: 26px; color: var(--gold); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Filter tabs: bookmarks hanging from a brass rail */
.bookmarks { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 0 10px; min-height: 104px; }
.bookmarks::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; z-index: 2; border-radius: 4px; background: linear-gradient(180deg, #e8c879, #9a7432 60%, #5c4219); box-shadow: 0 3px 6px -2px rgba(0,0,0,.7); }
.bookmark {
  position: relative; flex: 0 0 auto; min-width: 138px; display: grid; justify-items: center; gap: 0; padding: 16px 18px 30px;
  border: 0; cursor: pointer; color: #fbefd2; background: linear-gradient(180deg, color-mix(in srgb, var(--bm) 70%, #000), var(--bm) 40%, color-mix(in srgb, var(--bm) 85%, #fff 15%));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%);
  filter: brightness(.84) saturate(.85); transition: padding .5s var(--ease), filter .3s;
}
.bookmark::before { content: ""; position: absolute; inset: 11px 6px 20px; border: 1px dashed rgba(240,211,140,.45); pointer-events: none; }
.bookmark:hover { padding-bottom: 38px; filter: brightness(.95) saturate(.95); }
.bookmark.is-active { padding-top: 22px; padding-bottom: 46px; filter: none; }
.bookmark.is-active .bm-label { color: var(--gold-hi); }
.bookmark:focus-visible { outline-offset: -4px; }
.bm-label { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.bm-count { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,239,210,.9); min-height: 1.3em; }
.covers-hint { margin-top: 10px; font-family: var(--script); font-size: 26px; color: var(--text-muted); }

/* Covers standing on shelves */
.cover-shelf { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 0; row-gap: 74px; }
.cover-item { position: relative; padding: 0 clamp(12px, 2.2vw, 28px); animation: cover-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.cover-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 18px; z-index: 0;
  background: linear-gradient(180deg, #7a5230 0, #5a3a1f 40%, #3a2513); box-shadow: 0 18px 26px -10px rgba(0,0,0,.85), inset 0 2px 0 rgba(255,255,255,.14);
}
.cover-item:first-child::after, .cover-item.row-start::after { border-top-left-radius: 3px; }
@keyframes cover-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cover-book { position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; perspective: 1000px; }
.cover-3d {
  position: relative; display: block; aspect-ratio: 2 / 3; transform-origin: left bottom; transform: rotateY(-16deg);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); border-radius: 1px 4px 4px 1px; overflow: hidden;
  box-shadow: 5px 1px 0 -1px #efe3c4, 7px 2px 0 -1px #cdbb92, 10px 3px 0 -2px #e6d7b2, 14px 22px 26px -12px rgba(0,0,0,.85);
}
.cover-3d img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #221b26; }
.cover-3d::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8%; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.2) 45%, rgba(0,0,0,.18)); }
.cover-3d::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 32%, rgba(255,222,140,.0) 40%, rgba(255,226,150,.65) 50%, rgba(255,240,200,.0) 60%, transparent 68%);
  transform: translateX(-130%); transition: transform 1s var(--ease);
}
.cover-book:hover .cover-3d, .cover-book:focus-visible .cover-3d { transform: rotateY(-4deg) translateY(-16px); box-shadow: 5px 1px 0 -1px #efe3c4, 7px 2px 0 -1px #cdbb92, 10px 3px 0 -2px #e6d7b2, 18px 40px 40px -16px rgba(0,0,0,.9), 0 0 40px -6px rgba(240,190,90,.35); }
.cover-book:hover .cover-3d::after, .cover-book:focus-visible .cover-3d::after { transform: translateX(130%); }
.cover-book:focus-visible { outline-offset: 8px; }
.cover-tier { position: absolute; z-index: 3; top: -7px; right: 16%; width: 13px; height: 38px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); transition: transform .6s var(--ease); }
.cover-book:hover .cover-tier { transform: translateY(-16px); }
.tier-premium { background: linear-gradient(180deg, #f6dc94, #c9a24a 60%, #8a6a2a); }
.tier-standard { background: linear-gradient(180deg, #2e6b65, #1f4e4a); }
.tier-others { background: linear-gradient(180deg, #44598a, #2c3d63); }
.covers-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.covers-key span { display: inline-flex; align-items: center; gap: 8px; }
.covers-key i { width: 9px; height: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }

.covers-foot { margin-top: 70px; display: grid; justify-items: center; gap: 46px; }
.covers-more[hidden] { display: none; }
.covers-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.covers-cta p { font-family: var(--script); font-size: 34px; color: var(--gold-hi); line-height: 1.2; }

/* Lightbox: one cover, larger */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(8,6,9,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox-stage { display: flex; align-items: center; gap: clamp(10px, 3vw, 44px); padding: 64px 16px 24px; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 20px; }
.lb-book {
  width: min(80vw, 520px, calc((100dvh - 190px) * .6667)); aspect-ratio: 2 / 3; position: relative; border-radius: 2px 6px 6px 2px;
  box-shadow: 6px 2px 0 -1px #efe3c4, 9px 3px 0 -1px #cdbb92, 13px 5px 0 -2px #e6d7b2, 0 50px 80px -30px rgba(0,0,0,.95), 0 0 120px -20px rgba(240,190,90,.3);
}
.lb-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.18) 45%, rgba(0,0,0,.15)); }
.lb-book.is-turning { animation: lb-turn .55s var(--ease); }
@keyframes lb-turn { from { opacity: 0; transform: perspective(1200px) rotateY(-24deg) translateX(20px); } }
.lb-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #1b1620; }
.lb-caption { font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); text-align: center; }
.lb-btn {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(14,11,13,.6); color: var(--gold-hi); font-family: var(--serif); font-size: 38px; line-height: 1; padding-bottom: 6px;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.lb-btn:hover { border-color: var(--gold); background: rgba(201,162,74,.15); transform: scale(1.06); }
.lb-close {
  position: fixed; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(14,11,13,.7); color: var(--gold-hi); cursor: pointer;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.lb-close span { font-size: 22px; line-height: 1; }
.lb-close:hover { border-color: var(--gold); }

/* =====================================================================
   v4: multi-page additions
   ===================================================================== */

[hidden] { display: none !important; }
.lightbox.is-magazine .lb-book { aspect-ratio: 1 / 1.414; width: min(80vw, 560px, calc((100dvh - 190px) * .707)); }

/* ---------- Header: current page, Submit button, newsletter button ---------- */
.site-nav a[aria-current="page"] { color: var(--gold-hi); }
.site-nav a[aria-current="page"]::after { opacity: 1; transform: translate(-50%, 0); }
.site-nav a.nav-cta { color: #2a1a06; border: 1px solid #e3c477; background: linear-gradient(180deg, #f6dc94, #d1aa52 55%, #a9802f); font-weight: 600; }
.site-nav a.nav-cta:hover { color: #2a1a06; filter: brightness(1.06); }
.site-nav a.nav-cta::after { display: none; }
.letter-btn {
  display: inline-grid; place-items: center; width: 40px; height: 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(201,162,74,.1); color: var(--gold-hi); transition: background-color .3s;
}
.letter-btn:hover { background: rgba(201,162,74,.22); }
.letter-btn svg { width: 19px; height: 19px; }

.page-top { padding-top: clamp(130px, 14vw, 170px); }
.h2 { font-size: clamp(38px, 5.2vw, 64px); }
.section-head .h2 { margin-top: 20px; }
.card-col .h2 { margin-top: 18px; font-size: clamp(38px, 5vw, 62px); }
.section-head .h2 em, .card-col .h2 em, .prose .h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.label-like { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.label-like .opt { font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--text-dark-muted); }
.form-hint a { color: var(--burgundy); }

/* ---------- Inner page heading ---------- */
.page-head {
  position: relative; overflow: hidden; padding: 150px 0 96px;
  background: radial-gradient(ellipse 55% 75% at 82% 45%, #2c1f1b 0%, var(--night) 72%);
}
.page-head .embers-lite { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 70% 30%, rgba(255,190,110,.12), transparent 30%), radial-gradient(circle at 90% 80%, rgba(255,190,110,.08), transparent 25%); }
.page-head-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.page-head h1 { margin-top: 22px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.page-head h1 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.page-head .lede { margin-top: 24px; }
.page-head .hero-actions { margin-top: 32px; }
.arch {
  position: relative; justify-self: end; width: 100%; max-width: 400px; aspect-ratio: 4 / 5; margin: 0; overflow: hidden;
  border-radius: 200px 200px 6px 6px;
  box-shadow: 0 0 0 1px rgba(240,211,140,.45), 0 0 0 10px rgba(14,11,13,.92), 0 0 0 11px rgba(240,211,140,.22), 0 40px 80px -30px #000, 0 0 100px -20px rgba(255,180,90,.35);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(14,11,13,.55)); }
.arch-caption { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 1; text-align: center; font-family: var(--script); font-size: 24px; color: var(--gold-hi); }

/* ---------- Home: the doors ---------- */
.doors { background: linear-gradient(180deg, var(--night), #15111a); }
.door-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.door { display: grid; align-content: start; height: 100%; text-decoration: none; color: inherit; }
.door-arch {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 160px 160px 4px 4px;
  border: 1px solid rgba(240,211,140,.35); box-shadow: 0 30px 50px -28px #000; transition: transform .6s var(--ease), box-shadow .6s;
}
.door-arch img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(1.05); transition: transform 1.2s var(--ease), filter .6s; }
.door-arch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255,180,90,.35), transparent 70%); opacity: 0; transition: opacity .6s; }
.door:hover .door-arch, .door:focus-visible .door-arch { transform: translateY(-8px); box-shadow: 0 40px 60px -28px #000, 0 0 50px -10px rgba(255,180,90,.35); }
.door:hover .door-arch img, .door:focus-visible .door-arch img { transform: scale(1.06); filter: brightness(1) saturate(1.1); }
.door:hover .door-arch::after, .door:focus-visible .door-arch::after { opacity: 1; }
.door-num { position: absolute; left: 50%; top: 14px; z-index: 1; transform: translateX(-50%); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 6px #000; }
.door h3 { margin-top: 20px; font-size: 30px; font-style: italic; color: var(--text); }
.door p { margin-top: 8px; font-size: 15.5px; color: var(--text-muted); }
.door-go { margin-top: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.door:hover .door-go { color: var(--gold-hi); }

.section-foot { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Home: LitVerse strip ---------- */
.lv-strip { background: radial-gradient(ellipse 60% 70% at 20% 40%, #1d2a3a, #0f1219 75%); }
.lv-strip-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.mag { position: relative; display: block; width: min(320px, 100%); margin: 0 auto; transform: rotate(-3deg); transition: transform .6s var(--ease); }
.mag:hover { transform: rotate(-1deg) translateY(-8px); }
.mag img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 2px 4px 4px 2px;
  box-shadow: 5px 2px 0 -1px #efe3c4, 8px 4px 0 -2px #d9c9a3, 0 40px 60px -26px #000, 0 0 80px -20px rgba(140,180,255,.25); }
.mag-tag { position: absolute; left: -12px; top: 22px; z-index: 1; padding: 6px 14px; background: var(--gold); color: #2a1a06; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 6px 14px -6px #000; }
.lv-wordmark { font-family: var(--serif); font-size: clamp(44px, 6vw, 80px); font-weight: 700; line-height: .95; letter-spacing: -.01em; }
.lv-wordmark span { display: block; font-style: italic; font-weight: 500; color: var(--gold-hi); }
.lv-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #9fb4d0; }
.news-mini { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; }
.news-mini li a { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(159,180,208,.18); text-decoration: none; }
.news-mini time { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #9fb4d0; padding-top: 4px; }
.news-mini b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); }
.news-mini a:hover b { color: var(--gold-hi); }

/* ---------- Newsletter band ---------- */
.letter-band { background: radial-gradient(ellipse 80% 90% at 70% 50%, #6e1f2c, #3b0e17 75%); overflow: hidden; }
.letter-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.letter-band h2 { margin-top: 16px; font-size: clamp(36px, 4.4vw, 56px); }
.letter-band h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.letter-band p { margin-top: 14px; color: #e9d6c2; max-width: 32em; }
.nl-form { position: relative; padding: 28px; background: linear-gradient(180deg, var(--paper), #efe2c2); color: var(--text-dark); box-shadow: 0 30px 60px -30px #000; transform: rotate(1deg); }
.nl-form .field { margin-bottom: 14px; }
.nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* Checkboxes and small print, shared by every form */
.checks { display: grid; gap: 10px; margin: 6px 0 18px; padding: 0; border: 0; }
.checks legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lo); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--text-dark); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--burgundy); cursor: pointer; }
.check a { color: var(--burgundy); text-underline-offset: 3px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks-inline .check { grid-template-columns: 22px auto; }
.small-print { font-size: 13px; color: var(--text-dark-muted); }
.small-print a { color: var(--burgundy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-state="ok"] { color: #2f6b3a; }

/* ---------- Newsletter popup (slide-in letter) ---------- */
.nl-pop {
  position: fixed; right: 24px; bottom: 24px; z-index: 115; width: min(410px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  padding: 44px 26px 22px; color: var(--text-dark); border-radius: 4px;
  background: linear-gradient(180deg, var(--paper), #efe2c4); border: 1px solid #d3bd86;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.8), 0 0 0 6px rgba(110,31,44,.0);
  transform: translateY(calc(100% + 40px)) rotate(2deg); opacity: 0; visibility: hidden;
  transition: transform .7s var(--ease), opacity .4s, visibility 0s .7s;
}
.nl-pop.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .7s var(--ease), opacity .4s; }
.nl-pop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, #6e1f2c 0 18px, #f2e6cc 18px 26px, #2c3d63 26px 44px, #f2e6cc 44px 52px); }
.nl-seal { position: absolute; right: 18px; top: 14px; width: 54px; height: 54px; }
.nl-seal svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(60,20,10,.4)); }
.nl-seal .seal-mono { font-size: 17px; }
.nl-pop .note-kicker { padding-right: 60px; }
.nl-title { margin-top: 4px; padding-right: 56px; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.05; color: var(--burgundy); }
.nl-text { margin-top: 8px; font-size: 15px; color: var(--text-dark-muted); }
.nl-pop form { margin-top: 16px; }
.nl-pop .field { margin-bottom: 12px; }
.nl-pop .checks { margin-bottom: 14px; }
.nl-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nl-actions .btn { min-height: 46px; padding: 11px 22px; }
.nl-later { border: 0; background: none; padding: 10px 4px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dark-muted); text-decoration: underline; text-underline-offset: 4px; }
.nl-done { display: none; text-align: center; padding: 6px 0 4px; }
.nl-pop.is-done form, .nl-pop.is-done .nl-text { display: none; }
.nl-pop.is-done .nl-done { display: block; }
.nl-done p:first-child { font-family: var(--script); font-size: 34px; color: var(--burgundy); }

/* ---------- Forms on paper (submit, self-publish, contact) ---------- */
.letter-form--flat { transform: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field .opt { font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--text-dark-muted); }
.field-hint { font-size: 13.5px; color: var(--text-dark-muted); line-height: 1.45; }
.field textarea.plain { background: transparent; line-height: 1.6; border-bottom: 1px solid rgba(90,64,30,.45); padding-top: 8px; min-height: 110px; }
.file-drop {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(110,31,44,.45); border-radius: 6px; background: rgba(201,162,74,.07); transition: background-color .3s, border-color .3s;
}
.file-drop:hover, .file-drop.is-over { background: rgba(201,162,74,.16); border-color: var(--burgundy); }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop b { font-family: var(--serif); font-size: 21px; color: var(--burgundy); }
.file-drop span { font-size: 13.5px; color: var(--text-dark-muted); }
.file-drop.has-file { border-style: solid; background: rgba(47,107,58,.07); border-color: rgba(47,107,58,.5); }
.file-drop.has-file b { color: #2f5a36; }
.file-drop:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dark-muted); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: rgba(90,64,30,.25); }
.upload-bar { height: 4px; margin: 4px 0 10px; border-radius: 2px; background: rgba(90,64,30,.15); overflow: hidden; opacity: 0; transition: opacity .3s; }
.upload-bar.is-on { opacity: 1; }
.upload-bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--burgundy), #b8394a); transition: width .2s; }
.sent-card { display: none; text-align: center; padding: 30px 10px 10px; }
.sent-card .seal-mini { width: 86px; height: 86px; margin: 0 auto; position: relative; }
.sent-card .seal-mini svg { width: 100%; height: 100%; }
.sent-card h3 { margin-top: 14px; font-size: 34px; color: var(--burgundy); }
.sent-card p { margin-top: 8px; color: var(--text-dark-muted); }
.sent-card .ref { display: inline-block; margin-top: 10px; padding: 4px 12px; border: 1px dashed var(--gold-lo); font-family: var(--sans); font-weight: 600; letter-spacing: .08em; color: var(--text-dark); }
form.is-sent > :not(.sent-card) { display: none; }
form.is-sent .sent-card { display: block; }

/* ---------- Submissions desk ---------- */
.desk-page { background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px, rgba(255,255,255,.02) 9px 10px, transparent 10px 23px),
    linear-gradient(180deg, #2c1b10, #1d120a); }
.desk-cards { list-style: none; margin: 0 0 70px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.desk-card {
  position: relative; display: grid; align-content: start; gap: 10px; height: 100%; padding: 30px 22px 22px; color: var(--text-dark);
  background: linear-gradient(180deg, var(--paper), #efe2c4); box-shadow: 0 26px 40px -26px #000; transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease);
}
.desk-card:hover { transform: rotate(0) translateY(-6px); }
.desk-card .frame-num { left: auto; right: -10px; }
.desk-card h3 { font-size: 26px; color: var(--burgundy); }
.desk-card p { font-size: 15px; color: var(--text-dark-muted); }
.desk-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-dark); }
.desk-card li { margin: 2px 0; }
.desk-card .for { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lo); }
.desk-card .btn { margin-top: 8px; justify-self: start; min-height: 44px; padding: 10px 18px; font-size: 12.5px; }
.btn-ink { color: #fbefd2; background: linear-gradient(180deg, #8a2a38, #5e1823); border-color: #4a0f19; }
.btn-ink:hover { transform: translateY(-2px); filter: brightness(1.08); }
.form-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.form-aside { position: sticky; top: 100px; color: var(--text-muted); }
.form-aside h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--text); }
.form-aside h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.form-aside p { margin-top: 14px; }
.form-aside ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.form-aside li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.form-aside li::before { content: "✦"; color: var(--gold); font-size: 12px; padding-top: 4px; }
.form-panel[hidden] { display: none; }
.desk-page .bookmarks { margin-bottom: 40px; }
.open-calls { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(240,211,140,.05); }
.open-calls h3 { font-size: 22px; color: var(--gold-hi); }
.open-calls p { margin-top: 4px; font-size: 15px; }

/* ---------- Self-publish ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; counter-reset: flow; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; border-top: 2px dashed rgba(110,31,44,.35); }
.flow li { position: relative; text-align: center; }
.flow .stop-seal { margin: 0 auto; width: 56px; height: 56px; }
.flow h3 { margin-top: 14px; font-size: 23px; font-style: italic; color: var(--text-dark); }
.flow p { margin-top: 6px; font-size: 14.5px; color: var(--text-dark-muted); }
.ready-grid { margin-top: clamp(60px, 8vw, 100px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.paper-card { position: relative; padding: 30px 30px 26px; background: var(--paper); color: var(--text-dark); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 24px 40px -24px rgba(60,40,15,.6); }
.paper-card::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 24px; margin-left: -45px; background: rgba(235,220,180,.8); transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.paper-card h3 { font-size: 30px; color: var(--burgundy); }
.paper-card > p { margin-top: 8px; color: var(--text-dark-muted); }
.tick-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15.5px; }
.tick-list li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--burgundy); color: #fbefd2; font-size: 12px; font-weight: 700; }
.spec { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid rgba(90,64,30,.18); }
.spec th { width: 34%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lo); }
.duo { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(110,31,44,.25); background: var(--paper); color: var(--text-dark); }
.duo > div { padding: 26px 28px; }
.duo > div + div { border-left: 1px solid rgba(110,31,44,.25); background: rgba(110,31,44,.04); }
.duo h3 { font-size: 26px; color: var(--burgundy); }
.duo ul { margin: 12px 0 0; padding-left: 18px; font-size: 15.5px; }
.duo li { margin: 4px 0; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-hi); font-family: var(--sans); font-size: 20px; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 46em; color: var(--text-muted); }
.faq details p a { color: var(--gold-hi); }
.section-dark { background: linear-gradient(180deg, #15111a, var(--night)); }
.costs { margin-top: 26px; padding: 22px 26px; border-left: 3px solid var(--gold); background: rgba(240,211,140,.06); max-width: 760px; }
.costs p { color: var(--text-muted); }
.costs b { color: var(--text); font-family: var(--serif); font-size: 22px; display: block; margin-bottom: 4px; }

/* ---------- Publish with us: routes and calls ---------- */
.routes { list-style: none; margin: 0 0 clamp(70px, 9vw, 110px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route { display: grid; align-content: start; gap: 10px; height: 100%; padding: 28px 26px; text-decoration: none; color: var(--text-dark); background: var(--paper); box-shadow: 0 24px 40px -26px rgba(60,40,15,.7); border-top: 4px solid var(--c, var(--burgundy)); transition: transform .5s var(--ease); }
.route:hover { transform: translateY(-6px); }
.route .for { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lo); }
.route h3 { font-size: 28px; color: var(--text-dark); }
.route p { font-size: 15.5px; color: var(--text-dark-muted); }
.route .door-go { color: var(--burgundy); }
.call-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.call-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; padding: 22px 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 4px; }
.call-status { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: #2f6b3a; color: #f2f8ef; }
.call-status.is-closed { background: #4a4040; color: #e6dcdc; }
.call-card h3 { font-size: 24px; color: var(--gold-hi); }
.call-card p { font-size: 15px; color: var(--text-muted); }
.empty-note { padding: 26px 28px; border: 1px dashed var(--line); border-radius: 4px; color: var(--text-muted); text-align: center; }
.empty-note b { display: block; font-family: var(--serif); font-size: 24px; color: var(--text); margin-bottom: 6px; }
.empty-note a { color: var(--gold-hi); }

/* ---------- LitVerse page ---------- */
.lv-page { background: #0f1117; }
.lv-mast {
  position: relative; overflow: hidden; padding: 150px 0 80px; text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, #22324a, #0f1117 70%);
}
.lv-mast::before { content: ""; position: absolute; inset: 0; opacity: .55; background: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 64%, #dfe7f2, transparent), radial-gradient(1.5px 1.5px at 44% 18%, #f0d38c, transparent), radial-gradient(1px 1px at 61% 42%, #fff, transparent), radial-gradient(1px 1px at 77% 12%, #dfe7f2, transparent), radial-gradient(1.5px 1.5px at 88% 58%, #f0d38c, transparent), radial-gradient(1px 1px at 8% 78%, #dfe7f2, transparent), radial-gradient(1px 1px at 52% 86%, #fff, transparent); background-size: 340px 260px; }
.lv-mast-inner { position: relative; }
.lv-mast .lv-wordmark { font-size: clamp(56px, 10vw, 140px); }
.lv-mast .lv-wordmark span { display: inline; }
.lv-mast .lede { margin: 18px auto 0; text-align: center; max-width: 40em; }
.lv-rule { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; color: #9fb4d0; font-size: 12.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.lv-rule::before, .lv-rule::after { content: ""; width: 60px; height: 1px; background: currentColor; opacity: .6; }
.lv-jump { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(159,180,208,.35); background: rgba(159,180,208,.06); color: #dfe7f2; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #2a1a06; }
.lv-current { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.lv-current .mag { width: min(360px, 100%); }
.lv-current h2 { margin-top: 16px; font-size: clamp(38px, 4.6vw, 60px); }
.lv-current h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.lv-current p { margin-top: 14px; color: var(--text-muted); max-width: 34em; }
.lv-current .hero-actions { margin-top: 26px; }
.lv-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.lv-section-title h2 { font-size: clamp(34px, 4vw, 52px); }
.lv-section-title h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.news-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.news-tools select { min-height: 40px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid rgba(159,180,208,.35); background: #151a24 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f0d38c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; color: #dfe7f2; font: inherit; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: 4px; background: #161b26; border: 1px solid rgba(159,180,208,.16); transition: transform .5s var(--ease), border-color .4s; }
.news-card:hover { transform: translateY(-6px); border-color: rgba(240,211,140,.4); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card .nc-body { display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px; }
.nc-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9fb4d0; }
.nc-cat { padding: 3px 9px; border-radius: 999px; background: rgba(240,211,140,.14); color: var(--gold-hi); }
.news-card h3 { font-size: 26px; line-height: 1.12; }
.news-card p { font-size: 15.5px; color: var(--text-muted); white-space: pre-line; }
.nc-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.nc-links a { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-underline-offset: 4px; }
.issue-year { margin: 0 0 18px; font-family: var(--serif); font-size: 30px; font-style: italic; color: #9fb4d0; display: flex; align-items: center; gap: 16px; }
.issue-year::after { content: ""; flex: 1; height: 1px; background: rgba(159,180,208,.2); }
.issue-grid { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 22px; }
.issue-card { display: grid; gap: 10px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; font: inherit; }
.issue-card img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; border-radius: 1px 3px 3px 1px; box-shadow: 4px 2px 0 -1px #efe3c4, 6px 3px 0 -2px #d9c9a3, 0 24px 30px -18px #000; transition: transform .5s var(--ease), box-shadow .5s; }
.issue-card:hover img, .issue-card:focus-visible img { transform: translateY(-8px) rotate(-1deg); box-shadow: 4px 2px 0 -1px #efe3c4, 6px 3px 0 -2px #d9c9a3, 0 34px 40px -18px #000, 0 0 40px -10px rgba(240,211,140,.3); }
.issue-card b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.issue-card span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #9fb4d0; }
.lv-write { background: linear-gradient(120deg, #1a2333, #0f1117); border-top: 1px solid rgba(159,180,208,.15); }
.lv-write-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.lv-write h2 { font-size: clamp(32px, 4vw, 50px); }
.lv-write h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.lv-write p { margin-top: 10px; color: var(--text-muted); max-width: 36em; }

/* ---------- Plain pages: privacy, 404 ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font-size: 32px; color: var(--gold-hi); }
.prose p, .prose li { margin-top: 12px; color: var(--text-muted); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold-hi); }
.lost { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.lost .arch { justify-self: center; max-width: 260px; margin: 0 auto 30px; }
.lost h1 { font-size: clamp(42px, 6vw, 72px); }
.lost h1 em { font-style: italic; color: var(--gold-hi); font-weight: 500; }
.lost p { margin: 14px auto 0; max-width: 32em; color: var(--text-muted); }
.lost .hero-actions { justify-content: center; }

/* Footer: newsletter line */
.footer-letter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border: 1px solid rgba(201,162,74,.2); border-radius: 4px; background: rgba(201,162,74,.05); }
.footer-letter p { font-family: var(--serif); font-size: 22px; }
.footer-letter p em { color: var(--gold-hi); }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }

/* =====================================================================
   v5: proof first, calmer pages (after the 100-customer panel)
   ===================================================================== */

/* ---------- Home hero: real covers on a candlelit shelf ---------- */
.hero5 { position: relative; overflow: hidden; padding: 128px 0 96px; background: radial-gradient(ellipse 60% 70% at 78% 55%, #2c1f1b 0%, var(--night) 70%); }
.hero5 .embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero5-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero5 h1 { margin-top: 22px; font-size: clamp(46px, 6.2vw, 88px); line-height: .98; letter-spacing: -.015em; }
.hero5 h1 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.hero5-shelf { position: relative; padding-bottom: 34px; }
.hero5-plank { position: absolute; left: -4%; right: -4%; bottom: 14px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, #7a5230, #4a2f19); box-shadow: 0 22px 34px -12px rgba(0,0,0,.8), inset 0 2px 0 rgba(255,255,255,.14); }
.hero5-candle { position: absolute; right: -18px; bottom: 30px; z-index: 3; scale: .72; transform-origin: bottom right; }
.hero5.lights-low .cover-fan .fan-book { filter: brightness(.55); }
.hero5-caption { position: relative; z-index: 2; margin-top: 18px; text-align: center; font-family: var(--script); font-size: 24px; color: var(--gold); }

/* A fan of real covers (hero, page heads) */
.cover-fan { position: relative; height: 360px; }
.cover-fan .fan-book {
  position: absolute; left: 50%; bottom: 0; width: 168px; margin-left: -84px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px;
  transform-origin: 50% 100%; box-shadow: 4px 2px 0 -1px #efe3c4, 6px 3px 0 -2px #cdbb92, 0 26px 40px -16px rgba(0,0,0,.65);
  transition: transform .6s var(--ease);
}
.cover-fan .fan-book:nth-child(1) { transform: translateX(-152px) rotate(-13deg); }
.cover-fan .fan-book:nth-child(2) { transform: translateX(-78px) rotate(-6deg); z-index: 1; }
.cover-fan .fan-book:nth-child(3) { transform: translateY(-14px); z-index: 2; }
.cover-fan .fan-book:nth-child(4) { transform: translateX(78px) rotate(6deg); z-index: 1; }
.cover-fan .fan-book:nth-child(5) { transform: translateX(152px) rotate(13deg); }
@media (hover: hover) and (min-width: 1041px) {
  .cover-fan:hover .fan-book:nth-child(1) { transform: translateX(-176px) rotate(-15deg); }
  .cover-fan:hover .fan-book:nth-child(5) { transform: translateX(176px) rotate(15deg); }
}
.cover-fan--hero { height: 420px; }
.cover-fan--hero .fan-book { width: 196px; margin-left: -98px; }
.cover-fan--hero .fan-book:nth-child(1) { transform: translateX(-176px) rotate(-12deg); }
.cover-fan--hero .fan-book:nth-child(2) { transform: translateX(-90px) rotate(-6deg); }
.cover-fan--hero .fan-book:nth-child(4) { transform: translateX(90px) rotate(6deg); }
.cover-fan--hero .fan-book:nth-child(5) { transform: translateX(176px) rotate(12deg); }

/* ---------- Inner page heads on paper ---------- */
.page-head--paper { color: var(--text-dark); background:
    radial-gradient(circle at 12% 20%, rgba(160,110,50,.12), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(120,90,50,.06) 31px 32px),
    linear-gradient(180deg, var(--parchment), var(--parchment-2)); }
.page-head--paper .embers-lite { display: none; }
.page-head--paper h1 { color: var(--text-dark); }
.page-head--paper h1 em { color: var(--burgundy); }
.page-head--paper .lede { color: var(--text-dark-muted); text-shadow: none; }
.page-head--paper .btn-ghost { color: var(--burgundy); border-color: rgba(110,31,44,.4); background: rgba(255,255,255,.35); backdrop-filter: none; }
.page-head--paper .btn-ghost::before { background: var(--burgundy); }
.page-head--paper .cover-fan .fan-book { box-shadow: 4px 2px 0 -1px #fff8e8, 6px 3px 0 -2px #d9c9a3, 0 24px 36px -18px rgba(60,40,15,.7); }
.head-seal { justify-self: center; width: 220px; height: 220px; position: relative; filter: drop-shadow(0 18px 26px rgba(60,20,10,.35)); }
.head-seal svg { width: 100%; height: 100%; }
.head-seal .seal-mono { font-size: 64px; }

/* ---------- Plain facts ---------- */
.facts-wrap { position: relative; z-index: 3; margin-top: -48px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid rgba(110,31,44,.22); border-radius: 4px; overflow: hidden; background: var(--paper); color: var(--text-dark); box-shadow: 0 24px 44px -28px rgba(30,20,10,.7); }
.facts--4 { grid-template-columns: repeat(4, 1fr); }
.facts > div { padding: 18px 22px 20px; border-right: 1px solid rgba(110,31,44,.13); border-top: 1px solid rgba(110,31,44,.13); margin-top: -1px; }
.facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6f521c; }
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--text-dark); }
.facts dd .placeholder { font-family: var(--sans); font-weight: 500; }
.facts-note { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.page-head--paper + .facts-wrap .facts-note, .diary .facts-note { color: var(--text-dark-muted); }
.trust-bar { position: relative; z-index: 3; margin-top: -40px; }
.trust-bar .facts dd { font-size: 20px; }

/* ---------- Services as icon cards ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { position: relative; height: 100%; padding: 28px 26px 26px; background: var(--paper); border: 1px solid rgba(110,31,44,.14); border-radius: 4px; box-shadow: 0 18px 34px -24px rgba(60,40,15,.55); }
.svc svg { width: 48px; height: 48px; color: var(--burgundy); }
.svc .frame-num { left: auto; right: 18px; top: 18px; width: 30px; height: 30px; font-size: 16px; }
.svc h3 { margin-top: 14px; font-size: 26px; font-style: italic; }
.svc p { margin-top: 8px; font-size: 15.5px; color: var(--text-dark-muted); }
.diary-board .paw { top: auto; bottom: -46px; right: 6px; }

/* ---------- Doors with real covers ---------- */
.door-arch img { object-position: center top; filter: none; }
.door:hover .door-arch img { filter: brightness(1.05); }

/* ---------- Our books ---------- */
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; height: 100%; padding: 18px; background: var(--paper); color: var(--text-dark); border: 1px solid rgba(110,31,44,.14); border-radius: 4px; box-shadow: 0 18px 30px -24px rgba(60,40,15,.6); }
.book-card-cover img, .book-plain { width: 120px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 1px 3px 3px 1px; box-shadow: 3px 1px 0 -1px #efe3c4, 5px 2px 0 -2px #cdbb92, 0 14px 20px -12px rgba(0,0,0,.5); }
.book-plain { display: grid; align-content: center; gap: 6px; padding: 10px; text-align: center; background: linear-gradient(135deg, #1f2b47, #121a2e); color: var(--gold-hi); }
.book-plain b { font-family: var(--serif); font-size: 16px; line-height: 1.1; }
.book-plain span { font-size: 11px; color: rgba(240,211,140,.8); }
.book-card-body { display: grid; align-content: start; gap: 6px; }
.book-card h3 { font-size: 23px; line-height: 1.12; }
.book-by { font-size: 15px; color: var(--text-dark-muted); }
.book-meta { font-size: 13px; letter-spacing: .04em; color: #6f521c; }
.book-text { font-size: 14.5px; color: var(--text-dark-muted); }
.book-link { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); text-underline-offset: 4px; }
.book-card .nc-cat { justify-self: start; background: rgba(110,31,44,.1); color: var(--burgundy); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.books-shelf { background: linear-gradient(180deg, var(--parchment), var(--parchment-2)); color: var(--text-dark); }
.books-shelf .section-intro { color: var(--text-dark-muted); }
.books-shelf .section-head h2 em { color: var(--burgundy); }
.books-page .news-chips { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.books-page .chip { color: var(--burgundy); border-color: rgba(110,31,44,.35); background: rgba(255,255,255,.4); }
.books-page .chip[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: #fbefd2; }
.paper-section { background: linear-gradient(180deg, var(--parchment-2), var(--parchment)); color: var(--text-dark); }
.paper-section .section-intro, .paper-section .empty-note { color: var(--text-dark-muted); }
.paper-section .section-head h2 em { color: var(--burgundy); }
.paper-section .empty-note { border-color: rgba(110,31,44,.3); }
.paper-section .empty-note b { color: var(--text-dark); }
.paper-section .empty-note a { color: var(--burgundy); }
.paper-section .call-card { background: var(--paper); border-color: rgba(110,31,44,.18); }
.paper-section .call-card h3 { color: var(--burgundy); }
.paper-section .call-card p { color: var(--text-dark-muted); }

/* ---------- Cover concept tag ---------- */
.cover-concept { position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(14,11,13,.82); color: var(--gold-hi); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Less motion everywhere; "Still pictures" turns it all off ---------- */
.grain { animation: none; opacity: .05; }
.bulb { animation: none; }
.bulb:nth-child(6n) { animation: twinkle 3.2s ease-in-out infinite; }
.secrets-star, .spotlights, .house-crest img, .dapple, .desk-glow { animation: none; }
.hotspot::after, .paw::after, .stamp::before, .street-window::after, .waypoint.is-active::after { animation-iteration-count: 3; }
.seal-btn:not([aria-expanded="true"]) svg { animation-iteration-count: 2; }
.scroll-cue-line::after { animation-iteration-count: 3; }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition-duration: .01ms !important; }
html.calm .grain { display: none; }
.calm-btn { min-height: 44px; padding: 10px 18px; font-size: 12.5px; }

/* ---------- Accessibility fixes ---------- */
.prose .placeholder { color: var(--text); border-color: var(--gold); background: rgba(201,162,74,.15); }
.field label, .label-like, .checks legend { font-size: 13px; color: #6f521c; }
.check input { width: 22px; height: 22px; }
.check { grid-template-columns: 24px 1fr; }
.bm-count { font-size: 11.5px; }
.nc-meta { font-size: 12.5px; }
.ribbon { font-size: 13px; }
.door-num { font-size: 12px; }

/* ---------- Found note ---------- */
.note {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; width: min(400px, calc(100vw - 32px));
  padding: 20px 22px 18px; color: var(--text-dark); border-radius: 4px;
  background: linear-gradient(180deg, var(--paper), #efe2c4); border: 1px solid #d3bd86;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: translateX(-50%); animation: note-in .55s var(--ease);
}
@keyframes note-in { from { opacity: 0; transform: translate(-50%, 30px) rotate(-2deg); } to { opacity: 1; transform: translate(-50%, 0); } }
.note-close { position: absolute; right: 6px; top: 4px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--text-dark-muted); cursor: pointer; }
.note-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lo); }
.note-title { margin-top: 4px; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--burgundy); padding-right: 30px; }
.note-text { margin-top: 6px; font-size: 15.5px; color: var(--text-dark-muted); }
.note-link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--burgundy); text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .frames { grid-template-columns: repeat(2, 1fr); }
  .shelf { gap: 70px; padding-left: 90px; }
  .book3d { width: 170px; height: 244px; }
  .cover-title { font-size: 22px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 8px var(--gutter) 20px; background: rgba(14,11,13,.98); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid rgba(201,162,74,.12); }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { margin: 14px 0 0; text-align: center; }
  .site-header { background: rgba(14,11,13,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .journey-grid, .calls-inner, .desk-inner { grid-template-columns: 1fr; }
  .map { max-width: 620px; width: 100%; margin: 0 auto; }
  .envelope-scene { padding-top: 160px; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-stage { position: relative; width: 100%; height: auto; margin-top: 72px; }
  .hero-stage-inner { inset: 0; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%); mask-image: linear-gradient(to top, transparent 0%, #000 30%); }
  .hero-shade { display: none; }
  .hero-inner { padding-top: 0; margin-top: -40px; padding-bottom: 80px; }
  .hero-fg { left: auto; right: 4px; bottom: auto; top: calc(72px + 100vw - 250px); transform-origin: bottom right; scale: .62; }
  .scroll-cue { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .frames { grid-template-columns: 1fr; gap: 44px; }
  .paw { top: auto; bottom: -50px; right: 10px; }
  .shelf { flex-direction: column; align-items: flex-end; gap: 56px; padding: 0 12px 0 0; }
  .book3d { width: 150px; height: 214px; }
  .cover-title { font-size: 19px; }
  .cover-frame { margin: 10px; padding: 12px 8px; }
  .shelf-title svg { display: none; }
  .panels { grid-template-columns: 1fr; transform: none; padding: 10px; gap: 10px; }
  .panel-a { grid-row: auto; min-height: 380px; }
  .panel { min-height: 260px; }
  .bubble { left: 46%; width: 170px; font-size: 13.5px; }
  .form-foot { flex-direction: column; align-items: flex-start; }
  .seal-submit { align-self: center; }
  .contact-list > div { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; }
  .sign { font-size: 11px; }
  .secrets-panel { position: fixed; left: 16px; right: 16px; top: 80px; width: auto; }
  .eyebrow { letter-spacing: .14em; font-size: 12px; }
  .envelope-scene { padding-top: 210px; }
  .letter { padding: 14px 16px; }
  .letter-title { font-size: 21px; }
  .letter p:not([class]) { font-size: 13px; line-height: 1.5; }
  .letter-sign { font-size: 22px; margin-top: 4px; }
  .envelope[data-open="true"] .letter { transform: translateY(-74%); }
  .ticket { width: 56%; padding: 8px 10px; }
  .ticket-main { font-size: 20px; }
  .envelope[data-open="true"] .ticket { transform: translate(16%, 110%) rotate(8deg); }
  .brand-name { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
}
@media (max-width: 420px) {
  .brand-name span { display: none; }
}


/* Cover room on smaller screens */
@media (max-width: 1040px) {
  .cover-shelf { grid-template-columns: repeat(4, 1fr); }
  .house-crest { width: 170px; } .house-crest img { width: 170px; height: 170px; }
}
@media (max-width: 760px) {
  .covers-head { grid-template-columns: 1fr; gap: 0; }
  .house-crest { order: -1; width: 100%; margin: 0 0 6px; } .house-crest img { width: 130px; height: 130px; margin: 0 auto; }
  .house-crest figcaption { font-size: 21px; margin-top: -4px; }
  .bookmarks { gap: 6px; padding: 0 2px; }
  .bookmarks { min-height: 96px; }
  .bookmark { flex: 1 1 0; min-width: 0; padding: 14px 4px 26px; }
  .bookmark.is-active { padding-top: 18px; padding-bottom: 40px; }
  .bookmark:hover { padding-bottom: 32px; }
  .bookmark::before { inset: 8px 4px 18px; }
  .bm-label { font-size: 16px; white-space: normal; text-align: center; }
  .bm-count { font-size: 9px; letter-spacing: .12em; }
  .cover-shelf { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
  .cover-item { padding: 0 14px; }
  .covers-cta p { font-size: 28px; text-align: center; }
  .lightbox-stage { flex-wrap: wrap; justify-content: center; padding-top: 70px; }
  .lb-figure { order: -1; flex: 1 0 100%; }
  .lb-book { width: min(78vw, calc((100dvh - 260px) * .6667)); }
  .letter-crest { display: none; }
}


/* v4 pages on smaller screens */
@media (max-width: 1100px) {
  .site-nav a { padding: 10px 9px; letter-spacing: .07em; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow::before { display: none; }
  .issue-grid { grid-template-columns: repeat(4, 1fr); }
  .desk-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .door-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .page-head-inner, .lv-strip-grid, .letter-band-inner, .lv-current, .form-shell { grid-template-columns: 1fr; }
  .page-head .arch { justify-self: start; max-width: 300px; }
  .form-aside { position: static; }
  .routes { grid-template-columns: 1fr; }
  .ready-grid { grid-template-columns: 1fr; }
  .site-nav a.nav-cta { color: #2a1a06; }
}
@media (max-width: 760px) {
  .page-head { padding: 112px 0 64px; }
  .page-head .arch { max-width: 220px; order: -1; }
  .door-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .door h3 { font-size: 23px; }
  .door p { font-size: 14px; }
  .door-arch { border-radius: 100px 100px 4px 4px; }
  .news-grid { grid-template-columns: 1fr; }
  .issue-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .flow { grid-template-columns: 1fr; text-align: left; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; text-align: left; }
  .flow .stop-seal { grid-row: span 2; margin: 0; }
  .flow h3 { margin-top: 4px; }
  .duo { grid-template-columns: 1fr; }
  .duo > div + div { border-left: 0; border-top: 1px solid rgba(110,31,44,.25); }
  .desk-cards { grid-template-columns: 1fr; }
  .field-row, .nl-row { grid-template-columns: 1fr; }
  .call-card { grid-template-columns: 1fr; }
  .nl-pop { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 78vh; padding: 40px 20px 18px; }
  .nl-title { font-size: 26px; }
  .lv-mast { padding: 118px 0 60px; }
  .news-mini li a { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { font-size: 21px; }
  .letter-btn { width: 36px; }
}


/* v5 on smaller screens */
@media (max-width: 1100px) {
  .site-nav a { padding: 10px 7px; font-size: 12.5px; letter-spacing: .06em; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .facts--4 { grid-template-columns: repeat(2, 1fr); }
  .cover-fan .fan-book { width: 140px; margin-left: -70px; }
  .cover-fan .fan-book:nth-child(1) { transform: translateX(-120px) rotate(-12deg); }
  .cover-fan .fan-book:nth-child(5) { transform: translateX(120px) rotate(12deg); }
}
@media (max-width: 960px) {
  .hero5-inner { grid-template-columns: 1fr; }
  .hero5-shelf { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .head-seal { width: 160px; height: 160px; }
}
@media (max-width: 760px) {
  .secrets { display: none; }
  .hero5 { padding: 96px 0 72px; }
  .cover-fan, .cover-fan--hero { height: 250px; }
  .cover-fan .fan-book, .cover-fan--hero .fan-book { width: 112px; margin-left: -56px; }
  .cover-fan .fan-book:nth-child(1), .cover-fan--hero .fan-book:nth-child(1) { transform: translateX(-96px) rotate(-12deg); }
  .cover-fan .fan-book:nth-child(2), .cover-fan--hero .fan-book:nth-child(2) { transform: translateX(-50px) rotate(-6deg); }
  .cover-fan .fan-book:nth-child(4), .cover-fan--hero .fan-book:nth-child(4) { transform: translateX(50px) rotate(6deg); }
  .cover-fan .fan-book:nth-child(5), .cover-fan--hero .fan-book:nth-child(5) { transform: translateX(96px) rotate(12deg); }
  .hero5-candle { scale: .5; right: -10px; }
  .page-head .cover-fan { order: -1; width: 100%; }
  .facts, .facts--4 { grid-template-columns: 1fr; }
  .facts dd { font-size: 20px; }
  .svc-grid, .book-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 96px 1fr; }
  .book-card-cover img, .book-plain { width: 96px; }
  .head-seal { width: 130px; height: 130px; order: -1; }
  .diary-board .paw { bottom: -44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .grain { display: none; }
  .house-crest img, .spotlights { animation: none; }
  .nl-pop { transition: none; }
}

/* v5 small fixes */
.site-header { background: rgba(14,11,13,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.section-dark .placeholder, .costs .placeholder, .faq .placeholder { color: var(--text); border-color: var(--gold); background: rgba(201,162,74,.15); }
@media (min-width: 1101px) { .flow--5 { grid-template-columns: repeat(5, 1fr); } }
.fan-caption { margin-top: 16px; text-align: center; font-family: var(--script); font-size: 24px; color: var(--burgundy); }
.facts-wrap { margin-top: 56px; }
.page-head--paper { padding-bottom: 72px; }

/* Width/height attributes must not fix the height of shaped images */
.cover-fan img, .issue-card img, .mag img, .news-card img, .book-card-cover img { height: auto; }

/* header: the name never shrinks into the menu; the menu tightens a little below 1320px */
.brand { flex: none; }
.site-header .container { max-width: 1400px; }
@media (min-width: 1241px) and (max-width: 1400px) { .site-nav a { padding: 10px 8px; font-size: 13px; letter-spacing: .06em; } }
/* the full menu only shows where it fits in one row; below that, the menu button */
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 8px var(--gutter) 20px; background: rgba(14,11,13,.98); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 14px 4px; font-size: 15px; letter-spacing: .1em; border-bottom: 1px solid rgba(201,162,74,.12); }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { margin: 14px 0 0; text-align: center; }
}

/* ---------- Realistic wax seals (rendered art in assets/art/wax-seal-*.webp) ---------- */
.seal-mono, .invite .inv-seal .seal-mono { display: none; }    /* the RH is pressed into the wax itself */
.stop-seal { display: block; }                        /* was inline, so the seal grew to the column width */
.stop-seal svg { display: block; filter: drop-shadow(0 3px 4px rgba(20,6,8,.45)); }
.stop-seal b {                                        /* numerals pressed into the blank seal */
  font-size: 19px; font-weight: 700; color: #8c1826; letter-spacing: .02em;
  text-shadow: -1px -1px 0 rgba(255,190,175,.38), 1px 1px 1px rgba(25,0,4,.75);
}
.cover-seal, .seal-mini svg { filter: drop-shadow(0 4px 5px rgba(20,6,8,.45)); }

/* ---------- Book street, rendered (assets/art/street-front, -back, -shelf .webp) ---------- */
.street-row { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 1728 / 480; translate: -50% 0; }
.street-art { display: block; width: 100%; height: 100%; }
.spines-back { opacity: 1; filter: none; background: url(assets/art/street-back.webp) repeat-x 0 100% / auto 100%; }
.street-road { background: url(assets/art/street-shelf.webp) repeat-x 0 0 / auto 100%, #2a1d16; border-top: 0; box-shadow: 0 -3px 8px rgba(0,0,0,.5); }
.street-window { margin: 0; border: 0; border-radius: 50% 50% 4px 4px / 26% 26% 4px 4px; background: none; box-shadow: none; }
.street-window:hover, .street-window:focus-visible { box-shadow: 0 0 30px 10px rgba(255,160,60,.5); transform: none; }
.street-window::after { inset: -8px; border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px; }
/* glass bulbs with a dark cap, a hot filament and a soft halo */
.bulb { width: 7px; height: 9px; margin: -2px 0 0 -3.5px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 62%, #fffbe8 0 20%, #ffd27a 46%, #f09a3c 82%);
  box-shadow: 0 0 6px 2px rgba(255,196,110,.85), 0 0 22px 8px rgba(255,160,70,.26); }
.bulb::before { content: ""; position: absolute; left: 1.5px; right: 1.5px; top: -3px; height: 3.5px; border-radius: 1px; background: #241a14; }

/* ---------- The invitation: an envelope drawn as one shape, so nothing shows through ---------- */
.invite-scene { padding: 48% 0 64px; }
.invite { position: relative; width: min(480px, 100%); margin: 0 auto; aspect-ratio: 3 / 2; container-type: inline-size; }
.inv-back, .inv-pocket { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.inv-back { z-index: 0; filter: drop-shadow(0 40px 46px rgba(0,0,0,.55)); }
.inv-pocket { z-index: 3; pointer-events: none; }
.inv-card {
  position: absolute; left: 5.5%; right: 5.5%; top: 3%; height: 95%; z-index: 1; overflow: hidden;
  display: grid; justify-items: center; align-content: center; padding: 4cqw 6cqw; text-align: center; color: var(--text-dark);
  background: radial-gradient(ellipse at 50% 0%, #fffbf2, #f2e4c4 85%); border-radius: 2px;
  box-shadow: inset 0 0 0 1.4cqw #fbf5e6, inset 0 0 0 calc(1.4cqw + 1.5px) rgba(201,162,74,.9), inset 0 0 0 calc(2.2cqw + 1.5px) #fbf5e6, inset 0 0 0 calc(2.2cqw + 2.5px) rgba(201,162,74,.45), 0 18px 34px -12px rgba(0,0,0,.65);
}
.inv-crest { width: 7.5cqw; height: 7.5cqw; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(138,106,42,.5), 0 0 0 3px #fbf5e6, 0 0 0 4px rgba(138,106,42,.3); }
.inv-kicker { margin-top: 2cqw; font-size: max(9px, 2.1cqw); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #6f521c; }
.inv-line { margin-top: 1cqw; font-family: var(--serif); font-style: italic; font-size: max(11px, 3.3cqw); color: var(--text-dark-muted); line-height: 1.2; }
.inv-title { margin-top: .4cqw; font-family: var(--script); font-size: max(22px, 8.2cqw); line-height: 1; color: var(--burgundy); }
.inv-orn { width: 24cqw; height: 2.6cqw; margin: 1.6cqw auto 1.2cqw; color: #8a6a2a; }
.inv-details { max-width: 30em; font-size: max(10px, 2.6cqw); line-height: 1.4; color: var(--text-dark-muted); }
.inv-sign { margin-top: 1.2cqw; font-family: var(--script); font-size: max(16px, 4.8cqw); line-height: 1.1; color: var(--burgundy); }
.inv-ticket {
  position: absolute; z-index: 2; right: 8%; bottom: 10%; width: 56%; display: grid; gap: 2px; padding: 2.4cqw 3cqw; text-align: center; border-radius: 3px;
  background: linear-gradient(180deg, #fbf3dc, #efdfb4); border: 1px solid #c9a24a; outline: 1px dashed rgba(138,106,42,.5); outline-offset: -6px; color: #6a4b16;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.55);
  opacity: 0; transform: rotate(3deg); transition: transform .5s var(--ease), opacity .3s, z-index 0s .3s;
}
.inv-ticket .ticket-top, .inv-ticket .ticket-sub { font-size: max(8.5px, 1.9cqw); }
.inv-ticket .ticket-main { font-size: max(16px, 5.2cqw); }
.inv-flap { position: absolute; left: 0; right: 0; top: 0; height: 59%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .8s var(--ease) .9s, z-index 0s 1.3s; }
.inv-flap-face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 5px 5px rgba(0,0,0,.3)); }
.inv-flap-lining { transform: rotateX(180deg); filter: none; }
.inv-seal {
  position: absolute; left: 50%; top: 59%; z-index: 5; width: 22cqw; height: 22cqw; margin: -11cqw 0 0 -11cqw; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--gold-hi);
}
.inv-seal:focus-visible { outline: none; }
.inv-seal:focus-visible .inv-seal-label { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.inv-seal-wax { position: absolute; inset: 0; display: block; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); transition: transform .4s var(--ease); }
.inv-seal-half { position: absolute; inset: 0; transition: transform .7s var(--ease), opacity .6s .15s; }
.inv-seal-half svg { width: 100%; height: 100%; display: block; }
.inv-seal-l { clip-path: polygon(0 0, 54% 0, 46% 38%, 55% 62%, 47% 100%, 0 100%); }
.inv-seal-r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 47% 100%, 55% 62%, 46% 38%); }
.inv-seal .seal-mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: max(20px, 6cqw); transition: opacity .3s; }
.inv-seal:hover .inv-seal-wax, .inv-seal:focus-visible .inv-seal-wax { transform: scale(1.06) rotate(-6deg); }
/* the label sits under the wax while sealed; once open it shows (under the envelope) only for keyboard focus */
.inv-seal-label {
  position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; white-space: nowrap; padding: 8px 16px; border: 1px solid transparent; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; transition: top .8s var(--ease), opacity .25s, background-color .3s, border-color .3s;
}
.invite[data-open="true"] .inv-flap { transform: rotateX(178deg); z-index: 0; transition: transform .8s var(--ease), z-index 0s .4s; }
.invite[data-open="true"] .inv-card { animation: invCardOut 1.5s var(--ease) .4s both; }
.invite.was-open[data-open="false"] .inv-card { animation: invCardIn 1.2s var(--ease) both; }
.invite[data-open="true"] .inv-ticket { z-index: 8; opacity: 1; transform: translate(20%, 34%) rotate(7deg); transition: transform .9s var(--ease) 1.6s, opacity .5s 1.6s, z-index 0s 1.6s; }
.invite[data-open="true"] .inv-seal-wax { transform: none; }
.invite[data-open="true"] .inv-seal-l { transform: translate(-70%, 30%) rotate(-30deg); opacity: 0; }
.invite[data-open="true"] .inv-seal-r { transform: translate(70%, 30%) rotate(30deg); opacity: 0; }
.invite[data-open="true"] .seal-mono { opacity: 0; }
.invite[data-open="true"] { cursor: pointer; }
.invite[data-open="true"] .inv-seal-label { top: calc(38.3cqw + 22px); opacity: 0; pointer-events: none; border-color: var(--line); background-color: rgba(14,11,13,.45); }
.invite[data-open="true"] .inv-seal:focus-visible .inv-seal-label { opacity: 1; pointer-events: auto; }  /* keyboard only */
/* out of the pocket, then forward over the envelope */
@keyframes invCardOut {
  0% { transform: none; z-index: 1; }
  55% { transform: translateY(-80%); z-index: 1; }
  56% { transform: translateY(-80%); z-index: 7; }
  100% { transform: translateY(-36%) rotate(-1deg) scale(1.03); z-index: 7; }
}
@keyframes invCardIn {
  0% { transform: translateY(-36%) rotate(-1deg) scale(1.03); z-index: 7; }
  44% { transform: translateY(-80%); z-index: 7; }
  45% { transform: translateY(-80%); z-index: 1; }
  100% { transform: none; z-index: 1; }
}
/* still pictures: no movement, just the two states */
html.calm .invite[data-open="true"] .inv-card { transform: translateY(-36%) rotate(-1deg) scale(1.03); z-index: 7; }
html.calm .invite, html.calm .invite * { transition-delay: 0s !important; }
@media (max-width: 760px) {
  .invite-scene { padding-top: 54%; padding-bottom: 72px; }
  .invite[data-open="true"] .inv-ticket { transform: translate(6%, 46%) rotate(6deg); }
}

/* =====================================================================
   Realism pass: rendered textures from real_art.py in assets/art/
   (paper-fibre, paper-mottle, torn-*, deckle, tape, cloth, foil, grunge, wood-desk, candle, candle-glow).
   Paper and card stock use the grey fibre tile with background-blend-mode: hard-light
   (mid grey = no change), so one small tile works on every paper colour.
   ===================================================================== */
:root {
  --fibre: url(assets/art/paper-fibre.webp) 0 0 / 384px 384px;
  --mottle: url(assets/art/paper-mottle.webp) 0 0 / 1024px 1024px;
  --cloth: url(assets/art/cloth.webp) 0 0 / 64px 64px;
  --foil: url(assets/art/foil.webp) 0 0 / 96px 96px;
  --tear: 42px;
  --tear-w: 768px;
}

/* ---------- Pages: parchment with fibre, age at the edges, torn where paper meets the dark ---------- */
.page-head--paper { background:
    var(--fibre), var(--mottle),
    radial-gradient(ellipse 85% 130% at 50% 25%, transparent 52%, rgba(120,78,30,.13)),
    radial-gradient(circle at 12% 20%, rgba(160,110,50,.12), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(120,90,50,.06) 31px 32px),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  background-blend-mode: hard-light, normal, normal, normal, normal, normal; }
.paper-section { background: var(--fibre), var(--mottle), linear-gradient(180deg, var(--parchment-2), var(--parchment));
  background-blend-mode: hard-light, normal, normal; }
.diary { background:
    var(--fibre), var(--mottle),
    radial-gradient(circle at 12% 18%, rgba(160,110,50,.13), transparent 18%),
    radial-gradient(circle at 86% 70%, rgba(160,110,50,.1), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(110,84,52,.085) 31px 32px),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  background-blend-mode: hard-light, normal, normal, normal, normal, normal; }
.books-shelf { background:
    url(assets/art/torn-rim-top.webp) 0 0 / var(--tear-w) var(--tear) repeat-x,
    url(assets/art/torn-rim-bottom.webp) 0 100% / var(--tear-w) var(--tear) repeat-x,
    var(--fibre), var(--mottle), linear-gradient(180deg, var(--parchment), var(--parchment-2));
  background-blend-mode: normal, normal, hard-light, normal, normal; }

/* torn top and bottom on the home shelf (it sits between two dark rooms) */
.books-shelf {
  z-index: 2; margin: calc(var(--tear) * -.62) 0; padding-block: calc(var(--section-pad) + 14px);
  -webkit-mask: url(assets/art/torn-top.webp) 0 0 / var(--tear-w) var(--tear) repeat-x,
    linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 2 * var(--tear) + 2px) no-repeat,
    url(assets/art/torn-bottom.webp) 0 100% / var(--tear-w) var(--tear) repeat-x;
  mask: url(assets/art/torn-top.webp) 0 0 / var(--tear-w) var(--tear) repeat-x,
    linear-gradient(#000 0 0) 0 50% / 100% calc(100% - 2 * var(--tear) + 2px) no-repeat,
    url(assets/art/torn-bottom.webp) 0 100% / var(--tear-w) var(--tear) repeat-x;
}
/* torn bottom where a paper section gives way to a dark one or to the footer */
.diary:has(+ .journey, + .section-dark), main > .paper-section:last-child, main > .diary:last-child {
  z-index: 2; margin-bottom: calc(var(--tear) * -.6); padding-bottom: calc(var(--section-pad) + 10px);
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--tear) + 1px) no-repeat,
    url(assets/art/torn-bottom.webp) 0 100% / var(--tear-w) var(--tear) repeat-x;
  mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--tear) + 1px) no-repeat,
    url(assets/art/torn-bottom.webp) 0 100% / var(--tear-w) var(--tear) repeat-x;
}
.diary:has(+ .journey, + .section-dark)::after, main > .paper-section:last-child::after, main > .diary:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--tear); pointer-events: none;
  background: url(assets/art/torn-rim-bottom.webp) 0 100% / var(--tear-w) var(--tear) repeat-x;
}
/* the footer's own colour reaches up under the tear */
main:has(> .paper-section:last-child, > .diary:last-child) + .site-footer { box-shadow: 0 -28px 0 #24160c; }

/* ---------- Pages: letters on deckled sheets (the sheet is drawn in ::before so the shadow follows the edge) ---------- */
.letter-form, .nl-form { background: none; box-shadow: none; isolation: isolate;
  filter: drop-shadow(0 1px 1px rgba(25,14,6,.38)) drop-shadow(0 20px 22px rgba(12,6,2,.5)); }
.letter-form::before, .nl-form::before {
  content: ""; position: absolute; inset: 0; width: auto; z-index: -1; pointer-events: none;
  background:
    var(--fibre),
    radial-gradient(ellipse 90% 70% at 42% 30%, rgba(255,255,255,.4), transparent 70%),
    linear-gradient(168deg, transparent 55%, rgba(120,84,36,.09)),
    linear-gradient(90deg, transparent 37px, rgba(196,86,106,.34) 37px 38px, transparent 38px),
    linear-gradient(180deg, var(--paper), #efe2c4);
  background-blend-mode: hard-light, normal, normal, normal, normal;
  -webkit-mask-box-image: url(assets/art/deckle.webp) 32 / 16px round;
  mask-border: url(assets/art/deckle.webp) 32 / 16px round;
}
.nl-form::before { background:
    var(--fibre),
    radial-gradient(ellipse 90% 70% at 42% 30%, rgba(255,255,255,.4), transparent 70%),
    linear-gradient(168deg, transparent 55%, rgba(120,84,36,.09)),
    linear-gradient(180deg, var(--paper), #efe2c4);
  background-blend-mode: hard-light, normal, normal, normal; }

/* ---------- Pages: a real walnut desk under the papers ---------- */
.desk { background:
    radial-gradient(ellipse 130% 95% at 50% 35%, transparent 45%, rgba(8,4,2,.55)),
    url(assets/art/wood-desk.webp) 0 0 / 768px 384px, #24160c; }
.desk-page { background:
    linear-gradient(180deg, rgba(8,4,2,.35), transparent 30%, transparent 75%, rgba(8,4,2,.45)),
    radial-gradient(ellipse 130% 95% at 50% 40%, transparent 50%, rgba(8,4,2,.5)),
    url(assets/art/wood-desk.webp) 0 0 / 768px 384px, #24160c; }

/* ---------- Cards: card stock under a lamp (fibre, a sheet that bows to the light, lifted corners) ---------- */
.svc, .book-card, .route, .duo, .facts, .secrets-panel, .paper-section .call-card, .paper-card, .nl-pop, .desk-card {
  border-color: transparent;
  background:
    var(--fibre),
    radial-gradient(ellipse 120% 80% at 28% 0%, rgba(255,255,255,.55), transparent 62%),
    linear-gradient(172deg, transparent 58%, rgba(110,78,36,.075)),
    var(--paper);
  background-blend-mode: hard-light, normal, normal;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(110,78,36,.16),
    inset 1px 0 0 rgba(255,255,255,.4), inset -1px 0 0 rgba(110,78,36,.1),
    0 0 0 .5px rgba(80,52,20,.22),
    0 1px 1px rgba(40,24,8,.2), 0 3px 5px -2px rgba(40,24,8,.2),
    -7px 15px 12px -12px rgba(40,24,8,.5), 7px 15px 12px -12px rgba(40,24,8,.5),
    0 24px 36px -24px rgba(40,24,8,.55);
}
.route { border-color: var(--c, var(--burgundy)); }            /* keeps its coloured top band, printed on */
.desk-card, .nl-pop { background:
    var(--fibre),
    radial-gradient(ellipse 120% 80% at 28% 0%, rgba(255,255,255,.5), transparent 62%),
    linear-gradient(172deg, transparent 55%, rgba(110,78,36,.1)),
    linear-gradient(180deg, var(--paper), #efe2c4);
  background-blend-mode: hard-light, normal, normal, normal; }
/* on the dark walnut desk the shadows are deeper */
.desk-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(110,78,36,.2),
    0 0 0 .5px rgba(40,24,8,.4),
    0 1px 1px rgba(0,0,0,.45), 0 4px 6px -2px rgba(0,0,0,.4),
    -8px 18px 14px -12px rgba(0,0,0,.75), 8px 18px 14px -12px rgba(0,0,0,.75),
    0 30px 44px -26px rgba(0,0,0,.85);
}
.desk-card:hover { box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(110,78,36,.2), 0 0 0 .5px rgba(40,24,8,.4),
    0 2px 2px rgba(0,0,0,.35), 0 10px 12px -4px rgba(0,0,0,.4), 0 40px 50px -24px rgba(0,0,0,.85); }
.nl-pop { box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85), 0 0 0 .5px rgba(40,24,8,.35),
    0 2px 2px rgba(0,0,0,.3), 0 14px 18px -8px rgba(0,0,0,.5), 0 40px 80px -24px rgba(0,0,0,.8); }
.facts > div { border-color: rgba(110,31,44,.11); }

/* a ruled index card: red head rule, blue lines, fibre */
.index-card { border-top: 0; background:
    var(--fibre),
    radial-gradient(ellipse 120% 80% at 28% 0%, rgba(255,255,255,.45), transparent 62%),
    linear-gradient(transparent 0 42px, rgba(196,86,106,.6) 42px 43.5px, transparent 43.5px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(110,150,185,.42) 27px 28px) 0 44px / 100% calc(100% - 44px) no-repeat,
    #fdf9ef;
  background-blend-mode: hard-light, normal, normal, normal;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 .5px rgba(40,24,8,.4),
    0 1px 1px rgba(0,0,0,.45), 0 4px 6px -2px rgba(0,0,0,.35),
    -8px 18px 14px -12px rgba(0,0,0,.75), 8px 18px 14px -12px rgba(0,0,0,.75), 0 30px 50px -24px rgba(0,0,0,.8); }

/* tape is a real strip of crepe masking tape now */
.paper-card::before, .frame-photo::before {
  width: 124px; height: 40px; margin-left: -62px; top: -18px;
  background: url(assets/art/tape.webp) center / 100% 100% no-repeat; box-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(60,40,15,.18)); transform: rotate(-2.5deg);
}

/* dark card stock on the LitVerse pages */
.news-card { border-color: transparent; background:
    var(--fibre),
    radial-gradient(ellipse 120% 70% at 28% 0%, rgba(160,190,230,.08), transparent 62%),
    #161b26;
  background-blend-mode: hard-light, normal;
  box-shadow: inset 0 1px 0 rgba(200,215,240,.14), inset 0 -1px 0 rgba(0,0,0,.4), 0 0 0 .5px rgba(159,180,208,.22),
    0 1px 1px rgba(0,0,0,.5), 0 6px 10px -4px rgba(0,0,0,.5), 0 26px 40px -24px rgba(0,0,0,.9); }
.news-card:hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(200,215,240,.14), 0 0 0 .5px rgba(240,211,140,.4),
    0 2px 2px rgba(0,0,0,.4), 0 14px 18px -6px rgba(0,0,0,.5), 0 36px 50px -24px rgba(0,0,0,.9); }
.news-card img { box-shadow: 0 1px 0 rgba(0,0,0,.5); }

/* the doors: real covers in gilded arch frames */
.door-arch { border: 0;
  box-shadow: 0 0 0 1px #4a3412, 0 0 0 2.5px #e9c97c, 0 0 0 4px #9a7432, 0 0 0 5.5px #f3dc9a, 0 0 0 7px #5c4219,
    0 3px 4px 6px rgba(0,0,0,.45), 0 30px 50px -22px #000; }
.door-arch::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 12px 18px -6px rgba(0,0,0,.6), inset 0 -6px 12px -6px rgba(0,0,0,.4); }
.door:hover .door-arch, .door:focus-visible .door-arch {
  box-shadow: 0 0 0 1px #4a3412, 0 0 0 2.5px #f3d995, 0 0 0 4px #a57d36, 0 0 0 5.5px #fbe6ac, 0 0 0 7px #5c4219,
    0 6px 8px 6px rgba(0,0,0,.4), 0 40px 60px -28px #000, 0 0 50px -6px rgba(255,180,90,.35); }
.door-num { z-index: 2; }

/* ---------- Post-its: matte sticky notes with a glue strip, a curled corner and a strip of tape ---------- */
.note, .empty-note, .paper-section .empty-note {
  isolation: isolate; border: 0; border-radius: 0; background: none; color: #4a3d16;
  filter: drop-shadow(0 1px 1px rgba(40,30,0,.32)) drop-shadow(0 12px 10px rgba(25,16,0,.3));
}
.empty-note, .paper-section .empty-note { position: relative; max-width: 440px; margin: 26px auto 8px; padding: 40px 30px 34px; transform: rotate(-1.4deg); }
.empty-note b, .paper-section .empty-note b { color: #2c2208; }
.empty-note a, .paper-section .empty-note a { color: var(--burgundy); }
.empty-note .btn-ghost { color: var(--burgundy); border-color: rgba(110,31,44,.45); background: rgba(255,255,255,.28); backdrop-filter: none; }
.empty-note .btn-ghost::before { background: var(--burgundy); }
.note::before, .empty-note::before {        /* the sheet; its corner is cut where it curls up */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  background:
    var(--fibre),
    linear-gradient(180deg, rgba(255,255,255,.16) 0 21%, rgba(110,90,0,.05) 21.6%, transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(90,66,0,.26), transparent 52px),
    radial-gradient(ellipse 120% 70% at 30% 100%, rgba(150,120,0,.12), transparent 70%),
    linear-gradient(176deg, #fff4ad 0%, #fbea8f 45%, #f1da6b 100%);
  background-blend-mode: hard-light, normal, normal, normal, normal;
}
.note::after, .empty-note::after {         /* the curl (paler back of the sheet) and the tape */
  content: ""; position: absolute; inset: -16px 0 0; pointer-events: none;
  background:
    url(assets/art/tape.webp) 50% 0 / 112px 36px no-repeat,
    linear-gradient(135deg, #fffbe2 0%, #f8eba8 26%, #e7d277 44%, #c9b04c 50%, transparent 50.5%) 100% 100% / 28px 28px no-repeat;
  filter: drop-shadow(-1.5px -1.5px 1.5px rgba(70,52,0,.28));
}
.note { width: min(340px, calc(100vw - 32px)); padding: 34px 26px 28px; box-shadow: none; transform: translateX(-50%) rotate(-1.2deg); }
@keyframes note-in { from { opacity: 0; transform: translate(-50%, 30px) rotate(-4deg); } to { opacity: 1; transform: translateX(-50%) rotate(-1.2deg); } }
.note .note-kicker { color: #7a5d12; }
.note .note-text { color: #4f4220; }
.note .note-close { color: #5b4a18; }

/* ---------- Labels: woven grosgrain ribbons, gold satin, cloth bookmarks on a brass rail, paper and foil tags ---------- */
.ribbon { clip-path: none; background: none; box-shadow: none; position: relative; isolation: isolate;
  filter: drop-shadow(0 1px .5px rgba(0,0,0,.4)) drop-shadow(0 4px 4px rgba(0,0,0,.2)); text-shadow: 0 1px 0 rgba(40,0,8,.45); }
.ribbon::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 8px 50%);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.075) 0 1px, rgba(0,0,0,.1) 1px 2px),
    linear-gradient(180deg, rgba(0,0,0,.32) 0 1px, rgba(255,255,255,.2) 1px 2.5px, transparent 2.5px calc(100% - 2.5px), rgba(255,255,255,.1) calc(100% - 2.5px) calc(100% - 1px), rgba(0,0,0,.36) calc(100% - 1px)),
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 42%, transparent 58%, rgba(0,0,0,.24)),
    linear-gradient(90deg, rgba(0,0,0,.2), transparent 10%, transparent 86%, rgba(0,0,0,.22)),
    linear-gradient(180deg, #93303f, #631826);
}
.ribbon-light { color: #3a240a; text-shadow: 0 1px 0 rgba(255,240,200,.55); }
.ribbon-light::before { background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, rgba(90,60,10,.1) 1px 2px),
    linear-gradient(180deg, rgba(90,60,10,.35) 0 1px, rgba(255,255,255,.3) 1px 2.5px, transparent 2.5px calc(100% - 2.5px), rgba(90,60,10,.4) calc(100% - 1px)),
    var(--foil),
    linear-gradient(180deg, #fbe8ad 0%, #e6c06a 28%, #b98c3a 56%, #e9c878 78%, #a57a30 100%); }
.ribbon-ink { text-shadow: none; }
.ribbon-ink::before { background: var(--fibre), linear-gradient(180deg, rgba(255,255,255,.3), transparent 50%, rgba(120,90,40,.12)), #f3e4bf;
  background-blend-mode: hard-light, normal; }

/* bookmarks: woven cloth ribbons hanging over a brass rod */
.bookmark { background:
    linear-gradient(180deg, rgba(0,0,0,.5), transparent 13px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,.1) 1px 2px),
    linear-gradient(90deg, rgba(0,0,0,.32), rgba(255,255,255,.16) 24%, transparent 46%, transparent 72%, rgba(0,0,0,.3)),
    var(--cloth),
    linear-gradient(180deg, color-mix(in srgb, var(--bm) 70%, #000), var(--bm) 40%, color-mix(in srgb, var(--bm) 85%, #fff 15%)); }
.bookmark::before { border-color: rgba(240,211,140,.55); }
.bookmarks::before { height: 9px; top: -1px; background:
    radial-gradient(circle at 5px 50%, #fff3c8 0 1.5px, #c9a24a 2.5px, #5c4219 5px, transparent 5.5px) 0 0 / 12px 100% no-repeat,
    radial-gradient(circle at 7px 50%, #fff3c8 0 1.5px, #c9a24a 2.5px, #5c4219 5px, transparent 5.5px) 100% 0 / 12px 100% no-repeat,
    linear-gradient(180deg, #fff3c8 0, #e8c879 22%, #a57d36 55%, #5c4219 85%, #3a2a10),
    #a57d36;
  box-shadow: 0 4px 5px -2px rgba(0,0,0,.75), 0 1px 0 rgba(0,0,0,.4); }

/* tags */
.nc-cat { background: var(--foil), linear-gradient(180deg, #f6dd9c, #d2ac58 55%, #a77d32); color: #2a1a06;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(90,60,10,.4), 0 1px 1px rgba(0,0,0,.45); }
.book-card .nc-cat { background: rgba(110,31,44,.07); color: var(--burgundy);
  box-shadow: inset 0 1px 1.5px rgba(60,20,10,.28), 0 1px 0 rgba(255,255,255,.7); }       /* pressed into the card */
.mag-tag { background: var(--foil), linear-gradient(180deg, #f6dd9c, #d2ac58 55%, #a77d32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(90,60,10,.4), 0 2px 3px rgba(0,0,0,.5), 0 8px 14px -6px #000; }
.mag-tag::after { content: ""; position: absolute; left: 0; top: 100%; width: 12px; height: 7px;
  background: linear-gradient(to top right, transparent 50%, #6b4d1c 50%); }          /* folds round the back */
.cover-concept { background: var(--fibre), linear-gradient(180deg, #fbf3dc, #eadbb6); background-blend-mode: hard-light, normal;
  color: #3a2a12; padding-left: 20px; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.4), 0 4px 8px -3px rgba(0,0,0,.5); }
.cover-concept::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: radial-gradient(circle, #1a1410 0 1.6px, #d8b866 2px, #8a6a2a 3px); }       /* brass eyelet */
.tier-premium { background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.35) 35%, transparent 60%, rgba(0,0,0,.2)), linear-gradient(180deg, #f6dc94, #c9a24a 60%, #8a6a2a); }
.tier-standard { background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.22) 35%, transparent 60%, rgba(0,0,0,.25)), linear-gradient(180deg, #2e6b65, #1f4e4a); }
.tier-others { background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.22) 35%, transparent 60%, rgba(0,0,0,.25)), linear-gradient(180deg, #44598a, #2c3d63); }

/* ---------- Badges: enamel on brass, a rubber stamp, a franked postage stamp ---------- */
.secrets-chip { border: 1.5px solid transparent; background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.16), transparent 70%) padding-box,
    linear-gradient(180deg, #2c1a21, #170d12) padding-box,
    linear-gradient(180deg, #fbe7a8, #c9a24a 35%, #7a5a22 60%, #e8c879 85%, #9a7432) border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,.65), inset 0 1px 2px rgba(0,0,0,.6); text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.secrets-chip:hover { background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.22), transparent 70%) padding-box,
    linear-gradient(180deg, #3a2229, #1d1117) padding-box,
    linear-gradient(180deg, #fff0bf, #d8b05a 35%, #8a6a2a 60%, #f0d38c 85%, #a57d36) border-box; }
.frame-num { border: 2px solid transparent; color: #fbe7b0; text-shadow: 0 -1px 0 rgba(0,0,0,.5), 0 1px 0 rgba(255,200,170,.15);
  background:
    radial-gradient(ellipse 58% 38% at 40% 26%, rgba(255,255,255,.5), rgba(255,255,255,0) 72%) padding-box,
    radial-gradient(circle at 40% 35%, #c2404f, #7a1f2d 58%, #4a0f19) padding-box,
    conic-gradient(from 210deg, #fff0bf, #c9a24a, #6b4d1c, #e8c879, #fff0bf, #9a7432, #fff0bf) border-box;
  box-shadow: 0 1px 1px rgba(0,0,0,.45), 0 4px 6px -2px rgba(0,0,0,.45), inset 0 -2px 3px rgba(0,0,0,.35); }
.badge { border: 1px solid transparent; color: #f6e2a8;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.2), transparent 70%) padding-box, linear-gradient(180deg, #23201f, #0d0c0c) padding-box,
    linear-gradient(180deg, #fbe7a8, #b8913f 50%, #6b4d1c) border-box;
  box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.call-status { background: none; border: 2px solid currentColor; border-radius: 4px; color: #8fd09a; font-weight: 800; transform: rotate(-4deg);
  -webkit-mask: url(assets/art/grunge.webp) 0 0 / 128px 128px; mask: url(assets/art/grunge.webp) 0 0 / 128px 128px; }
.call-status.is-closed { background: none; color: #b9aaaa; }
.paper-section .call-status { color: #2f6b3a; }
.paper-section .call-status.is-closed { color: #6e5f5f; }
.stamp-face { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='84'%3E%3Cg fill='none' stroke='%23302626' stroke-opacity='.5' stroke-width='1.3'%3E%3Ccircle cx='54' cy='22' r='15'/%3E%3Ccircle cx='54' cy='22' r='11' stroke-opacity='.3'/%3E%3Cpath d='M30 46q5-4 10 0t10 0 10 0 10 0 10 0M30 53q5-4 10 0t10 0 10 0 10 0 10 0M30 60q5-4 10 0t10 0 10 0 10 0 10 0'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat,
    var(--fibre), #f4e9cf;
  background-blend-mode: multiply, hard-light, normal; }

/* ---------- Candle: rendered wax with drips on rendered books (assets/art/candle.webp), the flame's light
   inside the wax and on the books (candle-glow.webp, screened on and flickering), a living flame ---------- */
.candle { width: 150px; height: 210px; background: url(assets/art/candle.webp) 50% 100% / 150px 210px no-repeat; }
.candle-stack { display: none; }
.candle-body { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; margin: 0; border-radius: 0; background: none; }
.candle-body::before { left: 0; right: 0; top: 0; bottom: 0; height: auto; border-radius: 0;
  background: url(assets/art/candle-glow.webp) 50% 100% / 150px 210px no-repeat;
  mix-blend-mode: screen; animation: wax-glow 2.6s ease-in-out infinite; transition: opacity .6s; }
@keyframes wax-glow { 0%, 100% { opacity: .9; } 14% { opacity: 1; } 31% { opacity: .82; } 49% { opacity: .97; } 66% { opacity: .86; } 83% { opacity: 1; } }
.candle.is-out .candle-body::before { opacity: 0; animation: none; }
.wick { left: 50.67%; top: calc(26.44% - 3px); width: 2px; height: 4px; margin-left: -1px; background: none; }   /* the wick is in the picture; smoke rises from here */
.flame {
  left: 50.67%; top: calc(26.44% - 28px); width: 13px; height: 32px; margin-left: -6.5px;
  border-radius: 50% 50% 50% 50% / 66% 66% 34% 34%;
  background:
    radial-gradient(ellipse 46% 22% at 50% 88%, rgba(70,100,255,.7), rgba(70,100,255,0) 78%),
    radial-gradient(ellipse 30% 40% at 50% 70%, #fffdf3 0 34%, rgba(255,246,212,.85) 56%, rgba(255,232,165,0) 82%),
    radial-gradient(ellipse 52% 58% at 50% 62%, #ffe08c 0 34%, #ffb347 58%, rgba(255,122,32,.5) 76%, rgba(255,100,20,0) 88%);
  filter: blur(.45px); mix-blend-mode: screen;
  animation: flame 2.4s ease-in-out infinite;
}
@keyframes flame {
  0%, 100% { transform: rotate(-1.5deg) scale(1, 1) skewX(0deg); }
  12% { transform: rotate(1deg) scale(.97, 1.06) skewX(1.5deg); }
  27% { transform: rotate(-.5deg) scale(1.02, .95) skewX(-1deg); }
  41% { transform: rotate(2deg) scale(.96, 1.08) skewX(2deg); }
  58% { transform: rotate(-1deg) scale(1.03, .97) skewX(-.5deg); }
  74% { transform: rotate(1.5deg) scale(.98, 1.04) skewX(1deg); }
  88% { transform: rotate(-2deg) scale(1, 1.02) skewX(-1.5deg); }
}
.flame::after { width: 240px; height: 240px; margin: -120px 0 0 -120px;
  background: radial-gradient(circle, rgba(255,186,104,.32), rgba(255,150,60,.10) 36%, transparent 66%); }
.candle.is-out .wick::after { left: -6px; bottom: 2px; }
/* the candle lights the covers beside it */
.hero5-shelf::after { content: ""; position: absolute; right: -8%; bottom: 0; width: 75%; height: 100%; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 88% 62%, rgba(255,170,80,.22), rgba(255,150,60,.06) 55%, transparent 75%);
  mix-blend-mode: screen; animation: wax-glow 2.6s ease-in-out infinite; transition: opacity .8s; }
.hero5.lights-low .hero5-shelf::after { opacity: 0; animation: none; }

/* ---------- Books: printed covers with a hinge, laminate and a page block; cloth boards, gilt and page edges ---------- */
:root {
  --pageblock: 1px 0 0 #e7dabb, 2px 1px 0 #f7efdc, 3px 1px 0 #dccfac, 4px 2px 0 #f3ead3, 5px 2px 0 -.5px #d5c69e, 6px 3px 0 -1px #c8b78d;
}
.cover-fan .fan-book { display: block; overflow: hidden;
  box-shadow: var(--pageblock), 0 1px 2px rgba(0,0,0,.4), 0 26px 40px -16px rgba(0,0,0,.65); overflow: visible; }
.page-head--paper .cover-fan .fan-book { box-shadow: var(--pageblock), 0 1px 2px rgba(60,40,15,.35), 0 24px 36px -18px rgba(60,40,15,.7); }
.cover-fan .fan-book img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fan-book::before, .fan-book::after, .book-card-cover::after, .mag::after, .issue-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; }
/* the crease where the cover bends at the spine, and a soft laminate sheen */
.fan-book::before, .book-card-cover::after { background:
    linear-gradient(90deg, rgba(0,0,0,.42) 0, rgba(255,255,255,.2) 1.6%, rgba(0,0,0,.16) 3.6%, rgba(255,255,255,.12) 5%, transparent 7.5%),
    linear-gradient(180deg, rgba(255,255,255,.14), transparent 8%); }
.fan-book::after { background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.13) 45%, transparent 58%);
  mix-blend-mode: screen; }

/* cover room: the same page block */
.cover-3d { box-shadow: var(--pageblock), 7px 3px 0 -1px #e3d5b0, 14px 22px 26px -12px rgba(0,0,0,.85); }
.cover-book:hover .cover-3d, .cover-book:focus-visible .cover-3d { box-shadow: var(--pageblock), 7px 3px 0 -1px #e3d5b0, 18px 40px 40px -16px rgba(0,0,0,.9), 0 0 40px -6px rgba(240,190,90,.35); }

/* book cards (from books.txt) */
.book-card-cover { position: relative; display: block; border-radius: 1px 3px 3px 1px; }
.book-card-cover img, .book-plain { box-shadow: var(--pageblock), 0 1px 2px rgba(0,0,0,.35), 0 14px 20px -12px rgba(0,0,0,.5); }
.book-plain { background: var(--cloth), radial-gradient(ellipse 90% 70% at 30% 20%, rgba(255,255,255,.1), transparent 70%), linear-gradient(135deg, #1f2b47, #121a2e); }

/* LitVerse magazines: thin, glossy, saddle-stitched */
.mag img, .issue-card img { box-shadow: 1px 0 0 #e7dabb, 2px 1px 0 #f4ecd8, 3px 1px 0 -.5px #d2c39c, 0 2px 3px rgba(0,0,0,.45), 0 40px 60px -26px #000; }
.issue-card img { box-shadow: 1px 0 0 #e7dabb, 2px 1px 0 #f4ecd8, 3px 1px 0 -.5px #d2c39c, 0 2px 3px rgba(0,0,0,.45), 0 24px 30px -18px #000; }
.mag::after, .issue-card::after { bottom: auto; aspect-ratio: 1 / 1.414; border-radius: 2px 4px 4px 2px; background:
    linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.16) 1.2%, rgba(0,0,0,.06) 2.6%, transparent 4%),
    linear-gradient(118deg, transparent 34%, rgba(255,255,255,.16) 46%, transparent 57%); }
.issue-card { position: relative; }
.issue-card::after { transition: transform .5s var(--ease); }
.issue-card:hover::after, .issue-card:focus-visible::after { transform: translateY(-8px) rotate(-1deg); }

/* publishing's 3D books: bookcloth boards with worn edges, gilt tooling, raised bands, real page edges */
.book-cover { background:
    var(--cloth),
    radial-gradient(ellipse 90% 70% at 30% 18%, rgba(255,255,255,.13), transparent 70%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 6px 0 10px -4px rgba(0,0,0,.55), inset -1px 0 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(0,0,0,.3),
    inset 0 0 7px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); }
.cover-frame { border: 1px solid transparent; border-image: linear-gradient(135deg, #fbe7a8, #a57d36 35%, #f0d38c 55%, #8a6a2a 80%, #e8c879) 1;
  outline-color: rgba(240,211,140,.3); }
.cover-title { background: linear-gradient(180deg, #fff1c2 10%, #e9c878 45%, #b48a3a 62%, #f0d38c 85%); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.book-spine { background:
    linear-gradient(180deg, transparent 15%, rgba(0,0,0,.4) 15.4%, rgba(255,226,160,.45) 16.2%, rgba(0,0,0,.35) 17.6%, transparent 18%,
      transparent 37%, rgba(0,0,0,.4) 37.4%, rgba(255,226,160,.45) 38.2%, rgba(0,0,0,.35) 39.6%, transparent 40%,
      transparent 60%, rgba(0,0,0,.4) 60.4%, rgba(255,226,160,.45) 61.2%, rgba(0,0,0,.35) 62.6%, transparent 63%,
      transparent 82%, rgba(0,0,0,.4) 82.4%, rgba(255,226,160,.45) 83.2%, rgba(0,0,0,.35) 84.6%, transparent 85%),
    var(--cloth),
    linear-gradient(90deg, var(--c2), var(--c1) 50%, var(--c2)); }
.book-pages { background:
    linear-gradient(180deg, rgba(60,40,15,.35), transparent 5%, transparent 95%, rgba(60,40,15,.4)),
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 25%, transparent 75%, rgba(0,0,0,.12)),
    repeating-linear-gradient(90deg, #f8f0de 0 .8px, #e2d5b3 .8px 1.3px, #f1e7cf 1.3px 2.1px, #d9cba6 2.1px 2.5px); }

/* ---------- Lights: light that lands on things (beams with a source above, lamp light on wood grain) ---------- */
.spotlights { background:
    conic-gradient(from 162deg at 18% -60px, transparent 0deg, rgba(255,205,130,.07) 10deg, rgba(255,214,150,.13) 18deg, rgba(255,205,130,.07) 26deg, transparent 36deg),
    conic-gradient(from 165deg at 50% -60px, transparent 0deg, rgba(255,205,130,.05) 10deg, rgba(255,214,150,.1) 15deg, rgba(255,205,130,.05) 20deg, transparent 30deg),
    conic-gradient(from 162deg at 82% -60px, transparent 0deg, rgba(255,205,130,.07) 10deg, rgba(255,214,150,.13) 18deg, rgba(255,205,130,.07) 26deg, transparent 36deg),
    radial-gradient(ellipse 22% 55% at 18% 0%, rgba(255,205,130,.16), transparent 70%),
    radial-gradient(ellipse 22% 55% at 50% 0%, rgba(255,205,130,.12), transparent 70%),
    radial-gradient(ellipse 22% 55% at 82% 0%, rgba(255,205,130,.16), transparent 70%);
  mix-blend-mode: screen;
  -webkit-mask: linear-gradient(180deg, #000 0, #000 35%, transparent 92%); mask: linear-gradient(180deg, #000 0, #000 35%, transparent 92%); }
/* a little dust hanging in the beams */
.spotlights::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(1px 1px at 16% 18%, rgba(255,230,180,.8), transparent), radial-gradient(1px 1px at 21% 31%, rgba(255,230,180,.6), transparent),
    radial-gradient(1.2px 1.2px at 19% 44%, rgba(255,230,180,.7), transparent), radial-gradient(1px 1px at 48% 26%, rgba(255,230,180,.6), transparent),
    radial-gradient(1px 1px at 52% 39%, rgba(255,230,180,.5), transparent), radial-gradient(1.2px 1.2px at 80% 22%, rgba(255,230,180,.7), transparent),
    radial-gradient(1px 1px at 84% 35%, rgba(255,230,180,.6), transparent), radial-gradient(1px 1px at 79% 47%, rgba(255,230,180,.5), transparent); }
/* desk lamp light on the walnut: overlay brings up the grain where the light falls */
.desk-glow { background: radial-gradient(ellipse 52% 62% at 14% 16%, rgba(255,196,120,.6), rgba(255,170,90,.18) 48%, transparent 74%); mix-blend-mode: overlay; }
.desk-glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 50% at 14% 16%, rgba(255,190,110,.14), transparent 70%); }
.desk-page::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 85% 8%, rgba(255,196,120,.42), rgba(255,170,90,.12) 50%, transparent 76%); mix-blend-mode: overlay; }
/* the gold tag on the current LitVerse issue stays inside narrow screens */
@media (max-width: 480px) { .lv-current .mag-tag { left: -2px; } }

/* ---------- Log in button (added to the header by main.js) ---------- */
.account-btn {
  display: inline-grid; place-items: center; width: 40px; height: 36px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); background: rgba(201,162,74,.1); color: var(--gold-hi); transition: background-color .3s;
}
.account-btn:hover { background: rgba(201,162,74,.22); }
.account-btn svg { width: 19px; height: 19px; }
.account-btn.is-in { color: #2a1a06; border-color: #e3c477; background: linear-gradient(180deg, #f6dc94, #c49a45); }
@media (min-width: 1241px) { .site-nav li.nav-account { display: none; } }
@media (max-width: 1240px) { .account-btn { display: none; } }

/* ---------- Home hero: the publishing house, cut out and standing in 3D ---------- */
.hero5 { background: radial-gradient(ellipse 55% 70% at 74% 62%, #2b1a15 0%, var(--night) 72%); min-height: 780px; }
.hero5-scene { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0; pointer-events: none; perspective: 1100px; perspective-origin: 55% 45%; }
.house3d { position: absolute; right: 3%; bottom: 4%; height: 96%; aspect-ratio: 911 / 899; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); animation: houseSway 14s ease-in-out infinite; }
.hero5.is-tilting .house3d { animation: none; }
@keyframes houseSway { 0%, 100% { transform: rotateX(0deg) rotateY(0deg); } 25% { transform: rotateX(1deg) rotateY(-4deg); } 75% { transform: rotateX(-.5deg) rotateY(4deg); } }
.house3d > * { position: absolute; inset: 0; display: block; }
/* back plane: warm haze behind the building (scaled so it lines up at rest) */
.house3d-glow { inset: -4% -8% 6%; transform: translateZ(-140px) scale(1.127); background: radial-gradient(ellipse 48% 44% at 58% 58%, rgba(255,150,60,.32), rgba(255,120,50,.08) 55%, transparent 72%); }
.house3d-shadow { inset: auto -4% -3% 2%; height: 10%; transform: translateZ(-24px) scale(1.022); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,.85), rgba(0,0,0,.35) 52%, transparent 74%); }
.house3d-img { width: 100%; height: 100%; transform: translateZ(0); filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)) saturate(1.06) contrast(1.04); transition: filter 1.2s ease; }
/* front plane: lamp flares floating just in front of the glass */
.house3d-lights { transform: translateZ(50px) scale(.955); mix-blend-mode: screen;
  background:
    radial-gradient(circle at 41.7% 20.2%, rgba(255,226,160,.85) 0 .8%, rgba(255,180,90,.28) 2.6%, transparent 6%),
    radial-gradient(circle at 61.7% 26.7%, rgba(255,226,160,.85) 0 .8%, rgba(255,180,90,.28) 2.6%, transparent 6%),
    radial-gradient(circle at 77.3% 29%, rgba(255,226,160,.85) 0 .8%, rgba(255,180,90,.28) 2.6%, transparent 6%),
    radial-gradient(ellipse 9% 13% at 62.5% 62%, rgba(255,170,80,.3), transparent 70%),
    radial-gradient(ellipse 10% 12% at 44.5% 69%, rgba(255,170,80,.18), transparent 70%),
    radial-gradient(ellipse 10% 12% at 79% 70%, rgba(255,170,80,.18), transparent 70%); }
/* candle out: the rest dims, the house glows a little brighter */
.hero5.lights-low .house3d-img { filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)) saturate(1.2) contrast(1.06) brightness(1.18); }
html.calm .house3d { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .house3d { animation: none; } }
/* phones and tablets: the house stands at the top, the words below it, the covers after */
@media (max-width: 960px) {
  .hero5 { min-height: 0; padding-top: calc(min(100vw, 720px) * .94); background: var(--night); }
  .hero5-scene { left: 0; width: 100%; bottom: auto; height: min(100vw, 720px); perspective-origin: 50% 40%; }
  .house3d { right: auto; left: 50%; translate: -50% 0; bottom: 2%; height: 88%; }
  .hero5-shelf { order: 1; }
}

/* ---------- Postage stamp, rendered (assets/art/stamp.webp): perforated edges only, the house engraved in
   burgundy, INDIA and the value; a plain gummed back when turned over; a postmark inked across it onto the card ---------- */
.stamp-face { padding: 0; box-shadow: none; -webkit-mask: none; mask: none;
  background: url(assets/art/stamp.webp) 0 0 / 100% 100% no-repeat; background-blend-mode: normal;
  filter: drop-shadow(0 1px 1px rgba(40,20,10,.35)) drop-shadow(0 5px 7px rgba(40,20,10,.2)); }
.stamp-face > * { display: none; }
.stamp.is-found .stamp-face { background-image: url(assets/art/stamp-back.webp); }
.postmark { position: absolute; right: 50px; top: 16px; z-index: 3; width: 120px; height: 57px; pointer-events: none;
  background: url(assets/art/postmark.webp) 0 0 / 100% 100% no-repeat; transform: rotate(-7deg); mix-blend-mode: multiply; transition: opacity .4s; }
.stamp.is-found ~ .postmark { opacity: 0; }

/* ---------- The letter signs itself: the name typed above, handwritten in ink under "Yours sincerely" ---------- */
.form-foot .letter-sign-off { flex: 1 1 auto; min-width: 0; }
/* width 0 + min-width: the signature never widens the letter; long names are shrunk to fit by the script */
.letter-signature { display: block; position: relative; width: 0; min-width: calc(100% - 16px); margin: 0 0 0 16px; padding: 0 0 0 4px;
  font-family: "Mrs Saint Delafield", var(--script); font-size: clamp(42px, 4.6vw, 56px); line-height: 1.1; color: #1f2b55;
  transform: rotate(-4deg); transform-origin: 0 60%; white-space: nowrap; text-shadow: 0 0 .6px rgba(31,43,85,.55); }
.letter-signature.is-empty { display: none; }
.letter-signature .sig-name { display: inline-block; position: relative; padding: 0 .12em 12px; }
.letter-signature svg { position: absolute; left: 6%; bottom: 2px; width: 96%; height: 12px; overflow: visible; }
.letter-signature path { fill: none; stroke: #1f2b55; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .85; }
.letter-signature.is-writing .sig-name { animation: sig-write var(--dur, 1.2s) cubic-bezier(.45,.1,.35,1) both; }
.letter-signature.is-writing path { animation: sig-swash .55s ease-out both; animation-delay: var(--dur, 1.2s); }
@keyframes sig-write { from { clip-path: inset(-40% 100% -60% -12%); } to { clip-path: inset(-40% -14% -60% -12%); } }
@keyframes sig-swash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html.calm .letter-signature .sig-name, html.calm .letter-signature path { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .letter-signature .sig-name, .letter-signature path { animation: none !important; } }

/* ---------- Posted (main.js "Posted"): after a send the letter lifts off the page and plays out in front of it:
   folded into an envelope and sealed, or (book uploads) wrapped as a parcel and posted into a red pillar box.
   Then the page shows the "Sealed and sent" card. ---------- */
.letter-form::before { transition: opacity .5s ease; }
.letter-form.is-posting { filter: none; }
.letter-form.is-posting::before { opacity: 0; transition: none; }
.letter-form.is-posting > * { visibility: hidden; }                       /* the sheet has left the desk; the space stays */
.letter-form.is-posting > .form-status { visibility: visible; opacity: 0; } /* still read out by screen readers */
.letter-form.was-posted .sent-card { animation: mail-card-in .7s var(--ease) both; }
@keyframes mail-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the layer in front of the page: the page dims and softens behind; a click or Escape skips */
.mail-layer { position: fixed; inset: 0; z-index: 9000; overflow: hidden; }
.mail-backdrop { position: absolute; inset: 0; cursor: pointer;
  background: radial-gradient(ellipse 75% 70% at 50% 46%, rgba(26,16,10,.5), rgba(8,5,3,.86));
  -webkit-backdrop-filter: blur(3px) saturate(.85); backdrop-filter: blur(3px) saturate(.85); }
.mail-stage { position: absolute; inset: 0; perspective: 1500px; pointer-events: none; user-select: none; -webkit-user-select: none; }
.mail-stage > * { position: absolute; display: block; }
.mail-copy { position: absolute; left: 0; top: 0; margin: 0; transform: none; filter: none; transform-origin: 0 0; }

/* the letter, cut along its two folds; the outer thirds have a plain paper back */
.mail-letter { z-index: 3; transform-origin: 0 0; transform-style: flat; }      /* thirds stack by z-index, not by depth sorting */
.mail-fold--mid { z-index: 1; }
.mail-fold--bot { z-index: 2; }
.mail-fold--top { z-index: 3; }
.mail-fold { position: absolute; left: 0; width: 100%; transform-style: preserve-3d; }
.mail-fold--top { transform-origin: 50% 100%; }
.mail-fold--bot { transform-origin: 50% 0; }
.mail-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 12px 20px -12px rgba(12,6,2,.55); }
.mail-face--back { transform: rotateX(180deg); box-shadow: none;
  background: var(--fibre), linear-gradient(180deg, rgba(255,255,255,.45), transparent 7%, transparent 93%, rgba(90,60,25,.18)), linear-gradient(180deg, #f6eedb, #ebdfc2);
  background-blend-mode: hard-light, normal, normal;
  -webkit-mask-box-image: url(assets/art/deckle.webp) 32 / 0 16px round; }
.mail-shade, .mail-crease { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mail-shade { background: linear-gradient(180deg, rgba(70,44,16,.55), rgba(30,18,6,.8)); }
.mail-crease--bot { background: linear-gradient(0deg, rgba(50,30,10,.6), rgba(50,30,10,.15) 18%, transparent 45%); }
.mail-crease--top { background: linear-gradient(180deg, rgba(50,30,10,.6), rgba(50,30,10,.15) 18%, transparent 45%); }

/* the envelope: ivory laid paper, lined in burgundy and gold */
.mail-env-back { z-index: 1; border-radius: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,.5), transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(201,162,74,.3) 9px 10px),
    repeating-linear-gradient(-45deg, transparent 0 9px, rgba(201,162,74,.3) 9px 10px),
    linear-gradient(180deg, #431019, #2a0910);
  box-shadow: 0 24px 34px -16px rgba(0,0,0,.65), 0 2px 4px rgba(0,0,0,.35); }
.mail-flap { transform-origin: 50% 0; }
.mail-flap--in { z-index: 2; clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(201,162,74,.34) 9px 10px),
    repeating-linear-gradient(-45deg, transparent 0 9px, rgba(201,162,74,.34) 9px 10px),
    linear-gradient(180deg, #4d121c, #350b13); }
.mail-flap--out { z-index: 5; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 2px 2px rgba(50,30,10,.3)); }
.mail-flap--out i { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 53% 96%, 50% 100%, 47% 96%);
  background: var(--fibre), linear-gradient(180deg, rgba(255,255,255,.35), transparent 30%, rgba(90,60,25,.12)), linear-gradient(180deg, #f5ecd6, #e8d9b6);
  background-blend-mode: hard-light, normal, normal; }
.mail-pocket { z-index: 4; border-radius: 0 0 4px 4px; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background: var(--fibre), radial-gradient(ellipse 80% 70% at 50% 80%, rgba(255,255,255,.3), transparent 70%), linear-gradient(180deg, #efe4c9, #e2d2ad);
  background-blend-mode: hard-light, normal, normal; }
.mail-pocket svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mail-seal { z-index: 6; filter: drop-shadow(0 3px 3px rgba(60,12,12,.5)); }

/* the parcel: a manuscript, brown kraft paper, twine, a label and a stamp */
.mail-parcel { z-index: 6; transform-style: flat; }      /* layers stack in DOM order: page, kraft flaps, twine, bow, label */
.mail-parcel > * { position: absolute; }
/* the manuscript: a thick stack of pages (oblique sides with page edges), two loose sheets, a steel paper clip
   (assets/art/paperclip-front/back.webp from parcel_art.py); once wrapped, the sides turn to kraft */
.mail-ground { inset: 0; opacity: 0; box-shadow: 10px 16px 26px rgba(8,4,0,.55); }
.mail-side { opacity: 0; transform-origin: 0 0; }
.mail-side--b { transform: skewX(45deg); }
.mail-side--r { transform: skewY(45deg); }
.mail-side--pages.mail-side--b { background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(60,40,15,.2)),
    repeating-linear-gradient(180deg, #f6efdd 0 1px, #d4c7a7 1px 1.6px, #ede3ca 1.6px 2.7px); }
.mail-side--pages.mail-side--r { background: linear-gradient(90deg, rgba(0,0,0,.1), rgba(60,40,15,.32)),
    repeating-linear-gradient(90deg, #f6efdd 0 1px, #d4c7a7 1px 1.6px, #ede3ca 1.6px 2.7px); }
.mail-side--kraft.mail-side--b { background: linear-gradient(rgba(40,22,6,.26), rgba(40,22,6,.3)), url(assets/art/kraft.webp) 0 0 / 256px 256px, #8a5f36; }
.mail-side--kraft.mail-side--r { background: linear-gradient(rgba(30,16,4,.42), rgba(30,16,4,.46)), url(assets/art/kraft.webp) 40px 0 / 256px 256px, #7a5330; }
.mail-leaf { opacity: 0; background: var(--fibre), linear-gradient(170deg, #faf3e1, #ebdfc1); background-blend-mode: hard-light, normal;
  box-shadow: 0 1px 2px rgba(40,25,10,.35), inset 0 0 0 1px rgba(138,106,42,.18); }
.mail-clip { opacity: 0; }
/* kraft paper (assets/art/kraft.webp, from parcel_art.py); the edges darken where the paper bends over the box */
.mail-kraft { opacity: 0;
  background: linear-gradient(135deg, rgba(255,236,200,.12), transparent 45%, rgba(50,28,8,.14)), url(assets/art/kraft.webp) var(--kp, 0 0) / 256px 256px, #a4774a;
  box-shadow: inset 0 0 0 1px rgba(90,55,20,.32), inset 0 0 6px rgba(50,28,8,.28); }
.mail-kraft--r { box-shadow: inset 0 0 0 1px rgba(90,55,20,.32), inset 0 0 6px rgba(50,28,8,.28), -3px 0 4px -2px rgba(40,22,6,.5); }
.mail-kraft--b { box-shadow: inset 0 0 0 1px rgba(90,55,20,.32), inset 0 0 6px rgba(50,28,8,.28), 0 -3px 4px -2px rgba(40,22,6,.5); }
/* twine (assets/art/twine*.webp, from parcel_art.py) */
.mail-twine--h { background: url(assets/art/twine.webp) 0 0 / auto 100% repeat-x; }
.mail-twine--v { background: url(assets/art/twine-v.webp) 0 0 / 100% auto repeat-y; }
.mail-label { display: grid; align-content: start; gap: .25em; padding: .7em .8em; overflow: hidden; opacity: 0; border-radius: 2px;
  background: var(--fibre), linear-gradient(180deg, #fcf7ea, #efe4c9); background-blend-mode: hard-light, normal;
  box-shadow: 0 1px 2px rgba(40,25,10,.4), inset 0 0 0 1px rgba(138,106,42,.3);
  color: #2b1d12; font-family: var(--serif); line-height: 1.1; text-align: left; }
.mail-label .ml-to, .mail-label .ml-kind { font-family: var(--sans); font-size: .72em; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8a6a2a; }
.mail-label .ml-who { font-size: 1.1em; font-weight: 700; }
.mail-label .ml-kind { margin-top: .35em; padding-top: .45em; border-top: 1px solid rgba(138,106,42,.45); }
.mail-label .ml-title { font-family: var(--script); font-size: 1.4em; line-height: 1; color: var(--burgundy); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-label .ml-by { font-style: italic; font-size: .95em; color: #5a4632; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-stamp { opacity: 0; background: url(assets/art/stamp.webp) 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 1px 1px rgba(40,20,10,.4)); }
.mail-postmark { opacity: 0; background: url(assets/art/postmark.webp) 0 0 / 100% 100% no-repeat; }

/* the red pillar box: rendered art in three layers (inside, the hatch, the box with its slot cut out) */
.mail-box-shadow { z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.72), rgba(0,0,0,.32) 55%, transparent); }
.mail-box-inside { z-index: 1; }
.mail-box-flap { z-index: 2; transform-origin: 50% 0; }
.mail-box { z-index: 4; filter: drop-shadow(10px 6px 14px rgba(0,0,0,.35)); }
html.calm .mail-layer { display: none; }
/* the sealed envelope and its letter travel as one layer, so they can pass behind the front of the post box */
.mail-post { inset: 0; perspective: 1500px; }
.mail-post > * { position: absolute; display: block; }
/* "Send another" under the sent card (main.js "Posted") */
.letter-form > .send-again { display: none; text-align: center; padding: 4px 10px 14px; }
form.is-sent > .send-again { display: block; }
.letter-form.was-posted > .send-again { animation: mail-card-in .7s var(--ease) .15s both; }
.send-again .btn { font-family: inherit; }
/* the manuscript's top page: a box that crops the sheet to one page (main.js "Posted") */
.mail-page { overflow: hidden; transform-origin: 0 0; }
.mail-page > .mail-copy { left: 0; top: 0; }

/* ---------- The Road to Print: a parchment map lying on a desk, built in code (round 5). The desk light, paper, border,
   sea, river, road, route, compass and lettering are CSS and SVG; only the miniatures and the desk props are cut-out
   pictures (assets/art/desk-map/). The flat sheet (1000 x 700) is a true rectangle: .map-plane lays it on the desk with
   rotateX and turns it a little (--tilt, --spin) inside a perspective stage, and every .pop stands back up on its foot
   like a pop-up book. main.js folds the sheet in 4 x 2 panels. Layout: map_diorama.py; pieces: map_pieces3.py
   (shared notes folder). ---------- */
.journey { overflow-x: clip; }                       /* the desk is wider than a phone screen */
.map { background: none; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; }
.map-inner { --tilt: 41deg; --spin: -3deg; overflow: visible; border-radius: 0; container-type: inline-size; }
.map-inner img { width: auto; height: auto; max-width: none; transform: none; object-fit: fill; }   /* undo the picture-map rule */
.map-inner .map-static { position: absolute; inset: 0; z-index: 9; width: 100%; height: 100%; }
.map-stage { position: absolute; inset: 0; perspective: 150cqw; perspective-origin: 50% 20%; }

/* the desk: dark wood in a pool of warm lamp light that fades into the page */
.desk-top { position: absolute; left: 50%; top: 52%; width: 175cqw; height: 135cqw; translate: -50% -50%; transform: rotateX(var(--tilt));
  background:
    radial-gradient(ellipse 40% 34% at 42% 44%, rgba(255, 204, 128, .5), transparent 78%),
    radial-gradient(ellipse 60% 55% at 50% 50%, transparent 40%, rgba(12, 6, 2, .55) 75%),
    linear-gradient(rgba(52, 24, 8, .16), rgba(52, 24, 8, .16)),
    url(assets/art/wood-desk.webp) 0 0 / 46cqw auto repeat;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 42%, transparent 70%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 42%, transparent 70%); }
.map-stage > .prop { position: absolute; height: auto; pointer-events: none; filter: drop-shadow(.5cqw 1.1cqw .9cqw rgba(10, 4, 0, .6)); }
.map-stage > .prop-magnifier { filter: drop-shadow(.8cqw 1.6cqw 1.1cqw rgba(10, 4, 0, .55)); }

/* the sheet */
.map-plane { position: absolute; left: 50%; top: 54%; width: 93cqw; aspect-ratio: 10 / 7; translate: -50% -50%;
  transform: rotateX(var(--tilt)) rotateZ(var(--spin)); transform-style: preserve-3d; }
.map-plane { --map-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .24 0 0 0 0 .11 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.3'/%3E%3C/svg%3E");
  --map-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .58 0 0 0 0 .38 0 0 0 0 .14 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"); }
.map-shadow { position: absolute; inset: 1.5% 1% 0 1%; background: rgba(10, 4, 0, .72); filter: blur(1.3cqw); transform: translate3d(.8%, 2.2%, -1px); transition: opacity .7s; }
.map-art { position: absolute; inset: 0; transition: opacity .25s; }
.map-plane.is-folded > .map-art, .map-plane.is-folding > .map-art { opacity: 0; pointer-events: none; }
.map-plane.is-folded > .map-shadow, .map-plane.is-folding > .map-shadow { opacity: 0; }

/* the paper: grain, mottling, stains, the creases of a map folded in eight, and edges browned by age */
.map-paper, .fold-back { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(25% - 1.5px), rgba(95,58,22,.24) calc(25% - 1.5px), rgba(255,249,232,.5) 25%, transparent calc(25% + 1.5px)),
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(95,58,22,.28) calc(50% - 1.5px), rgba(255,249,232,.5) 50%, transparent calc(50% + 1.5px)),
    linear-gradient(90deg, transparent calc(75% - 1.5px), rgba(95,58,22,.24) calc(75% - 1.5px), rgba(255,249,232,.5) 75%, transparent calc(75% + 1.5px)),
    linear-gradient(180deg, transparent calc(50% - 1.5px), rgba(95,58,22,.26) calc(50% - 1.5px), rgba(255,249,232,.5) 50%, transparent calc(50% + 1.5px)),
    radial-gradient(ellipse 22% 18% at 78% 74%, rgba(150, 90, 30, .16), transparent 70%),
    radial-gradient(ellipse 14% 11% at 22% 18%, rgba(150, 90, 30, .14), transparent 70%),
    radial-gradient(ellipse 9% 7% at 60% 88%, rgba(120, 70, 20, .12), transparent 70%),
    radial-gradient(ellipse 55% 50% at 45% 42%, rgba(255, 248, 226, .32), transparent 72%),
    var(--map-grain), var(--map-mottle), #ead5a6;
  box-shadow: inset 0 0 3.2cqw rgba(128, 66, 16, .5), inset 0 0 .7cqw rgba(74, 32, 6, .78); }

/* the drawing */
.map-land { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.b-band { fill: rgba(206, 172, 108, .3); }
.b-outer { fill: none; stroke: #3b2414; stroke-width: 2.2; }
.b-rule { fill: none; stroke: #3b2414; stroke-width: .9; }
.b-inner { fill: none; stroke: #3b2414; stroke-width: 1.8; }
.b-hair { fill: none; stroke: #3b2414; stroke-width: .6; opacity: .65; }
.b-grad { fill: #3b2414; opacity: .82; }
.b-stem { fill: none; stroke: #4a3018; stroke-width: 1; }
.b-leaf { fill: #74803f; stroke: #3b2414; stroke-width: .5; }
.b-berry { fill: #8c1826; }
.b-corner { fill: #ead6a8; stroke: #3b2414; stroke-width: 1.2; }
.b-rose { fill: #8c1826; stroke: #3b2414; stroke-width: .5; stroke-linejoin: round; }
.b-dot { fill: #d7b15a; }
.sea { fill: url(#dm-sea); opacity: .82; }
.sea-deep path { fill: none; stroke: #24566c; opacity: .14; stroke-linejoin: round; }
.sea-rings { fill: #24495a; opacity: .5; }
.land-wash { fill: rgba(255, 246, 220, .1); }
.beach { fill: none; stroke: #e0bd6c; stroke-width: 18; opacity: .7; }
.engrave { fill: url(#dm-engrave); opacity: .22; }
.rhumbs { fill: none; stroke: #3b2414; stroke-width: .7; opacity: .28; }
.serpent-body { fill: #4f7a5a; }
.serpent { fill: none; stroke: #23301f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.walls { fill: #f3e6c6; stroke: #3b2414; stroke-width: .9; }
.roofs { fill: #a3392c; stroke: #3b2414; stroke-width: .9; stroke-linejoin: round; }
.coast { fill: none; stroke: #2f2012; stroke-width: 2.4; stroke-linejoin: round; }
.swirls, .waves { fill: none; stroke: #1f4252; stroke-width: 1.5; stroke-linecap: round; opacity: .8; }
.river, .lake { fill: #86b6c4; stroke: #24414d; stroke-width: 1.2; stroke-linejoin: round; }
.isle { fill: #e6cf98; stroke: #2f2012; stroke-width: 1.6; }
.rocks { fill: #6b5a44; stroke: #2f2012; stroke-width: .6; }
.grid { fill: none; stroke: #3b2414; stroke-width: .6; stroke-dasharray: 2 5; opacity: .3; }
.tracks { fill: none; stroke: #6a4320; stroke-width: 1.6; stroke-dasharray: .1 4.5; stroke-linecap: round; }
.stipple { fill: #3b2414; opacity: .45; }
.plots { fill: rgba(196, 160, 60, .4); stroke: #6a5a22; stroke-width: 1.2; stroke-dasharray: .5 3.2; stroke-linecap: round; }
.fields { fill: none; stroke: #6a4a22; stroke-width: 1; stroke-linecap: round; opacity: .7; }
.peaks { fill: rgba(246, 228, 186, .8); stroke: #3b2414; stroke-width: 1.4; stroke-linejoin: round; }
.peak-face { fill: rgba(126, 82, 40, .38); }
.peak-hatch { fill: none; stroke: #5a3a1c; stroke-width: 1; stroke-linecap: round; opacity: .8; }
.g-trunk { fill: none; stroke: #3b2414; stroke-width: 1.3; }
.g-crown { fill: #7d9147; stroke: #3b2414; stroke-width: 1; }
.g-lit { fill: rgba(214, 222, 140, .7); }
.g-shade { fill: none; stroke: #3b2414; stroke-width: .9; opacity: .5; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-case { stroke: #4a2e18; stroke-width: 20; }
.road-fill { stroke: #f2e3bd; stroke-width: 15; }
.road-mid { stroke: #a5845a; stroke-width: 1.2; stroke-dasharray: 6 6; }
.bridge path { fill: none; stroke: #2f2012; stroke-width: 2.4; stroke-linecap: round; }
.route { fill: none; stroke: #8c1826; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 12 8; }
.route-reveal { fill: none; stroke: #fff; stroke-width: 40; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.map-art.is-moving .route-reveal { transition: stroke-dashoffset 1.5s cubic-bezier(.45, 0, .25, 1); }
.x-mark { fill: none; stroke: #8c1826; stroke-width: 7; stroke-linecap: round; }
.compass .c-ring { fill: rgba(240, 228, 198, .6); stroke: #3b2414; stroke-width: 1.5; }
.compass .c-thin { fill: none; stroke-width: .8; }
.compass .c-tick { stroke: #3b2414; stroke-width: .9; }
.compass .c-dark { fill: #3b2414; }
.compass .c-light { fill: #f3e6c6; stroke: #3b2414; stroke-width: .8; stroke-linejoin: round; }
.compass .c-fleur { fill: #8c1826; stroke: #3b2414; stroke-width: .8; }
.compass .c-n { font-family: var(--serif); font-weight: 700; font-size: 13px; fill: #3b2414; text-anchor: middle; dominant-baseline: middle; }
.compass .c-big { font-size: 17px; }
.lbl { font-family: var(--serif); fill: #2a180c; text-anchor: middle; }
.lbl-sea { font-style: italic; font-size: 25px; letter-spacing: .06em; fill: #1f3d4b; }
.lbl-bay { font-style: italic; font-size: 15px; letter-spacing: .08em; fill: #1f3d4b; }
.lbl-river { font-style: italic; font-size: 12px; letter-spacing: .12em; fill: #24414d; }
.lbl-town { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; fill: #3b2414; paint-order: stroke; stroke: rgba(240, 226, 190, .85); stroke-width: 3px; }
.lbl-land { font-variant: small-caps; font-weight: 700; font-size: 17px; letter-spacing: .14em;
  paint-order: stroke; stroke: rgba(240, 226, 190, .9); stroke-width: 4px; stroke-linejoin: round; }
.ct-box { fill: #f1e2bc; stroke: #3b2414; stroke-width: 1.8; }
.ct-curl { fill: #dcc28c; stroke: #3b2414; stroke-width: 1.4; stroke-linejoin: round; }
.ct-rule { fill: none; stroke: #3b2414; stroke-width: .7; }
.ct-orn { fill: #8c1826; stroke: #3b2414; stroke-width: 1; }
.ct-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; fill: #2a180c; text-anchor: middle; }
.ct-sub { font-family: var(--sans, sans-serif); font-size: 6.4px; letter-spacing: .18em; fill: #5a3a1c; text-anchor: middle; }

/* wax seals pressed onto the road; the hit area is wider than the wax */
.map-art .waypoint { width: 4.8%; height: auto; aspect-ratio: 1; margin: 0; translate: -50% -50%; z-index: 5; box-shadow: none;
  background: url(assets/art/wax-seal-blank.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 .25cqw .25cqw rgba(20, 6, 8, .55)); color: #8c1826; font-size: 1.45cqw;
  text-shadow: -1px -1px 0 rgba(255, 190, 175, .38), 1px 1px 1px rgba(25, 0, 4, .75); }
.map-art .waypoint::before { content: ""; position: absolute; inset: -45%; border-radius: 50%; }
.map-art .waypoint:hover, .map-art .waypoint.is-active { box-shadow: none; filter: drop-shadow(0 0 .5cqw rgba(255, 220, 150, .95)) drop-shadow(0 .4cqw .5cqw rgba(20, 6, 8, .5)); }
.map-art .waypoint.is-active::after { inset: -22%; }
.map-art .hotspot { width: 3.6%; height: auto; aspect-ratio: 1; margin: 0; translate: -50% -50%; }
.map-art .hotspot::before { inset: 36%; }
.map-art .hotspot::after { inset: 18%; }

/* the miniatures: each stands on its foot (--x, --y) and rises off the paper when the map has opened */
.map-pop { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(.5px); pointer-events: none; }
.map-plane.is-folded > .map-pop, .map-plane.is-folding > .map-pop { visibility: hidden; }
.pop { position: absolute; left: var(--x); top: var(--y); width: var(--w); translate: -50% -100%; transform-origin: 50% 100%;
  transform: rotateZ(calc(-1 * var(--spin))) rotateX(0deg); opacity: 0;
  transition: transform .85s cubic-bezier(.3, 1.5, .55, 1) calc(var(--i) * 75ms), opacity .25s calc(var(--i) * 75ms); }
.map-pop.is-up .pop { transform: rotateZ(calc(-1 * var(--spin))) rotateX(calc(-1 * var(--tilt))); opacity: 1; }
.pop > img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; transition: filter .8s; }
.pop[data-reach]:not(.is-reached) > img { filter: saturate(.55) brightness(.9); }
.pop-shade { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 2.4; translate: -44% -60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 16, 2, .55), rgba(36, 16, 2, .22) 60%, transparent); opacity: 0; transition: opacity .6s .3s; }
.map-pop.is-up .pop-shade { opacity: 1; }
.map-pop.no-anim .pop, .map-pop.no-anim .pop-shade { transition: none; }

/* parchment plaques pinned to the landmarks; tapping one goes to that stop */
.plaque { position: absolute; left: 50%; bottom: -3%; translate: -50% 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: .4em; width: max-content; max-width: 8.6em; padding: .34em .95em .38em; pointer-events: auto; cursor: pointer; text-align: center;
  font: 700 max(1.75cqw, 8px)/1.08 var(--serif); color: #3a210d; letter-spacing: .02em;
  background: linear-gradient(180deg, #f7eac8, #e0c58b); border: 1px solid #7a5726; border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255, 248, 225, .5), inset 0 0 0 3px rgba(122, 87, 38, .35), 0 .35cqw .6cqw -.15cqw rgba(20, 8, 0, .65);
  transition: translate .45s cubic-bezier(.3, 1.4, .5, 1), box-shadow .45s, filter .45s; }
.plaque b { color: #8c1826; font-size: .92em; }
.plaque::before, .plaque::after { content: ""; position: absolute; top: 50%; width: .34em; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%;
  background: radial-gradient(circle at 35% 30%, #fff4c8, #c9a24a 45%, #5e400f); }
.plaque::before { left: .25em; } .plaque::after { right: .25em; }
.plaque.is-on { translate: -50% -14%; box-shadow: inset 0 0 0 2px rgba(255, 248, 225, .5), inset 0 0 0 3px rgba(122, 87, 38, .35),
  0 0 0 .18cqw rgba(240, 211, 140, .95), 0 0 1.6cqw .2cqw rgba(255, 210, 120, .75), 0 .6cqw .8cqw -.2cqw rgba(20, 8, 0, .6); }
.pop[data-reach]:not(.is-reached) .plaque { filter: saturate(.6) brightness(.93); }
.plaque-end { bottom: -10%; max-width: 7em; font-style: italic; color: #4a2a08;
  background: linear-gradient(180deg, #fbefc6, #e9c766); border-color: #8a6420; }
.sign-text { position: absolute; left: 44%; top: 14%; translate: -50% 0; width: max-content; padding: .3em .8em .34em;
  font: italic 700 max(1.75cqw, 8px)/1 var(--serif); color: #8c1826; pointer-events: none;
  background: linear-gradient(180deg, #f7eac8, #e0c58b); border: 1px solid #7a5726; border-radius: 2px; box-shadow: 0 .3cqw .5cqw -.15cqw rgba(20, 8, 0, .6); }

/* the destination: the book on the headland opens, with light behind it */
.pop-book .book-open { position: absolute; left: 50%; bottom: 0; width: 110%; translate: -50% 0; opacity: 0; scale: .9; transform-origin: 50% 100%;
  transition: opacity .7s, scale .7s; }
.pop-book > img:first-child { transition: opacity .7s, filter .8s; }
.map-plane.at-4 .pop-book > img:first-child { opacity: 0; transition-delay: .9s; }
.map-plane.at-4 .pop-book .book-open { opacity: 1; scale: 1; transition-delay: .9s; }
.book-rays { position: absolute; left: 50%; top: 34%; z-index: -1; width: 260%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  pointer-events: none; transition: opacity .8s .9s;
  background: repeating-conic-gradient(from 0deg, rgba(255, 216, 120, .7) 0 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 24%, #000 46%, transparent 68%); mask: radial-gradient(circle, transparent 18%, #000 24%, #000 46%, transparent 68%); }
.map-plane.at-4 .book-rays { opacity: .85; animation: rays-turn 18s linear infinite; }
@keyframes rays-turn { to { rotate: 360deg; } }

/* small moving parts inside the miniatures (main.js "play") */
.fx-letter { position: absolute; left: 28%; top: 68%; width: 15%; aspect-ratio: 1.45; translate: -50% -50%; opacity: 0;
  background: linear-gradient(160deg, #fff8e6, #ecdcb4); border: 1px solid #8a6a3a; border-radius: 1px; box-shadow: 0 2px 3px rgba(40, 20, 0, .35); }
.fx-letter::after { content: ""; position: absolute; left: 50%; top: 52%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c94456, #7d1d2b 60%); }
.fx-glow { position: absolute; left: 50%; top: 42%; z-index: -1; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 240, 170, .95), rgba(255, 214, 110, .45) 38%, transparent 68%); pointer-events: none; }
.fx-ticks { position: absolute; left: 50%; top: 14%; width: 0; height: 0; pointer-events: none; }
.fx-ticks i { position: absolute; font-style: normal; font-family: var(--serif); font-weight: 700; color: #8c1826; font-size: 2.4cqw; opacity: 0; translate: -50% -50%;
  text-shadow: 0 0 3px #fff6dc, 0 0 6px #fff6dc; }
.fx-smoke { position: absolute; left: 12.6%; top: 2%; width: 0; height: 0; pointer-events: none; }
.fx-smoke i { position: absolute; left: 0; top: 0; width: 3cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 40% 35%, #fbf6ec, #d4cbbd 70%); box-shadow: 0 0 0 1px rgba(58, 36, 20, .3); }
.pop-ship > img { transform-origin: 50% 85%; animation: ship-bob 6s ease-in-out infinite; }
@keyframes ship-bob { 0%, 100% { rotate: 0deg; translate: 0 0; } 50% { rotate: -2.2deg; translate: 0 -3%; } }
html.calm .pop-ship > img { animation: none; }

/* the fold: eight panels, each showing its part of the map on the front and plain paper on the back */
.map-fold { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; display: none; }
.map-plane.is-folded > .map-fold, .map-plane.is-folding > .map-fold { display: block; }
.fold-half, .fold-panel { position: absolute; transform-style: preserve-3d; }
.fold-half { transform-origin: 0 100%; }
.fold-panel { transform-origin: 0 50%; }
.fold-half:first-child > .fold-panel > .fold-face:first-child { box-shadow: .4cqw 1.2cqw 1.6cqw rgba(10, 4, 0, .55); overflow: hidden; }
.fold-face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fold-face > .map-art { opacity: 1; }
.fold-back { transform: rotateY(180deg); box-shadow: inset 0 0 1.6cqw rgba(128, 66, 16, .45), inset 0 0 .4cqw rgba(74, 32, 6, .6);
  background: radial-gradient(ellipse 60% 50% at 40% 40%, rgba(255, 251, 236, .3), transparent 70%), var(--map-grain), var(--map-mottle), #e5cf9e; }
.fold-cover { transform: rotateX(180deg); display: grid; place-content: center; text-align: center; gap: .4em; color: #3b2414;
  font-family: var(--serif); border: 2px solid rgba(59, 36, 20, .7); outline: 1px solid rgba(59, 36, 20, .5); outline-offset: -7px; }
.fold-cover b { font-size: 1.15em; font-style: italic; line-height: 1.1; }
.fold-cover small { font-size: .6em; letter-spacing: .2em; text-transform: uppercase; }
.fold-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60, 30, 5, .35), rgba(60, 30, 5, .1)); opacity: 0; pointer-events: none; }
.map-fold-btn { position: absolute; right: 2%; bottom: 0; z-index: 7; padding: 7px 14px; border: 1px solid rgba(240, 211, 140, .45); border-radius: 999px;
  background: rgba(10, 30, 26, .7); color: var(--gold-hi, #f0d38c); font: 600 13px/1 var(--sans, sans-serif); letter-spacing: .06em; cursor: pointer;
  transition: background-color .3s, border-color .3s; }
.map-fold-btn:hover, .map-fold-btn:focus-visible { background: rgba(10, 30, 26, .95); border-color: var(--gold-hi, #f0d38c); }
@media (max-width: 600px) {
  .map-art .waypoint { width: 6%; font-size: 1.9cqw; }
  .map-fold-btn { font-size: 12px; padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-art.is-moving .route-reveal, .pop, .pop-shade, .plaque { transition: none; }
  .pop-ship > img, .map-plane.at-4 .book-rays { animation: none; }
}
/* map-edge:start (written by map_diorama.py) */
.map-art { clip-path: polygon(0.00% 0.37%,0.83% 0.48%,1.67% 0.44%,2.50% 0.02%,3.33% 0.57%,4.17% 0.54%,5.00% 0.28%,5.83% 0.33%,6.67% 0.01%,7.50% 0.17%,8.33% 0.46%,9.17% 0.48%,10.00% 0.37%,10.83% 0.00%,11.67% 0.13%,12.50% 0.59%,13.33% 0.17%,14.17% 0.32%,15.00% 0.12%,15.83% 0.41%,16.67% 0.54%,17.50% 0.22%,18.33% 0.09%,19.17% 0.18%,20.00% 0.00%,20.83% 0.20%,21.67% 0.49%,22.50% 0.19%,23.33% 1.80%,24.17% 0.01%,25.00% 1.74%,25.83% 0.22%,26.67% 0.75%,27.50% 0.57%,28.33% 0.45%,29.17% 0.57%,30.00% 0.21%,30.83% 0.47%,31.67% 0.45%,32.50% 1.87%,33.33% 0.05%,34.17% 0.37%,35.00% 0.20%,35.83% 0.33%,36.67% 0.19%,37.50% 0.05%,38.33% 0.41%,39.17% 1.49%,40.00% 0.32%,40.83% 0.14%,41.67% 0.50%,42.50% 1.59%,43.33% 0.02%,44.17% 0.50%,45.00% 0.44%,45.83% 0.38%,46.67% 0.06%,47.50% 0.09%,48.33% 0.18%,49.17% 0.60%,50.00% 0.59%,50.83% 0.29%,51.67% 0.29%,52.50% 0.24%,53.33% 0.23%,54.17% 0.58%,55.00% 0.30%,55.83% 0.05%,56.67% 0.47%,57.50% 0.22%,58.33% 0.46%,59.17% 0.40%,60.00% 0.22%,60.83% 0.17%,61.67% 0.46%,62.50% 0.18%,63.33% 0.39%,64.17% 0.01%,65.00% 0.15%,65.83% 0.28%,66.67% 0.39%,67.50% 0.21%,68.33% 0.44%,69.17% 0.21%,70.00% 0.52%,70.83% 0.59%,71.67% 0.31%,72.50% 0.10%,73.33% 0.56%,74.17% 0.41%,75.00% 0.44%,75.83% 0.47%,76.67% 0.40%,77.50% 0.37%,78.33% 0.38%,79.17% 0.02%,80.00% 0.26%,80.83% 0.13%,81.67% 1.36%,82.50% 0.84%,83.33% 0.19%,84.17% 1.09%,85.00% 0.23%,85.83% 0.35%,86.67% 1.47%,87.50% 0.17%,88.33% 0.07%,89.17% 1.32%,90.00% 0.06%,90.83% 0.20%,91.67% 0.57%,92.50% 0.25%,93.33% 0.39%,94.17% 0.09%,95.00% 0.34%,95.83% 0.58%,96.67% 0.21%,97.50% 0.00%,98.33% 0.34%,99.17% 0.08%,100.00% 0.53%,99.82% 1.00%,99.88% 2.00%,99.84% 3.00%,99.62% 4.00%,99.89% 5.00%,99.79% 6.00%,99.87% 7.00%,99.79% 8.00%,99.80% 9.00%,99.74% 10.00%,99.88% 11.00%,98.63% 12.00%,99.89% 13.00%,99.67% 14.00%,99.89% 15.00%,99.58% 16.00%,99.74% 17.00%,99.73% 18.00%,99.69% 19.00%,99.68% 20.00%,99.78% 21.00%,99.88% 22.00%,99.80% 23.00%,99.69% 24.00%,99.98% 25.00%,99.81% 26.00%,99.63% 27.00%,99.99% 28.00%,99.82% 29.00%,99.70% 30.00%,99.80% 31.00%,99.84% 32.00%,99.64% 33.00%,99.88% 34.00%,99.97% 35.00%,99.71% 36.00%,99.88% 37.00%,99.62% 38.00%,99.80% 39.00%,99.79% 40.00%,99.94% 41.00%,99.66% 42.00%,99.90% 43.00%,99.67% 44.00%,99.99% 45.00%,99.59% 46.00%,98.43% 47.00%,99.91% 48.00%,99.60% 49.00%,99.94% 50.00%,99.61% 51.00%,99.74% 52.00%,99.93% 53.00%,99.98% 54.00%,99.84% 55.00%,99.98% 56.00%,99.69% 57.00%,99.94% 58.00%,99.87% 59.00%,99.79% 60.00%,98.68% 61.00%,99.94% 62.00%,99.79% 63.00%,99.77% 64.00%,99.89% 65.00%,99.89% 66.00%,99.78% 67.00%,99.90% 68.00%,99.69% 69.00%,99.70% 70.00%,99.96% 71.00%,99.96% 72.00%,99.75% 73.00%,99.63% 74.00%,99.86% 75.00%,99.99% 76.00%,99.98% 77.00%,99.60% 78.00%,99.91% 79.00%,99.59% 80.00%,99.66% 81.00%,99.74% 82.00%,99.90% 83.00%,99.74% 84.00%,99.84% 85.00%,99.65% 86.00%,99.66% 87.00%,99.64% 88.00%,99.75% 89.00%,99.69% 90.00%,99.20% 91.00%,99.98% 92.00%,99.80% 93.00%,100.00% 94.00%,99.63% 95.00%,99.82% 96.00%,99.96% 97.00%,99.93% 98.00%,99.84% 99.00%,99.94% 100.00%,99.17% 99.83%,98.33% 99.83%,97.50% 98.37%,96.67% 99.78%,95.83% 99.59%,95.00% 99.72%,94.17% 99.93%,93.33% 99.83%,92.50% 99.56%,91.67% 99.10%,90.83% 99.95%,90.00% 99.42%,89.17% 99.81%,88.33% 99.83%,87.50% 99.57%,86.67% 99.86%,85.83% 99.44%,85.00% 99.74%,84.17% 100.00%,83.33% 99.53%,82.50% 99.97%,81.67% 99.41%,80.83% 99.79%,80.00% 99.96%,79.17% 99.71%,78.33% 99.97%,77.50% 99.97%,76.67% 99.96%,75.83% 99.76%,75.00% 98.59%,74.17% 99.89%,73.33% 99.76%,72.50% 99.95%,71.67% 99.94%,70.83% 99.45%,70.00% 99.49%,69.17% 99.99%,68.33% 99.71%,67.50% 99.77%,66.67% 99.56%,65.83% 99.82%,65.00% 99.50%,64.17% 99.93%,63.33% 99.95%,62.50% 99.51%,61.67% 99.92%,60.83% 99.85%,60.00% 99.74%,59.17% 99.85%,58.33% 98.82%,57.50% 99.83%,56.67% 99.94%,55.83% 99.81%,55.00% 99.67%,54.17% 99.61%,53.33% 99.66%,52.50% 99.51%,51.67% 99.43%,50.83% 99.58%,50.00% 99.51%,49.17% 99.92%,48.33% 99.90%,47.50% 99.59%,46.67% 99.96%,45.83% 99.03%,45.00% 99.92%,44.17% 99.48%,43.33% 99.63%,42.50% 99.74%,41.67% 98.73%,40.83% 99.50%,40.00% 99.94%,39.17% 99.90%,38.33% 99.73%,37.50% 99.52%,36.67% 99.81%,35.83% 99.72%,35.00% 99.74%,34.17% 99.44%,33.33% 99.42%,32.50% 99.94%,31.67% 98.37%,30.83% 99.98%,30.00% 99.71%,29.17% 99.76%,28.33% 99.83%,27.50% 99.66%,26.67% 99.55%,25.83% 99.79%,25.00% 99.41%,24.17% 99.49%,23.33% 99.76%,22.50% 99.50%,21.67% 99.98%,20.83% 99.94%,20.00% 99.46%,19.17% 99.52%,18.33% 99.59%,17.50% 99.63%,16.67% 98.76%,15.83% 99.65%,15.00% 99.77%,14.17% 99.98%,13.33% 99.77%,12.50% 99.58%,11.67% 99.41%,10.83% 99.45%,10.00% 99.60%,9.17% 99.52%,8.33% 99.64%,7.50% 99.69%,6.67% 99.95%,5.83% 99.79%,5.00% 99.54%,4.17% 99.82%,3.33% 99.84%,2.50% 99.96%,1.67% 99.60%,0.83% 99.46%,0.00% 99.50%,0.26% 99.00%,0.22% 98.00%,0.10% 97.00%,0.23% 96.00%,0.00% 95.00%,0.07% 94.00%,0.38% 93.00%,0.26% 92.00%,0.05% 91.00%,0.23% 90.00%,0.16% 89.00%,0.09% 88.00%,0.11% 87.00%,0.38% 86.00%,0.27% 85.00%,0.09% 84.00%,0.24% 83.00%,0.37% 82.00%,0.18% 81.00%,0.22% 80.00%,0.13% 79.00%,0.25% 78.00%,0.77% 77.00%,0.24% 76.00%,0.08% 75.00%,0.25% 74.00%,0.29% 73.00%,0.03% 72.00%,0.35% 71.00%,0.13% 70.00%,0.27% 69.00%,0.10% 68.00%,0.35% 67.00%,0.04% 66.00%,0.07% 65.00%,0.06% 64.00%,0.04% 63.00%,0.31% 62.00%,0.34% 61.00%,0.39% 60.00%,0.26% 59.00%,0.04% 58.00%,0.03% 57.00%,0.16% 56.00%,0.29% 55.00%,0.04% 54.00%,0.23% 53.00%,0.05% 52.00%,0.16% 51.00%,0.21% 50.00%,0.40% 49.00%,0.32% 48.00%,0.12% 47.00%,0.20% 46.00%,0.31% 45.00%,0.16% 44.00%,0.21% 43.00%,0.33% 42.00%,0.12% 41.00%,0.36% 40.00%,0.02% 39.00%,0.10% 38.00%,0.03% 37.00%,0.04% 36.00%,0.41% 35.00%,0.16% 34.00%,0.04% 33.00%,1.55% 32.00%,0.95% 31.00%,0.19% 30.00%,0.99% 29.00%,0.41% 28.00%,0.20% 27.00%,0.12% 26.00%,0.29% 25.00%,0.02% 24.00%,0.33% 23.00%,0.25% 22.00%,0.27% 21.00%,1.23% 20.00%,0.17% 19.00%,0.35% 18.00%,0.16% 17.00%,0.32% 16.00%,0.06% 15.00%,0.18% 14.00%,0.42% 13.00%,0.18% 12.00%,0.20% 11.00%,0.28% 10.00%,0.07% 9.00%,0.03% 8.00%,0.38% 7.00%,1.35% 6.00%,0.40% 5.00%,0.06% 4.00%,0.39% 3.00%,0.01% 2.00%,0.18% 1.00%); }
/* map-edge:end */
