.enigmes-page {
  overflow: hidden;
}

.enigmes-page .section {
  position: relative;
}

.enigmes-page .eyebrow {
  margin-block-end: var(--space-2);
}

.enigmes-page .paper,
.enigmes-page .media-frame,
.enigmes-page .ero-sign-card,
.enigmes-page .ero-reset-note,
.enigmes-page .ero-theme-card,
.enigmes-page .ero-further-card {
  min-width: 0;
}

.ero-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ero-hero {
  padding-block: var(--space-9);
}

.ero-hero__grid {
  display: grid;
  grid-template-columns: minmax(390px, 46fr) minmax(0, 54fr);
  align-items: center;
  gap: var(--space-7);
}

.ero-hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 570px;
}

.ero-hero__copy > * {
  min-width: 0;
  margin: 0;
}

.ero-hero__copy h1 {
  max-width: 30ch;
  font-size: clamp(2.5rem, 4.1vw, 3rem);
}

.ero-hero__copy .intro {
  max-width: 56ch;
}

.ero-hero__action {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.ero-play-link {
  box-shadow: 3px 3px 0 var(--color-cream);
}

.ero-hero__note {
  max-width: 52ch;
  color: rgb(63 58 52 / 0.82);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ero-hero__media {
  width: 100%;
  min-width: 0;
  margin: var(--space-4) 0 0;
  box-shadow: var(--paper-offset);
}

.ero-hero__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center bottom;
}

.ero-reading-room {
  padding-block: var(--space-8);
}

.ero-reading-room__inner {
  display: flex;
  min-width: 0;
  justify-content: center;
}

.ero-reading-sheet {
  position: relative;
  display: flex;
  width: min(100%, 720px);
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.ero-reading-sheet > * {
  min-width: 0;
  margin: 0;
}

.ero-reading-sheet h2,
.ero-reading-sheet > p,
.ero-reading-sheet__closing {
  max-width: 70ch;
}

.ero-reading-sheet hr {
  width: 100%;
  margin: 0;
}

.ero-drawn-clues {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  border-radius: var(--radius-card);
  background: var(--color-powder-blue);
  padding: var(--space-5);
}

.ero-drawn-clues > * {
  min-width: 0;
  margin: 0;
}

.ero-drawn-clues h3,
.ero-drawn-clues p {
  max-width: 62ch;
}

.ero-reading-sheet__closing {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.ero-reading-sheet__closing > * {
  min-width: 0;
  margin: 0;
}

.ero-pullquote {
  border-inline-start: 3px solid var(--color-muted-peach);
  background: var(--color-sage);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
}

.ero-method-room {
  padding-block: var(--space-8);
}

.ero-method-room__grid {
  display: grid;
  grid-template-columns: minmax(520px, 58fr) minmax(0, 42fr);
  align-items: center;
  gap: var(--space-7);
}

.ero-method-sheet {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.ero-method-sheet > * {
  min-width: 0;
  margin: 0;
}

.ero-method-sheet h2 {
  max-width: 26ch;
}

.ero-steps {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
}

.ero-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  border-top: var(--border-soft);
  padding-top: var(--space-5);
}

.ero-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.ero-step > * {
  min-width: 0;
  margin: 0;
}

.ero-step h3,
.ero-step p:not(.ero-step__label) {
  max-width: 62ch;
}

.ero-step__label {
  color: rgb(63 58 52 / 0.85);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ero-method-media {
  width: 100%;
  min-width: 0;
  margin: var(--space-5) 0 0;
  box-shadow: var(--paper-offset);
}

.ero-method-media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.ero-signs {
  padding-block: var(--space-8);
}

.ero-signs__heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-block-end: var(--space-6);
}

.ero-signs__heading > * {
  min-width: 0;
  margin: 0;
}

.ero-signs__heading h2 {
  max-width: 29ch;
}

.ero-signs__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.ero-sign-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.ero-sign-card > * {
  min-width: 0;
  margin: 0;
}

.ero-sign-card h3 {
  max-width: 20ch;
}

.ero-sign-card p:not(.ero-sign-card__quote) {
  max-width: 40ch;
}

.ero-sign-card--drawer {
  grid-column: 1 / span 4;
  background: var(--color-cream);
}

.ero-sign-card--materials {
  grid-column: 5 / span 4;
  background: var(--color-powder-blue);
}

.ero-sign-card--space {
  grid-column: 9 / span 4;
  background: var(--color-sage);
}

.ero-sign-card--story {
  grid-column: 1 / span 8;
  background: var(--color-cream);
}

.ero-sign-card--story h3,
.ero-sign-card--story p:not(.ero-sign-card__quote) {
  max-width: 52ch;
}

.ero-sign-card__quote {
  margin-top: auto;
  border-top: var(--border-soft);
  padding-top: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.35;
}

.ero-folded-cloth {
  grid-column: 9 / span 4;
  align-self: end;
  min-width: 0;
  min-height: 164px;
  border: 1px solid var(--color-soft-line);
  border-radius: 12px 22px 16px 18px;
  background:
    linear-gradient(135deg, transparent 0 38%, rgb(63 58 52 / 0.08) 38% 39%, transparent 39%),
    var(--color-powder-blue);
}

.ero-reset {
  padding-block: var(--space-8);
}

.ero-reset__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  align-items: start;
  gap: var(--space-6);
}

.ero-reset__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.ero-reset__main > * {
  min-width: 0;
  margin: 0;
}

.ero-reset__main h2,
.ero-reset__main p {
  max-width: 66ch;
}

.ero-reset__notes {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.ero-reset-note {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.ero-reset-note > * {
  min-width: 0;
  margin: 0;
}

.ero-reset-note h3,
.ero-reset-note p {
  max-width: 45ch;
}

.ero-reset-note--blue {
  background: var(--color-powder-blue);
}

.ero-reset-note--sage {
  background: var(--color-sage);
}

.ero-stories {
  padding-block: var(--space-8);
}

.ero-stories__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--space-7);
}

.ero-stories__media {
  width: 100%;
  min-width: 0;
  margin: var(--space-4) 0 0;
  box-shadow: var(--paper-offset);
}

.ero-stories__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: right center;
}

.ero-stories__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.ero-stories__copy > * {
  min-width: 0;
  margin: 0;
}

.ero-stories__copy h2,
.ero-stories__copy > p {
  max-width: 64ch;
}

.ero-stories__themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: var(--space-4);
}

