/* Home page (/) — port of the owner's Claude Design landing
   (docs/designs/project/Landing.html). Loaded on top of adscriptura.css and
   site.css by web/index.html only. Every rule is scoped under `.landing`
   (the home's <body>) or an `l-` class, so the other pages never see it.
   Scroll scenes are driven by ./landing.js through CSS custom properties
   (--open, --s, --k, --a, --o, --c, …) set with the CSSOM: the CSP forbids
   inline style attributes, never CSSOM writes. Phones first (owner M8): every
   scene has a ≤820 px layout and is checked at 375 px. */

.landing {
  /* A file, not a data: URI: the CSP's img-src 'self' blocks data: masks,
     and a blocked mask hides the door and the author niches entirely. */
  --arch: url("/home/arch.svg");
  --nav-h: 64px;
  /* Stable viewport height: phones' collapsing URL bar must not resize scenes. */
  --vh: 100vh;
  overflow-x: clip;
}
@supports (height: 100svh) {
  .landing {
    --vh: 100svh;
  }
}
/* Its own stacking context: the 3D scenes (door, shelf, book) must never
   render over the fixed header. */
.landing main {
  display: block;
  position: relative;
  z-index: 0;
}

/* ── Shared pieces ──────────────────────────────────────────────────────── */
/* adscriptura.css gives every <section> 64 px of padding and a top rule. The
   scroll scenes are stages: that padding pushed each sticky stage 64 px
   down (owner M14: the hero cut at the bottom) and drew hairlines between
   scenes. The padded sections set their own padding further down. */
.landing main > section {
  border-top: none;
}
.l-hero,
.l-fan,
.l-illum,
.l-lib,
.l-night,
.l-lin,
.l-bind {
  padding: 0;
}

/* The stage fills the visible viewport. svh would leave a band of the
   section's own background under it once a phone's address bar collapses
   (owner M14: "hero cortado"), so it follows the dynamic height; the
   sections' scroll lengths stay on the stable --vh. */
.l-stick {
  position: sticky;
  top: 0;
  height: var(--vh);
  height: 100dvh;
  overflow: hidden;
}
.l-eb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.l-h2 {
  font-family: var(--f-roman);
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.01em;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 12px 0 0;
  text-wrap: balance;
}
.l-lede {
  font-family: var(--f-roman);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 16px 0 0;
  text-wrap: pretty;
}
.l-ph {
  display: block;
  width: clamp(210px, 22vw, 290px);
  aspect-ratio: 640 / 1392;
  border-radius: 38px;
  background: var(--bezel);
  padding: 8px;
  box-shadow: var(--sh-3);
}
.l-ph img,
.l-ph video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 31px;
}
.landing .stores .store {
  min-width: 200px;
}

/* ── Header ─────────────────────────────────────────────────────────────
   Same markup as every page (web/README). On the home it is not sticky
   (owner M11): it sits over the top of the door scene, transparent, and
   scrolls away with the first scroll. Its wordmark stays hidden — the hero's
   own wordmark is right below it — and hidden, not just transparent, so an
   invisible link is never the page's first Tab stop. */
.landing .s-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  /* It only ever sits over the night of the door, so it takes the night
     palette: the phone menu opens as a dark sheet, not a vellum one over
     the dark scene (owner). */
  --vellum: var(--night-bg);
  --nav-bg: var(--night-bg);
  --ink: var(--night-fg);
  --ink-2: var(--night-fg);
  --ink-3: var(--night-fg-2);
  --rule-soft: var(--night-rule);
  --sanguine: var(--night-rubric);
  --sh-chrome: 0 1px 0 var(--night-rule), 0 4px 16px rgba(0, 0, 0, 0.5);
}
.landing .s-mark {
  visibility: hidden;
}
.landing .s-nav:not(:has(.s-menu[open])) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing .s-nav:not(:has(.s-menu[open])) .s-links a {
  color: var(--night-fg);
}
.landing .s-nav:not(:has(.s-menu[open])) .s-links a:hover {
  color: var(--night-rubric);
}
.landing .s-nav:not(:has(.s-menu[open])) .s-theme,
.landing .s-nav:not(:has(.s-menu[open])) .s-menu summary {
  color: var(--night-fg-2);
  box-shadow: inset 0 0 0 1px var(--night-rule);
}

/* Bookmark ribbon: hangs from the very top of the page and grows with the
   scroll, its tip reaching the bottom of the screen at the end of the page. */
.l-ribbon {
  position: fixed;
  left: clamp(12px, 2.6vw, 36px);
  top: 0;
  width: 16px;
  height: calc(
    var(--nav-h) + 36px + var(--rp, 0) * (var(--vh) - var(--nav-h) - 56px)
  );
  z-index: 15;
  background: repeating-linear-gradient(
    90deg,
    var(--sanguine) 0 2px,
    var(--sanguine-ink) 2px 3px
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 11px), 0 100%);
  pointer-events: none;
}

/* ── 01 Pórtico ─────────────────────────────────────────────────────────── */
.l-hero {
  height: calc(var(--vh) * 3.4);
  position: relative;
  background: var(--night-bg);
  color: var(--night-fg);
}
.l-rose {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(150vh, 150vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  opacity: 0.42;
  background:
    repeating-conic-gradient(
      oklch(0.78 0.09 82 / 0.22) 0 0.5deg,
      transparent 0.5deg 15deg
    ),
    repeating-radial-gradient(
      circle,
      transparent 0 46px,
      oklch(0.78 0.09 82 / 0.16) 46px 47px
    );
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%);
  mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: l-spin 300s linear infinite;
}
@keyframes l-spin {
  to {
    rotate: 360deg;
  }
}
.l-floor {
  position: absolute;
  left: 50%;
  top: calc(57% + min(21vh, 200px));
  width: min(80vw, 900px);
  height: 40vh;
  translate: -50% 0;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(oklch(0.8 0.06 82 / 0.22), transparent 80%);
}
.l-door {
  position: absolute;
  left: 50%;
  top: 57%;
  height: min(42vh, 400px);
  aspect-ratio: 2 / 3;
  translate: -50% -50%;
  scale: var(--s, 1);
}
.l-door .glass {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
  /* Light behind the door: always the light vellum, whatever the theme. */
  background: radial-gradient(
    ellipse 80% 60% at 50% 32%,
    oklch(0.962 0.014 84) 0,
    oklch(0.935 0.02 82) 55%,
    oklch(0.905 0.024 80) 100%
  );
}
.l-door svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--gilt-soft);
  stroke-width: 1.2;
}
.l-door .halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420%;
  height: 300%;
  translate: -50% -50%;
  background: radial-gradient(
    closest-side,
    oklch(0.96 0.05 84 / 0.5),
    oklch(0.85 0.08 80 / 0.14) 45%,
    transparent
  );
  opacity: var(--open, 0);
  pointer-events: none;
}
.l-door .leaves {
  opacity: var(--lf, 1);
  position: absolute;
  inset: 0;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
  perspective: 700px;
}
.l-door .leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  filter: brightness(calc(1 - var(--open, 0) * 0.45));
  background:
    linear-gradient(
      transparent 24%,
      oklch(0.16 0.012 55) 24% 26.5%,
      transparent 26.5% 73%,
      oklch(0.16 0.012 55) 73% 75.5%,
      transparent 75.5%
    ),
    repeating-linear-gradient(
      90deg,
      oklch(0.24 0.03 52) 0 1.5px,
      transparent 1.5px 25%
    ),
    repeating-linear-gradient(
      0deg,
      oklch(0.4 0.045 58 / 0.35) 0 1px,
      transparent 1px 7px
    ),
    linear-gradient(
      90deg,
      oklch(0.34 0.042 55),
      var(--oak) 50%,
      oklch(0.33 0.04 54)
    );
}
.l-door .leaf.l {
  left: 0;
  transform-origin: left center;
  transform: rotateY(calc(var(--open, 0) * 96deg));
  box-shadow: inset -1px 0 0 oklch(0.16 0.012 55);
}
.l-door .leaf.r {
  right: 0;
  transform-origin: right center;
  transform: rotateY(calc(var(--open, 0) * -96deg));
  box-shadow: inset 1px 0 0 oklch(0.16 0.012 55);
}
.l-door .leaf::after {
  content: "";
  position: absolute;
  top: 56%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gilt-soft);
  opacity: 0.8;
}
.l-door .leaf.l::after {
  right: 8%;
}
.l-door .leaf.r::after {
  left: 8%;
}
.l-door .seam {
  position: absolute;
  left: 50%;
  top: 14%;
  bottom: 0;
  width: 2px;
  translate: -50% 0;
  background: linear-gradient(
    transparent,
    oklch(0.95 0.06 84 / 0.9) 20%,
    oklch(0.98 0.04 84)
  );
  box-shadow: 0 0 14px 3px oklch(0.92 0.07 82 / 0.55);
  opacity: calc(1 - var(--open, 0) * 3);
}
.l-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.l-htop {
  position: absolute;
  top: calc(var(--nav-h) + 4vh);
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 24px;
}
.l-htop .l-eb {
  color: var(--night-fg-2);
}
.l-mark {
  font-family: var(--f-black);
  font-size: clamp(56px, 8.4vw, 128px);
  line-height: 1;
  color: var(--night-fg);
  margin: 14px 0 0;
  font-weight: 400;
}
.l-hint {
  position: absolute;
  bottom: 4vh;
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--night-fg-2);
}
.l-hint i {
  width: 1px;
  height: 42px;
  background: var(--night-fg-2);
  transform-origin: top;
  animation: l-drip 2.2s ease-in-out infinite;
}
@keyframes l-drip {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
/* The page behind the door: the light vellum (or the night page in dark). */
.l-hin {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: var(--nav-h) clamp(28px, 7vw, 96px) 0;
  color: var(--ink);
  opacity: 0;
  /* Only transparent while the door is shut, never hidden: the page's h1
     and lede stay in the accessibility tree from the first paint. */
  pointer-events: none;
}
.l-hin.on {
  pointer-events: auto;
}
.l-h1 {
  font-family: var(--f-roman);
  font-weight: 500;
  font-variant: small-caps;
  font-size: clamp(30px, 4.1vw, 62px);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.l-h1 .l-eb {
  display: block;
  margin-bottom: 14px;
  font-variant: normal;
  line-height: 1.3;
}
.l-eb.rub {
  color: var(--sanguine);
}
.l-hin .l-lede {
  max-width: 46ch;
  font-size: clamp(17px, 1.45vw, 22px);
}
.l-hin .stores {
  margin-top: 28px;
}
.l-trio {
  position: relative;
  width: clamp(210px, 20vw, 290px);
  aspect-ratio: 640 / 1392;
  --k: 1;
  margin: 0 clamp(40px, 6vw, 90px);
  will-change: transform;
}
.l-trio .l-ph {
  position: absolute;
  inset: 0;
  width: 100%;
}
.l-trio .l-ph.l,
.l-trio .l-ph.r {
  scale: 0.86;
}
.l-trio .l-ph.l {
  translate: calc(var(--k) * -44%) 5%;
  rotate: calc(var(--k) * -7deg);
}
.l-trio .l-ph.r {
  translate: calc(var(--k) * 44%) 5%;
  rotate: calc(var(--k) * 7deg);
}
/* The vellum the door opens onto fills in behind the hero copy. */
.l-hero .l-stick::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--vellum);
  opacity: var(--hk, 0);
  pointer-events: none;
}
.l-hin {
  z-index: 1;
}

