/* Local, scoped article styles for integration into the existing WordPress site. */
#bz-halloween-story {
  --bz-ink: #160d21;
  --bz-paper: #f6eee4;
  --bz-soft: #d1c2d4;
  --bz-gold: #dfbb7e;
  --bz-line: #483348;
  position: relative;
  isolation: isolate;
  max-width: 1600px;
  margin: 0 auto;
  color: var(--bz-paper);
  background: var(--bz-ink);
  font: 400 17px / 1.8 Arial, Helvetica, sans-serif;
  overflow-wrap: break-word;
}

#bz-halloween-story, #bz-halloween-story * { box-sizing: border-box; }
#bz-halloween-story [hidden] { display: none !important; }
#bz-halloween-story a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
#bz-halloween-story a:hover { color: var(--bz-gold); }
#bz-halloween-story a:focus-visible,
#bz-halloween-story button:focus-visible,
#bz-halloween-story summary:focus-visible { outline: 2px solid var(--bz-gold); outline-offset: 5px; }
#bz-halloween-story .bz-skip { position: absolute; z-index: 20; left: 20px; top: -100px; padding: 10px 18px; background: var(--bz-paper); color: var(--bz-ink); }
#bz-halloween-story .bz-skip:focus { top: 10px; }
#bz-halloween-story .bz-masthead { display: flex; align-items: center; gap: 28px; min-height: 76px; padding: 12px 5.6%; font-size: 12px; color: var(--bz-soft); }
#bz-halloween-story .bz-masthead a { text-decoration: none; }
#bz-halloween-story .bz-masthead .bz-wordmark { font-size: 15px; letter-spacing: .18em; font-weight: 700; color: var(--bz-gold); }
#bz-halloween-story .bz-masthead-line { flex: 1; height: 1px; background: var(--bz-line); opacity: .6; }
#bz-halloween-story .bz-hero { position: relative; }
#bz-halloween-story .bz-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(17 8 30 / 80%), rgb(17 8 30 / 48%) 31%, rgb(17 8 30 / 7%) 52%, transparent 68%), linear-gradient(0deg, var(--bz-ink), transparent 16%); }
#bz-halloween-story .bz-hero-copy { position: absolute; top: 46%; left: 5.6%; width: 40%; transform: translateY(-50%); }
#bz-halloween-story h1, #bz-halloween-story h2, #bz-halloween-story h3 { margin: 0; color: var(--bz-paper); font-weight: 400; }
#bz-halloween-story .bz-eyebrow { display: block; color: var(--bz-gold); font: 500 12px / 1.5 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .17em; }
#bz-halloween-story .bz-hero h1 .bz-eyebrow { margin-bottom: 20px; }
#bz-halloween-story .bz-hero-title { display: block; font: 400 clamp(30px,4.2vw,65px) / 1.04 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
#bz-halloween-story .bz-hero-copy p { margin: 22px 0; font-size: clamp(13px,1.7vw,18px); line-height: 1.6; color: #e0d0df; }
#bz-halloween-story .bz-primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0 8px; min-height: 44px; color: var(--bz-gold); font-size: 13px; line-height: 1.4; text-decoration: none; border-bottom: 1px solid #866b50; }
#bz-halloween-story .bz-reading-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 9px 5.6% 20px; color: var(--bz-soft); font-size: 12px; line-height: 1.5; }
#bz-halloween-story .bz-reading-bar > span > span { padding: 0 8px; }
#bz-halloween-story .bz-motion-control { display: flex; align-items: center; gap: 14px; }
#bz-halloween-story .bz-motion-status { max-width: 200px; color: #baaac3; }
#bz-halloween-story .bz-motion-toggle { appearance: none; display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; min-width: 104px; padding: 10px 15px; font: 400 12px / 1.4 Arial, Helvetica, sans-serif; color: var(--bz-paper); background: #2e1b3d; border: 1px solid #6c5069; border-radius: 999px; }
#bz-halloween-story .bz-motion-toggle:hover:not(:disabled) { background: #402647; }
#bz-halloween-story .bz-motion-toggle:disabled { opacity: .7; }
#bz-halloween-story [data-bzfx-value] { color: var(--bz-gold); }
#bz-halloween-story .bz-opening { position: relative; max-width: 800px; margin: 0 auto; padding: 60px 32px 50px; }
#bz-halloween-story .bz-opening > p { margin: 0; font: 400 clamp(23px,2.8vw,30px) / 1.55 Georgia, 'Times New Roman', serif; color: #eadddf; }
#bz-halloween-story .bz-contents { margin-top: 30px; color: var(--bz-soft); font-size: 13px; line-height: 1.7; }
#bz-halloween-story .bz-contents summary { width: fit-content; min-height: 44px; padding: 10px 0; color: var(--bz-gold); }
#bz-halloween-story .bz-contents ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 8px; padding: 10px 0 10px 22px; }
#bz-halloween-story .bz-contents a { display: inline-block; padding: 3px 0; }
#bz-halloween-story .bz-article { position: relative; background: linear-gradient(180deg, rgb(22 13 33 / 72%), var(--bz-ink) 850px), url('assets/reading-desktop.webp') top center / 1400px auto no-repeat; }
#bz-halloween-story .bz-chapter { max-width: 1120px; margin: 0 auto; padding: 56px 48px 72px; scroll-margin-top: 24px; }
#bz-halloween-story .bz-chapter + .bz-chapter { border-top: 1px solid rgb(91 65 92 / 35%); }
#bz-halloween-story .bz-chapter-heading { margin-bottom: 32px; }
#bz-halloween-story .bz-chapter-number { display: block; margin-bottom: 12px; color: var(--bz-gold); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
#bz-halloween-story .bz-chapter-heading h2 { font: 400 clamp(30px,3.2vw,42px) / 1.16 Georgia, 'Times New Roman', serif; letter-spacing: -.015em; }
#bz-halloween-story .bz-chapter-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 58px; align-items: start; }
#bz-halloween-story .bz-chapter--reverse .bz-chapter-grid { grid-template-columns: minmax(0,.8fr) minmax(0,1fr); }
#bz-halloween-story .bz-chapter--reverse .bz-story-image { grid-column: 1; grid-row: 1; }
#bz-halloween-story .bz-chapter--reverse .bz-prose { grid-column: 2; grid-row: 1; }
#bz-halloween-story .bz-prose { min-width: 0; color: var(--bz-soft); font-size: 17px; line-height: 1.83; }
#bz-halloween-story .bz-prose p { margin: 0 0 16px; }
#bz-halloween-story .bz-prose p:last-child { margin-bottom: 0; }
#bz-halloween-story .bz-prose a { color: var(--bz-gold); }
#bz-halloween-story .bz-prose strong { font-weight: 600; color: var(--bz-paper); }
#bz-halloween-story .bz-story-image { margin: 0; min-width: 0; }
#bz-halloween-story .bz-story-image a { display: block; }
#bz-halloween-story .bz-story-image img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 3px; }
#bz-halloween-story .bz-story-image figcaption { margin-top: 15px; padding-left: 14px; border-left: 1px solid #8a6b43; color: #b4a2bc; font-size: 12px; line-height: 1.7; }
#bz-halloween-story .bz-chapter--group { max-width: 1050px; }
#bz-halloween-story .bz-chapter--group .bz-story-image { margin-bottom: 36px; }
#bz-halloween-story .bz-chapter--group .bz-prose { max-width: 680px; margin: 0 auto; }
#bz-halloween-story .bz-chapter--group .bz-chapter-heading { max-width: 680px; margin-left: auto; margin-right: auto; }
#bz-halloween-story .bz-detail { margin: 32px auto 38px; max-width: 680px; }
#bz-halloween-story .bz-detail figcaption { margin-top: 12px; color: #b4a2bc; font-size: 12px; line-height: 1.7; }
#bz-halloween-story .bz-detail-lead { max-width: 680px; margin: 0 auto 24px; }
#bz-halloween-story .bz-transition { margin: 14px 0 0; position: relative; }
#bz-halloween-story .bz-transition-copy { max-width: 720px; margin: -1px auto 0; padding: 30px 32px 15px; text-align: center; background: var(--bz-ink); }
#bz-halloween-story .bz-transition-copy p { margin: 0; font: 400 clamp(22px,2.7vw,32px) / 1.45 Georgia, 'Times New Roman', serif; color: #ece0df; }
#bz-halloween-story .bz-transition-copy .bz-eyebrow { margin-bottom: 10px; }
#bz-halloween-story .bz-chapter--split { max-width: 1120px; }
#bz-halloween-story .bz-chapter-tail { max-width: 680px; margin: 30px auto 0; }
#bz-halloween-story .bz-interlude { max-width: 760px; margin: 25px auto 45px; padding: 28px 32px; border-top: 1px solid var(--bz-line); border-bottom: 1px solid var(--bz-line); }
#bz-halloween-story .bz-interlude .bz-eyebrow { margin-bottom: 12px; font-size: 10px; }
#bz-halloween-story .bz-interlude p { margin: 0; font: 400 24px / 1.5 Georgia, 'Times New Roman', serif; }
#bz-halloween-story .bz-story-footer { padding: 52px 32px 90px; text-align: center; background: radial-gradient(ellipse at 50% 110%, #29332a, transparent 65%); }
#bz-halloween-story .bz-story-footer h2 { max-width: 720px; margin: 20px auto 30px; font: 400 clamp(28px,3.2vw,40px) / 1.25 Georgia, 'Times New Roman', serif; }
#bz-halloween-story .bz-footer-links { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: 13px; }
#bz-halloween-story .bz-footer-links > a { min-height: 44px; }
@media (min-width: 801px) {
  #bz-halloween-story .bz-chapter-grid > .bz-story-image { position: sticky; top: 28px; }
}
@media (max-width: 800px) {
  #bz-halloween-story .bz-chapter { padding: 42px 30px 50px; }
  #bz-halloween-story .bz-chapter-grid, #bz-halloween-story .bz-chapter--reverse .bz-chapter-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  #bz-halloween-story .bz-chapter-grid .bz-prose { grid-column: auto; grid-row: 1; }
  #bz-halloween-story .bz-chapter-grid .bz-story-image { grid-column: auto; grid-row: 2; max-width: 390px; width: 100%; margin: 0 auto; }
  #bz-halloween-story .bz-prose { font-size: 16px; line-height: 1.85; }
  #bz-halloween-story .bz-hero-copy { top: 45%; }
  #bz-halloween-story .bz-hero h1 .bz-eyebrow { font-size: 10px; margin-bottom: 12px; }
  #bz-halloween-story .bz-hero-copy p { margin: 13px 0 6px; }
  #bz-halloween-story .bz-motion-status { display: none; }
}
@media (max-width: 560px) {
  #bz-halloween-story .bz-masthead { gap: 18px; padding: 12px 24px; min-height: 66px; }
  #bz-halloween-story .bz-masthead .bz-wordmark { font-size: 12px; letter-spacing: .13em; }
  #bz-halloween-story .bz-masthead-line { display: none; }
  #bz-halloween-story .bz-masthead a:nth-last-child(2) { margin-left: auto; }
  #bz-halloween-story .bz-masthead a { font-size: 11px; }
  #bz-halloween-story .bz-hero-shade { background: linear-gradient(0deg,var(--bz-ink),transparent 25%); bottom: auto; height: auto; aspect-ratio: 4 / 3; width: 100%; }
  #bz-halloween-story .bz-hero-copy { position: relative; left: auto; top: auto; width: auto; transform: none; padding: 8px 26px 25px; }
  #bz-halloween-story .bz-hero-title { font-size: clamp(33px,7.8vw,43px); }
  #bz-halloween-story .bz-hero h1 .bz-eyebrow { font-size: 11px; margin-bottom: 13px; }
  #bz-halloween-story .bz-hero-copy p { font-size: 14px; margin: 18px 0 9px; }
  #bz-halloween-story .bz-reading-bar { padding: 0 26px 20px; gap: 14px; }
  #bz-halloween-story .bz-reading-bar > span { max-width: 170px; }
  #bz-halloween-story .bz-opening { padding: 35px 26px 32px; }
  #bz-halloween-story .bz-opening > p { font-size: 23px; }
  #bz-halloween-story .bz-contents ol { grid-template-columns: 1fr; }
  #bz-halloween-story .bz-chapter { padding: 36px 26px 42px; }
  #bz-halloween-story .bz-chapter-heading h2 { font-size: 31px; }
  #bz-halloween-story .bz-chapter-grid .bz-story-image { max-width: 330px; }
  #bz-halloween-story .bz-article { background-image: linear-gradient(180deg,rgb(22 13 33 / 80%),var(--bz-ink) 800px),url('assets/reading-mobile.webp'); background-size: auto,100% auto; }
  #bz-halloween-story .bz-detail { margin: 25px auto; }
  #bz-halloween-story .bz-transition-copy { padding: 24px 26px 6px; }
  #bz-halloween-story .bz-interlude { margin: 10px 26px 24px; padding: 22px 0; }
  #bz-halloween-story .bz-interlude p { font-size: 23px; }
}

