/* The selected world's books and stories occupy the artwork column. */
body.jh-site .jh-gate-hero {
  min-height: clamp(22rem, 32vw, 29rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  padding-block: clamp(1.8rem, 3.35vw, 3.25rem);
}

body.jh-site .jh-gate h1 {
  margin-bottom: clamp(1rem, 2vw, 1.65rem);
  font-size: clamp(2.35rem, 4.55vw, 4.05rem);
}

body.jh-site .jh-gate .jh-gate-title {
  margin-top: .3rem;
}

body.jh-site .jh-gate .jh-gate-hook {
  margin: .45rem 0 1.1rem;
}

.jh-gate .jh-gate-actions[hidden],
.jh-gate .jh-gate-actions a[hidden],
.jh-gate .jh-gate-art[hidden],
.jh-gate .jh-world-panel[hidden] {
  display: none;
}

.jh-gate .jh-world-lineup {
  min-width: 0;
}

.jh-gate .jh-world-panel {
  scroll-margin-top: 5.5rem;
}

.jh-gate .jh-world-panel-title {
  margin: 0 0 .65rem;
  color: var(--gate-gold);
  font: 700 .76rem/1.3 var(--font-sans, system-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.jh-gate .jh-world-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.jh-gate .jh-world-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.48rem, 1vw, .85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.jh-gate .jh-world-items > li {
  display: flex;
  min-width: 0;
  margin: 0;
}

.jh-gate .jh-world-items > li:only-child {
  grid-column: 1 / -1;
  width: min(100%, 25rem);
}

.jh-gate .jh-world-content-groups {
  --group-gap: clamp(1rem, 2vw, 1.85rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--group-gap);
}

.jh-gate .jh-world-content-group {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
}

.jh-gate .jh-world-content-group + .jh-world-content-group::before {
  position: absolute;
  content: "";
  inset-block: 0;
  inset-inline-start: calc(var(--group-gap) / -2);
  width: 1px;
  background: #b89a5d66;
}

.jh-gate .jh-world-item {
  --cover-width: clamp(4.5rem, 7.8vw, 7rem);
  display: grid;
  grid-template-columns: var(--cover-width) minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #b89a5d66;
  border-radius: .28rem;
  background: #101812ed;
  color: var(--gate-ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.jh-gate .jh-world-item:is(:hover, :focus-visible) {
  border-color: var(--gate-gold);
  background: #19231a;
}

.jh-gate .jh-world-item-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 8px #0008;
}

.jh-gate .jh-world-item-bonus .jh-world-item-cover {
  object-position: 58% center;
}

.jh-gate .jh-world-item-copy {
  display: grid;
  min-width: 0;
  gap: .22rem;
}

.jh-gate .jh-world-item-tag {
  color: var(--gate-gold);
  font: 650 .66rem/1.25 var(--font-sans, system-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.jh-gate .jh-world-item-copy strong {
  color: var(--gate-ink);
  font-size: .97rem;
  line-height: 1.23;
  overflow-wrap: anywhere;
}

.jh-gate :is(.jh-world-item-access, .jh-world-item-timing) {
  color: var(--gate-soft);
  font-size: .78rem;
  line-height: 1.3;
}

.jh-gate .jh-world-item-timing {
  color: var(--gate-gold);
}

.jh-gate .jh-world-item-free .jh-world-item-access,
.jh-gate .jh-world-item-arrow {
  color: var(--gate-gold);
}

.jh-gate .jh-world-item-arrow { display: none; }

@media (min-width: 1101px) {
  .jh-gate ol.jh-world-items .jh-world-item {
    grid-template-columns: var(--cover-width) minmax(0, 1fr) auto;
  }
  .jh-gate .jh-world-item-arrow { display: block; }
}

@media (max-width: 900px) {
  body.jh-site .jh-gate-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1.2rem;
    padding-block: clamp(1.25rem, 3vw, 2rem);
  }

  body.jh-site .jh-gate-hero::before {
    background: linear-gradient(90deg, #0b120de6, #0b120daf 63%, #0b120d70),
      linear-gradient(0deg, var(--jh-night), transparent 46%);
  }
}

@media (max-width: 560px) {
  body.jh-site .jh-gate-choice:last-child {
    grid-column: auto;
  }

  body.jh-site .jh-gate-choice[href="#world-rusty-tankard"] {
    grid-column: 1 / -1;
  }

  body.jh-site .jh-gate-hero {
    gap: .75rem;
    padding-block: 1.05rem .85rem;
  }

  body.jh-site .jh-gate h1 {
    font-size: clamp(1.85rem, 6.9vw, 2.35rem);
    max-width: 15ch;
    margin-bottom: .75rem;
  }

  body.jh-site .jh-gate .jh-gate-hook { margin-bottom: .9rem; }
  .jh-gate .jh-world-panel-title { margin-bottom: .5rem; }

  .jh-gate .jh-world-item {
    --cover-width: clamp(3rem, 16vw, 4.8rem);
    gap: .38rem;
    padding: .48rem;
  }

  .jh-gate .jh-world-item-copy strong { font-size: .84rem; }
  .jh-gate .jh-world-item-tag { font-size: .61rem; letter-spacing: .04em; }
  .jh-gate :is(.jh-world-item-access, .jh-world-item-timing) { font-size: .72rem; }
}

/* Compact modules below the gate: free book, bonus stories with signup, quiet author note. */
body.jh-site :is(.jh-free-books, .jh-bonus, .jh-about) {
  width: auto;
  max-width: none;
  margin: 0;
  padding-inline: var(--jh-gutter);
  border: 0;
  border-top: 1px solid var(--jh-line);
  border-radius: 0;
  box-shadow: none;
  color: var(--jh-text);
}

body.jh-site :is(.jh-free-books, .jh-bonus) :is(h2, h3) {
  color: var(--jh-text);
  letter-spacing: normal;
  text-transform: none;
}

body.jh-site :is(.jh-free-books, .jh-bonus) a:focus-visible,
body.jh-site .jh-bonus :is(input, button):focus-visible {
  outline: 2px solid var(--jh-gold);
  outline-offset: 2px;
}

body.jh-site .jh-free-books {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  background: var(--jh-band);
  scroll-margin-top: 5.5rem;
}

body.jh-site .jh-free-books-cover {
  display: block;
  width: clamp(4.75rem, 10vw, 7rem);
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 2px 8px #0008;
}

body.jh-site .jh-free-books-copy {
  display: grid;
  justify-items: start;
  gap: .4rem;
  min-width: 0;
  max-width: 48rem;
}

body.jh-site .jh-free-books-copy h2 {
  margin: 0;
  color: var(--jh-gold);
  font: 700 .71rem/1.3 var(--font-sans, system-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.jh-site .jh-free-books-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

body.jh-site .jh-free-books-copy p {
  margin: 0;
  color: var(--jh-muted);
  font-size: 1rem;
  line-height: 1.55;
}

body.jh-site .jh-free-books-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .35rem;
}

body.jh-site .jh-free-books-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--jh-gold);
  border-radius: .28rem;
  background: transparent;
  color: var(--jh-text);
  font: 650 .9rem/1.2 var(--font-sans, system-ui);
  text-align: center;
  text-decoration: none;
}

body.jh-site .jh-free-books-primary {
  border-color: #c4876a;
  background: var(--jh-wine);
  color: #fff8e8;
}

body.jh-site .jh-free-books-link:is(:hover, :focus-visible) {
  background: #dfba7829;
}

body.jh-site .jh-free-books-primary:is(:hover, :focus-visible) {
  background: var(--jh-wine-hi, #8c2d42);
}

body.jh-site .jh-free-books-all {
  color: var(--jh-gold);
  font-size: .9rem;
  text-underline-offset: 3px;
}

body.jh-site .jh-bonus {
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--jh-surface);
  scroll-margin-top: 5.5rem;
}

body.jh-site .jh-bonus-head {
  margin-bottom: 1rem;
}

body.jh-site .jh-bonus-kicker {
  margin: 0;
  color: var(--jh-gold);
  font: 700 .71rem/1.3 var(--font-sans, system-ui);
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.jh-site .jh-bonus-title {
  max-width: none;
  margin: .25rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
}

body.jh-site .jh-bonus-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 1.6vw, 1.1rem);
  margin: 0;
}

body.jh-site .jh-bonus-story {
  position: relative;
  display: grid;
  grid-template-columns: clamp(4.5rem, 11vw, 6.5rem) minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  min-width: 0;
  min-height: 0;
  padding: .75rem;
  border: 0;
  border-radius: .28rem;
  background: var(--jh-card);
  box-shadow: inset 0 0 0 1px var(--jh-line);
}

body.jh-site .jh-bonus-story-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 2px;
  box-shadow: 0 2px 8px #0008;
}

body.jh-site .jh-bonus-story-copy {
  display: grid;
  justify-items: start;
  gap: .3rem;
  min-width: 0;
}

body.jh-site .jh-bonus-story-copy :is(p, h3) {
  margin: 0;
}

body.jh-site .jh-bonus-story-from {
  color: var(--jh-gold);
  font: 650 .66rem/1.25 var(--font-sans, system-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.jh-site .jh-bonus-story-copy h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

body.jh-site .jh-bonus-story-copy p:not([class]) {
  color: var(--jh-muted);
  font-size: .9rem;
  line-height: 1.5;
}

body.jh-site .jh-bonus-story-meta {
  color: var(--jh-gold);
  font-size: .78rem;
  line-height: 1.3;
}

body.jh-site .jh-bonus-story-link {
  color: var(--jh-gold);
  text-underline-offset: 3px;
}

body.jh-site .jh-bonus-story-link::after {
  position: absolute;
  content: "";
  inset: 0;
}

body.jh-site .jh-bonus-signup {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  padding-top: clamp(1rem, 2.5vw, 1.6rem);
  border-top: 1px solid var(--jh-line);
  scroll-margin-top: 5.5rem;
}

body.jh-site .jh-bonus-signup-title {
  margin: 0 0 .4rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.25;
}

body.jh-site .jh-bonus-signup-copy p {
  margin: 0;
  color: var(--jh-muted);
  font-size: .95rem;
  line-height: 1.55;
}

body.jh-site .jh-bonus .reader-signup-form {
  width: 100%;
  margin: 0;
}

body.jh-site .jh-bonus [data-reader-signup] :disabled {
  cursor: not-allowed;
  opacity: .6;
}

body.jh-site .jh-bonus-signup-form > a {
  display: inline-block;
  margin-top: .6rem;
  color: var(--jh-gold);
  font-size: .95rem;
  text-underline-offset: 3px;
}

body.jh-site .jh-about {
  padding-block: clamp(1.1rem, 2.5vw, 1.75rem);
  background: var(--jh-surface);
}

body.jh-site .jh-about::before {
  display: none;
}

body.jh-site .series-route + #meet-cast::before {
  height: clamp(4.5rem, 8vw, 7rem);
}

body.jh-site :is(#meet-cast, #party-notes) {
  scroll-margin-top: 5.5rem;
}

body.jh-site .jh-about .kicker {
  margin: 0;
  font-size: .68rem;
}

body.jh-site .jh-about h2 {
  margin: .15rem 0 .35rem;
  font-size: 1.15rem;
}

body.jh-site .jh-about p:not(.kicker) {
  max-width: 60ch;
  margin: 0 0 .25rem;
  font-size: .92rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  body.jh-site .jh-bonus-signup {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  body.jh-site .jh-bonus-stories {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body.jh-site .jh-free-books {
    gap: .45rem .8rem;
  }

  body.jh-site .jh-free-books-copy {
    display: contents;
  }

  body.jh-site .jh-free-books-cover {
    width: clamp(3.5rem, 18vw, 4.75rem);
    grid-row: 1 / span 3;
  }

  body.jh-site .jh-free-books-copy :is(h2, h3, p) {
    grid-column: 2;
  }

  body.jh-site :is(.jh-free-books-actions, .jh-free-books-all) {
    grid-column: 1 / -1;
  }

  body.jh-site .jh-free-books-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.jh-site .jh-free-books-primary {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jh-gate .jh-world-item { transition: none; }
}
