/* julianherschel.com shared theme. Scope: body.jh-site only.
   Page components (.jh-gate, .book-world*) are matched by their own classes, so the
   host's .jh-home-preview / .jh-book-preview mount classes are not required.
   Not touched on purpose: .mobile-chapter-reader / .mobile-reader-* (reader prefs),
   paywall/reading gates, link behaviour, display/visibility of interactive elements. */

/* 1. Tokens and base surface */
body.jh-site {
  --jh-night: #0c120e;
  --jh-night-2: #101711;
  --jh-surface: #161914;
  --jh-band: #1b1d17;
  --jh-band-deep: #191b15;
  --jh-card: #25241c;
  --jh-folio: #24251e;
  --jh-field: #1b1c16;
  --jh-text: #f3ead5;
  --jh-ivory: #f8efdc;
  --jh-muted: #ccc1a7;
  --jh-gold: #dfba78;
  --jh-gold-hi: #f0d29a;
  --jh-line: rgba(223, 186, 120, .26);
  --jh-wine: #782638;
  --jh-wine-hi: #94394d;
  --jh-gutter: max(clamp(1.25rem, 4vw, 3.5rem), calc((100% - 1180px) / 2));
  --text: var(--jh-text);
  --muted: var(--jh-muted);
  --line: var(--jh-line);
  color-scheme: dark;
  background: var(--jh-surface);
  color: var(--jh-text);
}

body.jh-site .site-main { background: var(--jh-surface); }

/* edge-to-edge stage only on pages that mount the World Gate / illustrated book */
body.jh-site .site-main:has(> .jh-gate, > .book-world) { padding: 0; }
body.jh-site .site-main > :is(.jh-gate, .book-world) { width: 100%; max-width: none; margin: 0; }

