.horrory-page {
  overflow: clip;
}

.horrory-page section[id],
.horrory-page article[id] {
  scroll-margin-top: 7rem;
}

.horrory-hero {
  position: relative;
  padding-block: var(--space-9);
  border-block-end: 1px solid var(--color-border);
  background: linear-gradient(115deg, var(--color-deep-plum) 0%, var(--color-night-navy) 58%);
}

.horrory-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image: radial-gradient(var(--color-moon-white) .7px, transparent .7px);
  background-size: 5px 5px;
  content: "";
}

.horrory-hero__grid,
.horrory-questions__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
}

.horrory-hero__copy {
  z-index: 1;
  grid-column: span 5;
  min-width: 0;
  max-width: 36.875rem;
}

.horrory-hero__copy > :last-child,
.horrory-hero__figure > :last-child,
.horrory-section-intro > :last-child,
.horrory-map__intro > :last-child,
.horrory-questions__main > :last-child,
.horrory-visual__intro > :last-child,
.horrory-growth__content > :last-child,
.horrory-context__intro > :last-child,
.horrory-workshop__intro > :last-child,
.horrory-sources__intro > :last-child,
.horrory-next__summary > :last-child {
  margin-block-end: 0;
}

.horrory-hero h1 {
  font-size: clamp(2.5rem, 5.3vw, 4rem);
  line-height: 1.06;
}

.horrory-hero__lead {
  max-width: 36ch;
  font-size: var(--text-lg);
  line-height: 1.56;
}

.horrory-scope {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: var(--space-5);
  padding: var(--space-4);
  border: var(--border-standard);
  border-radius: var(--radius-md);
  background: rgb(23 21 44 / 62%);
  color: var(--color-muted-moon);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.horrory-scope strong { color: var(--color-moon-white); }
.horrory-scope p,
.horrory-hero__disclaimer { margin: 0; }
.horrory-hero__disclaimer { max-width: 52ch; color: var(--color-muted-moon); font-size: var(--text-sm); }
.horrory-hero__copy .button { margin-block-start: var(--space-5); }

.horrory-hero__figure {
  z-index: 1;
  grid-column: 7 / span 6;
  min-width: 0;
  margin: 0;
}

.horrory-hero__figure img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-standard);
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: 68% center;
  box-shadow: var(--shadow-soft);
}

.horrory-hero__figure figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }

.horrory-section-intro,
.horrory-map__intro,
.horrory-context__intro { max-width: 43.75rem; }

.horrory-roles__grid,
.horrory-map__steps,
.horrory-visual__columns,
.horrory-sources__grid,
.horrory-next__cards {
  display: grid;
  gap: var(--space-5);
  margin-block-start: var(--space-6);
}

.horrory-roles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.horrory-role,
.horrory-visual__columns article,
.horrory-context__grid article,
.horrory-workshop__grid article,
.horrory-source-board {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-standard);
  border-radius: var(--radius-md);
  background: var(--color-deep-plum);
}

.horrory-role > *,
.horrory-visual__columns article > *,
.horrory-context__grid article > *,
.horrory-workshop__grid article > *,
.horrory-source-board > * { margin: 0; }

.horrory-role h3,
.horrory-visual__columns h3,
.horrory-context__grid h3,
.horrory-workshop__grid h3,
.horrory-source-board h3 { font-size: var(--text-xl); }
.horrory-role p { max-width: 32ch; }
.horrory-role__hint { color: var(--color-toxic-green); font-weight: 700; }
.horrory-role--pink { border-block-start: 3px solid var(--color-neon-pink); }
.horrory-role--green { border-block-start: 3px solid var(--color-toxic-green); }
.horrory-role--orange { border-block-start: 3px solid var(--color-pumpkin-orange); }