/* ── 01b Telas ──────────────────────────────────────────────────────────── */
.l-fan {
  height: calc(var(--vh) * 2.8);
  position: relative;
  background: var(--vellum);
}
.l-fan .l-stick {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + 5vh);
  /* Cards wait beyond the right edge: with overflow: hidden, tabbing to one
     scrolls the stage sideways and shifts the whole row. clip cannot scroll. */
  overflow: clip;
}
.l-fan-head {
  text-align: center;
  padding: 0 24px;
}
.l-fan-head .l-h2 {
  font-size: clamp(30px, 4.6vw, 66px);
  margin: 0;
}
/* The same voice as the hero's lede (.l-lede): Cormorant italic. */
.l-fan-sub {
  font-family: var(--f-roman);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 40em;
  margin: 18px auto 0;
  text-wrap: balance;
}
.l-deck {
  position: relative;
  flex: 1;
}
/* Each card is placed by landing.js (translateX); it rests upright, its
   bottom edge on a common line, its label below. */
.l-card {
  display: block;
  position: absolute;
  left: 0;
  bottom: calc(6vh + 44px);
  width: var(--pw, 160px);
  opacity: calc(0.25 + var(--lk, 0) * 0.75);
  color: inherit;
  border: none;
}
.l-card .l-ph {
  width: 100%;
  border-radius: calc(var(--pw, 160px) * 0.15);
  padding: calc(var(--pw, 160px) * 0.03);
  transition: translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.l-card .l-ph img {
  border-radius: calc(var(--pw, 160px) * 0.12);
}
.l-card:hover .l-ph,
.l-card:focus-visible .l-ph {
  translate: 0 -16px;
}
.l-card:focus-visible {
  outline: none;
}
.l-card .lb {
  position: absolute;
  left: -30%;
  right: -30%;
  top: calc(100% + 16px);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: var(--lk, 0);
}
.l-card:hover .lb {
  color: var(--sanguine);
}

/* ── 02 Iluminura ───────────────────────────────────────────────────────── */
@property --f {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.l-illum {
  height: calc(var(--vh) * 2);
  position: relative;
  background: var(--vellum);
}
.l-illum .l-stick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 0 clamp(28px, 8vw, 120px);
}
.l-illum .l-stick > div {
  min-width: 0;
  width: 100%;
}
.l-verse {
  max-width: 17em;
  font-size: clamp(32px, 5vw, 74px);
  line-height: 1.16;
  text-wrap: balance;
  margin: 0;
}
.l-verse .cap {
  float: left;
  font-family: var(--f-black);
  font-size: 2.55em;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  background: linear-gradient(
    to top,
    var(--sanguine) var(--f, 0%),
    var(--rule-soft) var(--f, 0%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: --f 1.1s ease-out;
}
.l-verse .cap.on {
  --f: 100%;
}
/* Words wait for the voice only when scripts run (theme-init marks <html>). */
:root[data-theme-choice] .l-verse .w {
  display: inline-block;
  opacity: 0.07;
  filter: blur(6px);
  transform: translateY(0.12em);
  transition:
    opacity 0.7s,
    filter 0.7s,
    transform 0.7s,
    color 1.2s;
}
:root[data-theme-choice] .l-verse .w.on {
  opacity: 1;
  filter: none;
  transform: none;
  color: var(--ink);
}
.l-verse .w.now {
  color: var(--sanguine);
}
.l-narr {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
:root[data-theme-choice] .l-narr {
  display: flex;
}
.l-nbtn {
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 16px;
  background: none;
  border: 1px solid var(--rule-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}
.l-nbtn:hover {
  border-color: var(--sanguine);
  color: var(--sanguine);
}
.l-nbar {
  flex: 0 1 160px;
  width: 160px;
  height: 2px;
  background: var(--rule-soft);
  overflow: hidden;
}
.l-nbar i {
  display: block;
  height: 100%;
  background: var(--sanguine);
  transform-origin: left;
  transform: scaleX(var(--np, 0));
  transition: transform 0.4s;
}
.l-vfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
:root[data-theme-choice] .l-vfoot {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
:root[data-theme-choice] .l-vfoot.show {
  opacity: 1;
  transform: none;
}
.l-vfoot b {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--sanguine);
  text-transform: uppercase;
}
.l-vfoot i {
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--rule-soft);
}
.l-vfoot span {
  font-style: italic;
  color: var(--ink-2);
  font-size: 18px;
}

/* ── 03 A lente ─────────────────────────────────────────────────────────── */
.l-lens {
  position: relative;
  background: var(--vellum-2);
  padding: clamp(96px, 14vh, 150px) clamp(28px, 7vw, 96px);
}
.l-lens-in {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.l-stage {
  position: relative;
  margin-top: 40px;
  touch-action: pan-y;
  --x: -999px;
  --y: -999px;
  --r: clamp(64px, 8vw, 104px);
}
@media (hover: hover) {
  .l-stage {
    cursor: none;
  }
}
.l-stage .lay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.42em;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.25;
}
.l-stage .c {
  display: grid;
  padding: 0.12em 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: inherit;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow 0.2s;
}
.l-stage .c > * {
  grid-area: 1 / 1;
  text-align: center;
  align-self: center;
}
.l-stage .c.sel {
  box-shadow: inset 0 -2px 0 var(--sanguine);
}
.l-stage .c:focus-visible {
  outline: 2px solid var(--sanguine);
  outline-offset: 2px;
}
/* Portuguese outside the lens, Greek inside it: both sit in the same grid
   cell of each word, masked by one circle. landing.js gives every word the
   lens centre in its own coordinates (--mx, --my). */
.l-stage .t {
  -webkit-mask: radial-gradient(
    circle var(--r) at var(--mx, -999px) var(--my, -999px),
    transparent calc(100% - 1px),
    #000
  );
  mask: radial-gradient(
    circle var(--r) at var(--mx, -999px) var(--my, -999px),
    transparent calc(100% - 1px),
    #000
  );
}
.l-stage .gr {
  display: grid;
  justify-items: center;
  line-height: 1;
  -webkit-mask: radial-gradient(
    circle var(--r) at var(--mx, -999px) var(--my, -999px),
    #000 calc(100% - 1px),
    transparent
  );
  mask: radial-gradient(
    circle var(--r) at var(--mx, -999px) var(--my, -999px),
    #000 calc(100% - 1px),
    transparent
  );
}
.l-stage .gr b {
  font-weight: 400;
  color: var(--sanguine-ink);
}
.l-stage .gr i {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.26em;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 0.5em;
}
/* Moved by translate, not left/top: it follows the lens every frame, and a
   translate skips layout. */
.l-stage .ring {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--r) * 2);
  aspect-ratio: 1;
  translate: calc(var(--x) - 50%) calc(var(--y) - 50%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 1.5px var(--gilt-soft),
    0 0 0 5px oklch(0.78 0.09 82 / 0.25),
    0 18px 30px -14px oklch(0.3 0.04 55 / 0.35),
    inset 0 0 30px oklch(0.98 0.02 84 / 0.35);
}
.l-stage .ring::after {
  content: "";
  position: absolute;
  left: 86%;
  top: 86%;
  width: 9px;
  height: 64px;
  background: var(--oak);
  rotate: -45deg;
  transform-origin: top;
  box-shadow: var(--sh-1);
}
.l-lex {
  background: var(--vellum);
  box-shadow: var(--sh-3);
  padding: 28px 28px 30px;
  min-height: 300px;
}
.l-lex .kick {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.l-lex .lem {
  font-size: 58px;
  line-height: 1.1;
  color: var(--ink);
  margin: 14px 0 0;
}
.l-lex .tr {
  font-style: italic;
  color: var(--ink-2);
  font-size: 19px;
}
.l-lex .pos {
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-size: 18px;
  color: var(--sanguine);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.l-lex .lxg {
  font-size: 17px;
  line-height: 1.45;
  margin: 8px 0 0;
  text-wrap: pretty;
}
.l-lex .ent.anim {
  animation: l-lexin 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes l-lexin {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(3px);
  }
}
.l-hintline {
  font-style: italic;
  color: var(--ink-3);
  font-size: 15px;
  margin: 22px 0 0;
}

/* ── 04 Biblioteca ──────────────────────────────────────────────────────── */
.l-lib {
  height: calc(var(--vh) * 3.6);
  position: relative;
  background: var(--night-bg);
  color: var(--night-fg);
}
/* Background photo: the owner's old library shelves (M7, M13). */
.l-libbg {
  position: absolute;
  inset: 0;
  background: var(--night-bg) url("/media/library-hall.webp") center 30% / cover
    no-repeat;
}
.l-libshade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    oklch(0.17 0.012 60 / 0.7),
    oklch(0.17 0.012 60 / 0.3) 40%,
    oklch(0.17 0.012 60 / 0.55) 70%
  );
}
.l-lib-head {
  position: absolute;
  top: calc(var(--nav-h) + clamp(16px, 6vh, 64px));
  left: clamp(48px, 9vw, 140px);
  right: clamp(28px, 7vw, 96px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  pointer-events: none;
}
.l-lib-head .l-eb {
  color: var(--night-fg-2);
}
.l-lib-head .l-h2 {
  max-width: 15em;
  color: var(--night-fg);
}
.l-lib-head .cnt {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--night-rubric);
}
.l-desk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36vh;
  perspective: 900px;
  pointer-events: none;
}
/* The desk's sides fall into the dark. Drawn on the screen, not on the
   tipped plane, where the same gradient would converge into a wedge; it
   fades out upward, or its top edge shows as a dark line across the hall
   (owner). */
.l-desk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 4, 2, 0.65),
    transparent 30% 70%,
    rgba(8, 4, 2, 0.65)
  );
  mask-image: linear-gradient(to top, #000 55%, transparent);
}
/* Wide enough that its side edges, converging in perspective, stay off
   screen. */
