/* Bloodline Zero: dedicated visual identity.
   Cinematic, editorial, restrained. Loads after assets/site.css (for
   .btn/.field/.input/.zx-modal primitives reused by the account bar)
   and overrides the shared tokens with Bloodline Zero's own dark/
   crimson palette so nothing here reads as the mint "Zindigon studio"
   look. No particles, no glassmorphism, no glow; see the design
   brief this was built from. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg:        #101113;
  --bg-elev:   #191A1D;
  --bg-elev-2: #202124;
  --line:      #383638;
  --line-2:    rgba(232,228,220,0.14);

  /* Type: primary #E8E4DC, secondary #A5A29D per the design brief's
     palette table. --fg-soft/--fg-faint are small readability steps
     off those two, not a separate invented scale. */
  --fg:       #E8E4DC;
  --fg-soft:  #C9C6BE;
  --fg-mute:  #A5A29D;
  --fg-faint: rgba(165,162,157,0.62);

  /* Signature accent: muted crimson, used as ink/highlighter, never
     a glow or gradient. */
  --accent:      #982F37;
  --accent-hi:   #B23A43;
  --accent-soft: rgba(152,47,55,0.16);
  --accent-line: rgba(152,47,55,0.38);

  --serif:  "Fraunces", ui-serif, Georgia, serif;
  --read:   "Source Serif 4", ui-serif, Georgia, serif;
  --sans:   "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max:    1180px;
  --gutter: 24px;
  --r-sm:   3px;
  --r:      4px;

  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.bz {
  /* Transparent, not var(--bg): an opaque body background paints the
     browser canvas, which always sits below elements with negative
     z-index; that would hide .bz-bg (z-index -2) entirely. The
     fallback color lives on .bz-bg itself instead. */
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.bz a { color: inherit; text-decoration: none; }
.bz img { max-width: 100%; display: block; }
.bz button { font: inherit; color: inherit; }
.bz ::selection { background: var(--accent); color: #F4EFE8; }

.bz-container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------------------------------------------------------------   Fixed atmospheric background: one image, one identity across
   the whole section. Fixed during scroll, never repeats, overlay
   preserves reading contrast. Section 2 of the design brief.
   --------------------------------------------------------------- */
.bz-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image: url("/assets/bloodlinezero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* Muted, not crushed: the ruined skyline/bridge/crimson sky needs to
     actually read at the edges. Previously brightness(0.62) plus the
     overlay below pushed it to near-black everywhere. */
  filter: saturate(0.92) brightness(0.84) contrast(1.03);
}
.bz-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Scroll-depth fade: the hero breathes, then the page settles onto
       solid ground before the reading panels begin. */
    linear-gradient(180deg, rgba(16,17,19,0.26) 0%, rgba(16,17,19,0.5) 38%, rgba(16,17,19,0.86) 68%, var(--bg) 100%),
    /* Horizontal vignette: a quiet, text-safe column at center, wide
       enough to sit under the 1180px content max-width, while both
       outer edges stay lighter so the architecture/glow can register. */
    linear-gradient(90deg, rgba(16,17,19,0.7) 0%, rgba(16,17,19,0.36) 16%, rgba(16,17,19,0.36) 84%, rgba(16,17,19,0.7) 100%);
}
/* Subtle grain, static, no animation */
.bz-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
@media (max-width: 720px) {
  .bz-bg { background-position: 62% 20%; }
}

/* ---------------------------------------------------------------
   Header: minimal, text-first. Bloodline Zero / Episodes /
   Continue Reading / My Library. No blur glass, no pill nav.

   Transparent by default so it reads as part of the hero image;
   gains a translucent smoky backdrop once the page scrolls (see
   .bz-scrolled, toggled by bz-nav.js) so it separates from the
   background without ever becoming a solid boxed bar.
   --------------------------------------------------------------- */
.bz-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.bz-header.bz-scrolled {
  background: color-mix(in oklab, #000 60%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.bz-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.bz-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-right: auto;
}
.bz-brand-text { display: inline-flex; align-items: baseline; gap: 8px; }
.bz-brand small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  opacity: 0.75;
}

/* Small custom insignia: an abstract forked root/branch (bloodline,
   a dowsing rod for the hidden supernatural) crossed by a short,
   heavier bar (a redaction strike, for PIP's classified records).
   Used sparingly: the header mark, and one faint watermark near the
   Episodes heading. Reusable later for a locked-episode/loading mark. */
.bz-mark {
  width: 18px;
  height: 18px;
  flex: none;
  overflow: visible;
}
.bz-mark path {
  fill: none;
  stroke: var(--fg-soft);
  stroke-width: 1.3;
  stroke-linecap: round;
}
.bz-mark .bz-mark-bar {
  stroke: var(--accent);
  stroke-width: 2;
}
.bz-mark-watermark {
  position: absolute;
  top: -10px;
  right: 4px;
  width: 88px;
  height: 88px;
  opacity: 0.055;
  pointer-events: none;
}
@media (max-width: 720px) {
  .bz-mark-watermark { display: none; }
}

.bz-nav-links { display: flex; align-items: center; gap: 24px; }
.bz-nav-links a {
  font-size: 14px;
  color: var(--fg-mute);
  padding-bottom: 5px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bz-nav-links a:hover { color: var(--fg); }
.bz-nav-links a.bz-nav-primary { color: var(--fg-soft); font-weight: 500; }
.bz-nav-links a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }

.bz-menu-btn {
  display: none;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-soft);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
@media (max-width: 780px) {
  .bz-nav-links {
    position: fixed;
    inset: 57px 0 0 0;
    background: var(--bg);
    border-top: 1px solid var(--line);    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .bz-nav-links a { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .bz-nav[data-open="true"] .bz-nav-links { transform: translateY(0); opacity: 1; visibility: visible; }
  .bz-menu-btn { display: inline-flex; order: 3; }
  #bzAccountBar { order: 2; }
}

/* Account bar (reuses assets/auth-shared.js; markup/classes are BZ's own) */
.bz-account { display: flex; align-items: center; gap: 14px; }
.bz-account-name { font-size: 13px; color: var(--fg-mute); }
.bz-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  color: var(--fg-soft);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bz-btn:hover { color: var(--fg); border-color: var(--fg-faint); }
.bz-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #F4EFE8;
}
.bz-btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: #F4EFE8; }
.bz-btn-text {
  border: 0;
  padding: 8px 2px;
  color: var(--fg-mute);
}
.bz-btn-text:hover { color: var(--fg); border-color: transparent; background: transparent; }
.bz-btn[disabled] { opacity: 0.5; cursor: default; }

/* Modal (sign in / sign up) */
.bz-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,6,7,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
}
/* The [hidden] attribute only carries a user-agent default of
   display:none; any author rule for the same element (like the
   display:flex above) overrides it regardless of the attribute's
   presence. Without this, the modal can never actually be hidden:
   not on load, and not when its own close button/backdrop click
   sets .hidden = true. */
.bz-modal-overlay[hidden] {
  display: none;
}
.bz-modal {
  width: 100%; max-width: 380px;
  padding: 32px;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}
.bz-modal h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 20px; }
.bz-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; color: var(--fg-mute);  font-size: 20px; line-height: 1; cursor: pointer;
}
.bz-modal-close:hover { color: var(--fg); }
.bz-field { display: grid; gap: 6px; margin-bottom: 16px; }
.bz-field label { font-size: 13px; color: var(--fg-mute); }
.bz-input {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-2);
  color: var(--fg);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  width: 100%;
}
.bz-input:focus { outline: none; border-color: var(--accent-line); }
.bz-error { color: #d98a8a; font-size: 13px; margin: -8px 0 14px; }
.bz-info { color: var(--fg-soft); font-size: 13px; margin: -8px 0 14px; }
.bz-switch { font-size: 13px; color: var(--fg-mute); text-align: center; margin-top: 16px; }
.bz-switch a { color: var(--accent-hi); }
.bz-inline-form { display: flex; gap: 8px; }

/* ---------------------------------------------------------------
   Hero: off-center editorial composition, not centered-title-
   and-two-buttons.
   --------------------------------------------------------------- */
.bz-hero {
  padding: 96px 0 56px;
  max-width: 640px;
}
.bz-hero .bz-container { max-width: 640px; }
.bz-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 18px;
}
.bz-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--fg);
}
.bz-hero-hook {
  font-family: var(--read);
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 52ch;
  margin: 0 0 36px;
}
.bz-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.bz-hero-cta .bz-btn { padding: 12px 22px; font-size: 14px; }