.horrory-map { border-block: 1px solid var(--color-border); background: rgb(36 29 66 / 28%); }
.horrory-map__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.horrory-map__steps::before { position: absolute; top: 1.25rem; left: 8%; width: 84%; height: 1px; background: var(--color-border); content: ""; }
.horrory-map__step { position: relative; z-index: 1; min-width: 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-night-navy); }
.horrory-map__step > *:last-child { margin-block-end: 0; }
.horrory-map__step > span { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; margin-block-end: var(--space-4); border: 1px solid var(--color-haunt-purple); border-radius: 50%; background: var(--color-deep-plum); color: var(--color-pumpkin-orange); font-weight: 800; }
.horrory-map__step h3 { font-size: 1.125rem; }
.horrory-map__step p { max-width: 27ch; }

.horrory-questions__layout { align-items: start; }
.horrory-questions__main { grid-column: span 8; min-width: 0; max-width: 41.25rem; }
.horrory-questions__lead { max-width: 41ch; font-size: var(--text-lg); }
.horrory-questions__aside { grid-column: 10 / span 3; min-width: 0; align-self: start; position: sticky; top: 7rem; }
.horrory-index__toggle { display: none; }
.horrory-index__content { display: flex; min-width: 0; flex-direction: column; gap: var(--space-5); }
.horrory-index { display: flex; min-width: 0; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-inline-start: 1px solid var(--color-border); }
.horrory-index a { display: flex; min-width: 0; gap: var(--space-2); padding: var(--space-2); color: var(--color-muted-moon); font-size: var(--text-sm); text-decoration: none; }
.horrory-index a span { min-width: 0; }
.horrory-index a[aria-current="true"] { color: var(--color-pumpkin-orange); font-weight: 800; }
.horrory-observe { padding: var(--space-4); border: var(--border-standard); border-radius: var(--radius-md); background: var(--color-deep-plum); }
.horrory-observe p { margin: var(--space-2) 0 0; color: var(--color-muted-moon); font-size: var(--text-sm); }
.horrory-question { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-6); border-block-end: 1px solid var(--color-border); }
.horrory-question > div { min-width: 0; max-width: 41.25rem; }
.horrory-question > div > :last-child { margin-block-end: 0; }
.horrory-question__number { color: var(--color-pumpkin-orange); font-family: var(--font-heading); font-size: var(--text-xl); }
.horrory-strategy-callout { display: flex; min-width: 0; flex-direction: column; gap: var(--space-3); margin-block-start: var(--space-6); padding: var(--space-5); border-inline-start: 3px solid var(--color-toxic-green); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: rgb(166 217 106 / 10%); }
.horrory-strategy-callout > * { margin: 0; }

.horrory-visual__intro { max-width: 37.5rem; }
.horrory-visual__figure { margin-block-start: var(--space-6); }
.horrory-lightbox__trigger { width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; }
.horrory-lightbox__trigger img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: var(--border-standard); border-radius: var(--radius-lg); object-fit: cover; object-position: center; }
.horrory-visual__figure figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.horrory-visual__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.horrory-visual__columns article p { max-width: 30ch; }
.horrory-visual__columns article:nth-child(1) { border-block-start: 3px solid var(--color-neon-pink); }

.horrory-growth__content { width: min(100%, 51.5rem); }
.horrory-growth__steps { display: flex; min-width: 0; flex-direction: column; margin-block-start: var(--space-6); }
.horrory-growth__steps article { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--space-4); min-width: 0; padding-block: var(--space-5); border-inline-start: 1px solid var(--color-haunt-purple); }
.horrory-growth__steps article > span { color: var(--color-pumpkin-orange); font-family: var(--font-heading); font-size: var(--text-xl); }
.horrory-growth__steps article > div { min-width: 0; max-width: 36.25rem; }
.horrory-growth__steps article > div > :last-child { margin-block-end: 0; }
.horrory-growth__notice { max-width: 42rem; margin-block-start: var(--space-5); padding: var(--space-4); border: var(--border-standard); border-radius: var(--radius-md); color: var(--color-muted-moon); }
.horrory-growth__notice h3 { color: var(--color-moon-white); font-size: var(--text-lg); }
.horrory-growth__notice > :last-child { margin-block-end: 0; }