.l-desk .top {
  position: absolute;
  left: -90%;
  right: -90%;
  bottom: 6vh;
  height: 70vh;
  transform-origin: bottom;
  transform: rotateX(74deg);
  /* Oak planks (web/scripts/gen-covers.py), lit by the hall's candles: a
     warm pool where the books stand, the row's contact shadow at its foot,
     the far end and the sides falling into the dark. */
  background:
    radial-gradient(ellipse 9% 5% at 50% 97%, rgba(0, 0, 0, 0.55), transparent),
    linear-gradient(to top, transparent 20%, oklch(0.1 0.01 55 / 0.85)),
    radial-gradient(
      ellipse 16% 75% at 50% 100%,
      rgba(255, 186, 104, 0.24),
      transparent 70%
    ),
    #4a3220 url("/media/wood/desk.webp") center bottom / 1400px auto;
}
.l-desk .apron {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6vh;
  /* The desk's front edge: the same oak, end on, out of the light. */
  background:
    linear-gradient(rgba(10, 5, 2, 0.35), rgba(10, 5, 2, 0.75)),
    #3a2618 url("/media/wood/desk.webp") center / 1400px auto;
  box-shadow: 0 -1px 0 oklch(0.55 0.06 62 / 0.8);
}
.l-row {
  position: absolute;
  left: 50%;
  bottom: calc(6vh + 14px);
  translate: calc(-50% + var(--shift, 0px)) 0;
  transition: translate 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  align-items: flex-end;
  perspective: 1600px;
  --z: 1.3;
  transform-origin: 50% 100%;
  scale: var(--fit, 1);
}
.l-row .b3 {
  position: relative;
  flex: none;
  width: var(--t, 44px);
  height: calc(203px * var(--z));
  margin: 0 1px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  transform-style: preserve-3d;
  transition:
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    margin 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
}
/* Spines in the app's category leathers (web/scripts/gen-covers.py). */
.l-row .b3.cv-livros {
  --bg: url("/media/covers/livros-spine.webp") center / 100% 100%;
}
.l-row .b3.cv-comentarios {
  --bg: url("/media/covers/comentarios-spine.webp") center / 100% 100%;
}
.l-row .b3.cv-catecismos {
  --bg: url("/media/covers/catecismos-spine.webp") center / 100% 100%;
}
.l-row .b3.cv-confissoes {
  --bg: url("/media/covers/confissoes-spine.webp") center / 100% 100%;
}
.l-row .b3.cv-dicionarios {
  --bg: url("/media/covers/dicionarios-spine.webp") center / 100% 100%;
}
.l-row .b3.cv-sermoes {
  --bg: url("/media/covers/sermoes-spine.webp") center / 100% 100%;
}
.l-row .b3.cv-devocionais {
  --bg: url("/media/covers/devocionais-spine.webp") center / 100% 100%;
}
.l-row .b3:not(.on):hover {
  transform: translateY(-10px);
}
.l-row .b3:focus-visible {
  outline: 2px solid var(--night-rubric);
  outline-offset: 4px;
}
.l-row .b3 > .sp {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(132px * var(--z) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 0 12px;
  color: #dcb85f;
  /* The gilt catches the candlelight. */
  text-shadow: 0 0 6px rgba(255, 196, 110, 0.25);
  background:
    /* Candlelight from above: the head of the spine lit, its foot in the
       desk's shadow. */
    linear-gradient(
      rgba(255, 210, 140, 0.16),
      transparent 24% 66%,
      rgba(0, 0, 0, 0.38)
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.3),
      transparent 18%,
      rgba(255, 255, 255, 0.08) 45%,
      transparent 70%,
      rgba(0, 0, 0, 0.34)
    ),
    linear-gradient(
      transparent 26px,
      #9c7a2e 26px 27px,
      transparent 27px 30px,
      #9c7a2e 30px 31px,
      transparent 31px
    ),
    linear-gradient(
      to top,
      transparent 26px,
      #9c7a2e 26px 27px,
      transparent 27px
    ),
    var(--bg);
  box-shadow: 0 14px 20px -12px rgba(0, 0, 0, 0.6);
}
.l-row .b3 > .sp b {
  font-weight: 400;
  font-size: 8px;
  line-height: 1;
}
.l-row .b3 > .sp span {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 22px 0 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.l-row .b3 > .sp i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #9c7a2e;
}
.l-row .b3 > .cv {
  position: absolute;
  top: 0;
  left: calc((var(--t, 44px) - 132px * var(--z)) / 2);
  width: calc(132px * var(--z));
  height: 100%;
  transform: rotateY(90deg) translateZ(calc(var(--t, 44px) / 2));
}
.l-row .b3 .plate {
  display: flex;
  transform: scale(var(--z));
  transform-origin: 0 0;
}
.l-row .b3.on {
  transform: translateY(-20px) translateZ(calc(132px * var(--z) * 0.5));
}
.l-row .b3.on .cv {
  box-shadow: 0 30px 40px -18px rgba(0, 0, 0, 0.7);
}
/* GPU geometry follows the CSS books; transparent canvas keeps DOM controls
   and the closing page accessible. Loss of the ready class restores CSS. */
.l-book-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
/* Reveal only the first complete physical frame; retain CSS for failed/unsupported GPU paths. */
html[data-books-enhanced]
  .l-stick:not(.books-webgl):not(.books-fallback)
  .l-row,
html[data-books-enhanced]
  .l-stick:not(.books-webgl):not(.books-fallback)
  .l-book
  .blk,
html[data-books-enhanced]
  .l-stick:not(.books-webgl):not(.books-fallback)
  .l-book
  .cov {
  visibility: hidden;
}
.books-webgl .l-row .b3 > .sp,
.books-webgl .l-row .b3 > .cv,
.books-webgl .l-book .blk,
.books-webgl .l-book .cov {
  visibility: hidden;
}
/* The turned cover in the same light: a glint at the top left, the foot
   darker. */
.l-row .b3 > .cv::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 40% at 28% 12%,
      rgba(255, 214, 150, 0.32),
      transparent 70%
    ),
    linear-gradient(transparent 55%, rgba(0, 0, 0, 0.3));
  mix-blend-mode: screen;
}
/* Renaissance finishing shares one vector frame across CSS and GPU artwork. */
.landing .plate[class*="cv-"] {
  background: var(--leather) center / 100% 100%;
  border: 0;
  padding: 18px 15px 22px;
  box-shadow: inset 0 0 0 0.6px rgba(220, 184, 95, 0.25);
}
.landing .plate[class*="cv-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/media/covers/frame.svg") center / 100% 100%;
  pointer-events: none;
}
.landing .plate.cv-livros {
  --leather: url("/media/covers/livros.webp");
}
.landing .plate.cv-comentarios {
  --leather: url("/media/covers/comentarios.webp");
}
.landing .plate.cv-catecismos {
  --leather: url("/media/covers/catecismos.webp");
}
.landing .plate.cv-confissoes {
  --leather: url("/media/covers/confissoes.webp");
}
.landing .plate.cv-dicionarios {
  --leather: url("/media/covers/dicionarios.webp");
}
.landing .plate.cv-sermoes {
  --leather: url("/media/covers/sermoes.webp");
}
.landing .plate.cv-devocionais {
  --leather: url("/media/covers/devocionais.webp");
}
.landing .plate.cv-livros .crest {
  --emblem: url("/media/covers/emblem-column.svg");
}
.landing .plate.cv-comentarios .crest {
  --emblem: url("/media/covers/emblem-quill.svg");
}
.landing .plate.cv-catecismos .crest {
  --emblem: url("/media/covers/emblem-rose.svg");
}
.landing .plate.cv-confissoes .crest {
  --emblem: url("/media/covers/emblem-cross-shield.svg");
}
.landing .plate.cv-dicionarios .crest {
  --emblem: url("/media/covers/emblem-alpha-omega.svg");
}
.landing .plate.cv-sermoes .crest {
  --emblem: url("/media/covers/emblem-torch.svg");
}
.landing .plate .crest {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  margin: 8px 0 5px;
  background: var(--emblem, none) center / contain no-repeat;
}
.landing .plate .lat {
  font-family: var(--f-roman);
  font-weight: 600;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.12em;
}
.landing .plate .fil {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 0.6px;
  margin: 7px 0 9px;
}
.landing .plate .fil::after {
  content: "";
  position: absolute;
  left: calc(50% - 0.8px);
  top: -0.5px;
  width: 1.6px;
  height: 1.6px;
  transform: rotate(45deg);
  background: #dcb85f;
}
.landing .plate .ttl span {
  font-weight: 500;
  font-size: 16px;
}
.landing .plate .foot,
.landing .plate .orn,
.landing .plate .aut,
.landing .plate .yr {
  display: block;
}
.landing .plate .orn {
  display: flex;
  margin-bottom: 9px;
}
.landing .plate .aut {
  font-size: 11px;
  color: #dcb85f;
}
.landing .plate .yr {
  font-family: var(--f-roman);
  font-size: 10px;
  line-height: 1;
  color: #dcb85f;
  letter-spacing: 0.04em;
  opacity: 1;
  margin-top: 5px;
}

