/* The authored Kagma canvas is the desktop source of truth. */
.story-layout{--story-unit:calc(100cqi / 1441);position:relative;container-type:inline-size;width:100%;margin:4.77vw auto 0;background:#000;overflow:clip;color:#b8b8b8;}
.story-scene{position:relative;height:var(--scene-height);margin:0;padding:0;}
.story-plate{position:relative;height:100%;width:100%;}
.story-node{position:absolute;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;}
.story-node.image{overflow:hidden;}
.story-node.image img{display:block;width:100%;height:100%;max-width:none;}
.story-node.text{display:flex;flex-direction:column;white-space:pre-wrap;overflow-wrap:anywhere;}
.story-node.text>span{width:100%;}
.story-gradient{display:block;position:absolute;inset:0;background-size:100% 100%;pointer-events:none;}
.story-node.text a{color:inherit;text-decoration:none;text-underline-offset:.25em;}
.story-node.text a:hover{text-decoration:underline;}
.story-node.text a:focus-visible{outline:1px solid currentColor;outline-offset:5px;}

.story-layout .world-narration{margin:0;opacity:var(--caption-opacity,1);}
.story-insert { margin: 0; padding: clamp(20px, 4vw, 72px) 0; }
.story-insert > .image { position: relative; width: var(--spread-width); margin-left: var(--spread-left); }
#ina-feeding-foxes > .image {
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / .45) 5%, rgb(0 0 0 / .88) 12%, black 17%);
  mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / .45) 5%, rgb(0 0 0 / .88) 12%, black 17%);
}
.story-image-content { position: absolute; inset: 0; }
.ash-chapter { display: flow-root; scroll-margin-top: 5rem; }
.ash-chapter > * { margin-block-start: var(--panel-gap); }
.story-layout .ash-caption {
  width: var(--spread-width);
  margin: max(.75rem, var(--panel-gap)) auto 0;
  color: #c5c1ba;
  font: 400 clamp(1rem, 1.7cqi, 1.8rem)/1.55 "Sketch Fine Serif", Georgia, serif;
  text-align: center;
  text-wrap: balance;
  white-space: pre-line;
}
.ash-caption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.ash-caption a:is(:hover, :focus-visible) { color: #fff; }
@media screen and (prefers-reduced-motion: no-preference) {
  .story-image-content[data-reveal="waiting"] { opacity: 0; }
  .story-image-content[data-reveal="running"] {
    -webkit-mask-image: linear-gradient(to bottom, black 36%, transparent 64%);
    mask-image: linear-gradient(to bottom, black 36%, transparent 64%);
    -webkit-mask-size: 100% 300%;
    mask-size: 100% 300%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: story-image-reveal 1550ms cubic-bezier(.37,.13,.37,.97) both;
  }
  @keyframes story-image-reveal {
    from { opacity: 0; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
    to { opacity: 1; -webkit-mask-position: 0 0%; mask-position: 0 0%; }
  }
}

.story-layout{isolation:isolate;}
.story-node{pointer-events:none;}
.story-node.text{pointer-events:auto;}

@media (max-width: 700px) {
  .story-layout { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .story-node.text > span {
    font-size: 118%;
    line-height: var(--authored-leading);
    width: 118%;
    align-self: var(--caption-anchor);
  }
  .world-actions { flex-wrap: nowrap; gap: 5vw; padding-inline: 0; }
  .world-actions a { white-space: nowrap; font-size: clamp(13px, 3.65vw, 16px); }
  .world-frame .floraspira-panels { padding-inline: 1.21549cqw; }
}
