/* How it works has one stylesheet: a page document carries one stylesheet link, so the story's styles
   arrive through it. rtl.css applies only under html[dir="rtl"] and html[data-language="fa"]. Like every addon
   style, each story file is one addon layer, so the site's own rules and the theme keep their place. */
@import url("actions.css");
@import url("styles.css");
@import url("sections.css");
@import url("possibilities.css");
@import url("chapters.css");
@import url("rtl.css");

@layer addon {
/* The story now lives inside the public site's frame. Its scenes retain their visual language and
   motion, while the host page owns navigation, width, scrolling and the footer. */
.as-platform-rich>.wrap,.as-platform-rich .wrap{width:100%;margin-inline:auto}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.as-platform-rich .deck{display:none}
/* The story's own type sets every h1 for its retired hero; a site intro keeps the site's title size. */
.as-intro h1{font-size:clamp(36px,4.4vw,60px);line-height:1.08;letter-spacing:-.035em}
.as-intro h1 em{color:var(--as-accent)}
/* How it works: each scene opens with a site section heading and closes with what it means for the reader,
   set off like the home page's bands. */
.as-how,.as-platform-rich .possibilities-demo{margin-block-start:64px;padding-block-start:24px;border-top:1px solid var(--as-line)}
.as-platform-rich>.as-how:first-of-type{margin-block-start:0}
.as-how-head{max-width:820px;margin-bottom:28px}
.as-how-head h2{margin-top:16px;font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;line-height:1.12}
.as-how-head h2 em{color:var(--as-accent)}
.as-how-head .as-lead{margin-top:18px}
/* A phone keeps the scenes closer together: the desktop's open spacing reads as empty screens on a small one. */
@media(max-width:760px){
  .as-how,.as-platform-rich .possibilities-demo{margin-block-start:48px;padding-block-start:20px}
  .as-platform-rich .possibilities{padding-top:24px;padding-bottom:8px}
  .as-how-head{margin-bottom:28px}
}
}