/* ── 05 Vela ────────────────────────────────────────────────────────────── */
.l-night {
  position: relative;
  background: var(--night-bg);
  color: var(--night-fg);
  min-height: var(--vh);
  overflow: hidden;
  display: grid;
  align-items: center;
  --x: 50%;
  --y: 50%;
  --r: 260px;
}
@media (hover: hover) {
  .l-night {
    cursor: none;
  }
}
.l-night-in {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(96px, 14vh, 150px) clamp(28px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.l-night .l-eb {
  color: var(--night-fg-2);
}
.l-psalm {
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.12;
  margin: 18px 0 0;
  font-weight: 400;
  text-wrap: balance;
}
.l-psalm em {
  color: var(--night-rubric);
}
.l-night .ref {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-rubric);
  margin-top: 22px;
}
.l-night .sub {
  font-family: var(--f-roman);
  font-style: italic;
  font-size: 21px;
  color: var(--night-fg-2);
  margin: 10px 0 0;
  max-width: 34ch;
}
/* The app stays under the dark like the psalm: only the candle shows it. */
.l-night .l-ph {
  background: #000;
}
.l-dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    oklch(0.8 0.08 75 / 0.1) 0,
    transparent 35%,
    oklch(0.12 0.01 60 / 0.7) 62%,
    oklch(0.11 0.01 60 / 0.965) 100%
  );
}
/* The flame passes in front of everything, the app's screen included
   (owner M14). It moves every frame, so by translate: no layout. */
.l-flame {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 12px;
  height: 22px;
  translate: calc(var(--x) - 50%) calc(var(--y) - 90%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(
    ellipse at 50% 75%,
    #fff6d8 0,
    oklch(0.85 0.12 82) 35%,
    oklch(0.62 0.16 45) 75%,
    transparent 80%
  );
  filter: blur(0.4px);
  animation: l-flicker 0.18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes l-flicker {
  to {
    transform: scaleY(1.12) skewX(3deg);
  }
}

/* ── 06 Linhagem ────────────────────────────────────────────────────────── */
.l-lin {
  height: calc(var(--vh) * 2.4);
  position: relative;
  background: var(--vellum);
}
.l-lin .l-stick {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(20px, 5vh, 48px);
  padding: var(--nav-h) 24px 0;
}
.l-lin-t {
  text-align: center;
}
.l-lin-t .mk {
  font-family: var(--f-black);
  font-size: clamp(40px, 6.4vw, 100px);
  line-height: 1;
  text-wrap: balance;
  margin: 10px 0 0;
  font-weight: 400;
}
.l-row3 {
  position: relative;
  display: flex;
  gap: clamp(14px, 6vw, 96px);
  justify-content: center;
}
.l-row3 .thread {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 42%;
  height: 1.5px;
  background: var(--sanguine);
  transform-origin: left;
  transform: scaleX(var(--t, 0));
}
.l-row3 .ni {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: calc(var(--k, 0) * 1.4);
  transform: translateY(calc((1 - var(--k, 0)) * 40px));
}
.l-row3 .niche {
  width: clamp(96px, 17vw, 230px);
  aspect-ratio: 2 / 3;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
  background: var(--vellum-3);
  box-shadow: var(--sh-3);
}
.l-row3 .niche img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35) contrast(1.06) brightness(0.98);
  clip-path: inset(calc((1 - var(--k, 0)) * 100%) 0 0 0);
  scale: calc(1.15 - var(--k, 0) * 0.15);
}
.l-row3 figcaption {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.l-row3 .nm {
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.1;
  margin-top: 6px;
}
.l-row3 .dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sanguine);
}
.l-lin .l-lede {
  text-align: center;
  margin: 0 auto;
  opacity: var(--o, 0);
}

