.ed-story {
  --story-ink: #3e1e32;
  --story-paper: #f3eadc;
  box-sizing: border-box;
  width: min(100% - clamp(32px, 8vw, 128px), 1264px);
  margin: 0 auto clamp(56px, 8vw, 112px);
  color: var(--story-ink);
  text-align: start;
}
.ed-story *, .ed-story *::before, .ed-story *::after { box-sizing: border-box; }
.ed-story .el-crumb { margin: 0; padding-block: 18px 0; }
.ed-story .story-hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  margin-block: clamp(20px, 3vw, 40px) clamp(36px, 6vw, 82px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--story-paper);
}
.ed-story .story-opening { padding: clamp(22px, 4vw, 64px); }
.ed-story h1, .ed-story h2 {
  margin: 0;
  color: var(--story-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.ed-story h1 { font-size: clamp(2.4rem, 4vw, 4.65rem); }
.ed-story h2 { font-size: clamp(1.75rem, 2.8vw, 2.85rem); }
.ed-story p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.22rem); line-height: 1.65; }
.ed-story .story-opening p { margin-block-start: 1.25em; }
.ed-story .story-hero img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
.ed-story .story-chapter {
  display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 78px);
  width: min(100%, 1020px); margin: 0 auto;
  border-block-start: 1px solid #d9cdbf;
  padding-block: clamp(28px, 3.8vw, 54px);
}
.ed-story .story-chapter p + p { margin-block-start: 1em; }
.ed-story .story-chapter h2 { max-width: 17ch; }
.ed-story .story-play {
  display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.3fr);
  gap: clamp(22px, 4vw, 58px); align-items: center;
  padding: clamp(18px, 3.3vw, 44px); border-radius: 14px;
  margin: clamp(12px, 2vw, 30px) auto 0; max-width: 1020px; background: #f0ebdf;
}
.ed-story .story-play img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ed-story .story-play h2 { margin-block-end: .55em; }
.ed-story .story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 1.2em; }
.ed-story .story-actions a { display: inline-block; font: inherit; line-height: 1.35; color: var(--story-ink); text-underline-offset: .18em; overflow-wrap: anywhere; }
.ed-story .story-actions .story-game { padding: .8em 1.18em; border-radius: 28px; color: white; background: #482039; text-decoration: none; }
.ed-story a:focus-visible { outline: 3px solid #805521; outline-offset: 4px; }
.ed-story a:hover { text-decoration: underline; }
html[dir=rtl] .ed-story :is(h1,h2) { font-family: inherit; line-height: 1.45; letter-spacing: normal; }
@media (max-width: 780px) {
  .ed-story { width: min(100% - 32px, 660px); }
  .ed-story .story-hero, .ed-story .story-chapter { grid-template-columns: minmax(0, 1fr); }
  .ed-story .story-opening { padding: clamp(21px, 5vw, 36px); }
  .ed-story .story-chapter { gap: 16px; }
  .ed-story .story-chapter h2 { max-width: none; }
}
@media (max-width: 560px) {
  .ed-story .story-play { grid-template-columns: minmax(0, 1fr); }
  .ed-story .story-play img { max-width: 320px; }
}
/* Krótkie nagłówki zachowują całe słowa także po powiększeniu tekstu. */
.ed-about-brand :is(h1,h2) {
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: wrap;
  white-space: normal;
}
.ed-about-brand .story-chapter h2 {max-width: none;}
.ed-about-brand .story-opening {padding: clamp(24px, 3.8vw, 52px);}
.ed-about-brand .story-opening p + p {margin-block-start: .72em;}
.ed-about-brand .story-hero {background: #f3eadc;}
.ed-about-brand .story-chapter {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr);
  gap: clamp(20px, 4vw, 64px);
}
.ed-about-brand .story-chapter p, .ed-about-brand .story-play p {max-width: 62ch;}
.ed-about-brand .story-hero img {align-self: center;}
.ed-about-brand .story-play p + p {margin-block-start: .8em;}
.ed-about-brand .about-link {display: inline-block; margin-block-start: .85em; font-weight: 600; color: var(--story-ink); text-underline-offset: .2em;}
@media (max-width: 980px) {
  .ed-about-brand .story-chapter {grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 660px;}
}
@media (min-width: 781px) and (max-width: 1100px) {
  .ed-about-brand .story-hero {grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);}
  .ed-about-brand .story-opening {padding: 25px;}
}

.ed-about-brand .about-together { margin-top:clamp(28px,5vw,64px); border-block-end:1px solid #d9cdbf; }
.ed-about-brand .story-chapter .story-actions .about-link {margin-block-start:0;}
@media(max-width:480px){ .ed-about-brand .story-chapter .story-actions{align-items:flex-start;flex-direction:column;} }

/* The studio illustration sits above the text on small screens. */
@media(max-width:780px){
  .ed-about-brand .story-play{grid-template-columns:minmax(0,1fr);max-width:660px}
  .ed-about-brand .story-play img{width:100%;max-width:100%;max-height:300px;object-fit:contain}
}

.ed-about-brand .story-opening {min-width:0}
.ed-about-brand .story-play .story-actions {row-gap:14px}
@media(max-width:480px){.ed-about-brand h1{font-size:clamp(1.7rem,7.3vw,2.4rem)}.ed-about-brand h2{font-size:clamp(1.4rem,6.6vw,1.8rem)}}
