# Design Language for ethica.dev

## Aesthetics and Tone

ethica.dev presents itself as a bound volume of moral philosophy that has been unbound and scattered across a digital reading table. The aesthetic is **editorial** in the tradition of long-form literary journals -- think *The Paris Review* crossed with a first-edition printing of John Rawls' *A Theory of Justice*, rendered in deep jewel tones that evoke the spines of leather-bound volumes in a candlelit library. The tone is **elegant-sophisticated**: not cold or pretentious, but the quiet confidence of a well-argued thesis, the kind of prose that doesn't need to raise its voice because the reasoning is airtight.

The visual mood draws from the interiors of Oxford college libraries and the typographic gravitas of 18th-century moral treatises. There is a deliberate weight to every element -- nothing is casual, nothing is throwaway. Whitespace is used not for "clean design" but for the same reason a philosopher pauses between premises: to let the argument breathe. Color enters the composition like margin annotations in jewel-toned ink -- amethyst, sapphire, emerald -- interrupting the scholarly neutrality with moments of vivid conviction.

The overall experience should feel like turning the pages of a rare book that has been digitized not as a flat scan but as a spatial, navigable environment. Visitors should feel the intellectual gravity of the content before reading a single word.

## Layout Motifs and Structure

The layout employs a **magazine-spread** composition that treats each viewport as a two-page spread of a bound publication. The screen is divided into a primary reading column and a generous margin column, echoing the proportions of a scholarly text with marginalia. The ratio is approximately 62:38 (golden section), with the narrower column reserved for annotations, pull quotes, footnotes, and decorative elements that comment on the main content.

**The Spread System:**
Each section occupies a full viewport height and is composed as a discrete "page" of the publication. Navigation between sections uses a paginated scroll behavior -- content snaps to viewport boundaries, reinforcing the codex metaphor. The transition between pages includes a subtle paper-turn shadow that sweeps from right to left (200ms ease-out), casting a 4px diffused shadow in #1A1235 at 15% opacity.