/* ── 07 Catecismo ───────────────────────────────────────────────────────── */
.l-cat {
  background: var(--vellum-2);
  position: relative;
  padding: clamp(96px, 14vh, 150px) clamp(28px, 7vw, 96px);
}
.l-cat-in {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
/* The live question, drawn like the app's catechism runner
   (app/src/modules/library/presentation/components/quiz/CatechismRunner.tsx):
   fleuron, blackletter title, roman question number, four answer sheets,
   the proofs footnote, "Responder", and the verdict in the divider's place.
   Verdict colours are the app's quizColors (app/tokens/tokens.ts, light). */
.l-qc {
  --q-ok: #266739;
  --q-ok-wash: #d1f2d7;
  --q-ok-line: #62946c;
  --q-bad: #85362e;
  --q-bad-wash: #f8ded8;
  --q-bad-line: #c37d71;
  --q-pick-wash: #f8ded8;
  display: grid;
  justify-items: center;
  text-align: center;
  background: var(--vellum);
  box-shadow: var(--sh-3);
  padding: clamp(22px, 3vw, 40px) clamp(16px, 3vw, 36px);
}
.l-qc .fleuron {
  width: 150px;
  height: 31px;
  fill: var(--sanguine);
}
.l-qc .fleuron .scroll {
  fill: none;
  stroke: var(--sanguine);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.l-qc .fleuron .eye {
  fill: var(--vellum);
}
.l-qc .qt {
  font-family: var(--f-black);
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.12;
  margin-top: 14px;
  text-wrap: balance;
}
.l-qc .qn {
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--sanguine);
  margin-top: 10px;
}
.l-qc .qq {
  font-family: var(--f-roman);
  font-style: italic;
  font-size: clamp(22px, 2.1vw, 27px);
  line-height: 1.3;
  margin: 14px 0 0;
  text-wrap: balance;
}
/* The divider: a lozenge between two rules; once answered, the verdict. */
.l-qc .verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 260px);
  margin: 16px 0 18px;
}
.l-qc .verdict > i {
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}
.l-qc .verdict .lz {
  width: 7px;
  height: 7px;
  background: var(--sanguine);
  rotate: 45deg;
}
.l-qc .verdict .v {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-size: 17px;
  letter-spacing: 0.14em;
}
.l-qc .verdict .v .mk {
  width: 14px;
  height: 14px;
}
.l-qc .verdict .v.ok {
  color: var(--q-ok);
}
.l-qc .verdict .v.bad {
  color: var(--q-bad);
}
.l-qc.right .verdict > i {
  background: var(--q-ok-line);
}
.l-qc.wrong .verdict > i {
  background: var(--q-bad-line);
}
.l-qc.right .verdict .lz,
.l-qc.wrong .verdict .lz {
  display: none;
}
.l-qc.right .verdict .v.ok,
.l-qc.wrong .verdict .v.bad {
  display: inline-flex;
}
.l-qc .opts {
  display: grid;
  gap: 10px;
  width: 100%;
}
.l-qc .choice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 16px 12px 8px;
  border: 1px solid transparent;
  border-left-width: 2px;
  background: var(--vellum-2);
  box-shadow: var(--sh-1);
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    opacity 0.3s;
}
.l-qc .choice:focus-visible {
  outline: 2px solid var(--sanguine);
  outline-offset: 2px;
}
.l-qc .choice .letter {
  font-family: var(--f-black);
  font-size: 28px;
  line-height: 1;
  color: var(--sanguine);
  text-align: center;
}
.l-qc .choice .ctx {
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.35;
}
.l-qc .choice .mk {
  display: none;
  justify-self: center;
  width: 18px;
  height: 18px;
}
.l-qc .mk {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.l-qc .choice[aria-checked="true"] {
  border-color: var(--sanguine);
  background: var(--q-pick-wash);
}
.l-qc .choice.is-ok {
  border-color: var(--q-ok-line);
  background: var(--q-ok-wash);
  color: var(--ink);
}
.l-qc .choice.is-bad {
  border-color: var(--q-bad-line);
  background: var(--q-bad-wash);
}
.l-qc .choice.is-ok .letter,
.l-qc .choice.is-bad .letter {
  display: none;
}
.l-qc .choice.is-ok .mk.ok {
  display: block;
  color: var(--q-ok);
}
.l-qc .choice.is-bad .mk.bad {
  display: block;
  color: var(--q-bad);
}
.l-qc .choice.is-dim {
  opacity: 0.55;
}
.l-qc .choice:disabled {
  cursor: default;
}
.l-qc .why {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  text-align: left;
  background: var(--q-bad-wash);
  border: 1px solid var(--q-bad-line);
}
.l-qc .whyk {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--q-bad);
}
.l-qc .why p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.45;
}
/* The proofs footnote, under a double rule, as in the app's ProofPanel. */
.l-qc .proofs {
  width: 100%;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 3px double var(--rule-soft);
  text-align: left;
}
.l-qc .pk {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
}
.l-qc .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.l-qc .chips .bref {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--rule-soft);
  background: var(--vellum);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--sanguine);
  text-decoration: none;
}
.l-qc .answer {
  min-height: 48px;
  min-width: 180px;
  margin-top: 20px;
  padding: 0 28px;
  border: none;
  background: var(--sanguine);
  color: var(--vellum);
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-size: 19px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.l-qc .answer:disabled {
  opacity: 0.4;
  cursor: default;
}
.l-qc .answer:focus-visible,
.l-qc .redo:focus-visible {
  outline: 2px solid var(--sanguine);
  outline-offset: 3px;
}
.l-qc .redo {
  min-height: 44px;
  margin-top: 14px;
  background: none;
  border: none;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 16px;
  color: var(--sanguine);
  cursor: pointer;
}
.l-qc .count {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ── 07a Devocionais ────────────────────────────────────────────────────── */
.l-dev {
  background: var(--vellum);
  position: relative;
  padding: clamp(96px, 14vh, 150px) clamp(28px, 7vw, 96px);
}
.l-dev-in {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.l-dev-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 2.4vw, 28px);
  padding-bottom: 36px;
}
.l-dev-card {
  margin: 0;
  flex: 0 1 280px;
  min-width: 0;
  aspect-ratio: 640 / 1138;
  box-shadow: var(--sh-3);
  background: var(--bezel);
  border-radius: 6px;
  overflow: hidden;
}
.l-dev-card:first-child {
  transform: rotate(-1.5deg);
}
.l-dev-card:last-child {
  transform: translateY(36px) rotate(1.5deg);
}
.l-dev-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.l-dev-book {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--vellum-3);
  max-width: 42ch;
}
.l-dev-book .t {
  font-family: var(--f-roman);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.15;
}
.l-dev-book .m {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sanguine);
}
.l-dev-note {
  font-family: var(--f-roman);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* ── 07b Sumário (the app tour) ─────────────────────────────────────────── */
.l-tour {
  position: relative;
  /* The big chapter letter runs past the right edge on tablets; clip, not
     hidden, keeps the sticky frame working. */
  overflow-x: clip;
  background: var(--vellum);
  padding-top: clamp(96px, 14vh, 150px);
}
/* Owner: the tour's heading in the blackletter of the wordmark. */
.l-tour-head .l-h2 {
  font-family: var(--f-black);
  font-variant: normal;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
}
/* Owner M14: the heading stays at the top while the chapters scroll, and
   leaves with the section. tour.js publishes its height as --th so the
   phone pins right under it. */
.l-tour-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--vellum);
  padding: 18px max(clamp(28px, 7vw, 96px), calc((100% - 1180px) / 2)) 14px;
  box-shadow: 0 14px 16px -16px oklch(0.3 0.04 55 / 0.35);
}
.l-tour-head .l-h2 {
  margin: 0;
}
.l-tour-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(24px, 4vw, 64px);
}
.l-tstage {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: var(--th, 0px);
  height: calc(100dvh - var(--th, 0px));
  display: grid;
  place-items: center;
}
.l-tour .chs {
  grid-column: 1;
  grid-row: 1;
}
.l-tour .ch {
  min-height: var(--vh);
  display: grid;
  align-content: center;
  scroll-margin-top: var(--th, 0px);
}
:root[data-theme-choice] .l-tour .ch {
  opacity: 0.18;
  transform: translateY(18px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
:root[data-theme-choice] .l-tour .ch.on {
  opacity: 1;
  transform: none;
}
.l-tour .cn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sanguine);
}
.l-tour .ch .l-h2 {
  max-width: 14em;
}
.l-tour .ch p,
.l-tour .ch li {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.l-tour .ch p {
  margin: 16px 0 0;
  max-width: 34em;
}
.l-tour .ch ul,
.l-tour .ch ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  max-width: 34em;
}
.l-tour .ch li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--rule-soft);
}
.l-tour .ch ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  background: var(--sanguine);
  rotate: 45deg;
}
.l-tour .ch ol {
  counter-reset: s;
}
.l-tour .ch ol li {
  counter-increment: s;
}
.l-tour .ch ol li::before {
  content: counter(s, upper-roman);
  position: absolute;
  left: 0;
  top: 0.75em;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--sanguine);
}
.l-tour .ch li i {
  display: block;
  font-size: 0.88em;
  color: var(--ink-3);
}
.l-tour .tin {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
}
.l-tour .bigl {
  position: absolute;
  left: min(150px, 50%);
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.l-tour .bigl span {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -56%;
  font-family: var(--f-black);
  font-size: min(78vh, 620px);
  line-height: 1;
  color: var(--vellum-3);
  opacity: 0;
  scale: 0.92;
  transition:
    opacity 0.7s,
    scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.l-tour .bigl span.on {
  opacity: 1;
  scale: 1;
}
.l-tour .tph {
  position: relative;
  width: clamp(220px, min(20vw, calc((var(--vh) - 230px) / 2.17)), 290px);
}
.l-tour .tbz {
  display: block;
  width: 100%;
  padding: 9px;
  border: none;
  background: var(--bezel);
  border-radius: 40px;
  box-shadow:
    0 1px 0 1px var(--bezel-rim) inset,
    0 50px 80px -40px var(--bezel-drop),
    0 18px 30px -18px var(--bezel-drop-2);
  cursor: pointer;
}
.l-tour .tbz:focus-visible {
  outline: 2px solid var(--sanguine);
  outline-offset: 3px;
}
.l-tour .tscr {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 640 / 1392;
  background: var(--vellum);
  perspective: 1300px;
}
/* One page per chapter, the current one on top. A new chapter turns the
   whole phone (tour.js adds .turning); the screen swaps while the
   phone is off stage. */
.l-tour .pg {
  position: absolute;
  inset: 0;
  background: var(--vellum) center / cover no-repeat;
}
.l-tour .pg.turned {
  visibility: hidden;
}
/* Owner Q7: a carousel — the phone slides out to the left and the next
   one comes in from the right; the screen swaps while it is off stage. */
.l-tour .tph.turning .tbz {
  animation: l-phone-swap 640ms cubic-bezier(0.55, 0, 0.35, 1);
}
@keyframes l-phone-swap {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  45% {
    transform: translateX(-70%);
    opacity: 0;
  }
  46% {
    transform: translateX(70%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.l-tour .pg video,
.l-tour .pg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.l-tour .tframe {
  position: relative;
}
/* Play-once (home/playback.js): replay at the end, play when held. */
.l-tour .again {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  z-index: 2;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: var(--sh-2);
}
.l-tour .snd {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: none;
  min-height: 34px;
  padding: 0 12px;
  border: none;
  background: var(--ink);
  color: var(--vellum);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.l-tour .tframe.sound .snd {
  display: block;
}
.l-tour .tbar {
  display: flex;
  gap: 5px;
  margin: 10px 6px 0;
}
/* Each tick is one clip of the chapter, and a button that jumps to it. */
.l-tour .tbar button {
  flex: 1;
  height: 22px;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
}
.l-tour .tbar button i {
  display: block;
  position: relative;
  height: 2px;
  background: var(--rule-soft);
  overflow: hidden;
}
.l-tour .tbar button b {
  position: absolute;
  inset: 0;
  background: var(--sanguine);
  transform-origin: left;
  transform: scaleX(var(--tp, 0));
}
.l-tour .tbar button:focus-visible {
  outline: 2px solid var(--sanguine);
}
.l-tour .tcap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  margin-top: 6px;
  padding: 0 6px;
  min-height: 44px;
}
.l-tour .tcap .n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sanguine);
}
.l-tour .tcap .t {
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.l-tour .toc {
  position: relative;
  display: grid;
  gap: 2px;
}
.l-tour .toc .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.l-tour .toc a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 38px;
  font-family: var(--f-roman);
  font-variant: small-caps;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  border: none;
  transition:
    color 0.3s,
    translate 0.3s;
}
.l-tour .toc a i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.l-tour .toc a:hover {
  color: var(--ink);
}
.l-tour .toc a.on {
  color: var(--sanguine);
  translate: 6px 0;
}

/* ── 07c Bereano (why subscribe) ────────────────────────────────────────── */
/* The owner's design (Landing - Ideias v2): the price objection answered
   first, written by the scroll; then the gap between reading and study
   apps, and an open book of six articles, content on the left, experience on the
   right. The scroll writes --a..--d on .l-ber-q and --tx on the spread;
   .on comes from an IntersectionObserver (landing.js, bereanoScene). */
.l-ber {
  position: relative;
  background: var(--vellum);
}
.l-ber-open {
  height: calc(var(--vh) * 1.8);
  position: relative;
}
.l-ber-open .l-stick {
  display: grid;
  place-items: center;
  padding: 64px clamp(24px, 7vw, 96px) 0;
  text-align: center;
}
.l-ber-q {
  display: grid;
  justify-items: center;
  max-width: 1000px;
}
.l-ber-q .l-eb {
  color: var(--sanguine);
  opacity: var(--a, 0);
}
.l-ber-q .l1 {
  font-family: var(--f-roman);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02;
  margin: 22px 0 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
  transform: translateY(calc(var(--c, 0) * -18px))
    scale(calc(1 - var(--c, 0) * 0.22));
  transform-origin: 50% 100%;
  color: color-mix(
    in oklch,
    var(--ink) calc(100% - var(--c, 0) * 45%),
    var(--vellum)
  );
}
.l-ber-q .l1 span {
  display: inline-block;
  opacity: var(--a, 0);
  filter: blur(calc((1 - var(--a, 0)) * 8px));
}
.l-ber-q .l1 em {
  font-style: italic;
  display: inline-block;
  opacity: var(--b, 0);
  filter: blur(calc((1 - var(--b, 0)) * 8px));
  transform: translateY(calc((1 - var(--b, 0)) * 0.2em));
}
.l-ber-q .l2 {
  font-family: var(--f-black);
  font-weight: 400;
  /* Five lines on a phone, three on a wide screen: capped by the height
     too, so the verse below still fits a short laptop screen. */
  font-size: clamp(38px, min(5.6vw, 8vh), 84px);
  line-height: 1.08;
  margin: 14px 0 0;
  color: var(--sanguine);
  text-wrap: balance;
  clip-path: inset(0 calc((1 - var(--c, 0)) * 100%) 0 0);
}
.l-ber-q .vs {
  max-width: 36em;
  margin: 34px auto 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  opacity: var(--d, 0);
  transform: translateY(calc((1 - var(--d, 0)) * 16px));
}
.l-ber-q .vs p {
  margin: 0;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: balance;
}
.l-ber-q .vs b {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sanguine);
}

.l-ber-gap {
  max-width: 1180px;
  /* Pulled up over the empty foot of the opening's full-screen stage, so
     the text follows the verse instead of half a blank screen (owner);
     landing.js measures --tuck. */
  margin: calc(-1 * var(--tuck, 0px)) auto 0;
  /* Positioned, so it paints and takes taps above the stage it overlaps. */
  position: relative;
  padding: clamp(48px, 10vh, 120px) clamp(28px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.l-ber-gap .l-h2 {
  margin-top: 12px;
}
.l-ber-gap p {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 16px 0 0;
  max-width: 30em;
  text-wrap: pretty;
}

/* The map: reading ← → deep study, simple and affordable (top) or
   expensive and complex (bottom). Each point sits by its class, not by an
   inline style the CSP refuses. */
/* Beside the long text on a wide screen the map stays in view while the
   text scrolls by. */
.l-bmap {
  position: sticky;
  top: max(96px, calc(50vh - 220px));
  aspect-ratio: 1.25;
  min-height: 320px;
  margin: 24px 0 32px 34px;
}
.l-bmap .ax {
  position: absolute;
  background: var(--ink-3);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.l-bmap .ax.x {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform-origin: left;
}
.l-bmap .ax.y {
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: bottom;
}
.l-bmap .mid {
  position: absolute;
  background: var(--rule-soft);
  transition: opacity 1s 0.6s;
}
.l-bmap .mid.x {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}
.l-bmap .mid.y {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}
.l-bmap .al {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.l-bmap .al.xl {
  left: 0;
  bottom: -26px;
}
.l-bmap .al.xr {
  right: 0;
  bottom: -26px;
}
.l-bmap .al.yb {
  left: -14px;
  bottom: 0;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateY(-2px);
}
.l-bmap .al.yt {
  left: -14px;
  top: 0;
  transform-origin: left top;
  transform: rotate(-90deg) translate(-100%, -2px);
}
.l-bmap .pt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  transition:
    opacity 0.6s,
    transform 0.6s;
}
/* Simple and affordable at the top, deep study on the right: the app
   alone in the top-right corner (owner). Each note sits centred under its
   mark; the points keep the places the market analysis gives them. */
.l-bmap .pt.read {
  --x: 16%;
  --y: 14%;
  transition-delay: 0.7s;
}
.l-bmap .pt.auto {
  --x: 38%;
  --y: 33%;
  transition-delay: 0.9s;
}
.l-bmap .pt.lib {
  --x: 26%;
  --y: 62%;
  transition-delay: 1.1s;
}
.l-bmap .pt.soft {
  --x: 82%;
  --y: 57%;
  transition-delay: 1.3s;
}
/* Printed study Bibles and books: the dearest and least practical way
   (owner), the lowest point on the map. */
.l-bmap .pt.print {
  --x: 58%;
  --y: 86%;
  transition-delay: 1.5s;
}
.l-bmap .pt.me {
  --x: 82%;
  --y: 16%;
  transition:
    opacity 0.4s 1.9s,
    transform 0.8s cubic-bezier(0.3, 1.5, 0.5, 1) 1.9s;
}
.l-bmap .pt i {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  rotate: 45deg;
  background: var(--ink-3);
}
.l-bmap .pt.auto i {
  background: none;
  border: 1.5px dashed var(--ink-3);
}
.l-bmap .pt div {
  position: absolute;
  top: 15px;
  left: 0;
  translate: -50% 0;
  width: max-content;
  max-width: 140px;
  text-align: center;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.l-bmap .pt div b {
  font-weight: 400;
  color: var(--ink-2);
}
/* The app's own icon marks it, not a diamond (owner). */
.l-bmap .pt.me img {
  position: absolute;
  left: -24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 8px 18px -6px oklch(0.3 0.04 55 / 0.45);
}
.l-bmap .pt.me::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--sanguine);
  opacity: 0;
}
.l-bmap.on .pt.me::before {
  animation: l-ber-ripple 1.4s ease-out 2.5s 1;
}
@keyframes l-ber-ripple {
  0% {
    opacity: 0.8;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 3.4;
  }
}
.l-bmap .pt.me div {
  top: 32px;
  font-size: 14px;
}
.l-bmap .pt.me div b {
  color: var(--sanguine);
  font-weight: 500;
}

/* The open book: it lies back and stands up as it comes into view. */
.l-ber-book {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  perspective: 1800px;
}
.l-ber .spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--vellum-2);
  box-shadow: var(--sh-3);
  transform-origin: 50% 100%;
  transform: rotateX(var(--tx, 0deg));
  position: relative;
}
.l-ber .spread::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 90px;
  translate: -50% 0;
  background: linear-gradient(
    90deg,
    transparent,
    oklch(0.3 0.04 55 / 0.12) 45%,
    oklch(0.3 0.04 55 / 0.22) 50%,
    oklch(0.3 0.04 55 / 0.12) 55%,
    transparent
  );
  pointer-events: none;
}
.l-ber .leafp {
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4.4vw, 64px);
}
.l-ber .leafp h3 {
  font-family: var(--f-black);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.l-ber .art {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 8px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-soft);
  transition:
    opacity 0.9s,
    filter 0.9s,
    transform 0.9s;
}
.l-ber .leafp h3 + .art {
  margin-top: 26px;
}
.l-ber .art > i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sanguine);
  padding-top: 7px;
}
.l-ber .art h4 {
  margin: 0;
  font-family: var(--f-roman);
  font-weight: 600;
  font-variant: small-caps;
  font-size: clamp(22px, 1.9vw, 27px);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.l-ber .art p {
  grid-column: 2;
  margin: 8px 0 0;
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Before the reveal (scripts only; without them the map and the articles
   show at rest, see "Without scripts"). */
:root[data-theme-choice] .l-bmap:not(.on) .ax.x {
  transform: scaleX(0);
}
:root[data-theme-choice] .l-bmap:not(.on) .ax.y {
  transform: scaleY(0);
}
:root[data-theme-choice] .l-bmap:not(.on) .mid {
  opacity: 0;
}
:root[data-theme-choice] .l-bmap:not(.on) .pt {
  opacity: 0;
  transform: translateY(10px);
}
:root[data-theme-choice] .l-bmap:not(.on) .pt.me {
  transform: translateY(-60px) scale(1.4);
}
:root[data-theme-choice] .l-ber .art:not(.on) {
  opacity: 0.08;
  filter: blur(5px);
  transform: translateY(10px);
}

@media (max-width: 820px) {
  .l-ber-gap {
    grid-template-columns: minmax(0, 1fr);
  }
  .l-bmap {
    position: relative;
    top: auto;
    margin-left: 28px;
    aspect-ratio: 0.75;
    width: calc(100% - 28px);
    max-width: 440px;
    justify-self: center;
  }
  .l-ber .spread {
    grid-template-columns: minmax(0, 1fr);
  }
  .l-ber .spread::before {
    display: none;
  }
  .l-ber .leafp + .leafp {
    border-top: 1px solid var(--rule-soft);
  }
  /* The narrow map keeps the same places, with smaller notes. */
  .l-bmap .pt div,
  .l-bmap .pt.me div {
    max-width: 88px;
    font-size: 11.5px;
  }
}

/* ── 08 Preço ───────────────────────────────────────────────────────────── */
/* The price closes the Bereano section (owner: one section), on its
   vellum, right after the open book. */
.l-price {
  padding: clamp(72px, 12vh, 128px) clamp(28px, 7vw, 96px)
    clamp(96px, 14vh, 150px);
}
.l-price-in {
  max-width: 1040px;
  margin: 0 auto;
}
.l-price .head {
  text-align: center;
}
/* The rule that parts the open book above from the price. */
.l-price > .orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sanguine);
  margin-bottom: clamp(48px, 8vh, 80px);
}
.l-price > .orn i {
  width: 60px;
  height: 1px;
  background: var(--rule-soft);
}
/* The offer reads as a sentence, in the body serif, not as a heading. */
.l-price .head .l-h2 {
  margin-top: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-variant: normal;
  letter-spacing: 0;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
}
/* One block per sentence, each with even lines: no lone word left at the
   end of the second. */
