/* Inna Warszawa: "Wstęp do książki" (/wstep-do-ksiazki/). A reading page on soft.css + book-hero.css. */

/* Reading progress: native scroll-driven animation, no scroll listener. */
.iwcs-excerpt-progress { display: none; }
@supports (animation-timeline: scroll()) {
	.iwcs-excerpt-progress { display: block; position: fixed; inset: 0 0 auto; z-index: 1002; height: 3px; background: var(--s-accent); transform-origin: 0 50%; scale: 0 1; animation: iwcs-progress linear both; animation-timeline: scroll(root); }
	@keyframes iwcs-progress { to { scale: 1 1; } }
}

/* ------------------------------------------------------------ Hero */
.iwcs-excerpt-hero {
	padding: clamp(56px, 7vw, 110px) 28px clamp(64px, 7vw, 100px);
	background: radial-gradient(ellipse 45% 70% at 82% 40%, #eadbc7 0%, transparent 70%), var(--s-cream);
}
.iwcs-excerpt-hero__inner { max-width: 1016px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); }
.iwcs-soft .iwcs-excerpt-hero h1 { margin: 0; font-size: clamp(64px, 8.4vw, 124px); line-height: .88; letter-spacing: -.035em; }
.iwcs-soft .iwcs-excerpt-hero h1 em { display: block; }
.iwcs-excerpt-hero__author { margin: 22px 0 0; font-size: 15px; font-weight: 700; }
.iwcs-excerpt-hero__meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; }
.iwcs-excerpt-hero__meta li { padding: 5px 12px; border-radius: 999px; background: rgb(31 29 25 / .05); color: var(--s-muted); font-size: 12.5px; }
.iwcs-excerpt-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.iwcs-excerpt-hero__actions .iwcs-book-hero__purchase { margin: 0; }
.iwcs-excerpt-hero__actions .iwcs-pill-button { min-height: 52px; }
.iwcs-excerpt-hero__cover { display: block; width: clamp(200px, 24vw, 300px); }
.iwcs-excerpt-hero__cover img {
	display: block; width: 100%; height: auto; border-radius: 3px; rotate: 4deg;
	box-shadow: 0 1px 2px rgb(var(--s-shadow) / .2), 0 36px 60px -22px rgb(var(--s-shadow) / .5);
	transition: rotate .9s var(--s-ease), translate .9s var(--s-ease);
	animation: iwcs-cover-rise 1.2s var(--s-ease) .1s backwards;
}
.iwcs-excerpt-hero__cover:hover img { rotate: 1deg; translate: 0 -8px; }

/* ------------------------------------------------------------ Article */
.iwcs-excerpt__article { padding: clamp(72px, 9vw, 130px) 28px clamp(96px, 11vw, 160px); background: var(--s-cream); }
.iwcs-excerpt__article > * { max-width: 680px; margin-inline: auto; }
.iwcs-excerpt__chapter { display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); text-align: center; }
.iwcs-excerpt__chapter span { color: var(--s-accent); font-size: 14px; }
.iwcs-soft .iwcs-excerpt__chapter h2 { margin: 12px 0 0; font-size: clamp(56px, 7vw, 96px); font-style: italic; line-height: 1; letter-spacing: -.02em; }
.iwcs-excerpt__article > p { margin-top: 0; margin-bottom: 1.35em; color: #2c2a25; font-size: 18.5px; line-height: 1.8; hyphens: auto; text-wrap: pretty; }
.iwcs-excerpt__article > p.iwcs-excerpt__lead { color: var(--s-ink); font-size: clamp(20px, 1.9vw, 23px); line-height: 1.65; }

/* Photographs step out of the text column. */
.iwcs-excerpt__article > .iwcs-excerpt__figure { max-width: 940px; margin-block: clamp(40px, 6vw, 72px); }
.iwcs-excerpt__figure a { position: relative; display: block; margin: 8px 8px 0; overflow: hidden; border-radius: 17px; background: #e6dfd3; }
.iwcs-excerpt__figure img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--s-ease); }
.iwcs-excerpt__figure a:hover img { transform: scale(1.03); }
.iwcs-soft .iwcs-excerpt__figure .iwcs-spread-zoom { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(255 253 248 / .9); box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-ink); font-size: 11.5px; }
.iwcs-excerpt__figure figcaption { padding: 14px 20px 16px; color: var(--s-muted); font-size: 13px; }

