Redesign book interior: Illuminated Nocturne aesthetic

Replaces Georgia + per-story color theming with a unified premium
fairytale look: Cormorant Garamond (display/titles) + Lora (body),
warm cream text pages (#faf8f2 with paper noise texture), deep ink
typography (#1e1b18) throughout — no per-story text color variation.

- fonts/: committed WOFF2 files via @fontsource packages; auto-copied
  by scripts/setup-fonts.js (runs as postinstall)
- Typography: story number in small caps, hairline rule, ❧ ornament
- Layout: cream background replaces per-story bg, radial glow on title
- build.js: passes frontMatter (author, year) to templates
- Templates: author byline on title page, cleaner imprint page

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-03 18:39:42 +02:00
parent fa1a133f94
commit 87a3925c3e
18 changed files with 292 additions and 125 deletions
+36 -37
View File
@@ -10,14 +10,13 @@
display: block;
}
/* Placeholder when image not yet available */
/* Placeholder shown when image not yet available */
.placeholder-image {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.8;
}
.placeholder-label {
@@ -25,28 +24,33 @@
flex-direction: column;
align-items: center;
gap: 0.5rem;
color: rgba(255,255,255,0.9);
color: rgba(255, 255, 255, 0.75);
text-align: center;
padding: 2rem;
border: 2px dashed rgba(255,255,255,0.4);
border-radius: 12px;
padding: 1.5rem 2.5rem;
border: 1px dashed rgba(255, 255, 255, 0.25);
border-radius: 4px;
}
.placeholder-story {
font-size: 0.9rem;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
opacity: 0.7;
letter-spacing: 0.15em;
opacity: 0.6;
}
.placeholder-scene {
font-size: 1.4rem;
font-weight: 600;
font-size: 1.15rem;
font-weight: 500;
line-height: 1.4;
}
/* ── Text pages ── */
.page--text {
background: var(--color-bg, #fafafa);
background: var(--cream, #faf8f2);
/* Subtle paper texture via SVG noise */
background-image:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
background-repeat: repeat;
display: flex;
align-items: center;
}
@@ -55,41 +59,40 @@
width: 100%;
display: flex;
flex-direction: column;
gap: 1.2rem;
gap: 0;
}
.scene-ornament {
font-size: 1.5rem;
color: var(--color-secondary, #ccc);
text-align: center;
margin-top: auto;
}
/* ── Front matter pages ── */
/* ── Title page ── */
.page--title {
background: #1a1a3e;
background: var(--midnight, #0d0d2b);
/* Radial glow toward center */
background-image: radial-gradient(ellipse at 50% 45%, #1a1a4a 0%, #0d0d2b 65%);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.title-content {
display: flex;
flex-direction: column;
align-items: center;
}
/* ── Imprint page ── */
.page--imprint {
background: #fafafa;
background: var(--cream, #faf8f2);
display: flex;
align-items: flex-end;
}
.imprint-content {
width: 100%;
font-size: 0.75rem;
color: #666;
line-height: 1.8;
}
/* ── Table of contents ── */
.page--toc {
background: #fafafa;
background: var(--cream, #faf8f2);
display: flex;
flex-direction: column;
gap: 2rem;
@@ -100,28 +103,25 @@
counter-reset: toc;
display: flex;
flex-direction: column;
gap: 0.8rem;
gap: 0.7rem;
}
.toc-list li {
counter-increment: toc;
display: flex;
align-items: baseline;
gap: 0.75rem;
font-size: 1rem;
color: #2a2a4a;
gap: 0.8rem;
}
.toc-list li::before {
content: counter(toc, decimal-leading-zero);
font-size: 0.8rem;
color: #aaa;
min-width: 2rem;
min-width: 2.2rem;
flex-shrink: 0;
}
/* ── Finale page ── */
.page--finale {
background: #1a1a2e;
background: var(--midnight, #0d0d2b);
position: relative;
}
@@ -139,7 +139,6 @@
align-items: center;
justify-content: flex-end;
padding-bottom: 1in;
color: white;
text-align: center;
background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
background: linear-gradient(to top, rgba(13, 13, 43, 0.75) 0%, transparent 55%);
}
+2 -3
View File
@@ -24,11 +24,10 @@ html, body {
break-after: page;
}
/* Safe zone: content that must not be cut stays 0.25in from bleed edge */
/* Safe zone: 0.125in bleed + 0.675in margin = 0.8in from PDF edge */
.page--text .text-page-inner,
.page--title .title-content,
.page--toc,
.page--imprint .imprint-content {
/* 0.125in bleed + 0.25in safety margin = 0.375in from PDF edge */
padding: 0.75in;
padding: 0.8in;
}
+176 -48
View File
@@ -1,58 +1,185 @@
/* ── Base typography ── */
/* ── Cormorant Garamond — display, titles, ornaments ── */
@font-face {
font-family: 'Cormorant Garamond';
font-style: normal;
font-weight: 400;
src: url('../fonts/cormorant-garamond-400-normal.woff2') format('woff2');
}
@font-face {
font-family: 'Cormorant Garamond';
font-style: italic;
font-weight: 300;
src: url('../fonts/cormorant-garamond-300-italic.woff2') format('woff2');
}
@font-face {
font-family: 'Cormorant Garamond';
font-style: italic;
font-weight: 400;
src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
font-family: 'Cormorant Garamond';
font-style: italic;
font-weight: 600;
src: url('../fonts/cormorant-garamond-600-italic.woff2') format('woff2');
}
/* ── Lora — body text ── */
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 400;
src: url('../fonts/lora-400-normal.woff2') format('woff2');
}
@font-face {
font-family: 'Lora';
font-style: italic;
font-weight: 400;
src: url('../fonts/lora-400-italic.woff2') format('woff2');
}
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 500;
src: url('../fonts/lora-500-normal.woff2') format('woff2');
}
/* ── Design tokens ── */
:root {
--ink: #1e1b18;
--ink-muted: rgba(30, 27, 24, 0.38);
--ink-rule: rgba(30, 27, 24, 0.18);
--cream: #faf8f2;
--midnight: #0d0d2b;
--gold: #b89a4e;
--font-display: 'Cormorant Garamond', Georgia, serif;
--font-body: 'Lora', Georgia, serif;
}
/* ── Base ── */
body {
font-family: Georgia, 'Times New Roman', serif;
font-family: var(--font-body);
color: var(--ink);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
/* ── Title page ── */
.title-eyebrow {
font-size: 0.85rem;
letter-spacing: 0.2em;
font-family: var(--font-display);
font-style: italic;
font-weight: 300;
font-size: 0.9rem;
letter-spacing: 0.22em;
text-transform: uppercase;
color: rgba(255,255,255,0.6);
margin-bottom: 1.5rem;
color: rgba(255, 255, 255, 0.5);
margin-bottom: 1.8rem;
}
.title-main {
font-size: 3rem;
line-height: 1.2;
color: white;
margin-bottom: 1.5rem;
font-family: var(--font-display);
font-style: italic;
font-weight: 300;
font-size: 3.4rem;
line-height: 1.15;
color: #ffffff;
margin-bottom: 1.6rem;
letter-spacing: 0.01em;
}
.title-author {
font-family: var(--font-display);
font-style: italic;
font-weight: 400;
font-size: 1rem;
color: rgba(255, 255, 255, 0.65);
letter-spacing: 0.12em;
margin-bottom: 0.5rem;
}
.title-sub {
font-size: 1.1rem;
color: rgba(255,255,255,0.8);
letter-spacing: 0.05em;
font-family: var(--font-display);
font-style: italic;
font-weight: 300;
font-size: 1rem;
color: rgba(255, 255, 255, 0.45);
letter-spacing: 0.08em;
}
.title-rule {
width: 3rem;
height: 1px;
background: rgba(255, 255, 255, 0.25);
margin: 1.4rem auto;
}
/* ── Imprint page ── */
.imprint-content {
font-family: var(--font-body);
font-size: 0.72rem;
color: var(--ink-muted);
line-height: 2;
}
/* ── Table of contents ── */
.toc-title {
font-size: 1.6rem;
color: #1a1a3e;
font-family: var(--font-display);
font-style: italic;
border-bottom: 1px solid #ddd;
padding-bottom: 0.5rem;
font-weight: 300;
font-size: 1.9rem;
color: var(--ink);
padding-bottom: 0.6rem;
border-bottom: 1px solid var(--ink-rule);
margin-bottom: 0.2rem;
}
/* ── Story title (first scene right page) ── */
.story-title {
font-size: 1.6rem;
color: var(--color-primary);
.toc-list li {
font-family: var(--font-body);
font-size: 0.95rem;
color: var(--ink);
line-height: 1.5;
}
.toc-list li::before {
font-family: var(--font-display);
font-style: italic;
line-height: 1.3;
border-bottom: 2px solid var(--color-secondary);
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
font-size: 0.8rem;
color: var(--ink-muted);
}
/* ── Story number label ── */
.story-number {
display: block;
font-family: var(--font-display);
font-style: normal;
font-weight: 400;
font-size: 0.7rem;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--ink-muted);
margin-bottom: 0.55rem;
}
/* ── Story title ── */
.story-title {
font-family: var(--font-display);
font-style: italic;
font-weight: 300;
font-size: 1.85rem;
line-height: 1.25;
color: var(--ink);
padding-bottom: 0.6rem;
border-bottom: 1px solid var(--ink-rule);
margin-bottom: 1rem;
}
/* ── Scene text ── */
.scene-text {
font-size: 1.05rem;
line-height: 1.85;
color: var(--color-text, #1a1a2e);
font-family: var(--font-body);
font-size: 1.02rem;
line-height: 1.9;
color: var(--ink);
}
.scene-text p {
@@ -67,31 +194,32 @@ body {
font-style: italic;
}
/* Story 9 has dark background — invert text page */
[data-story="9"].page--text {
background: #0a0a2a;
/* ── Scene ornament ── */
.scene-ornament {
font-family: var(--font-display);
font-size: 1.4rem;
color: var(--ink-muted);
text-align: center;
margin-top: auto;
padding-top: 0.5rem;
}
[data-story="9"] .scene-text,
[data-story="9"] .story-title {
color: #ffffff;
}
[data-story="9"] .story-title {
border-color: #ff1493;
}
/* ── Finale ── */
/* ── Finale overlay ── */
.finale-overlay h2 {
font-size: 2.5rem;
color: white;
font-family: var(--font-display);
font-style: italic;
text-shadow: 0 2px 12px rgba(0,0,0,0.6);
font-weight: 300;
font-size: 2.6rem;
color: white;
text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
letter-spacing: 0.02em;
}
.finale-overlay p {
font-size: 1rem;
color: rgba(255,255,255,0.8);
letter-spacing: 0.1em;
margin-top: 0.5rem;
font-family: var(--font-display);
font-style: italic;
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.7);
letter-spacing: 0.12em;
margin-top: 0.6rem;
}