.l-price .head .l-h2 .ln {
  display: block;
  text-wrap: balance;
}
.l-price .tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(36px, 6vh, 56px);
  align-items: stretch;
}
.l-price .tier {
  position: relative;
  /* A leaf of the open book above, on the section's vellum. */
  background: var(--vellum-2);
  box-shadow: var(--sh-3);
  padding: clamp(24px, 3vw, 40px);
}
.l-price .tier::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
/* Bereano is a bound volume: the oxblood cover with its gilt fillet. */
.l-price .tier.prem {
  background: var(--cover-oxblood);
  color: var(--night-fg);
}
.l-price .tier.prem::before {
  border-color: var(--gilt-soft);
}
/* Owner: the tier names in the wordmark's blackletter, centred with their
   line; the lists stay flush left for reading. */
.l-price .tn {
  font-family: var(--f-black);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.1;
  text-align: center;
  margin: 0;
}
.l-price .tier.prem .tn {
  color: #dcb85f;
}
.l-price .ts {
  font-family: var(--f-roman);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-2);
  text-align: center;
  text-wrap: balance;
  margin: 8px 0 0;
}
.l-price .tier.prem .ts {
  color: var(--night-fg-2);
}
/* Each plan's price: the figure large, its terms under it. */
.l-price .tp {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--f-roman);
  font-size: 19px;
  color: var(--ink-2);
}
.l-price .tp b {
  font-weight: 600;
  font-size: clamp(30px, 3vw, 38px);
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.l-price .tier.prem .tp {
  color: var(--night-fg-2);
}
.l-price .tier.prem .tp b {
  color: var(--night-fg);
}
.l-price .tp small {
  display: block;
  margin-top: 2px;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
}
.l-price ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.l-price li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--rule-soft);
  font-size: 17px;
  line-height: 1.45;
}
.l-price .tier.prem li {
  border-top-color: oklch(0.68 0.07 82 / 0.35);
}
.l-price li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  background: var(--sanguine);
  rotate: 45deg;
}
.l-price .tier.prem li::before {
  background: #c8a043;
}

