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
+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;
}