feat: Add book viewer at /book with shared design system

- Add html/index.html: book viewer with auto-discovering sidebar,
  prev/next navigation, keyboard shortcuts, and URL hash persistence
- Add html/book-page.css: shared stylesheet for all book pages derived
  from fabula-ultima-sheet.css (dark theme, CSS variables, Cinzel/
  Crimson Text fonts, common class styles)
- Add book.js entry point so webpack injects the shared CSS into the
  book viewer; update webpack.config.js for two entry points, split
  CSS chunk, CopyWebpackPlugin for book pages, and /book dev server
  rewrite rule
- Add scripts/strip_watermark.py: removes "Guest Customer (Order
  #52072168)" watermark artifacts from all 210 book pages
- Add scripts/restyle_book.py: strips per-page <style> blocks and
  injects <link rel="stylesheet" href="book-page.css"> into all pages
- Update Justfile deploy to scp -r dist/* for the new /book subtree

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 03:36:35 +00:00
parent 58552b536f
commit c75cd188c1
220 changed files with 12685 additions and 10 deletions

73
html/166.html Normal file
View File

@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chapter Expansion Rules</title>
<link rel="stylesheet" href="book-page.css">
</head>
<body>
<h1>CHAPTER FOR A BETTER FUTURE</h1>
<div class="requirement-box">
<strong>Requirements:</strong> You must have mastered the <strong class="skill-name">Merchant Class</strong>, and must have acquired the <strong class="skill-name">Real Treasure</strong> and <strong class="skill-name">Winds of Trade Skills</strong>.
</div>
<section>
<h2>Trading and Point Mechanics</h2>
<p>When you need to spend one or more <strong>Fabula Points</strong>, if you are not spending them to alter the story (see Core Rulebook, page 98), you may spend that many <strong>Trade Points</strong> instead. Describe which memories of your trades and journeys give you strength!</p>
<p>Additionally, when you gain two or more <strong>Trade Points</strong> through the <em>Real Treasure</em> or <em>Winds of Trade Skills</em>, you may choose to gain exactly 1 Trade Point instead. If you do, follow these steps:</p>
<ul>
<li>Choose a settlement within 1 travel day of your position and increase its prosperity by an amount equal to (your Skill Level in <strong>Winds of Trade</strong> + your Skill Level in <strong>Real Treasure</strong>).</li>
<li>A settlements prosperity starts at 0 and has no upper limit.</li>
</ul>
</section>
<section>
<h2>Prosperity Effects</h2>
<p>The chart below indicates the effects of your donations on the settlement and on anything within 1 travel day of it.</p>
<table>
<thead>
<tr>
<th>Minimum Prosperity</th>
<th>Effect within 1 Travel Day</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>10 or more</strong></td>
<td>When you or an ally need to pay a cost in zenit, whatever the reason, that cost is halved.</td>
</tr>
<tr>
<td><strong>15 or more</strong></td>
<td>People gladly accommodate you and your allies: while in this area, you can always rest freely, without spending zenit. Furthermore, any travel rolls made in this area never use a die greater than d8.</td>
</tr>
<tr>
<td><strong>20 or more</strong></td>
<td>When a Villain in this area spends Ultima Points, they must spend twice as many Ultima Points.</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>GREATER CHLOROMANCY</h2>
<div class="requirement-box">
<strong>Requirements:</strong> You must have mastered the <strong class="skill-name">Floralist Class</strong>.
</div>
<p>Once per turn when a magiseed leaves your garden, if that magiseed has one or more "at the end of your turn" effects, you may spend <strong>20 Mind Points</strong>. If you do, reproduce one of those effects (you may also choose an effect that doesnt match the current sections of your Growth Clock).</p>
<p class="additional-effect">
Additionally, if you have acquired the <strong>Verdant Sway Skill</strong>, your Rituals can now also influence and control soldier-Rank creatures belonging to the plant Species (but you are still unable to create them).
</p>
</section>
<footer style="margin-top: 50px; padding-top: 20px; border-top: 1px dashed #ccc;">
</footer>
</body>
</html>