.horrory-context__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: var(--space-5); margin-block-start: var(--space-6); }
.horrory-context__grid article { min-height: 100%; }
.horrory-context__grid article p { max-width: 32ch; }
.horrory-context__carnival { border-block-start: 3px solid var(--color-haunt-purple) !important; }

.horrory-workshop { border-block: 1px solid var(--color-border); background: rgb(36 29 66 / 25%); }
.horrory-workshop__intro { max-width: 35rem; }
.horrory-workshop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-block-start: var(--space-6); }
.horrory-workshop__grid article { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-3); }
.horrory-workshop__grid article > span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--color-pumpkin-orange); border-radius: var(--radius-sm); color: var(--color-pumpkin-orange); font-weight: 800; }
.horrory-workshop__grid article > div { min-width: 0; }
.horrory-workshop__grid article > div > :last-child { margin-block-end: 0; }
.horrory-workshop__grid article p { max-width: 31ch; }

.horrory-sources__intro { max-width: 38rem; }
.horrory-sources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.horrory-source-board { min-height: 17rem; justify-content: flex-start; }
.horrory-source-board p { max-width: 34ch; }
.horrory-transparency { width: min(100%, 43.75rem); margin-block-start: var(--space-5); padding: var(--space-5); border-block-start: 2px solid var(--color-haunt-purple); background: rgb(36 29 66 / 58%); }
.horrory-transparency h3 { font-size: var(--text-lg); }
.horrory-transparency > :last-child { margin-block-end: 0; }

.horrory-next { border-block-start: 1px solid var(--color-border); }
.horrory-next__summary { width: min(100%, 50rem); margin-inline: auto; }
.horrory-next__summary h2 { text-align: center; }
.horrory-next__summary .eyebrow { display: flex; justify-content: center; }
.horrory-next__summary p:last-child { max-width: 37.5rem; }
.horrory-next__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.horrory-next__card { display: flex; min-width: 0; min-height: 15rem; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); border: var(--border-standard); border-radius: var(--radius-md); background: var(--color-deep-plum); text-decoration: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.horrory-next__card > * { margin: 0; }
.horrory-next__card h3 { font-size: var(--text-xl); }
.horrory-next__card p { max-width: 34ch; }
.horrory-next__card strong { margin-top: auto; text-decoration: underline; text-decoration-color: currentcolor; text-underline-offset: .2em; }
.horrory-next__card--green:hover,
.horrory-next__card--green:focus-visible { border-color: var(--color-toxic-green); box-shadow: var(--shadow-green-glow); }
.horrory-next__card--orange:hover,
.horrory-next__card--orange:focus-visible { border-color: var(--color-pumpkin-orange); box-shadow: var(--shadow-orange-glow); }

.horrory-lightbox[hidden] { display: none; }
.horrory-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: var(--space-5); }
.horrory-lightbox__backdrop { position: absolute; inset: 0; background: rgb(5 4 15 / 88%); }
.horrory-lightbox__dialog { position: relative; width: min(100%, 68rem); min-width: 0; padding: var(--space-4); border: var(--border-standard); border-radius: var(--radius-lg); background: var(--color-deep-plum); box-shadow: var(--shadow-soft); }
.horrory-lightbox__dialog img { width: 100%; max-width: 100%; max-height: 72vh; object-fit: contain; }
.horrory-lightbox__dialog p { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; color: var(--color-muted-moon); }
.horrory-lightbox__close { position: absolute; z-index: 1; top: var(--space-2); right: var(--space-2); width: 2.75rem; height: 2.75rem; border: 1px solid var(--color-haunt-purple); border-radius: var(--radius-md); background: var(--color-night-navy); color: var(--color-moon-white); font-size: 2rem; line-height: 1; }