/* ── 09 Encadernação (download) ─────────────────────────────────────────── */
.l-bind {
  height: calc(var(--vh) * 3);
  position: relative;
  background: var(--night-bg);
}
/* Background photo of the closing scene: the owner's candle-lit desk
   (M14); the book lands on its clear middle. */
.l-bind .l-stick {
  /* bookScene pans it sideways (--bgx) on screens that crop the photo, so
     the pool of candlelight stays in the middle. */
  background: var(--night-bg) url("/media/closing-desk.webp") var(--bgx, 50%)
    55% / cover no-repeat;
  display: grid;
  place-items: center;
  /* Seen from above, like the photo's camera looking down at the desk. */
  perspective: 2400px;
  perspective-origin: 50% 0%;
  /* The book's size, in points of the app's 132 x 203 plate (bookScene sets
     --cz); its thickness and the boards' overhang follow it. */
  --t: calc(var(--cz, 2.5) * 15px);
  --b: calc(var(--cz, 2.5) * 1.2px);
  --ov: calc(var(--cz, 2.5) * 1.6px);
  /* How the book lies on the photo's desk: tipped back to the desk's plane,
     turned a little, a little lower than the middle of the screen. */
  --lie: 65deg;
  --turn: -12deg;
  /* Standing, it faces the reader square on (owner: no tilt at the end). */
  --rest: 0deg;
  /* On the way up it turns a little to its left and back, so the leaves
     show at the fore-edge while it rises. */
  --yaw: -20deg;
  --drop: 9vh;
}
/* The book and its shadow share one box in the middle of the stage. */
.l-book,
.l-bshadow {
  grid-area: 1 / 1;
  width: min(340px, 44vw);
  aspect-ratio: 132 / 203;
  /* The hinge it stands up on: the bottom edge of the back board, which
     rests on the desk. */
  transform-origin: 50% 100% calc(var(--t) * -1);
}
/* Lying on the desk (--a 0), the book stands up on its bottom edge, comes
   to face the reader (--a 1) and then opens (--o). */
.l-book {
  position: relative;
  transform-style: preserve-3d;
  --shift: 50%;
  transform: translateX(
      calc(var(--o, 0) * var(--shift) + (1 - var(--a, 0)) * var(--lx, 0px))
    )
    translateY(calc((1 - var(--a, 0)) * var(--drop)))
    scale(calc(0.84 + var(--a, 0) * 0.16))
    rotateY(calc(var(--a, 0) * (1 - var(--a, 0)) * 4 * var(--yaw)))
    rotateX(calc(var(--rest) + (1 - var(--a, 0)) * (var(--lie) - var(--rest))))
    rotateZ(calc((1 - var(--a, 0)) * var(--turn)));
}
/* Its shadow stays on the desk, where the book lay, and fades as the book
   rises; the candle stands to the left, so it falls to the right. */
