Commit Graph

13 Commits

Author SHA1 Message Date
valknar 00b4a0842c fix(cover): add centre scrim to front overlay for KDP text-legibility compliance
Adds a radial-gradient centre darkening pass (~62 % opacity) directly behind the
title/subtitle/author text block so the gold title reads clearly over any
illustration colour — addresses KDP review feedback about unreadable cover text.
Also adds a fourth text-shadow layer to .front-title for extra depth.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 07:09:20 +02:00
valknar 658ebc199e style(cover): change back cover quote colour to gold2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 09:30:23 +02:00
valknar 3537baa230 fix(cover): improve readability and brightness based on test print feedback
- Strengthen front overlay tint so subtitle and author text read clearly
  against the artwork (was 20% centre tint, now 30%; bottom band 40%→60%)
- Set front subtitle to white and front author to gold2, both with
  triple-layer text-shadow for maximum contrast
- Increase back content padding from 0.125 in to 0.25 in on all trim edges
- Change back tagline colour from 50%-opacity gold to full --color-text
  with solid black shadow so the quote is legible
- Raise back artwork opacity 0.35→0.55 and reduce overlay darkness so
  the back image is no longer too dark

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 21:09:39 +02:00
valknar 6749503248 fix: remove barcode placeholder rectangle from back cover
KDP generates and places the ISBN barcode automatically during upload;
a manual white box in the PDF conflicts with that process.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 16:12:05 +02:00
valknar ae443f1eab fix: replace ASCII closing quotes with German U+201C in „..." pairs
25 occurrences in DOSSIER.md and 1 in templates/cover.html.
HTML attribute quotes left untouched.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 17:52:29 +02:00
valknar c962a8403c polish: align back cover CSS design with front cover
- Add .back-overlay gradient vignette (mirrors front-overlay)
- Add .back-ornament-top (❧) and .back-ornament-bottom (· · ·)
- Add .back-rule decorative gold divider (mirrors front-rule)
- Add text-shadow to headline, synopsis and tagline for legibility
- Wrap bottom strip in container so ornament sits above tagline/barcode row

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 17:47:13 +02:00
valknar 6e6b66671e Fix front-overlay not covering right bleed edge
Overlay was sized to var(--trim-w) like the old artwork, leaving the
right 0.125 in strip of the zone undarked. Changed to width/height 100%.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 21:10:40 +02:00
valknar a23b6649c2 Fix front artwork gap at right bleed edge
Image was sized to trim-w (8.5 in) but the zone is trim-w + bleed
(8.625 in), leaving a 0.125 in uncovered strip. width/height 100%
fills the full zone, matching how back-artwork is sized.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 21:08:19 +02:00
valknar f91fdaa9e9 Fix back cover artwork scaling — use explicit width/height instead of inset
object-fit: cover on <img> requires explicit dimensions; inset:0 alone
does not force the element size in Chromium. Mirrors the same approach
already used for .front-artwork.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 20:13:48 +02:00
valknar 06cf495479 Add gradient overlay to front cover for text legibility over artwork
Inserts a .front-overlay div (shown only when frontImage is present)
with a radial vignette + linear tint that darkens the image behind the
title/subtitle/author without obscuring the artwork. Also strengthens
text-shadow on all three text elements and bumps their opacity slightly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 20:03:21 +02:00
valknar 96ba26559b Apply Illuminated Nocturne style to cover template
Replaces Georgia with Cormorant Garamond (display, 300 italic) + Lora
(body) across all cover text. Adds @font-face declarations pointing to
fonts/ (same as interior). Updates gold tokens to match interior palette.

Visual changes: front title in Cormorant light italic with gold gradient
rule below, ❧ ornament replacing ✦, synopsis body in Lora.
cover.js now reads 00-front-matter.md to inject author name into spine,
front, and removes the [AUTOR] placeholder.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 18:44:19 +02:00
valknar fa1a133f94 Hide guides overlay and clean up barcode placeholder in cover PDF
Guides (trim/safe-zone/spine lines) are design references only and
must not appear in the submitted PDF — hidden via display:none.
Barcode placeholder is now an empty white box so KDP can place the
ISBN barcode automatically without printing a label.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 17:34:24 +02:00
valknar 1037b84eaa Add KDP cover PDF generator
scripts/cover.js computes the exact cover canvas dimensions from the
page count in book-meta.json (written by build.js), using the KDP
Premium Color spine formula (0.002347 in/page), and renders a
Nunjucks template to a single PDF containing back cover, spine, and
front cover with bleed (0.125 in) and safe-zone overlay guides.

- `pnpm cover`  — generate output/cover.pdf
- `pnpm all`    — build interior + both PDFs in one command
- Cover artwork slots: images/cover/front.png, images/cover/back.png

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 17:29:10 +02:00