.ero-theme-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.ero-theme-card > * {
  min-width: 0;
  margin: 0;
}

.ero-theme-card h3,
.ero-theme-card p {
  max-width: 44ch;
}

.ero-theme-card a,
.ero-further-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  text-decoration-color: var(--color-focus-blue);
}

.ero-theme-card--cream {
  background: var(--color-cream);
}

.ero-theme-card--blue {
  background: var(--color-powder-blue);
}

.ero-further {
  padding-block: var(--space-8);
}

.ero-further__intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  width: min(100%, 620px);
  margin-block-end: var(--space-6);
}

.ero-further__intro > * {
  min-width: 0;
  margin: 0;
}

.ero-further__intro p {
  max-width: 62ch;
}

.ero-further__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.ero-further-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.ero-further-card > * {
  min-width: 0;
  margin: 0;
}

.ero-further-card h3,
.ero-further-card p {
  max-width: 48ch;
}

.ero-further-card a {
  margin-top: auto;
}

.ero-further-card--primary {
  grid-column: 1 / span 7;
  background: var(--color-cream);
}

.ero-further-card--stories {
  grid-column: 8 / span 5;
  background: var(--color-powder-blue);
}

.ero-further-card--calm {
  grid-column: 8 / span 5;
  background: var(--color-sage);
}

.ero-summary {
  padding-block: var(--space-8);
}

.ero-summary__inner {
  display: flex;
  min-width: 0;
  justify-content: center;
}

