/* The invitation keeps its paper, pictures and questions on the child's side. */
body.bb-experience .worm-passage{
  position:absolute;z-index:12;right:3%;bottom:-3%;width:69%;max-width:390px;
  aspect-ratio:1000/333;isolation:isolate;pointer-events:none;
  transform:rotate(-8deg);filter:drop-shadow(2px 9px 5px #1b100b70)
}
body.bb-experience .passage-paper{
  position:absolute;z-index:0;inset:5% -3% -10%;
  background:linear-gradient(120deg,#faf0d9e8,#e5cfa8e8),url('art/parchment.png') center/360% 360%;
  clip-path:polygon(1% 8%,12% 4%,24% 7%,34% 1%,47% 5%,58% 0,72% 4%,86% 1%,99% 6%,97% 31%,100% 44%,97% 66%,99% 91%,87% 95%,74% 92%,59% 99%,47% 94%,32% 98%,20% 93%,1% 98%,3% 73%,0 55%,3% 30%);
  transform:rotate(3deg);box-shadow:inset 0 0 16px #a7834f55
}
body.bb-experience .passage-paper::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(100deg,transparent 46%,#95734018 48%,#fffae68c 50%,transparent 53%);
  box-shadow:inset 0 1px 0 #fff9,inset 0 -3px 5px #9b754444
}
body.bb-experience .passage-hole{
  position:absolute;z-index:1;display:block;background:#21140b;
  box-shadow:0 1px 2px #fff6,inset 0 5px 8px #000d;filter:drop-shadow(0 2px 1px #fff6);
  clip-path:polygon(0 45%,13% 20%,24% 28%,38% 8%,51% 17%,70% 0,84% 25%,99% 21%,93% 56%,100% 77%,77% 91%,61% 84%,39% 100%,24% 80%,7% 89%)
}
body.bb-experience .hole-left{left:8%;top:39%;width:19%;height:35%;transform:rotate(-13deg)}
body.bb-experience .hole-right{left:74%;top:57%;width:23%;height:34%;transform:rotate(8deg)}
body.bb-experience .passage-worm{
  position:absolute;z-index:2;inset:0;display:block;width:100%;height:100%;
  object-fit:contain;filter:drop-shadow(0 3px 2px #37200a70)
}
body.bb-experience .passage-lip{
  position:absolute;z-index:3;display:block;
  background:linear-gradient(160deg,#fff8e7 5%,#eddbb7 42%,#d4b68b 75%,#a98354);
  box-shadow:0 3px 3px #2a170d80,inset 0 1px 0 #fffaf0;
  filter:drop-shadow(0 3px 2px #160d0870)
}
body.bb-experience .lip-left{
  left:3%;top:53%;width:21%;height:28%;
  clip-path:polygon(0 30%,21% 11%,36% 29%,53% 0,69% 21%,100% 5%,93% 63%,72% 57%,53% 100%,27% 74%,0 90%);
  transform:rotate(-12deg);transform-origin:right top
}
body.bb-experience .lip-right{
  left:76%;top:68%;width:24%;height:28%;
  clip-path:polygon(0 10%,18% 27%,32% 0,48% 20%,68% 9%,84% 34%,100% 20%,96% 80%,76% 93%,57% 79%,36% 100%,17% 74%,0 90%);
  transform:rotate(5deg);transform-origin:left top
}
body.bb-experience .passage-lip::after{
  content:'';position:absolute;left:0;right:0;top:8%;height:2px;
  background:linear-gradient(90deg,transparent,#fffdf1 20%,#fffdf1 80%,transparent)
}
body.bb-experience .letter-top .small-passage{
  width:220px;max-width:27%;right:-20px;top:92px;bottom:auto;
  transform:rotate(4deg);filter:drop-shadow(1px 5px 3px #674b3140)
}
body.bb-experience .optional-letter{max-width:1160px;margin:0 auto 24px;scroll-margin-top:100px}
body.bb-experience .optional-letter>summary{
  display:flex;align-items:center;gap:16px;list-style:none;min-height:72px;
  padding:17px 8px;border-top:1px solid #ac916752;color:#e7d7ba;
  font-size:clamp(23px,2.3vw,30px);line-height:1.25;cursor:pointer
}
body.bb-experience .optional-letter>summary::-webkit-details-marker{display:none}
body.bb-experience .optional-letter>summary::before{
  content:'+';font:22px/1 var(--bb-ui);color:#d5aa72;flex:0 0 26px;text-align:center
}
body.bb-experience .optional-letter[open]>summary::before{content:'−'}
body.bb-experience .optional-letter>summary:hover{color:#f7ecd5}
body.bb-experience .optional-letter>summary:focus-visible{outline:3px solid #4070a8;outline-offset:5px}
body.bb-experience .optional-letter>.paper-letter{margin-top:12px;margin-bottom:35px}
body.bb-experience .optional-letter:not([open])>.paper-letter{display:none}
body.bb-experience .letter-shelf{margin:50px auto 70px;max-width:1160px}
body.bb-experience .letter-shelf>h2{font-size:clamp(32px,4vw,48px);font-weight:400;margin:0 0 24px;line-height:1.15}
body.bb-experience .bb-colophon{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  max-width:1160px;margin:50px auto 0;padding:22px 0 76px;border-top:1px solid #ac916750;
  font:14px/1.5 var(--bb-ui);color:#c4b59f
}
body.bb-experience .bb-colophon nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
body.bb-experience .bb-colophon a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
@media(max-width:1050px){
  body.bb-experience .worm-passage{right:1%;width:69%;bottom:0}
  body.bb-experience .letter-top .small-passage{max-width:30%;width:200px;right:-9px;top:100px}
}
@media(max-width:760px){
  body.bb-experience .worm-passage{right:0;bottom:0;width:69%;max-width:330px}
  body.bb-experience .letter-top .small-passage{right:-8px;top:auto;bottom:-53px;max-width:none;width:36%;max-height:74px}
  body.bb-experience .optional-letter{margin-bottom:16px;scroll-margin-top:122px}
  body.bb-experience .optional-letter>summary{font-size:24px;min-height:68px;padding:16px 3px;gap:9px}
  body.bb-experience .optional-letter>.paper-letter{margin-top:8px;margin-bottom:26px}
  body.bb-experience .letter-shelf{margin:35px auto 45px}
  body.bb-experience .bb-colophon{display:block;margin-top:30px;padding-bottom:90px}
  body.bb-experience .bb-colophon nav{margin-top:10px;gap:15px}
}
@media(max-width:420px){
  body.bb-experience .worm-passage{width:73%;right:-2%;bottom:1%}
  body.bb-experience .letter-top .small-passage{width:42%;right:-5px;bottom:-48px}
}
@media(prefers-reduced-motion:reduce){
  body.bb-experience .worm-passage,body.bb-experience .passage-worm{animation:none;transition:none}
}
@media(forced-colors:active){
  body.bb-experience .passage-paper,body.bb-experience .passage-lip{background:Canvas;border:1px solid CanvasText;filter:none;box-shadow:none}
  body.bb-experience .passage-hole{background:CanvasText;filter:none;box-shadow:none}
  body.bb-experience .optional-letter>summary,body.bb-experience .bb-colophon{color:CanvasText;border-color:CanvasText}
}
@media print{
  body.bb-experience .worm-passage,body.bb-experience .optional-letter>summary,body.bb-experience .bb-colophon{display:none!important}
  body.bb-experience .optional-letter{margin:0;border:0}
  body.bb-experience .optional-letter>.paper-letter,body.bb-experience .optional-letter:not([open])>.paper-letter{display:block}
}

body.bb-experience .guide-heading{max-width:1160px;margin:65px auto 50px}body.bb-experience .guide-heading h1{font-size:clamp(44px,6vw,76px);line-height:1.1;font-weight:400;margin:0 0 20px}body.bb-experience .guide-heading p{font-size:23px;line-height:1.5;max-width:820px;margin:18px 0}body.bb-experience .later-correspondence{max-width:1160px;margin:45px auto 65px}body.bb-experience #sketch-status{font:14px/1.5 var(--bb-ui);margin-top:12px}body.bb-experience .letter-options{margin:25px 0;border-top:1px solid #a48a6180;padding-top:18px}body.bb-experience .letter-options summary{font-size:20px;min-height:44px}body.bb-experience .letter-options #motion-toggle{display:block;margin:18px 0}body.bb-experience .bb-colophon{padding-left:20px;padding-right:20px}
