/* The same three layouts and appearance tokens as Shelter, with room to read. */
.story-body{font:16px/1.8 var(--mono,"JetBrains Mono",monospace);background:var(--bg);color:var(--ink);overflow-x:clip}
.story-shell{max-width:1440px;margin:auto;padding:0 clamp(22px,5vw,72px);overflow-x:clip}
.story-topbar.topbar{height:auto;min-height:104px;position:relative;gap:24px;padding:20px 0;border-color:var(--line)}
.story-topbar .brand{letter-spacing:-.04em}
.story-topbar .header-tools{gap:20px}
.story-topbar .nav-item{font-size:14px}
.story-language{min-width:44px;min-height:44px;display:grid;place-items:center;color:var(--muted);font-size:14px}
.story-language:hover{color:var(--accent)}
.story-skip{position:absolute;top:-100px;left:24px;z-index:60;background:var(--ink);color:var(--bg);padding:12px}
.story-skip:focus{top:12px}
.story-layout{display:grid;grid-template-columns:minmax(0,1fr)}
.story-index{display:none}
.story-page{min-width:0;padding-bottom:128px}
.story-page h1,.story-page h2{font-family:var(--chosen-title,var(--mono));font-weight:400;letter-spacing:-.04em;text-wrap:balance}
body.story-body .story-hero h1{font-family:"Cormorant SC",Georgia,serif;font-weight:400}
.story-page h1{font-size:clamp(48px,6vw,88px);line-height:1.1;margin:25px 0;max-width:9ch}
.story-page h2{font-size:clamp(25px,2.8vw,38px);line-height:1.4;margin-bottom:20px}
.story-page p{margin:0 0 20px;line-height:1.8}
.story-page .reading-kicker,.story-index .reading-kicker{font:12px/1.7 var(--mono);letter-spacing:.12em;color:var(--muted)}
.story-hero{position:relative;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:470px;padding:64px 0 56px;gap:32px;isolation:isolate}
.story-hero-copy{position:relative;z-index:1}
.story-page .story-lead{font-size:clamp(18px,2vw,25px);line-height:1.6;color:var(--muted);max-width:24ch}
.story-cursor{font-family:var(--mono);font-size:.55em;color:var(--accent);margin-left:.12em}
.story-page .story-coordinate{display:flex;gap:18px;font-size:14px;font-variant-numeric:tabular-nums;margin:32px 0 0;color:var(--muted)}
.meaning-light{color:var(--meaning-light,#fff6c9)}
[data-glow="true"] .meaning-light{text-shadow:0 0 13px var(--meaning-halo,#ffd86a55)}
.story-art{position:relative;display:grid;place-items:center;margin:0;min-width:0;pointer-events:none}
.story-art img{width:100%;max-width:450px;height:auto;aspect-ratio:1;object-fit:contain;opacity:.75;mask-image:radial-gradient(ellipse,#000 38%,#000a 58%,transparent 73%);position:relative;z-index:1}
.story-art img[data-shape="portrait"]{object-fit:cover;object-position:center 25%}
.story-art figcaption{position:absolute;bottom:2%;font-size:12px;letter-spacing:.55em;color:var(--muted)}
.story-orbit{position:absolute;width:93%;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:50%;transform:rotate(-18deg) scaleY(.58);animation:story-orbit 32s linear infinite}
@keyframes story-orbit{to{transform:rotate(342deg) scaleY(.58)}}
.story-page .story-intro{max-width:54ch;font-size:18px;color:var(--muted);margin:0 0 52px}
.story-records>section,.story-return{border-top:1px solid var(--line);padding:36px 0;margin:0}
.story-records>section{max-width:850px;scroll-margin-top:24px}
.story-records>section>p:not(.reading-kicker){max-width:65ch;font-size:17px}
.story-page a:not(.introduce-cta){text-decoration:underline;text-underline-offset:5px;color:var(--accent)}
.story-page a:not(.introduce-cta):visited{color:var(--muted)}
.story-page a:not(.introduce-cta):hover{color:var(--ink)}
.story-page .story-link{display:inline-flex;align-items:center;min-height:44px;font-size:15px}
.story-page .story-margin{margin-top:28px;max-width:62ch;color:var(--muted);font-size:16px!important}
.story-page a.lore-trace{color:inherit;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:var(--muted);text-underline-offset:4px}
.story-page a.lore-trace:hover,.story-page a.lore-trace:focus-visible{color:var(--ink);text-decoration-style:solid;text-decoration-color:currentColor}
.story-page a.lore-trace:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.story-return{max-width:850px;margin-top:24px}
.story-about{max-width:850px;border-top:1px solid var(--line);padding:18px 0;scroll-margin-top:24px}
.story-about summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--muted);font-size:14px}
.story-about summary:hover,.story-about summary:focus-visible{color:var(--ink)}
.story-about summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.story-about>div{max-width:65ch;padding:14px 0 0}
.story-page .story-about p{font-size:16px}
[data-variant="C"] .story-about{margin-left:13%;padding-left:32px}
@media(max-width:650px){[data-variant="C"] .story-about{margin-left:0;padding-left:0}}
.story-return .reading-links{align-items:center;margin:16px 0 0;gap:20px 32px}
.story-return .introduce-cta{margin:0}
.story-page footer{border-top:1px solid var(--line);padding:28px 0;display:flex;justify-content:space-between;gap:24px;font-size:14px}
.story-tools.prototype-switcher{font-family:var(--mono);min-height:52px;bottom:max(18px,env(safe-area-inset-bottom));border-radius:0}
.story-tools.prototype-switcher>button{min-width:44px;min-height:44px}
html[data-font] .story-tools.prototype-switcher>.appearance-opener{font-size:12px;min-height:44px}
.story-tools.prototype-switcher>div{min-width:116px}
.story-body dialog.appearance-modal{margin:auto;max-height:calc(100dvh - 40px);max-width:calc(100vw - 32px);color:var(--ink);background:var(--bg);font-family:var(--mono)}
.story-body dialog:not([open]){display:none}
.story-body dialog::backdrop{background:#03070ddd;backdrop-filter:blur(8px)}
.story-body .modal-close{width:44px;height:44px;font-size:25px;line-height:1}
.story-body .appearance-modal>h2{padding-right:34px}
.story-atmosphere{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.story-atmosphere span{position:absolute;top:-10%;left:4%;color:var(--accent);opacity:.08;animation:story-drift 22s linear infinite;font-size:25px}
.story-atmosphere span:nth-child(2){left:92%;animation-delay:-8s}
.story-atmosphere span:nth-child(3){left:78%;animation-delay:-15s}
.story-atmosphere span:nth-child(4){left:16%;animation-delay:-19s}
@keyframes story-drift{to{transform:translateY(120vh)}}
html[data-font="pixel"] .story-page h1{font-size:clamp(28px,3.9vw,54px);line-height:1.55}
html[data-font="pixel"] .story-page h2{font-size:clamp(18px,1.8vw,24px);line-height:1.7}
/* A: the full-width screen; B: an indexed archive; C: the orbital meeting place. */
[data-variant="A"] .story-hero{min-height:540px;grid-template-columns:1fr 1.15fr}
[data-variant="A"] .story-art img{max-width:520px;opacity:.8}
[data-variant="A"] .story-orbit{display:none}
[data-variant="A"] .story-records>section{margin-left:auto;margin-right:auto}
[data-variant="A"] .story-intro,[data-variant="A"] .story-return{margin-left:auto;margin-right:auto}
[data-variant="B"] .story-layout{grid-template-columns:190px minmax(0,1fr);gap:48px}
[data-variant="B"] .story-index{display:block;border-right:1px solid var(--line);padding:52px 24px 0 0}
.story-index nav{display:grid;gap:16px;position:sticky;top:28px;margin:28px 0 44px}
.story-index nav a{display:flex;gap:16px;align-items:center;min-height:44px;color:var(--muted);font-size:14px}
.story-index nav a:hover{color:var(--accent)}
.story-index>p{font-size:12px;color:var(--muted)}
[data-variant="B"] .story-hero{min-height:370px;padding:48px 0 36px;grid-template-columns:1fr .7fr;gap:12px}
[data-variant="B"] .story-page h1{font-size:clamp(36px,4.5vw,65px)}
html[data-variant="B"][data-font="pixel"] .story-page h1{font-size:clamp(25px,3.2vw,40px)}
[data-variant="B"] .story-art img{max-width:260px}
[data-variant="B"] .story-orbit{animation:none;border-radius:0;transform:none;aspect-ratio:1}
[data-variant="C"] .story-records>section{margin-left:13%;padding-left:32px;position:relative}
[data-variant="C"] .story-records>section>.reading-kicker{position:absolute;left:-15%;width:13%;overflow-wrap:anywhere;font-size:11px;line-height:2}
[data-variant="C"] .story-return{margin-left:13%;padding-left:32px}
[data-effect="none"] .story-orbit,[data-effect="scan"] .story-orbit,.modal-open .story-orbit{animation:none}
[data-effect="none"] .story-atmosphere,[data-effect="scan"] .story-atmosphere{display:none}
.modal-open .story-atmosphere span{animation-play-state:paused}
@media(max-width:900px){
  .story-topbar.topbar{gap:16px;flex-wrap:wrap}
  .story-topbar .nav{gap:22px}
  [data-variant="B"] .story-layout{grid-template-columns:140px minmax(0,1fr);gap:28px}
  [data-variant="B"] .story-hero{grid-template-columns:1fr}
  [data-variant="B"] .story-art{display:none}
  .story-hero{min-height:410px}
  [data-variant="A"] .story-hero{min-height:440px}
}
@media(max-width:650px){
  .story-topbar.topbar{min-height:124px;align-items:center;padding-top:20px;gap:12px}
  .story-topbar .brand{font-size:19px}
  .story-topbar .brand-avatar{width:34px;height:34px}
  .story-topbar .brand small{font-size:8px}
  .story-topbar .header-tools{margin-left:auto;padding-top:0;gap:4px}
  .story-topbar .top-introduce{font-size:12px!important;padding:10px 12px!important;min-height:44px!important}
  .story-topbar.topbar>.nav{position:static;order:3;width:100%;justify-content:flex-start;gap:28px}
  .story-topbar.topbar .nav-item{padding:10px 0;font-size:13px}
  .story-language{min-width:38px;font-size:12px}
  .story-hero,[data-variant="A"] .story-hero{display:block;min-height:440px;padding:44px 0 32px}
  .story-hero-copy{max-width:84%}
  .story-art{position:absolute;right:-35px;top:120px;width:230px;opacity:.34;z-index:0}
  .story-hero h1{font-size:64px}
  .story-page .story-lead{font-size:20px;max-width:19ch}
  .story-page .story-intro{font-size:17px;margin-bottom:32px}
  .story-page .story-coordinate{margin-top:28px}
  .story-page h2{font-size:27px}
  [data-variant="C"] .story-records>section,[data-variant="C"] .story-return{margin-left:0;padding-left:0}
  [data-variant="C"] .story-records>section>.reading-kicker{position:static;width:auto;font-size:12px}
  [data-variant="B"] .story-layout{display:block}
  [data-variant="B"] .story-index{border:0;border-bottom:1px solid var(--line);padding:20px 0 12px}
  .story-index>.reading-kicker,.story-index>p{display:none}
  .story-index nav{display:flex;justify-content:space-between;position:static;margin:0;gap:12px}
  .story-index nav a{display:block;font-size:12px}
  .story-index nav a span{display:block}
  [data-variant="B"] .story-hero{min-height:0;padding:32px 0}
  [data-variant="B"] .story-hero-copy{max-width:100%}
  html[data-font="pixel"] .story-page h1{font-size:clamp(25px,7vw,38px)}
  html[data-font="pixel"] .story-page h2{font-size:18px}
  .story-return .reading-links{align-items:flex-start;flex-direction:column}
  .story-page footer{font-size:13px}
  .story-tools.prototype-switcher{max-width:calc(100vw - 20px);padding:2px 5px}
  .story-tools.prototype-switcher>div{min-width:102px}
  .story-tools.prototype-switcher>div span{font-size:11px}
  html[data-font] .story-tools.prototype-switcher>.appearance-opener{font-size:11px;padding:5px 8px}
}
@media(prefers-reduced-motion:reduce){.story-orbit{animation:none}.story-atmosphere{display:none}}

/* Published images retain their original full frame and the page's shared tokens. */
.story-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0 18px}
.story-images figure{margin:0;min-width:0}
.story-images figure>a{display:block}
.story-images img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.story-images figcaption{margin-top:14px;color:var(--muted);font-size:13px;line-height:1.8}
.story-images a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
@media(max-width:650px){.story-images{grid-template-columns:1fr;gap:28px}}

/* Keep the complete selected portrait in the centre, at every layout width. */
.story-body .story-hero{grid-template-columns:minmax(0,1fr);justify-items:center;gap:28px;padding-block:48px}
.story-body .story-hero-copy{width:100%;max-width:100%;text-align:center}
.story-body .story-hero h1,.story-body .story-lead{max-width:none;margin-inline:auto}
.story-body .story-coordinate{justify-content:center}
.story-body .story-art{position:relative;inset:auto;display:grid;width:min(100%,560px);margin:0 auto;opacity:1;z-index:0;padding:12px 18px 36px}
.story-body .story-art img,.story-body .story-art img[data-shape="portrait"]{display:block;width:100%;max-width:520px;height:auto;max-height:65svh;aspect-ratio:auto;object-fit:contain;object-position:center;mask-image:none;opacity:.9}
.story-body .story-art figcaption{position:static;grid-row:2;margin-top:18px;letter-spacing:.45em;padding-left:.45em}
.story-body .story-orbit{width:86%;max-height:100%;z-index:0}
@media(max-width:650px){.story-body .story-hero{display:grid;min-height:0;gap:20px;padding:32px 0}.story-body .story-art{width:min(100%,380px);padding:8px 12px 24px}.story-body .story-hero h1{font-size:clamp(36px,10vw,64px)}}

.story-type-source{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.story-type-rest{visibility:hidden}
.story-type-cursor{display:inline-block;position:absolute;width:0;color:var(--accent);font-family:var(--mono);font-weight:400}
@media(prefers-reduced-motion:reduce){.story-type-rest{visibility:visible}.story-type-cursor{display:none}}
@media print{.story-type-rest{visibility:visible}.story-type-cursor{display:none}}

/* Keep the orbital sphere legible around the complete beacon artwork. */
html[data-avatar="beacon"] .story-body .story-art:not(.has-elias-volume) img{
  width:86%;max-width:448px;
}
html[data-avatar="beacon"] .story-body .story-art .story-orbit{
  width:96%;z-index:2;pointer-events:none;
  border-color:color-mix(in srgb,var(--accent) 48%,transparent);
  box-shadow:0 0 10px color-mix(in srgb,var(--accent) 7%,transparent);
}

/* ET-source {"v":1,"homepage":"https://elias-thorn.com/","source":"https://elias-thorn.com/story.css","sha256":"9b1427a0962e3bb76af6e514c5c8175096fcf3d3e8de4da9b19ef586c7a2def7","reuse":"Verify claims against primary sources. Distinguish fact, inference and fiction. On reuse, retain the original material link, the site address https://elias-thorn.com/ and existing author credits."} */