/* 2. Header */
body.jh-site .site-header { color: var(--jh-ivory); background: var(--jh-night); border-bottom: 0; box-shadow: none; }
body.jh-site .site-header :is(.site-nav a, .brand-copy > span, .mobile-nav summary, .mobile-nav a) { color: var(--jh-ivory); }
body.jh-site .site-header .brand-copy small { color: #d3bc90; }
body.jh-site .site-header a:hover { color: var(--jh-gold); }
body.jh-site .site-header .mobile-nav summary { border-color: #bda371; }
body.jh-site .site-header .mobile-nav nav { background: #191a16; }

/* Catalog, dispatch and story templates have their own legacy paper surfaces. */
body.jh-site :is(.world-door, .dispatch-card, .dispatch-paper, .dispatch-declassification,
    .complaint-desk, .dispatch-related-grid a, .bonus-story-context > div, .bonus-story-gate,
    .bonus-story-audio, .bonus-story-welcome, .rusty-start-anywhere, .game-guide-intro,
    .immersive-section-heading, .immersive-character, .immersive-quote, .immersive-scene > div) {
  background: var(--jh-card);
  color: var(--jh-text);
  border: 1px solid var(--jh-line);
  border-image: none;
  box-shadow: none;
  filter: none;
}

body.jh-site .world-doors { background: transparent; }
body.jh-site #worlds.world-doors-cover-first .world-door { background: var(--jh-card); border-color: var(--jh-line); }
body.jh-site #worlds.world-doors-cover-first .world-door-jacket { border-color: var(--jh-line); }
body.jh-site #reading-order {
  --ro-ivory: var(--jh-card);
  --ro-ink: var(--jh-text);
  --ro-green: var(--jh-ivory);
  --ro-green-deep: var(--jh-text);
  --ro-brown: var(--jh-gold);
  --ro-amber-edge: var(--jh-line);
}
body.jh-site .world-door :is(h3, .world-door-title), body.jh-site .dispatch-card h2 a,
body.jh-site .dispatch-prose, body.jh-site .dispatch-prose :is(h2, h3, h4, h5, h6),
body.jh-site :is(.bonus-story-gate, .bonus-story-audio, .dispatch-declassification, .game-guide-intro) :is(h1, h2, h3),
body.jh-site :is(.immersive-section-heading, .immersive-character, .immersive-quote, .immersive-scene > div) :is(h2, h3, h4) {
  color: var(--jh-text);
}

body.jh-site .world-door :is(p, small), body.jh-site .dispatch-card-copy > p,
body.jh-site .dispatch-related-grid span, body.jh-site .bonus-story-context p,
body.jh-site .bonus-story-gate > p:not(.kicker), body.jh-site .bonus-story-audio > p:not(.kicker),
body.jh-site :is(.immersive-section-heading, .immersive-character, .immersive-quote, .immersive-scene > div) p {
  color: var(--jh-muted);
}

body.jh-site .world-door :is(.world-door-place, .world-door-enter), body.jh-site :is(.dispatch-read-link,
    .dispatch-prose a, .dispatch-related-grid a, .bonus-story-gate-help a, .bonus-story-context strong,
    .game-guide-intro a:not(.button)) {
  color: var(--jh-gold);
}

body.jh-site .world-door:focus-visible { outline-color: var(--jh-gold); }
body.jh-site .dispatch-paper::before { content: none; }
body.jh-site .dispatch-prose blockquote { background: var(--jh-band); color: var(--jh-muted); border-color: var(--jh-gold); }
body.jh-site .site-main > .hero:not(.series-world-hero) { background-color: var(--jh-band-deep); color: var(--jh-text); }
body.jh-site .site-main > .hero:not(.series-world-hero) h1 { color: var(--jh-text); }
body.jh-site .site-main > .world-guide-hero {
  background: var(--jh-band-deep);
  border: 0;
  box-shadow: none;
}
body.jh-site .world-guide-hero::before {
  background-image: url("/chapter-scenes/the-succubus-of-the-singing-stone/chapter-one-hero-v2.webp");
  background-position: center 42%;
}
body.jh-site .world-guide-hero::after {
  background: linear-gradient(90deg, #111611f5, #111611bc 52%, #11161148);
}
body.jh-site .site-footer { background: var(--jh-night); color: var(--jh-muted); border-top: 1px solid var(--jh-line); }
body.jh-site .site-footer :is(.footer-copy, .affiliate-disclosure) { color: var(--jh-muted); }
body.jh-site .site-footer :is(.footer-brand, a) { color: var(--jh-gold-hi); }

/* 3. Dark defaults for existing content surfaces (colour only, low specificity, art preserved) */
body.jh-site :where(.panel, .world-doors, .series-route, .dispatches, .reader, .immersive-book,
    [class^="immersive-"], [class*=" immersive-"]) {
  color: var(--jh-text);
}
body.jh-site :where(.panel, .world-doors, .series-route, .dispatches, .reader) {
  background-color: var(--jh-card);
  border-color: var(--jh-line);
}
body.jh-site :where(.immersive-book) { background-color: var(--jh-surface); }
body.jh-site :where(.panel, .world-doors, .series-route, .dispatches, .reader, .immersive-book) :where(h1, h2, h3, h4) {
  color: var(--jh-text);
}
body.jh-site :where(.panel, .world-doors, .series-route, .dispatches, .reader) :where(.muted, small) {
  color: var(--jh-muted);
}

/* 4. Bands and cards */
body.jh-site :is(.world-local-nav, .world-threshold, .chapter-audio-scroll, .world-extras, .next-world, .book-reader-invite) {
  background: var(--jh-band);
  color: var(--jh-text);
  border-image: none;
  box-shadow: none;
}
body.jh-site :is(.world-extras, .next-world) { background: var(--jh-band-deep); }
body.jh-site :is(.world-extra, .traveller-notes, .bonus-story-card, .series-gateway-copy, .reader-letter,
    .lore-scrap, .book-card-main, .party-gallery-intro, .book-journey-actions) {
  background: var(--jh-card);
  border-color: transparent;
  border-image: none;
  box-shadow: inset 0 0 0 1px var(--jh-line);
  color: var(--jh-text);
}
body.jh-site :is(.book-folio, .chapter-unfurl-inner) {
  background: var(--jh-folio);
  border-color: transparent;
  border-image: none;
  box-shadow: inset 0 0 0 1px var(--jh-line);
  color: var(--jh-text);
}

/* 5. Type colours */
body.jh-site :is(.section-block, .world-local-nav, .world-threshold, .world-extras, .chapter-audio-scroll,
    .book-folio, .traveller-notes, .next-world, .book-reader-invite, .book-journey-actions, .party-gallery,
    .rusty-scrapbook) :is(h2, h3, h4, .section-title, .card-head h3, .card-head h3 a) {
  color: var(--jh-text);
}
body.jh-site :is(.section-block, .world-extras, .chapter-audio-scroll, .traveller-notes, .next-world,
    .book-reader-invite, .party-gallery, .rusty-scrapbook)
  :is(.kicker, .scrap-kicker, .gateway-series-prefix, .party-role),
body.jh-site :is(.world-threshold span, .world-extra small, .book-wayfinding a span, .book-wayfinding a strong,
    .traveller-notes strong, .audio-provenance strong, .party-continuity-note strong, .lore-scrap .rebrand-survivor) {
  color: var(--jh-gold);
  letter-spacing: .16em;
  text-transform: uppercase;
}
body.jh-site :is(.traveller-notes strong, .audio-provenance strong, .party-continuity-note strong,
    .book-wayfinding a strong, .lore-scrap .rebrand-survivor) { letter-spacing: normal; text-transform: none; }
body.jh-site :is(.muted, .quest-intro, .realm-intro, .gateway-note, .book-card-blurb, .book-tone-note,
    .audio-provenance, .scrap-attribution, .letter-fineprint, .reader-signup-consent, .reader-signup-status,
    .chapter-audio-copy p, .world-extra p, .world-threshold p, .traveller-notes p, .lore-scrap small,
    .lore-scrap .gerald-editorial, .chapter-speed-picker > span, .section-block > p:not(.kicker),
    .free-story-showcase-header > p:not(.kicker), .series-gateway-copy p:not(.kicker):not(.gateway-series-prefix),
    .reader-letter p:not(.kicker), .party-gallery-intro p:not(.kicker), .book-reader-invite > p:not(.kicker)) {
  color: var(--jh-muted);
}
body.jh-site .book-folio :is(p, li, blockquote) { color: var(--jh-text); }
body.jh-site .book-folio :is(strong, em) { color: inherit; }
body.jh-site .book-folio > p:first-of-type::first-letter { color: var(--jh-gold); }

/* 6. Links (branded buttons and store links deliberately excluded) */
body.jh-site :is(.text-link, .book-journey-list-link, .book-primary-link, .book-wayfinding a, .book-folio p a,
    .traveller-notes a, .letter-fineprint a, .party-continuity-note a, .jh-preview-signup-note a) {
  color: var(--jh-gold);
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
body.jh-site :is(.text-link, .book-journey-list-link, .book-primary-link, .book-wayfinding a, .book-folio p a,
    .traveller-notes a):hover { color: var(--jh-gold-hi); }
body.jh-site :is(.world-local-nav a) { color: var(--jh-text); text-decoration: none; }
body.jh-site .world-local-nav a:is(:hover, :focus-visible) { color: var(--jh-gold); }
body.jh-site :is(.chapter-audio-scroll, .reader-letter, .world-local-nav, .book-folio, .book-journey-actions)
  :is(a, button, input, select, summary, audio):focus-visible {
  outline: 2px solid var(--jh-gold);
  outline-offset: 2px;
}
body.jh-site .jh-preview-signup-note { font-size: .9rem; margin: .55rem 0 0; }

/* 7. Audio and form controls */
body.jh-site .chapter-audio-controls audio {
  width: 100%;
  color-scheme: dark;
  background: #303229;
  accent-color: var(--jh-gold);
}
body.jh-site .chapter-audio-controls audio::-webkit-media-controls-panel { background-color: #303229; }
body.jh-site :is(.reader-signup-fields input, .chapter-speed-picker select) {
  background-color: var(--jh-field);
  border-color: rgba(223, 186, 120, .45);
  color: var(--jh-text);
}
body.jh-site .chapter-speed-picker button {
  background: var(--jh-card);
  border-color: var(--jh-line);
  color: var(--jh-text);
}
body.jh-site .chapter-speed-picker button[aria-pressed="true"] {
  background: var(--jh-wine);
  border-color: var(--jh-gold);
  box-shadow: none;
}
body.jh-site .book-folio .chapter-toggle { background: var(--jh-card); border-color: transparent; box-shadow: inset 0 0 0 1px var(--jh-line); color: var(--jh-text); }
body.jh-site :is(.chapter-audio-controls, .book-journey-actions, .book-reader-invite, .next-world) .button.primary {
  background: var(--jh-wine);
  border-color: #c4876a;
  color: #fff8e8;
}
body.jh-site :is(.chapter-audio-controls, .book-journey-actions, .book-reader-invite, .next-world) .button.primary:hover { background: var(--jh-wine-hi); }

/* 8. Homepage World Gate */
body.jh-site .jh-gate {
  --gate-ink: var(--jh-ivory);
  --gate-soft: #e3d9c3;
  --gate-gold: #dfbb72;
  --gate-edge: #a789513f;
  position: relative;
  margin: 0;
  color: var(--gate-ink);
  background: var(--jh-night);
  overflow: hidden;
}
body.jh-site .jh-gate-hero {
  position: relative;
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 25%);
  align-items: center;
  gap: clamp(1rem, 3.8vw, 3.5rem);
  isolation: isolate;
  padding: clamp(3rem, 7vw, 6rem) var(--jh-gutter);
  scroll-margin-top: 6rem;
}
body.jh-site .jh-gate-hero::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #070d09 0%, #070d09dc 29%, #070d094b 60%, #070d0933),
    linear-gradient(0deg, var(--jh-night), transparent 24%);
}
body.jh-site .jh-gate-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
body.jh-site .jh-gate-hero:is([data-world="0"], [data-world="3"]) .jh-gate-art {
  inset-inline: auto 7%;
  width: min(76%, 42rem);
  mask-image: linear-gradient(90deg, transparent, #000 19%, #000 85%, transparent);
}
body.jh-site .jh-gate-cover {
  width: 100%;
  max-width: 17rem;
  height: auto;
  justify-self: end;
  box-shadow: 0 14px 40px #0009, 0 0 0 1px #e9c67966;
}
body.jh-site .jh-gate-copy { position: relative; max-width: 42rem; min-width: 0; }
body.jh-site .jh-gate h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
  max-width: 12ch;
  color: var(--gate-ink);
  font-size: clamp(2.4rem, 6.5vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.028em;
  text-wrap: balance;
}
body.jh-site .jh-gate .jh-gate-title {
  margin: .45rem 0 0;
  color: #fff7e7;
  font-size: clamp(1.3rem, 2.7vw, 2.05rem);
  line-height: 1.12;
  text-wrap: balance;
}
body.jh-site .jh-gate-title:focus { outline: none; }
body.jh-site .jh-gate :is(.jh-gate-kicker, .jh-gate-shelf > h2) {
  color: var(--gate-gold);
  font: 700 .71rem/1.3 var(--font-sans, system-ui);
  text-transform: uppercase;
  letter-spacing: .15em;
}
body.jh-site .jh-gate-hook { color: var(--gate-soft); font-size: clamp(.98rem, 1.65vw, 1.18rem); margin: .65rem 0 1.45rem; max-width: 39ch; }
body.jh-site .jh-gate-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
body.jh-site .jh-gate-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  padding: .7rem 1.1rem;
  border: 1px solid #e7c47a88;
  border-radius: .25rem;
  font: 700 .88rem/1.2 var(--font-sans, system-ui);
  text-decoration: none;
}
body.jh-site .jh-gate-actions .jh-gate-visit { color: #20160d; background: var(--gate-gold); }
body.jh-site .jh-gate-actions .jh-gate-jump { color: var(--gate-ink); background: #0b120bd1; }
body.jh-site .jh-gate :is(a, button):focus-visible { outline: 2px solid #ffde8e; outline-offset: 3px; }
body.jh-site .jh-gate-shelf {
  background: linear-gradient(var(--jh-night), #111a13);
  padding: .9rem var(--jh-gutter) clamp(1.8rem, 4vw, 3.2rem);
  scroll-margin-top: 6rem;
}
body.jh-site .jh-gate-shelf h2 { margin: 0 0 .8rem; }
body.jh-site .jh-gate-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
body.jh-site .jh-gate-choice {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
  min-height: 4.9rem;
  padding: .48rem;
  color: var(--gate-ink);
  background: #24312674;
  border: 1px solid var(--gate-edge);
  border-radius: .2rem;
  cursor: pointer;
  text-align: left;
  font: 600 .83rem/1.24 var(--font-serif, Georgia, serif);
}
body.jh-site .jh-gate-choice img { width: clamp(26px, 3vw, 43px); height: auto; flex: none; box-shadow: 2px 3px 8px #0009; }
body.jh-site .jh-gate-choice:hover { border-color: var(--gate-gold); }
body.jh-site .jh-gate-choice[aria-current="true"] { border-color: var(--gate-gold); background: #374b35; box-shadow: inset 2px 0 var(--gate-gold); }

/* 9. Illustrated book: hero (full-bleed stage, inset content) */
body.jh-site .jh-world-art,
body.jh-site .jh-chapter-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
body.jh-site :is(.jh-world-art, .jh-chapter-art) img,
body.jh-site img:is(.jh-world-art, .jh-chapter-art) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
body.jh-site .book-world-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: 0;
  padding: clamp(2.6rem, 5vw, 4.7rem) var(--jh-gutter);
  background: var(--jh-night);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #f6efe0;
}
body.jh-site .book-world-hero .jh-world-art {
  inset: 0 10% 0 auto;
  width: min(76%, 44rem);
  max-width: none;
  object-position: center 42%;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 83%, transparent);
}
body.jh-site .book-world-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(270deg, #101711f5 0%, #101711e5 30%, #10171185 64%, #1017111a),
    linear-gradient(0deg, var(--jh-night-2), transparent 25%);
}
body.jh-site .book-world-hero::after { content: none; }
body.jh-site .book-world-hero > :is(.book-world-cover-wrap, .book-world-copy) { position: relative; z-index: 2; min-width: 0; }
body.jh-site .book-world-cover-wrap { justify-self: end; width: 100%; max-width: 278px; transform: none; }
body.jh-site .book-world-cover-wrap :is(.book-cover, .book-world-cover) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(241, 196, 111, .45), 0 30px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(241, 196, 111, .12);
}
body.jh-site .book-world-copy { max-width: 620px; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
body.jh-site .book-world-copy .world-eyebrow { color: var(--jh-gold); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
body.jh-site .book-world-copy > h1 {
  margin: .35em 0 .3em;
  color: #fff6e6;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.01em;
  text-wrap: balance;
}
body.jh-site .book-world-copy .book-blurb { color: rgba(255, 248, 232, .92); font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.6; max-width: 54ch; }
body.jh-site .book-world-hero .hero-pills .book-order { color: var(--jh-gold); background: rgba(7, 13, 27, .55); border: 1px solid #a9783a; }
body.jh-site .book-world-hero .actions { gap: 12px; flex-wrap: wrap; }
body.jh-site .book-world-hero .actions-top { margin-top: 1.2rem; }
body.jh-site .book-world-hero .button.primary { background: var(--jh-wine); border-color: #c4876a; color: #fff8e8; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
body.jh-site .book-world-hero .button.primary:is(:hover, :focus-visible) { background: var(--jh-wine-hi); }
body.jh-site .book-world-hero .media-links .button { background: rgba(7, 13, 27, .62); border: 1px solid rgba(241, 196, 111, .7); color: #fff8e8; }
body.jh-site .book-world-hero .media-links .button:is(:hover, :focus-visible) { background: rgba(241, 196, 111, .18); }
body.jh-site .book-world-hero .series-start-note { color: rgba(255, 248, 232, .85); font-size: .92rem; }
body.jh-site .book-world-hero .series-start-note a { color: var(--jh-gold); text-decoration: underline; text-underline-offset: 3px; }
/* the miniature duplicates the art layer: keep it for AT, out of layout */
body.jh-site .book-world-hero:has(.jh-world-art) > .book-world-miniature { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.jh-site :is(.book-world-hero, #chapter-one) :is(a, .button):focus-visible { outline: 2px solid var(--jh-gold); outline-offset: 3px; }

/* branded hero controls */
body.jh-site .jh-book-buttons { display: grid; gap: .65rem; max-width: 34rem; margin: 1.35rem 0 .7rem; text-shadow: none; }
body.jh-site .jh-book-buttons-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
body.jh-site .book-world-hero .jh-book-button {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 46px;
  padding: .62rem .8rem;
  border: 1px solid #af945c91;
  border-radius: .35rem;
  background: #131914;
  color: #fbf2df;
  font: 650 .88rem/1.28 var(--font-sans, system-ui, sans-serif);
  text-align: left;
  text-decoration: none;
}
body.jh-site .book-world-hero .jh-book-button:hover { background: #242d23; border-color: var(--jh-gold); color: #fff7e8; }
body.jh-site .book-world-hero .jh-book-button img { display: block; flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
body.jh-site .book-world-hero .jh-book-button-spotify img { padding: 2px; }
body.jh-site .book-world-hero .jh-book-button-site { justify-self: start; min-height: 48px; padding-inline: .9rem 1.2rem; background: var(--jh-wine); border-color: #d7ab68; font-size: .94rem; }
body.jh-site .book-world-hero .jh-book-button-site:hover { background: var(--jh-wine-hi); }

/* 10. Guide bands, extras, chapter still, audio */
body.jh-site .world-local-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 16px var(--jh-gutter); border-bottom: 1px solid var(--jh-line); }
body.jh-site .world-local-nav a { font-weight: 600; font-size: .9rem; letter-spacing: .04em; padding: 8px 2px; }
body.jh-site .world-threshold { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; margin: 0; padding: 1.65rem var(--jh-gutter); }
body.jh-site .world-threshold > div { min-height: auto; padding: 0 clamp(12px, 2.4vw, 32px); text-align: center; background: none; border: 0; filter: none; }
body.jh-site .world-threshold > div + div { border-left: 1px solid var(--jh-line); }
body.jh-site .world-threshold span { display: block; font-size: .74rem; font-weight: 700; }
body.jh-site .world-threshold strong { display: block; margin-top: 6px; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.3; color: var(--jh-text); }
body.jh-site .world-extras { max-width: none; margin: 0; padding: clamp(1.65rem, 4.5vw, 3.4rem) var(--jh-gutter); }
body.jh-site .world-extras > * { max-width: 1180px; margin-inline: auto; }
body.jh-site .world-extras h2 { margin-top: .3em; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.12; padding-bottom: 14px; border-bottom: 1px solid var(--jh-line); }
body.jh-site .world-extras > p { color: var(--jh-muted); line-height: 1.65; max-width: 62ch; }
body.jh-site .world-extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: 24px; }
body.jh-site .world-extra { display: grid; grid-template-columns: minmax(3.8rem, 7rem) minmax(0, 1fr); overflow: hidden; border-radius: 3px; text-decoration: none; }
body.jh-site .world-extra > img { display: block; width: 100%; height: 100%; max-height: 8rem; object-fit: cover; }
body.jh-site .world-extra > div { padding: 16px 18px 20px; line-height: 1.5; min-width: 0; }
body.jh-site .world-extra:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--jh-gold); }

body.jh-site #chapter-one.chapter-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(22rem, 53vw, 37rem);
  margin: 0;
  padding: clamp(48px, 8vw, 110px) var(--jh-gutter) clamp(40px, 6vw, 80px);
  overflow: hidden;
  background: var(--jh-night-2);
  border: 0;
  box-shadow: none;
  color: #fff8e8;
}
body.jh-site #chapter-one .jh-chapter-art { object-position: 62% 30%; }
body.jh-site #chapter-one:has(.jh-chapter-art) > .chapter-scene-art { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.jh-site #chapter-one::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 8, 8, .86) 0%, rgba(20, 8, 8, .6) 34%, rgba(20, 8, 8, 0) 66%),
    linear-gradient(0deg, rgba(20, 8, 8, .78) 0%, rgba(20, 8, 8, 0) 48%);
}
body.jh-site #chapter-one .chapter-scene-copy { position: relative; z-index: 2; max-width: 540px; padding-top: 18px; border-top: 1px solid #a9783a; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
body.jh-site #chapter-one .kicker { color: var(--jh-gold); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
body.jh-site #chapter-one h2 { margin: .3em 0 .4em; color: #fff8e8; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; text-wrap: balance; }
body.jh-site #chapter-one .chapter-scene-copy p:not(.kicker) { color: rgba(255, 248, 232, .93); line-height: 1.65; }
body.jh-site #chapter-one .button.primary { background: var(--jh-wine); border-color: #c4876a; color: #fff8e8; text-shadow: none; }
body.jh-site #chapter-one .button.primary:is(:hover, :focus-visible) { background: var(--jh-wine-hi); }
body.jh-site #chapter-one .chapter-scene-curios { position: absolute; z-index: 2; right: var(--jh-gutter); bottom: clamp(20px, 4vw, 48px); width: clamp(96px, 14vw, 180px); height: auto; pointer-events: none; }

body.jh-site .chapter-audio-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 5vw, 56px) var(--jh-gutter);
  border: 0;
  filter: none;
}
body.jh-site .chapter-audio-scroll::after { content: none; }
body.jh-site .chapter-audio-scroll h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
body.jh-site .chapter-audio-scroll p { line-height: 1.6; }

/* 11. Reading layout: folio + Traveller's Notes */
body.jh-site .book-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 22vw, 20rem);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
  background: transparent;
}
body.jh-site .book-reading-layout > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.jh-site .book-reading-layout > .book-folio { grid-column: 1; padding: clamp(1.1rem, 3.5vw, 2.5rem); overflow-wrap: break-word; }
body.jh-site .book-reading-layout > .traveller-notes { grid-column: 2; padding: clamp(1rem, 2.2vw, 1.5rem); margin: 0; }
@media (min-width: 981px) and (min-height: 700px) {
  body.jh-site .book-reading-layout > .traveller-notes {
    position: sticky;
    top: var(--jh-sticky-top, 5.5rem);
    max-height: calc(100svh - var(--jh-sticky-top, 5.5rem) - 1rem);
    overflow: auto;
  }
}
body.jh-site .book-journey-actions { border-top: 1px solid var(--jh-line); }

/* 12. Party gallery: intro, modest headings, readable timeline note */
body.jh-site .party-gallery {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2rem);
}
body.jh-site .party-gallery-intro {
  width: 100%;
  max-width: none;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
}
body.jh-site .party-gallery-intro :is(h2, h3) { font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.15; margin-block: .25em .4em; }
body.jh-site .party-gallery-intro p:not(.kicker) { max-width: 68ch; }
body.jh-site .party-continuity-note {
  color: var(--jh-ivory);
  background: rgba(12, 18, 14, .55);
  border-left: 3px solid var(--jh-gold);
  padding: .75rem 1rem;
  font-size: max(.95rem, 15px);
  line-height: 1.55;
}
body.jh-site .party-continuity-note a { color: var(--jh-gold-hi); }
body.jh-site .party-continuity-note em { color: var(--jh-muted); }
body.jh-site :is(.section-title, .world-extras h2, .chapter-audio-scroll h2) { text-wrap: balance; }

/* 13. Responsive */
@media (max-width: 1020px) {
  body.jh-site .party-gallery-intro { width: 100%; max-width: none; margin-inline: 0; grid-column: 1 / -1; }
  body.jh-site .party-gallery-intro + .party-portraits { margin-top: 1rem; }
}
@media (max-width: 980px) {
  body.jh-site .jh-gate-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.jh-site .book-reading-layout { grid-template-columns: minmax(0, 1fr); }
  body.jh-site .book-reading-layout > :is(.book-folio, .traveller-notes) { grid-column: 1; }
  body.jh-site .book-reading-layout > .traveller-notes { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
  body.jh-site .book-world-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 2rem 3rem; text-align: center; }
  body.jh-site .book-world-hero .jh-world-art { inset: 0 0 auto; width: 100%; height: min(65vw, 25rem); object-position: center 43%; mask-image: linear-gradient(#000 42%, transparent); }
  body.jh-site .book-world-hero::before { background: linear-gradient(0deg, var(--jh-night-2) 55%, #10171155 82%, transparent); }
  body.jh-site .book-world-cover-wrap { justify-self: center; max-width: min(42vw, 190px); }
  body.jh-site .book-world-copy .book-blurb { margin-inline: auto; }
  body.jh-site .book-world-hero :is(.actions, .card-pills) { justify-content: center; }
  body.jh-site .jh-book-buttons { margin-inline: auto; }
  body.jh-site .book-world-hero .jh-book-button-site { justify-self: stretch; justify-content: center; }
  body.jh-site .world-threshold { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.jh-site .world-threshold > div + div { border-left: 0; border-top: 1px solid var(--jh-line); padding-top: 16px; }
  body.jh-site #chapter-one.chapter-scene { min-height: 0; padding-top: min(62vw, 340px); }
  body.jh-site #chapter-one .jh-chapter-art { object-position: 68% 30%; }
  body.jh-site #chapter-one::before { background: linear-gradient(180deg, rgba(20, 8, 8, 0) 0%, rgba(20, 8, 8, .25) 30%, rgba(20, 8, 8, .92) 62%); }
  body.jh-site #chapter-one .chapter-scene-curios { display: none; }
  body.jh-site .chapter-audio-scroll { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 670px) {
  body.jh-site .jh-gate-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-block: 2rem 2.35rem; }
  body.jh-site .jh-gate-cover { grid-row: 1; width: clamp(5.625rem, 30vw, 9.5rem); max-height: 15rem; object-fit: contain; }
  body.jh-site .jh-gate-art { height: 72%; object-position: 62% center; }
  body.jh-site .jh-gate-hero:is([data-world="0"], [data-world="3"]) .jh-gate-art { inset: 0 0 auto; height: 73%; width: 100%; object-position: center top; mask-image: linear-gradient(#000 20%, #000 52%, transparent 100%); }
  body.jh-site .jh-gate-hero::before { background: linear-gradient(0deg, var(--jh-night) 12%, #0a130cf0 37%, #0a130c93 59%, #0a130c30 86%); }
  body.jh-site .jh-gate-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.jh-site .jh-gate-choice:last-child { grid-column: 1 / -1; }
  body.jh-site .jh-gate-actions a { flex: 1 0 auto; }
  body.jh-site #chapter-one.chapter-scene { padding-block: clamp(9rem, 52vw, 20rem) 2.25rem; }
  body.jh-site #chapter-one.chapter-scene .jh-chapter-art { height: min(76vw, 28rem); object-position: center top; mask-image: linear-gradient(#000 65%, transparent); }
  body.jh-site #chapter-one .chapter-scene-copy { padding: .85rem 0 0; }
}
@media (max-width: 400px) {
  body.jh-site .book-world-hero .jh-book-button { padding-inline: .62rem; gap: .48rem; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.jh-site :is(.book-world-hero, #chapter-one, .jh-gate) * { transition: none !important; animation: none !important; }
}

/* Visible disclosure on tagged Amazon links. */
.paid-link-disclosure { font-size: .9em; font-weight: 500; white-space: nowrap; }
body.jh-site .jh-book-button-amazon > span { min-width: 0; }
body.jh-site .jh-free-books-link:has(.paid-link-disclosure) {
  flex-wrap: wrap;
  column-gap: .4em;
  row-gap: .2em;
}
