@media screen {
  /* Twisted jute outlines stacked sheets of cut paper. */
  .rope-frame:not(dialog) { position: relative; }
  :root .rope-frame {
    border: 3px solid #aa8050;
    box-shadow: 2px 3px 0 #e9d9b2, 4px 6px 0 #f3e8cf, 0 8px 16px #68472018;
  }
  .rope-frame::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    z-index: 1;
    border: 1px dashed #f7dbac;
    border-radius: inherit;
    pointer-events: none;
  }
  .rope-frame:is(.school-guide, .featured-activity, .shelf-interlude)::after {
    content: "";
    position: absolute;
    right: .38rem;
    bottom: .38rem;
    width: 1.3rem;
    height: 1.12rem;
    background: linear-gradient(135deg, #fffdf2 45%, #e4ce9d 55%, #f3e3b8 80%);
    clip-path: polygon(0 100%, 100% 0, 93% 92%);
    pointer-events: none;
  }
  .home-activity-grid > .rope-frame {
    padding: .35rem .35rem .2rem;
    border-radius: .75rem 1.55rem .75rem .75rem;
    background: #fffdf4;
  }
  .clap-demo.rope-frame {
    padding: .65rem;
    border-radius: .75rem;
  }
  .reader-illustration.rope-frame,
  .reader-activity-book.rope-frame {
    border-radius: clamp(.9rem, 2vw, 1.6rem);
  }
  .reader-illustration.rope-frame img,
  .reader-activity-book.rope-frame > img:first-child {
    border-radius: inherit;
  }
  .reader-illustration.rope-frame::after {
    z-index: 2;
  }
}