/* ---------------------------------------------------------------
   Series intro: a short, intentional "series note" block, not an
   orphaned paragraph floating in the gap before the directory.
   --------------------------------------------------------------- */
.bz-intro { padding: 0 0 40px; }
.bz-intro .bz-container { max-width: 640px; }
.bz-intro-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.bz-intro p {
  font-family: var(--read);
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-soft);
  margin: 0 0 18px;
}

/* ---------------------------------------------------------------
   Continue reading banner
   --------------------------------------------------------------- */
.bz-continue {
  border-top: 1px solid var(--line);  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-elev) 65%, transparent);
  padding: 22px 0;
  margin-bottom: 56px;
}
.bz-continue .bz-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bz-continue-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 4px; }
.bz-continue-title { font-family: var(--serif); font-size: 20px; color: var(--fg); }
.bz-continue-progress {
  width: 160px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 10px;
}
.bz-continue-progress > span { display: block; height: 100%; background: var(--accent); }

/* ---------------------------------------------------------------
   Episode directory: editorial rows, not glowing tiles.
   --------------------------------------------------------------- */
.bz-directory { padding-bottom: 96px; }
.bz-section-head { position: relative; margin-bottom: 28px; }
.bz-section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 8px;
}
.bz-section-head p { color: var(--fg-mute); font-size: 15px; margin: 0; }