@media (max-width: 63.9375rem) {
  .horrory-hero { padding-block: var(--space-8); }
  .horrory-hero__grid,
  .horrory-questions__layout { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .horrory-hero__copy { grid-column: span 8; max-width: 38rem; }
  .horrory-hero__figure { grid-column: span 8; max-width: 50rem; }
  .horrory-roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horrory-roles__grid > :nth-child(3) { grid-column: span 2; }
  .horrory-map__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horrory-map__steps::before { display: none; }
  .horrory-questions__main { grid-column: span 8; max-width: 41.25rem; }
  .horrory-questions__aside { grid-column: span 8; position: static; max-width: 41.25rem; }
  .horrory-index__content { flex-direction: row; align-items: stretch; }
  .horrory-index { flex: 1 1 0; flex-direction: row; border-inline-start: 0; border-block-start: 1px solid var(--color-border); }
  .horrory-observe { flex: 1 1 15rem; }
  .horrory-context__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .horrory-context__grid > :first-child { grid-column: span 8; }
  .horrory-context__grid > :nth-child(2),
  .horrory-context__grid > :nth-child(3) { grid-column: span 4; }
}

@media (max-width: 56.1875rem) {
  .horrory-visual__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horrory-visual__columns > :nth-child(3) { grid-column: span 2; }
}

@media (max-width: 47.9375rem) {
  .horrory-hero { padding-block: var(--space-7); }
  .horrory-hero__grid,
  .horrory-questions__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .horrory-hero__copy,
  .horrory-hero__figure,
  .horrory-questions__main,
  .horrory-questions__aside { grid-column: 1; width: 100%; max-width: none; }
  .horrory-hero h1 { font-size: 2.5rem; }
  .horrory-hero__lead { max-width: 42ch; }
  .horrory-roles__grid,
  .horrory-map__steps,
  .horrory-visual__columns,
  .horrory-sources__grid,
  .horrory-next__cards { grid-template-columns: minmax(0, 1fr); }
  .horrory-roles__grid > :nth-child(3),
  .horrory-visual__columns > :nth-child(3) { grid-column: 1; }
  .horrory-map__step { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--space-3); }
  .horrory-map__step > span { grid-row: span 3; margin: 0; }
  .horrory-map__step h3,
  .horrory-map__step p,
  .horrory-map__step a { grid-column: 2; }
  .horrory-map__step p { max-width: 42ch; }
  .horrory-index__toggle { display: block; width: 100%; min-height: 2.75rem; padding: var(--space-3); border: var(--border-standard); border-radius: var(--radius-md); background: var(--color-deep-plum); color: var(--color-moon-white); font-weight: 800; text-align: left; }
  .horrory-index__content { display: block; margin-block-start: var(--space-3); }
  .horrory-index__content[hidden] { display: none; }
  .horrory-index { flex-direction: column; }
  .horrory-observe { margin-block-start: var(--space-4); }
  .horrory-question { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .horrory-question__number { font-size: var(--text-lg); }
  .horrory-visual__figure img { aspect-ratio: 4 / 3; }
  .horrory-growth__steps article { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding-inline-start: var(--space-4); }
  .horrory-growth__steps article > div { max-width: none; }
  .horrory-context__grid { grid-template-columns: minmax(0, 1fr); }
  .horrory-context__grid > :first-child,
  .horrory-context__grid > :nth-child(2),
  .horrory-context__grid > :nth-child(3) { grid-column: 1; }
  .horrory-workshop__grid { grid-template-columns: minmax(0, 1fr); }
  .horrory-next__summary h2 { text-align: left; }
  .horrory-next__summary .eyebrow { justify-content: flex-start; }
  .horrory-lightbox { padding: var(--space-3); }
}

@media (max-width: 23.75rem) {
  .horrory-workshop__grid article { grid-template-columns: minmax(0, 1fr); }
  .horrory-map__step { grid-template-columns: minmax(0, 1fr); }
  .horrory-map__step > span { grid-row: auto; margin-block-end: var(--space-2); }
  .horrory-map__step h3,
  .horrory-map__step p,
  .horrory-map__step a { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .horrory-next__card { transition: none; }
  .horrory-next__card:hover { transform: none; }
}
