/* Story page (/story/): "Road to the League", the Mira and Jonas manga. Art: /img/home/ (made with Google Flow). */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.story { --ink: #111; --paper: #f6f2e9; --name: #8a5a00; --st-head: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  background: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--bg); }

/* ---------- Cover: the pull, moving ---------- */
.st-cover { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 640px); overflow: hidden; background: #000; border-bottom: 4px solid #000; }
.st-cover-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.st-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 26, 0) 30%, rgba(10, 12, 26, 0.94) 100%); }
.st-cover-in { position: relative; z-index: 1; padding-bottom: 40px; }
.st-kicker { display: inline-block; margin: 0 0 12px; padding: 4px 12px; background: var(--gold); color: #000; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transform: skew(-8deg); }
.st-cover h1 { margin: 0 0 12px; font: italic 800 clamp(52px, 8.5vw, 108px)/0.9 var(--st-head); text-transform: uppercase; color: #fff; text-shadow: 5px 5px 0 #000, 0 0 30px rgba(0, 0, 0, 0.6); }
.st-lead { max-width: 52ch; margin: 0 0 18px; font-size: 18px; line-height: 1.5; color: #eceef8; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.st-start { font-weight: 700; color: var(--gold); }

/* ---------- Chapters: paper pages with ink panels, captions and speech bubbles ---------- */
.st-book { display: flex; flex-direction: column; gap: 44px; max-width: 920px; margin: 0 auto; padding: 48px 16px 64px; }
.st-ch { padding: 18px 18px 22px; background: var(--paper); color: var(--ink); border: 3px solid #000; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); scroll-margin-top: 80px; }
.st-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; }
.st-no { font: italic 800 60px/0.8 var(--st-head); color: var(--gold); -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.st-head h2 { margin: 0; font: italic 800 clamp(28px, 4vw, 42px)/1 var(--st-head); text-transform: uppercase; letter-spacing: 0; color: #000; }
.st-cap { position: relative; z-index: 1; width: fit-content; max-width: min(46ch, 88%); margin: 0 0 -18px 14px; padding: 8px 12px; background: #fff4c7; border: 2px solid #000; box-shadow: 3px 3px 0 #000; font-size: 15px; font-weight: 600; line-height: 1.45; }
.st-cap.st-after { margin: -18px 14px 0 auto; }
.st-panel { margin: 0; overflow: hidden; background: #000; border: 3px solid #000; }
.st-panel img { display: block; width: 100%; height: auto; }
.st-talk { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin-top: -26px; padding: 0 14px; }
.st-cap.st-after + .st-talk { margin-top: 16px; }
.st-say { position: relative; align-self: flex-start; max-width: 30em; margin: 0; padding: 10px 18px 12px; background: #fff; border: 2.5px solid #000; border-radius: 22px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.st-say.st-r { align-self: flex-end; }
.st-say::before { content: ''; position: absolute; top: -9px; left: 28px; width: 15px; height: 15px; background: #fff; border-top: 2.5px solid #000; border-left: 2.5px solid #000; transform: rotate(45deg); }
.st-say.st-r::before { left: auto; right: 28px; }
.st-say b { display: block; margin-bottom: 2px; font: italic 800 14px/1 var(--st-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--name); }

/* ---------- Cut-ins: slanted close-ups at the big moments ---------- */
.st-cut { position: relative; height: clamp(150px, 27vw, 270px); overflow: hidden; background: #000; clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%); }
.st-cut.st-flip { clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%); }
.st-cut img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.st-cut::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255, 255, 255, 0.1) 22px 24px); pointer-events: none; }
.st-big { position: absolute; z-index: 1; top: 50%; right: 6%; transform: translateY(-58%) skew(-8deg); font: italic 800 clamp(56px, 11vw, 128px)/0.9 var(--st-head); color: var(--gold); -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 6px 6px 0 #000; }
.st-line { position: absolute; z-index: 1; right: 6%; bottom: 15%; margin: 0; padding: 6px 14px; background: #fff; color: #000; border: 2.5px solid #000; font-size: 16px; font-weight: 800; transform: skew(-8deg); }

/* ---------- Ending ---------- */
.st-end { padding-top: 8px; text-align: center; }
.st-tbc { margin: 0 0 12px; font: italic 800 clamp(40px, 6vw, 68px)/1 var(--st-head); text-transform: uppercase; color: var(--gold); text-shadow: 4px 4px 0 #000; }
.st-end p:not(.st-tbc) { margin: 0 0 18px; color: var(--muted); }
.st-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Motion (only when story.js turns it on) ---------- */
.st-anim .st-ch { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.st-anim .st-ch.in { opacity: 1; transform: none; }
.st-anim .st-cut { opacity: 0; transform: translateX(-14%); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.st-anim .st-cut.st-flip { transform: translateX(14%); }
.st-anim .st-cut.in { opacity: 1; transform: none; }
.st-anim .st-cut .st-big { opacity: 0; transition: opacity 0.2s ease 0.35s; }
.st-anim .st-cut.in .st-big { opacity: 1; }

@media (max-width: 640px) {
  .st-cover-in { padding-bottom: 28px; }
  .st-lead { font-size: 16px; }
  .st-book { gap: 32px; padding: 32px 12px 48px; }
  .st-ch { padding: 10px 10px 16px; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55); }
  .st-no { font-size: 46px; }
  .st-cap { margin-left: 8px; font-size: 14px; }
  .st-cap.st-after { margin-right: 8px; }
  .st-talk { padding: 0 8px; }
  .st-say { font-size: 15px; padding: 8px 14px 10px; }
  .st-line { font-size: 14px; }
}
