.story-hero { position: relative; isolation: isolate; overflow: hidden; background: #1a1c19; }
.story-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 48%; z-index: -3; }
.story-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #111311ed 0%, #111311b8 38%, #11131115 75%), linear-gradient(0deg, #121214, #12121400 65%); }
.story-hero .breadcrumbs { padding-top: 26px; color: #c3c3bf; }
.story-hero-copy { padding-block: 63px 55px; }
.story-hero-copy .eyebrow { font-size: 11px; letter-spacing: 2.5px; }
.story-hero h1 { font-size: clamp(50px, 5.2vw, 76px); line-height: 1.08; font-weight: 400; }
.story-hero-lead { color: #cfcec7; font-size: 17px; line-height: 1.8; margin-bottom: 25px; }
.story-hero .button { gap: 30px; min-height: 47px; font-size: 13px; }
.story-meta { display: flex; align-items: center; gap: 34px; padding-block: 21px 24px; border-top: 1px solid #c3a57545; font-size: 10px; letter-spacing: 1.8px; color: #d0c7b8; }
.story-meta span:last-child { margin-left: auto; color: #aaa9a2; font-size: 12px; letter-spacing: 0; }
.story-layout { display: grid; grid-template-columns: 265px minmax(0, 735px); justify-content: space-between; gap: 70px; padding-block: 64px 80px; }
.story-sidebar { position: sticky; top: 28px; align-self: start; max-height: calc(100dvh - 56px); overflow: auto; scrollbar-width: thin; scrollbar-color: #766649 transparent; }
.story-toc { border-top: 1px solid var(--gold); padding-top: 21px; }
.story-toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 17px; padding-right: 16px; }
.story-toc summary::-webkit-details-marker { display: none; }
.story-toc[open] summary > span { transform: rotate(45deg); }
.story-toc nav a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 13px 9px 0; color: #a6a7a7; font-size: 13px; line-height: 1.55; border-right: 2px solid transparent; }
.story-toc nav a > span { font: 10px/2 monospace; color: #827860; }
.story-toc nav a:hover, .story-toc nav a[aria-current] { color: #ead9ba; }
.story-toc nav a[aria-current] { border-right-color: var(--gold); background: linear-gradient(90deg, transparent, #c3a57512); }
.story-toc-appendices { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.story-worlds-back { display: inline-block; color: #858784; font-size: 12px; margin-top: 23px; }
.story-worlds-back:hover { color: var(--gold-light); }
.story-article { min-width: 0; color: #c9c9c6; font-size: 17px; line-height: 1.9; }
.story-chapter { scroll-margin-top: 28px; }
.story-chapter + .story-chapter { margin-top: 62px; padding-top: 42px; border-top: 1px solid var(--border); }
.story-chapter-heading { margin-bottom: 28px; }
.story-chapter-heading > p { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: 10px; line-height: 1.6; letter-spacing: 1.6px; color: var(--gold); margin-bottom: 14px; }
.story-chapter-heading > p > span:last-child:not(:first-child) { font-size: 11px; letter-spacing: .3px; text-align: right; color: #96978f; }
.story-chapter h2 { font: 400 clamp(31px, 3.2vw, 42px)/1.23 var(--display); letter-spacing: -.3px; color: #e9e7e0; margin-bottom: 0; }
.story-chapter h3 { font: 400 25px/1.4 var(--display); letter-spacing: .2px; color: #cfb88f; margin: 32px 0 15px; }
.story-chapter p { margin-bottom: 21px; }
.story-chapter > p:last-child { margin-bottom: 0; }
.story-chapter ul { margin: 24px 0; padding-left: 22px; }
.story-chapter li { padding-left: 4px; margin-bottom: 15px; }
.story-chapter li::marker { color: var(--gold); }
.story-quote { margin: 32px 0; border-block: 1px solid #c3a57544; padding: 25px 0; }
.story-quote blockquote { margin: 0; font: 400 29px/1.5 var(--display); color: #ddd3c1; }
.story-quote blockquote p { margin-bottom: 12px; }
.story-quote figcaption { font-size: 11px; line-height: 1.6; color: #93958e; }
.story-route { margin: 25px 0; padding: 22px 25px; border-left: 2px solid var(--gold); background: #c3a57509; }
.story-route figcaption { font-size: 10px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--gold); margin-bottom: 14px; }
.story-route ol { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 0; padding: 0; font-size: 17px; color: #e3dccf; }
.story-route li { margin: 0; padding: 0; }
.story-route li:not(:last-child)::after { content: '→'; margin-left: 14px; color: var(--gold); }
.story-timeline { list-style: none; margin: 0; padding: 0; }
.story-timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 26px; padding: 17px 0; margin: 0; border-bottom: 1px solid #ffffff0c; font-size: 15px; line-height: 1.7; }
.story-timeline p { margin: 0; }
.story-date { color: var(--gold-light); font-size: 13px; }
.story-glossary { margin: 0; }
.story-glossary > div { padding: 20px 0; border-bottom: 1px solid #ffffff0c; }
.story-glossary dt { font-size: 17px; color: #d8c5a6; margin-bottom: 5px; }
.story-glossary dd { margin: 0; font-size: 15px; line-height: 1.8; color: #aaa; }
.story-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; }
.story-places { margin: 24px 0; }
.story-places > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 25px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.story-places dt { color: #dfd5c5; font-size: 17px; }
.story-places dt span { display: block; color: #96978f; font-size: 12px; margin-top: 3px; }
.story-places dd { margin: 0; font-size: 15px; line-height: 1.85; }
.story-related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin: 28px 0; font-size: 13px; }
.story-related > span { width: 100%; color: #96978f; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.story-related a { color: var(--gold-light); border-bottom: 1px solid #c3a57555; padding-bottom: 3px; }
.story-related a:hover { color: #f1e7d6; border-color: currentColor; }
.world-story--iznanka { --gold: #c58e77; --gold-light: #e1b29c; }
.world-story--iznanka .story-hero-copy { padding-block: 90px 76px; }
.world-story--iznanka .story-hero-image { object-position: 65% 42%; }
.world-story--iznanka .story-hero-shade { background: linear-gradient(90deg, #111213eb, #1112137a 52%, #11121310), linear-gradient(0deg, #121214, #12121400 80%); }
.world-story--iznanka .story-chapter h3 { color: #d4ae99; }
@media (max-width: 1100px) {
  .story-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 850px) {
  .story-layout { display: block; padding-block: 30px 60px; }
  .story-sidebar { position: static; max-height: none; overflow: visible; margin-bottom: 36px; }
  .story-worlds-back { display: none; }
  .story-toc { border: 1px solid #c3a57555; padding: 17px 20px; background: #191a19; }
  .story-toc summary { margin: 0; padding: 0; }
  .story-toc[open] summary { margin-bottom: 15px; }
  .story-toc nav a { padding-block: 10px; }
  .story-hero-copy { padding-block: 46px 44px; }
  .story-meta { gap: 18px; letter-spacing: 1px; }
  .story-hero-shade { background: linear-gradient(90deg, #111311ed, #11131160), linear-gradient(0deg, #121214, transparent 85%); }
}
@media (max-width: 650px) {
  body:has(.world-story) .site-header { height: auto; min-height: 86px; padding-block: 16px; }
  body:has(.world-story) .site-header .header-shop,
  body:has(.world-story) .site-header .header-cart,
  body:has(.world-story) .site-header .search-link { display: none; }
  body:has(.world-story) .site-header .header-tools { flex-wrap: nowrap; }
  body:has(.world-story) .site-header nav { top: 100%; }
  body:has(.world-story) .site-header .account-link { font-size: 10px; padding: 8px; }
  body:has(.world-story) .site-header .menu-toggle { padding: 8px; }
  .story-hero h1 { font-size: 52px; }
  .story-hero .breadcrumbs { font-size: 11px; padding-top: 20px; }
  .story-hero-lead { font-size: 15px; }
  .story-hero-copy .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  .story-meta { gap: 10px 18px; flex-wrap: wrap; font-size: 9px; padding-block: 17px; }
  .story-meta span:last-child { margin-left: 0; width: 100%; }
  .story-article { font-size: 16px; line-height: 1.85; }
  .story-chapter h2 { font-size: 32px; }
  .story-chapter h3 { font-size: 24px; }
  .story-chapter-heading > p { align-items: flex-start; gap: 14px; }
  .story-chapter-heading > p > span:first-child { white-space: nowrap; }
  .story-chapter + .story-chapter { margin-top: 44px; padding-top: 32px; }
  .story-timeline li { grid-template-columns: 85px minmax(0, 1fr); gap: 15px; font-size: 14px; }
  .story-date { font-size: 12px; }
  .story-route { padding: 19px 20px; }
  .story-places > div { grid-template-columns: 1fr; gap: 10px; }
  .world-story--iznanka .story-hero-copy { padding-block: 66px 60px; }
  .world-story--iznanka .story-hero-shade { background: linear-gradient(90deg, #111213e8, #11121345), linear-gradient(0deg, #121214, transparent 85%); }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.world-story) { scroll-behavior: auto; }
}