**The Marginalia Column:**
The right-hand margin column (on desktop; collapses below content on mobile) contains secondary content elements positioned with intentional irregularity -- some aligned to the top of the adjacent paragraph, others offset by 2-3 line-heights, mimicking the organic placement of handwritten notes in a physical book. These marginalia elements include: short ethical maxims in italic serif, small diagrammatic illustrations of logical structures (rendered as SVG), and cross-reference markers styled as superscript numerals in sapphire (#234B8A).

**The Folio Bar:**
A thin horizontal rule (1px, #3D2E5C at 40% opacity) runs across the bottom of each spread at the 92% viewport-height mark, with a centered folio number in small caps -- not a page number but a section identifier using Roman numerals (I, II, III...). This bar persists across all sections and provides the only structural navigation cue.

**Grid Specifics:**
The underlying grid is 16 columns on a 1440px canvas. The main content occupies columns 2-10 (the reading column), columns 12-15 form the marginalia column, and columns 1, 11, and 16 are breathing gutters. On viewports below 768px, the grid collapses to a single 8-column layout with marginalia elements interleaved between main content blocks.

## Typography and Palette

**Typography:**

- **Display / Section Titles:** "Playfair Display" (Google Fonts) -- a transitional serif with high contrast between thick and thin strokes, sharp wedge serifs, and an elegant vertical stress that channels the engraved title pages of Enlightenment-era philosophical works. Used at 3.5rem-6rem, weight 700 (Bold), with `letter-spacing: 0.01em` and `line-height: 1.1`. Color: Deep Amethyst (#3D2E5C). Titles are set in title case with an 0.5px text-shadow in #1A1235 at 20% opacity for subtle embossment.

- **Body Text / Primary Reading:** "Cormorant Garamond" (Google Fonts) -- a display Garamond with elongated ascenders and descenders, generous x-height, and a calligraphic warmth inherited from Claude Garamond's original 16th-century punches. Used at 1.125rem (18px), weight 400 (Regular) for body and 500 (Medium) for emphasis, with `line-height: 1.75` and `letter-spacing: 0.005em`. The generous line-height creates the open, breathable texture of a well-typeset book page. Color: Parchment Dark (#2A2235) on light backgrounds, Warm Linen (#F5F0E8) on dark backgrounds.

- **Marginalia / Annotations:** "Libre Baskerville" (Google Fonts) -- a refined Baskerville revival optimized for screen, providing a complementary but distinct voice to the Garamond body text. Used at 0.875rem (14px), weight 400 (Regular) and 400 Italic for maxims and quotations, with `line-height: 1.6`. Color: Muted Sapphire (#4A6B9A) to differentiate from main text.

- **Navigation / UI Elements:** "DM Sans" (Google Fonts) -- a geometric sans-serif with optical balance and low contrast, providing a modern counterpoint to the three serif faces. Used sparingly for folio numbers, navigation labels, and interactive elements at 0.75rem-0.875rem, weight 500, `letter-spacing: 0.08em`, all uppercase. Color: varies by context, typically #6B5E7A.

**Palette -- Jewel Tones on Parchment:**

| Role | Name | Hex | Usage |
|------|------|-----|-------|
| Primary Background | Aged Parchment | #F5F0E8 | Main content area background |
| Secondary Background | Deep Codex | #1A1235 | Dark sections, alternate spreads |
| Accent Primary | Deep Amethyst | #3D2E5C | Headlines, structural borders |
| Accent Secondary | Royal Sapphire | #234B8A | Links, cross-references, interactive states |
| Accent Tertiary | Emerald Annotation | #1B6B4A | Success states, ethical affirmation markers |
| Highlight | Garnet Emphasis | #8B2252 | Pull quotes, critical emphasis |
| Muted Accent | Muted Sapphire | #4A6B9A | Marginalia text, secondary information |
| Text Primary | Parchment Dark | #2A2235 | Body text on light backgrounds |
| Text Inverted | Warm Linen | #F5F0E8 | Body text on dark backgrounds |
| Subtle Border | Faded Ink | #C8BFA8 | Rules, dividers, folio bars |

The palette operates on a strict hierarchy: warm neutral backgrounds provide the reading surface, deep amethyst and sapphire provide structural gravity, and garnet and emerald appear only at moments of rhetorical emphasis -- a highlighted passage, a key term, a pivotal argument. The jewel tones never compete; they appear in sequence, like gemstones set in a single line of a crown.

## Imagery and Motifs

**Book-Scholarly Motifs as Primary Visual Language:**

All decorative elements derive from the material culture of scholarly publishing and moral philosophy. No stock photography, no generic illustrations -- every visual element reinforces the metaphor of ethica.dev as a living philosophical text.

**1. Engraved Headpieces:**
Each section opens with a decorative headpiece rendered as an SVG -- intricate symmetrical designs inspired by the ornamental engravings found in 17th-18th century book chapter openings. These are drawn in a single stroke color (Deep Amethyst #3D2E5C at 60% opacity) on the parchment background. Motifs include: interlocking geometric patterns derived from classical logic symbols, laurel branches with embedded ethical symbols (scales of justice, the owl of Minerva, the categorical imperative's formulation rendered as a knot), and tessellated patterns that reference Islamic geometric art (a nod to the cross-cultural history of ethics). Each headpiece is unique to its section.

**2. Marginalia Illustrations:**
Small, precise line drawings appear in the marginalia column -- these are not decorative but diagrammatic: Venn diagrams of overlapping ethical frameworks, decision trees for trolley-problem variants, timeline arcs showing the evolution of a philosophical concept. Rendered in Muted Sapphire (#4A6B9A) with 1px stroke weight, they evoke the hand-drawn diagrams found in academic notebooks.

**3. Drop Capitals:**
The first letter of each major section is rendered as a large drop capital (4 lines tall) in Playfair Display at 4.5rem, colored in Garnet (#8B2252), with a subtle decorative border inspired by medieval illuminated manuscripts -- but simplified to geometric forms: a thin rule frame with corner ornaments rendered as small diamond shapes in Deep Amethyst.

**4. Pull Quote Treatments:**
Key quotations from ethical thinkers are presented in a distinct visual treatment: the text in Libre Baskerville Italic at 1.5rem, Garnet (#8B2252), with a 3px left border in Royal Sapphire (#234B8A) and the author attribution in DM Sans small caps below. These are positioned in the marginalia column or, for particularly significant quotes, break across the full spread width.

**5. Section Dividers:**
Between sections, a decorative rule composed of three small diamond shapes (each 6px, Faded Ink #C8BFA8) centered on a 1px horizontal line, echoing the traditional typographic ornament used in book design to separate chapters.

**Photography Direction:**
Where photography is used, it follows a strict editorial treatment: high-contrast black-and-white portraits of environments (not people) that evoke contemplation -- empty lecture halls, stone corridors of old universities, close-ups of aged book spines, writing implements on desks. All photographs receive a duotone overlay in Deep Codex (#1A1235) and Muted Sapphire (#4A6B9A), unifying them with the jewel-tone palette. Photos are always contained within frames with 1px Faded Ink borders, never full-bleed, reinforcing the "image within a page" codex metaphor.

## Prompts for Implementation

**Full-Screen Narrative Experience:**

The site opens to a full viewport of Aged Parchment (#F5F0E8). After a 400ms pause, the first engraved headpiece SVG begins to draw itself path-by-path in Deep Amethyst (#3D2E5C), starting from the center and radiating outward symmetrically -- each stroke animated with `stroke-dasharray` and `stroke-dashoffset` over 1200ms with an ease-in-out timing function. As the headpiece completes, the title "ethica" fades in below it in Playfair Display at `8vw`, weight 700, Deep Amethyst, with `letter-spacing: 0.04em` -- the letters appearing sequentially left-to-right with 60ms stagger. The subtitle ".dev" appears 200ms later in DM Sans at `2vw`, Royal Sapphire (#234B8A), `letter-spacing: 0.15em`, uppercase, positioned directly beneath and right-aligned to the main title.

After the title sequence (total ~2200ms), the folio bar fades in at the bottom of the viewport, and a small downward-pointing chevron (DM Sans, 0.875rem, "I" in Roman numerals) pulses gently with a 2s infinite `opacity` animation between 0.4 and 1.0, inviting the scroll.

**Scroll Behavior -- The Codex Turn:**
Scrolling is paginated using CSS `scroll-snap-type: y mandatory` on the main container. Each section occupies exactly `100vh`. The transition between sections is enhanced with a custom scroll handler that applies a transform sequence simulating a page turn: the departing section receives `transform: perspective(1200px) rotateY(-2deg)` and `opacity: 0.7` over 300ms, while a subtle box-shadow sweeps across the viewport (`box-shadow: -20px 0 40px rgba(26, 18, 53, 0.08)`), and the arriving section enters with `transform: translateX(3%) scale(0.98)` animating to `translateX(0) scale(1)` over 400ms ease-out. This creates the physical sensation of a page turning in a heavy book.

**Scale-Hover Interactions:**
Interactive elements throughout the site use the **scale-hover** pattern as their primary interaction language. When hovering over marginalia notes, the element scales to `transform: scale(1.04)` over 250ms with a simultaneous color shift from Muted Sapphire to Royal Sapphire and a subtle `box-shadow: 0 4px 16px rgba(35, 75, 138, 0.12)` elevation. Pull quotes on hover scale to `scale(1.02)` with the Garnet left-border widening from 3px to 5px. Navigation folio numbers scale to `scale(1.15)` on hover with a background circle in Deep Amethyst at 8% opacity fading in. The scale transformations all use `transform-origin: center` and `transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94)` for a refined, weighted feel -- not bouncy, not snappy, but the deliberate motion of a hand reaching for a page.

**Drop Capital Animation:**
When a new section scrolls into view, the drop capital animates in with a two-stage sequence: first, the decorative border frame draws itself (400ms, stroke animation), then the letter itself fades in from 0 to full opacity over 300ms with a simultaneous `transform: scale(0.95)` to `scale(1)`, creating the impression of an illuminator's ink settling onto parchment.

**Dark Section Inversion:**
Alternate sections invert the palette: Deep Codex (#1A1235) background with Warm Linen (#F5F0E8) text. The transition between light and dark spreads should feel like turning from a white page to a deeply-inked full-page illustration in a printed book. During the page-turn transition, the shadow color shifts from dark-on-light to a subtle golden glow (`box-shadow: -20px 0 40px rgba(245, 240, 232, 0.06)`).

**AVOID:** CTA-heavy layouts, pricing blocks, stat-grids, testimonial carousels, hero-banner-with-button patterns, generic card grids. This site is a reading experience, not a conversion funnel. There are no "Sign Up" buttons, no "Learn More" CTAs -- only the text, the marginalia, and the turning of pages.

**Bias Toward:** Full-screen narrative sections, long-form typographic compositions, scroll-driven storytelling that rewards patient reading, spatial metaphors drawn from physical books, moments of visual silence (empty parchment) between dense passages.

## Uniqueness Notes

**Differentiators from other designs:**

1. **Codex-as-Interface Metaphor:** No other design in the portfolio treats the entire site as a navigable book with paginated scroll-snapping, folio bars, marginalia columns, and page-turn transitions. This is not "book-inspired" in the generic sense of using serif fonts -- it is a systematic recreation of the spatial and temporal experience of reading a physical volume, translated into scroll and viewport mechanics. The magazine-spread layout at 5% frequency is further specialized into an explicitly scholarly publication format.

2. **Jewel-Tone Palette on Neutral Parchment Ground:** While 5% of designs use jewel tones, none combine them with the warm parchment-and-codex material metaphor. The jewel colors here function as marginalia ink -- amethyst, sapphire, garnet, emerald -- appearing only at moments of rhetorical emphasis against the neutral reading surface, creating a visual rhythm that mirrors the argumentative rhythm of philosophical prose.

3. **Engraved SVG Headpieces with Path-Draw Animation:** The section-opening ornamental headpieces, animated with stroke-dasharray path-drawing, are entirely unique in the portfolio. These reference a specific historical print tradition (17th-18th century engraved chapter headpieces) and serve as both decorative and structural elements -- they signal section boundaries with the visual authority of a chapter opening in a first-edition treatise.

4. **Marginalia as Parallel Content Stream:** The dedicated marginalia column with its own typography (Libre Baskerville), color (Muted Sapphire), and content logic (annotations, diagrams, cross-references) creates a dual-track reading experience that no other design attempts. This is not a sidebar -- it is a commentary layer that exists in dialogue with the main text, inspired by the Talmudic tradition of text-with-commentary layout.

5. **Scale-Hover as Scholarly Gesture:** While scale-hover appears in 6% of designs, here it is recontextualized as the digital equivalent of a reader's hand hovering over a passage -- a gentle, deliberate magnification that conveys intellectual attention rather than UI interactivity. The refined cubic-bezier timing and modest scale values (1.02-1.15) distinguish it from the more aggressive hover effects common elsewhere.

**Chosen Seed/Style:**
- aesthetic: editorial
- layout: magazine-spread
- typography: playfair-elegant
- palette: jewel-tones
- patterns: scale-hover
- imagery: photography
- motifs: book-scholarly
- tone: elegant-sophisticated

**Avoided Patterns (from frequency analysis):**
- playful aesthetic (98% frequency -- avoided entirely)
- centered layout (99% -- replaced with magazine-spread asymmetric column structure)
- scroll-triggered animations (98% -- minimized; primary animation is page-turn and path-draw, not generic scroll-trigger)
- warm palette (100% -- while parchment is technically warm, the dominant color impression is cool jewel tones)
- mono typography (99% -- no monospace fonts used; all four typefaces are serif or geometric sans)
- friendly tone (97% -- replaced with elegant-sophisticated scholarly register)
- vintage motifs (73% -- while book motifs overlap with vintage, the specific scholarly-publication direction is distinct from generic vintage)
<!-- DESIGN STAMP
  timestamp: 2026-03-09T11:28:52
  domain: ethica.dev
  seed: seed
  aesthetic: ethica.dev presents itself as a bound volume of moral philosophy that has been u...
  content_hash: 654d122cd299
-->
