Manual
Almnck.
Price: 50ⓐ

Illuminated Print — Design Document

Date: 2026-02-15 Status: Ready for implementation Experiment: doc/process/plans/2026-02-15-illuminated-print-experiment-results.md Test page: web/_test-watercolor-composition/index.html (v6)

Reference Composition

Illuminated Print v6 — test composition

Overview

Add a four-pigment illumination colour system to Almanack’s production CSS. Colour is applied as hand-tinted spot illumination: 80–90% black ink on paper, 10–20% jewel-tone pigment. The system is era-agnostic — it reads as “hand- touched print” rather than anchoring to any specific historical period.

Design Principles

  1. Spot colour, not UI colour — pigments appear where a rubricator’s hand would place them: labels, initials, rules, margin washes
  2. Four pigments, four semantic roles — ultramarine (references), vermilion (rubrication), verdigris (places), saffron (meta/navigation)
  3. Watercolour-on-paper — washes have grain texture and soft edges, not flat rectangles
  4. Composable classes — wash category + border variant, assignable by frontmatter, convention, or algorithmic balance
  5. Progressive — degrades to current monochrome if CSS custom properties or SVG filters are unsupported

Colour Tokens

Pigment solids (labels, rules, ornaments)

--illum-ultramarine: #2F4A7A;
--illum-vermilion: #A33A2B;
--illum-verdigris: #2F6F62;
--illum-saffron: #B8892E;
--illum-saffron-rule: rgba(184, 137, 46, 0.45);
--illum-saffron-text: #8c7025;

Wash transparencies (margin box backgrounds)

--wash-ultramarine: rgba(47, 74, 122, 0.08);
--wash-ultramarine-strong: rgba(47, 74, 122, 0.12);
--wash-vermilion: rgba(163, 58, 43, 0.08);
--wash-verdigris: rgba(47, 111, 98, 0.08);
--wash-saffron: rgba(184, 137, 46, 0.08);
--wash-saffron-deep: rgba(184, 137, 46, 0.14);
--wash-parchment: rgba(138, 109, 59, 0.07);
--illum-ultramarine-wash: rgba(47, 74, 122, 0.18);   /* link underlines */
--illum-ultramarine-fn: rgba(47, 74, 122, 0.60);      /* footnote sups */

Structural (shared border)

--wash-warm-border: rgba(138, 109, 59, 0.28);

Component Specifications

1. Background

Remove SVG fractal noise + radial vignette from html. Replace with flat near-white:

--color-bg: #fcfcfa;

Both html and body must be overridden (existing noise lives on html).

2. Masthead

Replace border-bottom: 3px double var(--color-text) with an illuminated rule:

  • Sunburst: faint saffron radial-gradient behind nameplate (6% centre → transparent)
  • Rule: triple CSS multi-background on ::after:
  • Saffron 1px top line (feathered ends)
  • Vermilion periodic dots via radial-gradient at 8em intervals
  • Ultramarine 1px bottom line (feathered ends)
  • Meta text: warm saffron-text #8c7025 for “Since 4000 BCE” and “Price”

3. Article Header

  • Headline: existing font-variant: small-caps + font-family: var(--font-display) unchanged
  • Rubrication: connectives (THE, OF, BY, FROM) wrapped in <span class="rubricate"> — vermilion
  • Ornament endcaps: ::before and ::after on .title add ✦ (U+2726) in saffron at 0.4em, vertically aligned
  • Aureole: ::before on header container — saffron radial-gradient (7% centre → transparent at 75%)
  • Dinky-bar: micro-ornament between byline and body — three-colour ✦ + saffron dashes, 0.6rem, centred

4. Illuminated Initial

The drop cap is currently a bare <img class="initial"> floated left at height: calc(9rem + 0.2em) (= 4 body text lines including small-caps line).

Add a container .illuminated-initial wrapping the <img>:

<span class="illuminated-initial">
    <img class="initial" src="..." alt="W">
</span>

Container spec: - box-sizing: border-box — frame padding/borders included in the 4-line height - Outer border: 1.5px saffron - Inner border (on img): 1px ultramarine - Padding: 3px between borders - Corner dots via ::before radial-gradients: vermilion (TL, BR), ultramarine (TR, BL), 1.5px radius - Saffron halo via ::after: 7% saffron extending 8px beyond frame

The container inherits .initial’s float and height. The image height must shrink to accommodate frame padding + borders within the same total height.

  • Link text: unchanged (var(--color-text))
  • Underline colour: var(--illum-ultramarine-wash) (18% ultramarine)
  • Underline thickness: 1px, offset 0.15em
  • Hover: underline darkens to var(--illum-ultramarine)
  • Footnote superscripts: var(--illum-ultramarine-fn) (60% ultramarine), no underline, font-weight: 600

