.story-intro {
    padding: clamp(20px, 4vw, 50px);
    margin-block-end: clamp(18px, 2.4vw, 30px);
    border-block-start: 3px solid var(--gold);
    background: radial-gradient(ellipse at left top, var(--warm), transparent 67%), var(--paper);
}
.story-intro h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.18; }
.story-intro > p { max-width: 54ch; margin-block-start: .7rem; }
.story-back { display: inline-block; text-decoration: underline; text-underline-offset: .23em; margin-block-end: 1rem; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr)); gap: 17px; }
.story-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--paper); }
.story-card-link { display: flex; flex-direction: column; height: 100%; }
.story-card-link:hover h2, .story-card-link:focus-visible h2 { text-decoration: underline; text-underline-offset: .2em; }
.story-card-link:focus-visible { outline-offset: -3px; }
.story-kind-folktale { --story-accent: var(--green); }
.story-kind-place-legend { --story-accent: #7c563c; }
.story-kind-folk-history { --story-accent: #724a54; }
.story-cover, .story-scene-art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--paper);
    background: radial-gradient(ellipse at center, #ffffff16, transparent 67%), var(--story-accent);
}
.story-cover { aspect-ratio: 2.3; }
.story-cover img, .story-scene-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-cover span, .story-scene-mark {
    display: grid;
    place-items: center;
    width: 3.3rem;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #fff4df;
}
.story-cover svg, .story-scene-mark svg { width: 1.6rem; height: 1.6rem; }
.story-card-copy { display: grid; align-content: start; gap: .35rem; flex: 1; padding: 1rem 1.15rem; }
.story-card-copy h2 { font-size: 1.45rem; }
.story-card-copy .small-link { justify-self: start; margin-block-start: .45rem; }
.story-label, .story-audience { color: var(--muted); font-size: .9rem; font-weight: 700; }
.story-variant { font-weight: 700; }
.story-search-result { gap: .8rem; margin-block-end: 1rem; }
.story-scenes { display: grid; gap: clamp(16px, 3vw, 34px); }
.story-scene {
    direction: ltr;
    display: grid;
    grid-template: "art copy" auto / minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(16px, 3.5vw, 42px);
    align-items: center;
    border-block-end: 1px solid var(--border);
    padding-block-end: clamp(16px, 3vw, 34px);
    scroll-margin-block-start: 1rem;
}
.story-scene:nth-child(even) { grid-template: "copy art" auto / minmax(0, 6fr) minmax(0, 5fr); }
.story-scene-art { grid-area: art; width: 100%; aspect-ratio: 4 / 3; border-radius: 15px; }
.story-scene-art::before { content: ""; position: absolute; inset: 11px; border: 1px solid #fff4df48; border-radius: 9px; pointer-events: none; }
.story-scene-art:has(img)::before { display: none; }
.story-scene-copy { grid-area: copy; direction: rtl; text-align: start; min-width: 0; }
.story-scene-copy h2 { margin-block: .15rem .65rem; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.story-scene-copy p + p { margin-block-start: .7rem; }
.story-scene-copy p:not(.story-label) { font-size: clamp(1.08rem, 1.55vw, 1.29rem); line-height: 1.85; }
.story-sources { padding: clamp(18px, 3vw, 30px); margin-block: 1.5rem 1rem; }
.story-sources h2, .story-sources h3, .story-sources p { margin-block-end: .5rem; }
.story-sources ul { padding-inline-start: 1.3rem; }
.story-sources li + li { margin-block-start: .6rem; }
.story-sources li span { display: block; color: var(--muted); }
.story-sources a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
@media (max-width: 740px) {
    .story-scene, .story-scene:nth-child(even) { grid-template: "art" auto "copy" auto / minmax(0, 1fr); }
    .story-scene-art { aspect-ratio: 16 / 9; }
    .story-scene-copy p:not(.story-label) { line-height: 1.8; }
}
