/* The free stories (/povesti/<slug>, site/components/poveste.html) and their hubs (site/components/povesti_hub.html).
   Loaded only by those pages, after site.css, so it uses its tokens (--mist, --navy, --stack, ...) and shared blocks. */
/* Andika, the face the printed books are set in (kit/render.py): the story reads like the book it could be */
@font-face { font-family: "Andika"; src: url(/site-assets/fonts/andika-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* the story: one reading column, a picture and then its words */
.story { max-width: calc(760px + 48px); }
.story__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); padding-top: clamp(20px, 3vw, 40px); }
.story__title { font-size: clamp(36px, 5vw, 58px); }
.story__subtitle { font-size: clamp(20px, 2.2vw, 26px); }
.story__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.story__meta li { padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.4; }
.story__body { display: flex; flex-direction: column; gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.story__art { margin: 12px 0 0; }
.story__art img { width: 100%; border-radius: 22px; box-shadow: 0 18px 44px rgba(20, 30, 60, 0.1); }
.story__passage { display: flex; flex-direction: column; gap: 14px; padding: 0 clamp(2px, 1.5vw, 18px); }
.story__p { margin: 0; font-family: "Andika", var(--sans); font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--navy); }
.story__p--line { padding-left: 0.2em; }
.story__p--sound { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: 0.01em; color: #d9674e; }
.story__hl { padding: 0 0.15em; border-radius: 6px; background: var(--yellow); color: inherit; }
.story__end { margin: 18px 0 0; text-align: center; font-family: "Andika", var(--sans); font-size: 20px; color: var(--text-3); }

/* for the parent: what the story can bring, two questions for after */
.story__parent { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.story__parent-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); }
.story__talk { padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--surface); }
.story__talk-title { margin: 0 0 14px; font-family: var(--display); font-size: 21px; line-height: 1.25; color: var(--navy); }
.story__questions { display: flex; flex-direction: column; gap: 12px; margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.55; color: var(--navy); }
@media (max-width: 900px) { .story__parent { grid-template-columns: 1fr; gap: 28px; } }

/* story cards: the next stories on a story page, every story on a hub */
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-cards__all { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 32px 0 0; }
.story-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 20px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--navy); text-decoration: none; transition: box-shadow 200ms ease, transform 200ms ease; }
.story-card:hover { box-shadow: 0 18px 40px rgba(20, 30, 60, 0.12), inset 0 0 0 1px var(--border); transform: translateY(-2px); }
.story-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; border-radius: 14px; }
.story-card__meta { padding: 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-3); }
.story-card__title { padding: 0 8px; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; }
.story-card__text { padding: 0 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 900px) { .story-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .story-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .story-card, .story-card:hover { transition: none; transform: none; } }

/* a hub: the guide that helps first, then the stories */
.hub-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.hub-intro__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); }
.hub-intro__points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hub-intro__points li { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.hub-intro__points strong { font-size: 16px; color: var(--navy); }
.hub-intro__points span { font-size: 15px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 900px) { .hub-intro { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .story__meta li { font-size: 13px; } }
