.story-header { padding-block: 52px 82px; }
.story-breadcrumbs { margin-bottom: 58px; flex-wrap: wrap; }
.story-opening { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(48px, 7vw, 112px); align-items: start; }
.story-heading { min-width: 0; }
.story-heading .label { margin-bottom: 24px; font-size: .875rem; }
.story-heading h1 { font-size: clamp(3rem, 5.2vw, 4.9rem); line-height: 1.03; letter-spacing: -.055em; text-wrap: initial; }
.story-heading h1 span { display: block; margin-top: 12px; font-size: .64em; line-height: 1.16; letter-spacing: -.04em; }
.story-publication { color: var(--muted); font-size: .9375rem; margin-top: 30px; margin-bottom: 28px; }
.story-lead { font-size: clamp(1.125rem, 1.45vw, 1.3rem); line-height: 1.8; max-width: 65ch; margin-bottom: 34px; }
.story-byline { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; font-size: .9375rem; color: var(--muted); }
.story-byline strong { color: var(--ink); display: block; font-size: 1rem; font-weight: 600; }
.story-byline > span > span { display: block; margin-top: 3px; }
.story-byline > span:last-child { flex-shrink: 0; }
.story-cover { margin: 0; width: 100%; }
.story-cover > a { display: block; }
.story-cover img { width: 100%; height: auto; box-shadow: 0 16px 42px #0004; }
.story-cover figcaption { color: var(--muted); font-size: .875rem; line-height: 1.6; margin-top: 18px; }
.story-cover figcaption a, .story-text a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.story-cover figcaption a:hover, .story-text a:hover { color: var(--ink); }
.story-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(42px, 6vw, 88px); align-items: start; padding-block: 64px 100px; border-top: 1px solid var(--line); }
.story-toc { position: sticky; top: 125px; padding-block: 4px 24px; font-size: .9375rem; line-height: 1.45; }
.story-toc .label { font-size: .875rem; margin-bottom: 20px; }
.story-toc ul { list-style: none; margin: 0; padding: 0; }
.story-toc li + li { margin-top: 5px; }
.story-toc li a { display: block; padding-block: 8px; color: var(--muted); }
.story-toc a:hover, .story-toc a:focus-visible { color: var(--accent); }
.story-toc .story-back { display: block; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; color: var(--muted); font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; }
.story-text { min-width: 0; max-width: 760px; font-size: 1.125rem; line-height: 1.85; color: #d5dcda; }
.story-chapter { scroll-margin-top: 20px; }
.story-chapter + .story-chapter { margin-top: 64px; }
.story-chapter h2 { color: var(--ink); font-size: clamp(1.7rem, 2.5vw, 2.25rem); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 26px; text-wrap: balance; }
.story-chapter p { margin-bottom: 1.45em; overflow-wrap: break-word; }
.story-chapter p:last-child { margin-bottom: 0; }
#kolejne-rozdzialy > p:first-of-type { color: var(--ink); font-size: 1.28rem; line-height: 1.75; }
.story-signature { margin-top: 40px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.story-signature strong, .story-signature > span { display: block; }
.story-signature strong { color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.story-signature p { font-size: .875rem; margin-block: 24px 0; max-width: 60ch; }
.story-further { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: .9375rem; line-height: 1.6; }
.story-further .label { width: 100%; margin-bottom: 0; font-size: .875rem; }
@media (min-width: 1600px) {
  .story-opening { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1100px) {
  .story-opening { grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; }
  .story-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
  .story-toc { font-size: .875rem; }
}
@media (max-width: 850px) {
  .story-header { padding-block: 34px 52px; }
  .story-breadcrumbs { margin-bottom: 36px; }
  .story-opening { grid-template-columns: 1fr; gap: 34px; }
  .story-heading h1 { font-size: clamp(2.65rem, 7vw, 4rem); }
  .story-cover { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; }
  .story-cover figcaption { margin: 0; max-width: 30ch; }
  .story-layout { grid-template-columns: 1fr; gap: 42px; padding-block: 34px 64px; }
  .story-toc { position: static; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
  .story-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .story-toc li + li { margin-top: 0; }
  .story-toc li a { padding-block: 9px; }
  .story-toc .story-back { display: none; }
  .story-text { max-width: none; }
}
@media (max-width: 500px) {
  .story-breadcrumbs { gap: 8px; font-size: .875rem; }
  .story-heading .label { font-size: .8125rem; margin-bottom: 20px; }
  .story-heading h1 { font-size: clamp(2.35rem, 10vw, 3.1rem); }
  .story-heading h1 span { margin-top: 10px; font-size: .67em; }
  .story-publication { margin-block: 24px; font-size: .875rem; }
  .story-lead { font-size: 1.0625rem; line-height: 1.8; }
  .story-byline { gap: 16px; font-size: .875rem; }
  .story-byline strong { font-size: .9375rem; }
  .story-cover { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .story-cover figcaption { font-size: .8125rem; }
  .story-text { font-size: 1.0625rem; line-height: 1.8; }
  .story-chapter + .story-chapter { margin-top: 46px; }
  .story-chapter h2 { font-size: 1.7rem; margin-bottom: 22px; }
  #kolejne-rozdzialy > p:first-of-type { font-size: 1.18rem; }
  .story-further { flex-direction: column; align-items: flex-start; gap: 16px; }
}