.ero-summary-sheet {
  display: flex;
  width: min(100%, 680px);
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.ero-summary-sheet > * {
  min-width: 0;
  margin: 0;
}

.ero-summary-sheet h2,
.ero-summary-sheet > p:not(.ero-summary-sheet__quote) {
  max-width: 58ch;
}

.ero-summary-sheet__quote {
  border: 1px solid var(--color-soft-line);
  border-radius: var(--radius-control);
  background: rgb(217 150 127 / 0.16);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
}

.ero-final {
  padding-block: var(--space-8);
}

.ero-final__inner {
  display: flex;
  min-width: 0;
  justify-content: center;
}

.ero-final-sheet {
  display: flex;
  width: min(100%, 760px);
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.ero-final-sheet > * {
  min-width: 0;
  margin: 0;
}

.ero-final-sheet h2,
.ero-final-sheet p {
  max-width: 52ch;
}

.ero-play-link--final {
  margin-top: var(--space-2);
}

@media (max-width: 980px) {
  .ero-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .ero-hero__copy {
    max-width: 680px;
  }

  .ero-hero__media {
    max-width: 780px;
    margin: 0;
  }

  .ero-method-room__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .ero-method-media {
    grid-row: 1;
    max-width: 760px;
    margin: 0;
  }

  .ero-method-sheet {
    grid-row: 2;
  }

  .ero-signs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ero-sign-card--drawer,
  .ero-sign-card--materials,
  .ero-sign-card--space,
  .ero-sign-card--story {
    grid-column: auto;
  }

  .ero-sign-card--story {
    grid-column: 1 / -1;
  }

  .ero-folded-cloth {
    display: none;
  }

  .ero-stories__grid {
    gap: var(--space-5);
  }

  .ero-further__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ero-further-card--primary,
  .ero-further-card--stories,
  .ero-further-card--calm {
    grid-column: auto;
  }

  .ero-further-card--primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .ero-hero {
    padding-block: var(--space-6);
  }

  .ero-hero__grid {
    gap: var(--space-5);
  }

  .ero-hero__media {
    grid-row: 1;
    margin: 0;
  }

  .ero-hero__copy {
    grid-row: 2;
    max-width: none;
  }

  .ero-hero__copy h1 {
    max-width: 18ch;
    font-size: 2rem;
  }

  .ero-hero__copy .intro {
    max-width: 34ch;
  }

  .ero-hero__action .button {
    width: 100%;
  }

  .ero-hero__note {
    max-width: 34ch;
  }

  .ero-reading-room,
  .ero-method-room,
  .ero-signs,
  .ero-reset,
  .ero-stories,
  .ero-further,
  .ero-summary,
  .ero-final {
    padding-block: var(--space-6);
  }

  .ero-reading-sheet,
  .ero-method-sheet,
  .ero-reset__main,
  .ero-summary-sheet,
  .ero-final-sheet {
    gap: var(--space-4);
  }

  .ero-reading-sheet h2,
  .ero-reading-sheet > p,
  .ero-reading-sheet__closing,
  .ero-drawn-clues h3,
  .ero-drawn-clues p,
  .ero-method-sheet h2,
  .ero-step h3,
  .ero-step p:not(.ero-step__label),
  .ero-reset__main h2,
  .ero-reset__main p,
  .ero-reset-note h3,
  .ero-reset-note p,
  .ero-stories__copy h2,
  .ero-stories__copy > p,
  .ero-theme-card h3,
  .ero-theme-card p,
  .ero-summary-sheet h2,
  .ero-summary-sheet > p:not(.ero-summary-sheet__quote),
  .ero-final-sheet h2,
  .ero-final-sheet p {
    max-width: none;
  }

  .ero-drawn-clues {
    padding: var(--space-4);
  }

  .ero-pullquote {
    background: transparent;
    padding: var(--space-3) 0 var(--space-3) var(--space-4);
  }

  .ero-method-room__grid,
  .ero-reset__grid,
  .ero-stories__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .ero-method-media,
  .ero-stories__media {
    grid-row: auto;
    margin: 0;
  }

  .ero-method-media {
    grid-row: 1;
  }

  .ero-method-sheet {
    grid-row: 2;
  }

  .ero-method-sheet h2 {
    font-size: 1.75rem;
  }

  .ero-step h3,
  .ero-reset-note h3,
  .ero-sign-card h3,
  .ero-theme-card h3,
  .ero-further-card h3 {
    font-size: 1.375rem;
  }

  .ero-signs__heading {
    margin-block-end: var(--space-5);
  }

  .ero-signs__grid,
  .ero-stories__themes,
  .ero-further__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .ero-sign-card--story,
  .ero-further-card--primary {
    grid-column: auto;
  }

  .ero-sign-card {
    padding: var(--space-5);
  }

  .ero-sign-card p:not(.ero-sign-card__quote),
  .ero-sign-card--story h3,
  .ero-sign-card--story p:not(.ero-sign-card__quote) {
    max-width: none;
  }

  .ero-reset__notes {
    gap: var(--space-4);
  }

  .ero-stories__media {
    grid-row: 1;
  }

  .ero-stories__copy {
    grid-row: 2;
  }

  .ero-theme-card,
  .ero-further-card {
    padding: var(--space-5);
  }

  .ero-further__intro {
    width: 100%;
    margin-block-end: var(--space-5);
  }

  .ero-further__intro p {
    max-width: 40ch;
  }

  .ero-summary-sheet__quote {
    font-size: 1.125rem;
  }

  .ero-final-sheet .button {
    width: 100%;
  }
}

@media print {
  .enigmes-page,
  .enigmes-page .section,
  .enigmes-page .ero-reading-room,
  .enigmes-page .ero-method-room,
  .enigmes-page .ero-further,
  .enigmes-page .ero-final,
  .enigmes-page .paper,
  .enigmes-page .ero-sign-card,
  .enigmes-page .ero-reset-note,
  .enigmes-page .ero-theme-card,
  .enigmes-page .ero-further-card {
    background: #fff !important;
    box-shadow: none !important;
  }

  .enigmes-page .ero-folded-cloth {
    display: none;
  }

  .enigmes-page a {
    text-decoration: underline;
  }
}