6. Horizontal Rules

  • Standard HR: 1.5px saffron gradient (feathered ends), replaces 1px black
  • Ornamental HR: vermilion ❦ fleuron centred on saffron hairline (replaces current black hr)

7. SVG Grain Filter

Inline in base.html (zero-size, hidden, aria-hidden="true"):

<svg width="0" height="0" style="position:absolute;pointer-events:none" aria-hidden="true">
  <defs>
    <filter id="wc-grain" x="0%" y="0%" width="100%" height="100%">
      <feTurbulence type="fractalNoise" baseFrequency="0.25" numOctaves="5" seed="2" result="noise"/>
      <feColorMatrix in="noise" type="luminanceToAlpha" result="alpha"/>
      <feComposite in="SourceGraphic" in2="alpha" operator="in"/>
    </filter>
  </defs>
</svg>

This filter is referenced by the margin box grain layer.

8. Margin Box Wash System

CSS classes

Each margin box can carry a wash class + optional border class:

Wash classes (set --wc-wash variable): - .wc-mb-ultramarine / .wc-mb-ultramarine-strong - .wc-mb-vermilion - .wc-mb-verdigris - .wc-mb-saffron / .wc-mb-saffron-deep - .wc-mb-parchment

Border classes (composable): - .wc-mb-border-left — 2px warm umber left border - .wc-mb-border-tb — 1px warm umber top + bottom - .wc-mb-border-full — 1px warm umber all sides

Two-layer pseudo-element system

Any margin box with a wc-mb-* wash class gets two layers:

::before — flat wash colour + edge softening: - background-color: var(--wc-wash) - mask-image: linear-gradient(168deg, transparent→0.25→0.6→0.85→1→0.9→1→0.6→0.3) - Organic border-radius: 1px 3px 2px 0

::after — paper grain texture: - Opaque warm base: background-color: rgb(120, 100, 65) - SVG noise filter: filter: url(#wc-grain) - Scaled down: opacity: 0.06 - Same border-radius as wash layer

Parent gets isolation: isolate to contain stacking.

Wash assignment hierarchy

Margin box washes are assigned in priority order:

  1. Frontmatter: data-wash="ultramarine" attribute on the margin-box element, set by editorial markup
  2. Convention map: if no frontmatter wash, assign by data-type:
  3. quote → vermilion
  4. ad → saffron
  5. aphorism → saffron
  6. poem → verdigris
  7. annotation → ultramarine
  8. Algorithmic balance: if neither frontmatter nor convention provides a wash, sidenotes.js assigns from the remaining pigments to balance left/right column colour distribution

Sidenotes (elements with manicules, class .sidenote) do not receive washes — they sit “on the paper” with ultramarine manicules.

9. Manicules

All manicules (☞/☜) are coloured ultramarine:

.sidenote-number::after,
.sidenote-number::before {
    color: var(--illum-ultramarine);
}

10. Image Filter

Drop cap initialisms tinted at render time:

.initial {
    filter: sepia(60%) hue-rotate(-5deg) saturate(0.7) brightness(0.85) contrast(1.05);
}

Source images stay monochrome; colour is a presentation concern.

Mobile Considerations

Headline

On desktop, the headline spans all three columns (full-bleed). On mobile (single-column and swipe modes), the headline sits within the central body column. No special handling needed — the existing mobile CSS hides margins, and the headline naturally falls into the single flow.

Washes in swipe mode

When a user swipes to a margin column on mobile, margin boxes should display their washes normally. The SVG grain filter and CSS mask-image work on mobile WebKit/Blink.

Grain filter performance

feTurbulence can be expensive on low-power devices. The filter is applied per-box (not full-page), and at opacity: 0.06 any rendering artefact is invisible. No performance concern expected, but test on iPhone 13 / Pixel 5.

Files to Modify

File Changes
assets/css/almanack.css Add colour tokens, wash classes, two-layer pseudo-elements, masthead/header/initial/link/rule styles
src/almnck/templates/base.html Add inline SVG grain filter <defs>
assets/js/sidenotes.js Add wash assignment logic (convention map + balance algorithm)
src/almnck/templates/units/article.html Wrap initial in .illuminated-initial container; add .rubricate spans to header partial
src/almnck/templates/partials/header.html Add rubrication spans, dinky-bar element

What NOT to Change

  • Body font, size, line-height
  • Three-column grid proportions
  • Sidenote positioning algorithm
  • Mobile swipe mechanics
  • Margin box data-type semantics
  • Footnote/sidenote toggle logic
  • Print stylesheet