.bz-ep-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 36px var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.bz-ep-row:hover {
  background: rgba(232,228,220,0.035);
}
.bz-ep-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1.2;
  padding-top: 3px;
}
.bz-ep-row.is-owned .bz-ep-num,
.bz-ep-row.is-free .bz-ep-num { color: var(--accent-hi); }
.bz-ep-main h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 6px;
}
.bz-ep-main h3 a:hover { color: var(--accent-hi); }
.bz-ep-teaser {
  font-family: var(--read);
  font-size: 15px;
  color: var(--fg-mute);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 9px;
}
.bz-ep-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}
.bz-ep-meta .bz-tag-free { color: var(--accent-hi); }
.bz-ep-progress-mini {
  margin-top: 8px;
  width: 120px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.bz-ep-progress-mini > span { display: block; height: 100%; background: var(--accent); }
.bz-ep-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }.bz-ep-price { font-size: 13px; color: var(--fg-mute); }
.bz-ep-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-faint);
}
.bz-ep-check input { accent-color: var(--accent); width: 15px; height: 15px; }

.bz-bundle-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bz-bundle-bar[hidden] { display: none; }
.bz-bundle-summary { font-size: 14px; color: var(--fg-soft); }
.bz-bundle-summary strong { color: var(--fg); }
.bz-bundle-save { color: var(--accent-hi); font-size: 13px; }

/* ---------------------------------------------------------------
   Atmospheric fog: a very slow, very low-opacity haze that drifts
   over the fixed background. Sits above .bz-bg / .bz-grain but still
   behind every real element (z-index -1, painted after .bz-grain in
   the DOM so it layers on top of it). Pure background texture: no
   page content is inside it, and nothing here ever moves anything a
   visitor reads or clicks.
   --------------------------------------------------------------- */
.bz-fog {
  position: fixed;
  inset: -12% -8%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 40% at 22% 28%, rgba(232,228,220,0.05), transparent 62%),
    radial-gradient(ellipse 48% 36% at 78% 68%, rgba(232,228,220,0.04), transparent 66%);
  background-repeat: no-repeat;
  filter: blur(46px);
  animation: bz-fog-drift 150s ease-in-out infinite alternate;
}
@keyframes bz-fog-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.03); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

/* ---------------------------------------------------------------
   Reading progress indicator: thin, top of page.
   --------------------------------------------------------------- */
.bz-progress-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60;
  background: transparent;
}
.bz-progress-rail > span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width 80ms linear;
}

/* ---------------------------------------------------------------
   Episode header (reader page): no divider beneath it; whitespace
   alone separates it from the story.
   --------------------------------------------------------------- */
.bz-ep-header {
  padding: 48px 0 0;  margin-bottom: 48px;
}
.bz-ep-header .bz-container { max-width: 680px; }
.bz-crumb {
  font-size: 13px; color: var(--fg-mute); margin-bottom: 18px; display: inline-block;
}
.bz-crumb:hover { color: var(--fg); }
.bz-ep-header .bz-kicker { margin-bottom: 10px; }
.bz-ep-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.bz-ep-header-meta { font-size: 13px; color: var(--fg-faint); }

/* ---------------------------------------------------------------
   Reading container: the whole point of the page. The story sits
   directly on the page: no card, no border, no background panel,
   a centered column of text, like a page in a book.
   --------------------------------------------------------------- */