.iwcs-excerpt__article > .iwcs-excerpt__pull { max-width: 820px; margin-block: clamp(40px, 6vw, 72px); padding: 0; border: 0; text-align: center; }
.iwcs-excerpt__pull p { margin: 0; color: var(--s-accent); font-family: var(--s-serif); font-size: clamp(38px, 4.6vw, 64px); font-style: italic; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.iwcs-excerpt__pull p::before, .iwcs-excerpt__pull p::after { color: rgb(138 67 41 / .45); }
.iwcs-excerpt__pull p::before { content: '„'; }
.iwcs-excerpt__pull p::after { content: '”'; }

/* Mid-text offer: the moment a reader decides the beginning was enough. */
.iwcs-excerpt__article > .iwcs-excerpt__offer { max-width: 820px; margin-block: clamp(40px, 6vw, 72px); }
.iwcs-excerpt__offer .iwcs-bezel__core { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: 24px; padding: 28px 10px 10px 28px; }
.iwcs-excerpt__offer-text .iwcs-eyebrow { margin-bottom: 16px; }
.iwcs-excerpt__offer-title { margin: 0 0 10px; font-family: var(--s-serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.02; letter-spacing: -.02em; }
.iwcs-excerpt__offer-title em { color: var(--s-accent); }
.iwcs-excerpt__offer-text p:last-child { margin: 0 0 18px; color: var(--s-muted); font-size: 14.5px; line-height: 1.55; }

/* Final offer: a link to the landing sits in its lead. */
.iwcs-soft .iwcs-final-offer__inner > div > p:last-child a { color: var(--s-accent-soft); text-decoration: underline; text-underline-offset: 5px; }

/* Floating quick-buy pill, bottom centre at every width. */
.iwcs-soft .iwcs-buybar--float {
	position: fixed; top: auto; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; padding: 0 12px;
	visibility: hidden; opacity: 0; translate: 0 calc(100% + 24px);
	transition: translate .6s var(--s-ease), opacity .4s var(--s-ease), visibility 0s .6s;
}
.iwcs-soft .iwcs-buybar--float.is-shown { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.iwcs-buybar--float .iwcs-float-nav__pill { overflow: visible; padding: 6px 6px 6px 22px; background: rgb(255 253 248 / .9); }
.iwcs-buybar--float .iwcs-buybar__buy,
.iwcs-buybar--float.is-shown .iwcs-buybar__buy { display: flex; gap: 18px; margin: 0; padding: 0; border: 0; animation: none; }
.iwcs-buybar--float .iwcs-buybar__title { display: block; font-family: var(--s-serif); font-size: 18px; line-height: 1.1; }
.iwcs-buybar--float .iwcs-buybar__title small { display: block; margin-top: 2px; color: var(--s-muted); font-family: Lato, Arial, sans-serif; font-size: 11px; }
.iwcs-buybar--float .iwcs-pill-button { min-height: 46px; padding-left: 18px; font-size: 13.5px; }
.iwcs-soft.iwcs-excerpt-landing .iwcs-site-footer { padding-bottom: 104px; }

/* ------------------------------------------------------------ Mobile */
@media (max-width: 767px) {
	.iwcs-excerpt-hero { padding: 36px 16px 48px; }
	.iwcs-excerpt-hero__inner { grid-template-columns: minmax(0, 1fr) 104px; align-items: start; gap: 16px; }
	.iwcs-excerpt-hero__text .iwcs-eyebrow { margin-bottom: 18px; }
	.iwcs-soft .iwcs-excerpt-hero h1 { font-size: clamp(50px, 15vw, 64px); }
	.iwcs-excerpt-hero__cover { grid-row: 1; grid-column: 2; width: 104px; margin-top: 56px; }
	.iwcs-excerpt-hero__cover img { rotate: 3deg; }
	.iwcs-excerpt-hero__actions { grid-column: 1 / -1; }
	.iwcs-excerpt-hero__actions, .iwcs-excerpt-hero__actions > * { width: 100%; }
	.iwcs-excerpt-hero__actions .iwcs-pill-button { width: 100%; }
	.iwcs-excerpt__article { padding: 56px 20px 80px; }
	.iwcs-excerpt__article > p { font-size: 17.5px; line-height: 1.75; }
	.iwcs-excerpt__article > p.iwcs-excerpt__lead { font-size: 19.5px; }
	.iwcs-excerpt__article > .iwcs-excerpt__figure { margin-inline: -8px; }
	.iwcs-excerpt__figure a { border-radius: 14px; }
	.iwcs-excerpt__offer .iwcs-bezel__core { grid-template-columns: 1fr; gap: 4px; padding: 22px 8px 8px; }
	.iwcs-excerpt__offer-text { padding: 0 12px; }
	.iwcs-soft .iwcs-buybar--float { padding: 0 10px; }
	.iwcs-buybar--float .iwcs-float-nav__pill { width: 100%; padding-left: 18px; }
	.iwcs-buybar--float .iwcs-buybar__buy { flex: 1; justify-content: space-between; }
	.iwcs-buybar--float .iwcs-buybar__title { font-size: 17px; }
}
