/* Illustrated scenes embedded in the home, character and collection templates. */
.scene-feature,.story-gallery{--scene-ink:#21392e;--scene-muted:#53665b;--scene-rule:#c9cec1}
.scene-feature{margin-block:clamp(2.5rem,7vw,6rem);color:var(--scene-ink)}
.scene-feature-hero{border-block-start:1px solid var(--scene-rule);padding-block-start:clamp(1.3rem,3vw,2.25rem)}
.scene-feature-head,.scene-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:.6rem 1.5rem;flex-wrap:wrap;margin-block-end:1.1rem}
.scene-feature-head h2{margin:0;font:400 clamp(1.85rem,3.2vw,3.1rem)/1.08 Georgia,serif;letter-spacing:-.035em}
.scene-feature-head>a,.scene-group-head>a,.scene-episodes,.scene-back{color:var(--scene-ink);font-size:.93rem;text-decoration:underline;text-underline-offset:.24em}
.scene-feature-head>a,.scene-group-head>a,.scene-episodes,.scene-back,.stories-jump summary{display:inline-flex;align-items:center;gap:.4rem;min-height:2.75rem}
.scene-next{font-size:.95em;line-height:1}
.scene-teasers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15.5rem),1fr));gap:1rem clamp(1rem,2.3vw,2.1rem)}
.scene-teaser{min-width:0;display:flex;flex-direction:column;gap:.65rem;color:var(--scene-ink);text-decoration:none}
.scene-thumb{display:block;overflow:hidden;background:#ebe9df;border-radius:.4rem;text-align:center}
.scene-thumb img{display:block;width:100%;height:auto;aspect-ratio:1.55;object-fit:contain}
.scene-teaser-copy,.scene-teaser-copy strong,.scene-teaser-copy .scene-summary,.scene-teaser-copy .scene-series-name{display:block}
.scene-teaser-copy{min-width:0;overflow-wrap:anywhere}
.scene-teaser-copy strong{font:400 clamp(1.24rem,2vw,1.8rem)/1.16 Georgia,serif;letter-spacing:-.022em}
.scene-summary,.scene-series-name{margin-top:.55rem;max-width:52ch;color:var(--scene-muted);line-height:1.55}
.scene-series-name{font-size:.85rem}
.scene-teaser:hover strong,.scene-teaser:focus-visible strong,.scene-permalink:hover,.scene-permalink:focus-visible{text-decoration:underline;text-underline-offset:.13em}
.scene-solo .scene-teasers{display:block}
.scene-solo .scene-teaser{display:grid;grid-template-columns:minmax(13rem, min(48%,28rem)) minmax(0,1fr);align-items:center;gap:clamp(1rem,4.2vw,3.4rem)}
.scene-solo .scene-thumb img{aspect-ratio:var(--scene-ratio,4/3);max-height:21rem}
.scene-solo .scene-teaser-copy strong{font-size:clamp(1.45rem,2.7vw,2.5rem)}
.scene-permalink{color:inherit;text-decoration:none}
.story-gallery .stories-intro{padding-block-end:1.2rem}
.story-gallery .stories-intro p{max-width:65ch;margin-bottom:.25rem}
.story-gallery .stories-jump{border-color:var(--scene-rule);padding-block:.5rem;scroll-margin-block-start:6rem}
.story-gallery .stories-jump summary{display:list-item;min-height:0;padding-block:.55rem}
.stories-jump summary span,.stories-jump nav small{font-variant-numeric:tabular-nums;color:var(--scene-muted);font-weight:400}
.stories-jump summary span{margin-inline-start:.25em;font-size:.85em}
.story-gallery .stories-jump nav{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:.15rem 1.45rem}
.story-gallery .stories-jump nav a{display:flex;align-items:baseline;justify-content:space-between;gap:.8rem;text-decoration:none;padding:.48rem 0;border-block-end:1px solid var(--scene-rule);line-height:1.3}
.story-gallery .stories-jump nav a:hover,.story-gallery .stories-jump nav a:focus-visible{text-decoration:underline;text-underline-offset:.22em}
.story-gallery .stories-jump a.scene-show-all{font-weight:650}
.story-gallery .scene-group-head h2{margin:0}
.story-gallery .stories-group{scroll-margin-block-start:5.3rem}
.story-gallery .story-card{max-width:none;scroll-margin-block-start:5.3rem}
.story-gallery .story-card figure>img{background:#ebe9df;width:100%;height:auto;aspect-ratio:4/3;max-height:none;object-fit:contain;object-position:center}
.story-gallery .story-card figcaption p{line-height:1.55;color:var(--scene-muted)}
.story-gallery .story-links{align-items:baseline;gap:.15rem 1rem}
.story-gallery .story-links a{padding-block:.25rem}
.story-gallery .story-links .original{font-size:.83rem}
.story-gallery .scene-back{margin-block-start:1.3rem;color:var(--scene-muted)}
.scene-feature a:focus-visible,.story-gallery a:focus-visible,.story-gallery summary:focus-visible{outline:2px solid #507662;outline-offset:3px}
.story-gallery .story-related{display:flex;flex-wrap:wrap;gap:.6rem 1rem;margin-block:1rem}
.story-related a{text-decoration:underline;text-underline-offset:.24em}
@supports selector(:has(*)){
  .story-gallery:has(.stories-group:target) .stories-group:not(:target){display:none}
}
@media(max-width:680px){
 .scene-feature-head,.scene-group-head{gap:.15rem .8rem;align-items:center}
 .scene-teasers{grid-template-columns:1fr;gap:0}
 .scene-teaser{display:grid;grid-template-columns:minmax(4.25rem,24%) minmax(0,1fr);align-items:center;gap:.85rem;padding-block:.65rem;border-block-end:1px solid var(--scene-rule)}
 .scene-thumb img{aspect-ratio:1.15}
 .scene-solo .scene-teaser{display:flex;align-items:stretch;padding:0;border:0;gap:.85rem}
 .scene-solo .scene-thumb img{max-height:18rem}
 .scene-feature-hero .scene-summary{margin:.4rem 0 0}
 .story-gallery .story-card figure>img{aspect-ratio:var(--scene-ratio,4/3);max-height:65svh}
 .story-gallery .scene-group-head h2{font-size:clamp(1.6rem,7.5vw,2.45rem)}
}


/* A script-free reader gets the opening illustrations, the selected collection,
   or the precise scene that another page linked to. Story texts remain readable. */
.scene-static-art{display:none}
.story-card:target .scene-static-art,
.stories-group:target .scene-static-art,
.stories-group:first-of-type .story-card:nth-child(-n+3) .scene-static-art{
 display:block;width:100%;aspect-ratio:4/3;background:#ebe9df var(--scene-small) center / contain no-repeat;border-radius:.45rem
}
@media(min-width:680px){
 .story-card:target .scene-static-art,.stories-group:target .scene-static-art,
 .stories-group:first-of-type .story-card:nth-child(-n+3) .scene-static-art{background-image:var(--scene-large)}
}
@media(max-width:680px){
 .story-card:target .scene-static-art,.stories-group:target .scene-static-art,
 .stories-group:first-of-type .story-card:nth-child(-n+3) .scene-static-art{aspect-ratio:var(--scene-ratio);max-height:65svh}
}
.scene-hint{font-size:.92rem;line-height:1.5;color:var(--scene-muted)}
.scene-locales{display:none;margin-block-start:.6rem;color:var(--scene-muted);line-height:1.6;font-size:.88rem}
.story-card:target .scene-locales{display:block}
.scene-locales summary{cursor:pointer}
.scene-locales a{display:inline-block;margin-inline-end:.8rem;padding-block:.35rem;text-decoration:underline}
/* Deep links can cross dozens of scenes; jump directly to the selected illustration. */
html:has(.story-gallery){scroll-behavior:auto}
.scene-search{max-width:32rem;margin:.3rem 0 1rem}
.scene-search label{display:block;margin-bottom:.35rem;font-weight:600;font-size:.93rem}
.scene-search>div{display:flex;align-items:center;gap:.7rem}
.scene-search input{max-width:25rem;flex:1 1 auto;min-width:6rem;min-height:2.7rem;background:transparent;color:var(--scene-ink);border:1px solid #9da99e;border-radius:.35rem;padding:.55rem .8rem;font:inherit}
.scene-search input:focus-visible{outline:2px solid #507662;outline-offset:2px}
.scene-search output{font-size:.85rem;color:var(--scene-muted);font-variant-numeric:tabular-nums}
.scene-search[hidden],.story-gallery .story-card[hidden],.story-gallery .stories-group[hidden]{display:none!important}
.scene-fiction{max-width:68ch;color:var(--scene-muted);line-height:1.55;margin:-.25rem 0 1.25rem}