.bz-reader { padding-bottom: 72px; }
.bz-reader .bz-container { max-width: 680px; }
.bz-reading-surface {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.bz-prose {
  font-family: var(--read);
  font-size: 19px;
  line-height: 1.85;
  color: var(--fg);
}
.bz-prose p { margin: 0 0 1.5em; }
.bz-prose p:last-child { margin-bottom: 0; }
.bz-scene-break {
  text-align: center;
  margin: 2.2em 0;
  color: var(--accent-hi);
  font-size: 13px;
  letter-spacing: 0.3em;
}

/* Gate card: for locked/unpurchased episodes */
.bz-gate {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 48px clamp(20px, 6vw, 56px);
  text-align: left;
}
.bz-gate h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 12px; }
.bz-gate p { font-family: var(--read); color: var(--fg-soft); font-size: 16px; line-height: 1.65; margin: 0 0 24px; max-width: 56ch; }
.bz-gate-price { font-size: 15px; color: var(--fg-mute); margin-bottom: 20px; }
.bz-gate-price strong { color: var(--fg); font-size: 18px; }

/* Loading / error state */
.bz-state {
  padding: 80px 0;
  text-align: center;
  color: var(--fg-mute);
  font-size: 15px;
}

/* ---------------------------------------------------------------
   Episode navigation footer: plain text links separated by
   whitespace, not bordered boxes. "Next episode" stays the clearest
   thing on the row (serif title, small crimson label) without
   becoming a filled red block.
   --------------------------------------------------------------- */
.bz-ep-nav {
  padding: 56px 0 88px;
}
.bz-ep-nav .bz-container {
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.bz-ep-nav-link {
  padding: 0;
  border: 0;
  background: transparent;  transition: opacity var(--dur) var(--ease);
}
.bz-ep-nav-link:hover { opacity: 0.7; }
.bz-ep-nav-link.is-next {
  background: transparent;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  justify-content: center;
}
.bz-ep-nav-label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 6px; }
.bz-ep-nav-link.is-next .bz-ep-nav-label { color: var(--accent-hi); }
.bz-ep-nav-title { font-family: var(--serif); font-size: 16px; }
.bz-ep-nav-link.is-next .bz-ep-nav-title { font-weight: 500; }
.bz-ep-nav-all {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--fg-mute); padding: 0 4px;
}
.bz-ep-nav-all:hover { color: var(--fg); }
@media (max-width: 640px) {
  .bz-ep-nav .bz-container { grid-template-columns: 1fr; text-align: center; }
  .bz-ep-nav-link.is-next { align-items: center; text-align: center; }
  .bz-ep-nav-all { order: 3; padding: 8px 0; }
}

/* ---------------------------------------------------------------
   Reader pages read quieter than the rest of the site: the
   background and fog stay present (same one world) but recede
   further so nothing competes with the text. Scoped by the
   presence of .bz-reader rather than a body class, so no template
   changes are needed.
   --------------------------------------------------------------- */
body:has(.bz-reader) .bz-fog {
  opacity: 0.4;
}
body:has(.bz-reader) .bz-bg {
  filter: saturate(0.85) brightness(0.6) contrast(1.02);
}
body:has(.bz-reader) .bz-bg::after {
  background:
    linear-gradient(180deg, rgba(16,17,19,0.55) 0%, rgba(16,17,19,0.78) 38%, rgba(16,17,19,0.94) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(16,17,19,0.84) 0%, rgba(16,17,19,0.62) 16%, rgba(16,17,19,0.62) 84%, rgba(16,17,19,0.84) 100%);
}

/* ---------------------------------------------------------------
   Library page
   --------------------------------------------------------------- */
.bz-library { padding: 64px 0 96px; }
.bz-library .bz-container { max-width: 780px; }
.bz-library h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 0 0 8px; }
.bz-library-sub { color: var(--fg-mute); font-size: 15px; margin: 0 0 40px; }
.bz-toast {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 32px;
}
.bz-signed-out {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;  padding: 40px;
  text-align: center;
}
.bz-signed-out p { color: var(--fg-soft); font-family: var(--read); font-size: 16px; margin: 0 0 20px; }

/* ---------------------------------------------------------------
   Checkout cancelled page
   --------------------------------------------------------------- */
.bz-checkout-state { padding: 110px 0; text-align: center; }
.bz-checkout-state .bz-container { max-width: 520px; }
.bz-checkout-state h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 14px; }
.bz-checkout-state p { color: var(--fg-soft); font-family: var(--read); font-size: 16px; line-height: 1.65; margin: 0 0 28px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.bz-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 13px;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.bz-footer a:hover { color: var(--fg-mute); }

@media (prefers-reduced-motion: reduce) {
  .bz * { transition: none !important; animation: none !important; }
}

@media (max-width: 640px) {
  .bz-hero { padding: 56px 0 48px; }
  .bz-ep-row { grid-template-columns: 1fr; padding: 28px var(--gutter); }
  .bz-ep-action { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 4px; }
}

/* cache-bust 1790630618 */