/* Reader edition: scoped navigation and full illustration viewer. */
#bz-halloween-story .bz-reading-estimate { display: block; padding: 5px 0 0; color: #bba8c1; }
#bz-halloween-story .bz-opening > .bz-reader-note { margin-top: 22px; font: 400 13px / 1.7 Arial, sans-serif; color: var(--bz-soft); }
#bz-halloween-story .bz-cast { margin: 18px 0 0; max-width: 680px; font: 400 13px / 1.8 Arial, sans-serif; color: var(--bz-gold); }
#bz-halloween-story .bz-reader { position: sticky; top: var(--bz-reader-offset, 0px); z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 5.6%; border-top: 1px solid #4b334c; border-bottom: 1px solid #4b334c; background: #1b1027; color: var(--bz-soft); font: 400 12px / 1.5 Arial, sans-serif; }
#bz-halloween-story .bz-reader-position { flex: 0 0 auto; color: var(--bz-gold); letter-spacing: .06em; }
#bz-halloween-story .bz-reader-jump { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
#bz-halloween-story .bz-reader select { min-height: 44px; max-width: 340px; min-width: 0; border: 1px solid #6c5069; border-radius: 4px; padding: 8px 12px; background: #281a34; color: #f6eee4; font: inherit; }
#bz-halloween-story .bz-reader button { min-height: 44px; min-width: 52px; border: 1px solid #866b50; border-radius: 4px; background: #dfbb7e; color: #221426; font: 600 12px / 1.5 Arial, sans-serif; cursor: pointer; }
#bz-halloween-story .bz-reader select:focus-visible { outline: 2px solid var(--bz-gold); outline-offset: 3px; }
#bz-halloween-story .bz-reader progress { appearance: none; position: absolute; width: 100%; height: 3px; bottom: -1px; left: 0; border: 0; background: #302039; color: #dfbb7e; }
#bz-halloween-story .bz-reader progress::-webkit-progress-bar { background: #302039; }
#bz-halloween-story .bz-reader progress::-webkit-progress-value { background: #dfbb7e; }
#bz-halloween-story .bz-reader progress::-moz-progress-bar { background: #dfbb7e; }
#bz-halloween-story .bz-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#bz-halloween-story .bz-chapter { scroll-margin-top: calc(var(--bz-reader-offset, 0px) + 100px); }
#bz-halloween-story .bz-chapter:focus { outline: none; }
#bz-halloween-story .bz-gallery { max-width: min(96vw, 1400px); max-height: 96vh; width: max-content; padding: 58px 18px 18px; border: 1px solid #755575; border-radius: 8px; color: #eadddf; background: #160d21; }
#bz-halloween-story .bz-gallery::backdrop { background: rgb(7 3 15 / 91%); }
#bz-halloween-story .bz-gallery figure { margin: 0; }
#bz-halloween-story .bz-gallery img { display: block; width: auto; height: auto; max-width: 88vw; max-height: calc(94vh - 130px); object-fit: contain; margin: auto; }
#bz-halloween-story .bz-gallery figcaption { max-width: 680px; margin: 12px auto 0; font: 400 12px / 1.6 Arial, sans-serif; }
#bz-halloween-story .bz-gallery-close { position: absolute; top: 8px; right: 12px; min-height: 44px; min-width: 80px; padding: 8px 12px; border: 1px solid #755575; border-radius: 4px; background: #2e1b3d; color: #f6eee4; cursor: pointer; font: 400 13px / 1.5 Arial, sans-serif; }
@media (min-width: 801px) {
  #bz-halloween-story .bz-chapter-grid > .bz-story-image { top: calc(var(--bz-reader-offset, 0px) + 100px); }
}
@media (max-width: 560px) {
  #bz-halloween-story .bz-reader { gap: 8px; padding: 9px 16px 12px; flex-wrap: wrap; }
  #bz-halloween-story .bz-reader-position { font-size: 10px; }
  #bz-halloween-story .bz-reader-jump { flex: 1 1 100%; }
  #bz-halloween-story .bz-reader select { flex: 1; width: 100%; max-width: none; font-size: 12px; }
  #bz-halloween-story .bz-chapter { scroll-margin-top: calc(var(--bz-reader-offset, 0px) + 115px); }
}