.l-bshadow {
  pointer-events: none;
  opacity: calc(1 - var(--a, 0) * 0.95);
  background: rgba(8, 4, 2, 0.8);
  /* Static (only its opacity moves), so the blur is drawn once. */
  filter: blur(calc(var(--cz, 2.5) * 4px));
  transform: translate(var(--lx, 0px), var(--drop)) scale(0.84)
    rotateX(var(--lie)) rotateZ(var(--turn))
    translateZ(calc(var(--t) * -1 - 2px)) translate(13%, 10%) scale(1.04);
}
/* The book's body: back board, spine and the page block's three edges. */
.l-book .blk {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.l-book .blk > i {
  position: absolute;
  display: block;
}
.l-book .blk .board {
  inset: 0;
  transform: translateZ(calc(var(--t) * -1));
  background:
    url("/media/covers/interlace.svg") center / 19% auto no-repeat,
    url("/media/covers/frame.svg") center / 100% 100% no-repeat,
    #512a32 url("/media/covers/devocionais.webp") center / 100% 100%;
}
.l-book .blk .spine {
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--t);
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.45),
      transparent 30% 70%,
      rgba(0, 0, 0, 0.45)
    ),
    #512a32 url("/media/covers/devocionais-spine.webp") center / 100% 100%;
}
/* The leaves, edge on: fine lines of old paper, darker toward the boards. */
.l-book .blk .fore,
.l-book .blk .head,
.l-book .blk .tail {
  --leaves: repeating-linear-gradient(
    var(--dir),
    oklch(0.9 0.035 84) 0 1.5px,
    oklch(0.78 0.045 78) 1.5px 2.5px
  );
  background:
    linear-gradient(
      var(--dir),
      rgba(40, 22, 10, 0.4),
      transparent 25% 75%,
      rgba(40, 22, 10, 0.4)
    ),
    var(--leaves);
}
.l-book .blk .fore {
  --dir: 90deg;
  top: var(--ov);
  bottom: var(--ov);
  right: var(--ov);
  width: calc(var(--t) - var(--b) * 2);
  transform-origin: 100% 50%;
  transform: translateZ(calc(var(--b) * -1)) rotateY(-90deg);
  /* Faces away from the candle. */
  filter: brightness(0.7);
}
.l-book .blk .head,
.l-book .blk .tail {
  --dir: 0deg;
  left: 0;
  right: var(--ov);
  height: calc(var(--t) - var(--b) * 2);
}
.l-book .blk .head {
  top: var(--ov);
  transform-origin: 50% 0;
  transform: translateZ(calc(var(--b) * -1)) rotateX(-90deg);
  /* Faces the candle, behind the book. */
  filter: brightness(1.05);
}
.l-book .blk .tail {
  bottom: var(--ov);
  transform-origin: 50% 100%;
  transform: translateZ(calc(var(--b) * -1)) rotateX(90deg);
  filter: brightness(0.8);
}
/* The first page: always the light vellum, whatever the theme. */
.l-book .pages {
  --vellum: oklch(0.962 0.014 84);
  --ink: oklch(0.205 0.02 55);
  --ink-2: oklch(0.315 0.02 55);
  --sanguine: oklch(0.44 0.11 28);
  position: absolute;
  /* The first leaf: on top of the page block, under the front board, which
     overhangs it a little at the head, the tail and the fore-edge. */
  inset: var(--ov) var(--ov) var(--ov) 0;
  transform: translateZ(calc(var(--b) * -1));
  /* Old paper (web/scripts/gen-covers.py), shaded where it curves into
     the spine. */
  background:
    linear-gradient(90deg, rgba(60, 35, 15, 0.32), transparent 9%),
    oklch(0.93 0.03 84) url("/media/paper/page.webp") center / 100% 100%;
  color: var(--ink);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.l-book .pages::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    150deg,
    rgba(255, 200, 120, 0.16),
    transparent 45%,
    rgba(40, 20, 6, 0.2)
  );
}
.l-book .pages > * {
  opacity: var(--c, 0);
  transform: translateY(calc((1 - var(--c, 0)) * 10px));
}
.l-book .bm {
  font-family: var(--f-black);
  font-size: clamp(30px, 4vw, 48px);
  color: var(--sanguine);
  line-height: 1;
}
.l-book .l-h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}
.l-book .l-lede {
  font-size: 17px;
  margin-top: 10px;
}
.l-book .stores {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 20px;
}
.landing .l-book .stores .store {
  min-width: 0;
  flex: none;
}
.l-book .cov {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--o, 0) * -180deg));
  pointer-events: none;
}
.l-book .cov > div {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.l-book .cov .front {
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Candlelight on the cover. The candle burns behind the desk, to the left:
   the leather darkens away from it, and its glint sits on the far left of
   the cover while the book lies, sliding to the top-left corner and dimming
   as the book stands to face the reader (--a). */
.l-book .cov .front::before,
.l-book .cov .front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.l-book .cov .front::before {
  background: linear-gradient(
    150deg,
    rgba(255, 190, 110, 0.14),
    transparent 38%,
    rgba(12, 5, 2, 0.42)
  );
}
.l-book .cov .front::after {
  --hx: calc(30% - var(--a, 0) * 16%);
  --hy: calc(16% - var(--a, 0) * 8%);
  background: radial-gradient(
    ellipse 75% 42% at var(--hx) var(--hy),
    rgba(255, 216, 150, 0.5),
    rgba(255, 196, 120, 0.12) 45%,
    transparent 72%
  );
  mix-blend-mode: screen;
  opacity: calc(1 - var(--a, 0) * 0.45);
}
.l-book .cov .front .plate {
  flex: none;
  transform: scale(var(--cz, 2.5));
}
/* Inside the cover: the leather turned in at the edges, then the old
   endpaper pasted over the board. */
.l-book .cov .back {
  transform: rotateY(180deg);
  background:
    linear-gradient(270deg, rgba(60, 35, 15, 0.3), transparent 9%),
    url("/media/paper/endpaper.webp") center / 100% 100%;
  box-shadow:
    inset 0 0 0 10px #512a32,
    inset 0 0 0 11px #9c7a2e,
    inset 0 0 50px rgba(60, 35, 15, 0.35);
}
/* The app's own book: its name in the blackletter of the app's wordmark. */
.l-book .plate.app .ttl span {
  font-family: var(--f-black);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.05;
}

/* The shared footer follows the night of the closing book above it. */
.landing .sitefoot {
  background: var(--night-bg);
}
/* The bookmark ribbon is fixed to the left edge and ends at the footer, where
   the page is as wide as the screen: keep the brand column clear of it. */
@media (min-width: 641px) and (max-width: 1320px) {
  .landing .sitefoot .s-wrap {
    padding-left: calc(clamp(12px, 2.6vw, 36px) + 16px + 28px);
  }
}

/* ── Without scripts ────────────────────────────────────────────────────
   shared/theme-init.js marks <html data-theme-choice> before first paint:
   it is the "scripts run" flag. Without it every scene shows its end
   state: the hero copy, the dealt row, the full verse, the authors, the
   first chapter's poster on the tour's phone, the catechism's answer
   marked, the opened book. */
:root:not([data-theme-choice]) .l-hin {
  opacity: 1;
  pointer-events: auto;
}
:root:not([data-theme-choice]) .l-hero .l-stick::after {
  opacity: 1;
}
:root:not([data-theme-choice]) .l-htop,
:root:not([data-theme-choice]) .l-hint,
:root:not([data-theme-choice]) .l-door {
  display: none;
}
:root:not([data-theme-choice]) .l-row3 .ni,
:root:not([data-theme-choice]) .l-lin .l-lede {
  --k: 1;
  --o: 1;
}
:root:not([data-theme-choice]) .l-row3 {
  --t: 1;
}
:root:not([data-theme-choice]) .l-ber-q {
  --a: 1;
  --b: 1;
  --c: 1;
  --d: 1;
}
:root:not([data-theme-choice]) .l-bind .l-stick {
  --a: 1;
  --o: 1;
  --c: 1;
}
:root:not([data-theme-choice]) .l-deck {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 16px 60px;
  overflow-x: auto;
}
:root:not([data-theme-choice]) .l-card {
  position: relative;
  bottom: auto;
  flex: none;
  --lk: 1;
}
/* Auto margins centre the row when it fits and, unlike justify-content:
   center, leave it scrollable from its first card when it does not. */
:root:not([data-theme-choice]) .l-card:first-child {
  margin-left: auto;
}
:root:not([data-theme-choice]) .l-card:last-child {
  margin-right: auto;
}
:root:not([data-theme-choice]) .l-tour .tscr {
  background: url("/media/posters/leia-compare-encontre.webp") top / cover;
}
:root:not([data-theme-choice]) .l-qc .choice[data-ok] {
  border-color: var(--q-ok-line);
  background: var(--q-ok-wash);
}
:root:not([data-theme-choice]) .l-qc .answer,
:root:not([data-theme-choice]) .l-qc .count {
  display: none;
}

/* ── Tablets and phones (owner M8) ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .l-tour .toc {
    display: none;
  }
  .l-tour-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  }
}
@media (max-width: 820px) {
  .l-hin,
  .l-night-in,
  .l-cat-in,
  .l-dev-in,
  .l-lens-in {
    grid-template-columns: 1fr;
  }
  /* Phones: the copy on top, the three screens in whatever height is
     left under it, whole (owner M14: they were cut at the bottom). */
  .l-hin {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: calc(var(--nav-h) + 3vh) 20px 16px;
  }
  .l-hin > div:first-child {
    flex: none;
  }
  .l-trio {
    flex: 1 1 0;
    min-height: 0;
    width: auto;
    max-width: 38vw;
    align-self: center;
    margin: 22px auto 0;
  }
  /* The night scene keeps its app on phones, under the psalm. */
  .l-night .l-ph {
    justify-self: center;
    width: min(56vw, 230px);
  }
  .l-trio .l-ph {
    border-radius: 26px;
    padding: 6px;
  }
  .l-trio .l-ph img,
  .l-trio .l-ph video {
    border-radius: 21px;
  }
  .l-hin .stores {
    margin-top: 20px;
    gap: 8px;
  }
  .landing .stores .store {
    min-width: 0;
    flex: 1 1 140px;
    gap: 10px;
    padding: 8px 12px;
    min-height: 52px;
  }
  .landing .store .ico {
    width: 22px;
    height: 22px;
  }
  .landing .store .n {
    font-size: 20px;
  }
  .l-lib-head {
    left: 48px;
    right: 20px;
  }
  .l-lens,
  .l-cat,
  .l-dev,
  .l-price {
    padding: 88px 20px;
  }
  .l-lens-in {
    gap: 28px;
  }
  .l-stage {
    margin-top: 28px;
  }
  .l-lex {
    min-height: 0;
    padding: 22px 22px 24px;
  }
  .l-lex .lem {
    font-size: 46px;
  }
  .l-night-in {
    padding: 96px 24px;
  }
  .l-price .tiers {
    grid-template-columns: 1fr;
  }
  /* The open book stays centred: the cover swings off to the left. */
  .l-book {
    width: min(320px, 78vw);
    --shift: 0%;
  }
}
/* Tour on phones (tablets keep the two columns). */
@media (max-width: 700px) {
  /* Tour: the phone pins under the header, the chapters scroll below it. */
  .l-tour {
    padding-top: 88px;
  }
  .l-tour-head {
    padding: 12px 20px 10px;
  }
  .l-tour-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px;
  }
  .l-tstage {
    grid-column: 1;
    grid-row: 1;
    top: var(--th, 0px);
    height: auto;
    z-index: 3;
    padding: 12px 0 4px;
    background: var(--vellum);
    box-shadow: 0 14px 14px -14px oklch(0.3 0.04 55 / 0.3);
  }
  .l-tour .chs {
    grid-row: 2;
  }
  .l-tour .tph {
    width: calc(var(--vh) * 0.38 * 640 / 1392 + 18px);
  }
  .l-tour .tbz {
    border-radius: 26px;
    padding: 6px;
  }
  .l-tour .tscr {
    border-radius: 21px;
  }
  .l-tour .tcap,
  .l-tour .bigl {
    display: none;
  }
  .l-tour .ch {
    min-height: calc(var(--vh) * 0.62);
    align-content: start;
    padding-top: 24px;
    scroll-margin-top: calc(var(--th, 0px) + var(--vh) * 0.42 + 40px);
  }
}
@media (max-width: 480px) {
  .l-h1 {
    font-size: clamp(26px, 7.6vw, 32px);
  }
  .l-hin .l-lede {
    font-size: 16px;
    line-height: 1.38;
    margin-top: 12px;
  }
  .l-h1 .l-eb {
    margin-bottom: 10px;
  }
  /* Phones: a thin bookmark in the margin, never over the text. */
  .l-ribbon {
    width: 7px;
    left: 5px;
    height: calc(
      var(--nav-h) + 24px + var(--rp, 0) * (var(--vh) - var(--nav-h) - 40px)
    );
  }
  .l-row3 .niche {
    width: 27vw;
  }
}
/* Short phones (iPhone SE and landscape): the hero copy must still fit. */
@media (max-width: 820px) and (max-height: 700px) {
  .l-hin .l-lede {
    font-size: 15px;
  }
  .l-h1 .l-eb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l-rose,
  .l-hint i,
  .l-flame,
  .l-bmap.on .pt.me::before {
    animation: none;
  }
  .l-bmap .ax,
  .l-bmap .mid,
  .l-bmap .pt,
  .l-ber .art {
    transition: none;
  }
}

/* Shelf metadata stays HTML, including while WebGL textures are loading. */
.l-bkcap {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: calc(6vh + 14px + 203px * 1.3 * var(--fit, 1) + 42px);
  width: min(720px, calc(100% - 48px));
  text-align: center;
  color: var(--night-fg);
  pointer-events: none;
}
.l-bkcap strong {
  display: block;
  font-family: var(--f-black);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--night-fg);
}
.l-bkcap span {
  display: block;
  margin-top: 8px;
  font-family: var(--f-roman);
  font-size: 17px;
  font-style: normal;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--night-rubric);
}
.l-bkcap span:empty,
.book-inspector-byline:empty {
  display: none;
}
.l-bkcap-hint {
  display: block;
  margin-top: 12px;
  font: 12px var(--f-mono);
  letter-spacing: 0.06em;
  color: #e3c486;
}
.l-row .b3.is-inspected {
  visibility: hidden;
}
html.book-inspecting {
  overflow: hidden;
}
.book-inspector {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eee5ce;
  overflow: hidden;
}
.book-inspector::backdrop {
  background: rgb(12 9 6 / 97%);
}
.book-inspector-stage {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
  outline: none;
}
.book-inspector-stage:active {
  cursor: grabbing;
}
.book-inspector-stage:focus-visible {
  outline: 1px solid #a98c54;
  outline-offset: -6px;
}
.book-inspector-stage .l-book-canvas {
  z-index: 0;
}
.book-inspector-header {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.book-inspector button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgb(227 196 134 / 40%);
  border-radius: 4px;
  background: #201a14;
  color: inherit;
  font: 15px var(--f-body);
  cursor: pointer;
}
.book-inspector button:hover {
  background: #362a1d;
}
.book-inspector button:focus-visible {
  outline: 2px solid #e3c486;
  outline-offset: 3px;
}
.book-inspector-footer {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 24px;
  right: 24px;
  text-align: center;
  pointer-events: none;
}
.book-inspector-footer h2 {
  margin: 0;
  font: 400 clamp(25px, 4vw, 38px)/1.05 var(--f-black);
  color: var(--night-fg);
}
.book-inspector-footer p {
  margin: 7px 0 0;
  font: 16px var(--f-body);
}
.book-inspector-footer .book-inspector-byline {
  font-family: var(--f-roman);
  font-size: 18px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--night-rubric);
}
#book-inspector-help {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.65;
}
@media (max-width: 480px) {
  .book-inspector-header {
    left: 12px;
    right: 12px;
    gap: 8px;
  }
  .book-inspector button {
    padding: 9px 10px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .l-row,
  .l-row .b3 {
    transition: none;
  }
}
