Tested: static Astro site answering hard Bible questions

Built from the kit specs (CLAUDE.md, docs/01-05): question index import,
status seals, connections graph, Pagefind search, Scripture margin,
and 157 evidence articles (drafts unless published) with sources and
verified "Learn more" links. Includes link, owner-notes, a11y and
publish scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-03 10:46:19 +02:00
co-authored by Claude Opus 5.5
commit 54ae9c49a1
227 changed files with 30258 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# 01 — Project brief
## What it is
A reference site that takes every hard question people ask about the Bible and answers it with the evidence in plain view. Each question shows:
- a **status** for how settled the answer is (Green, Yellow or Red),
- the **domains** the evidence comes from (Scripture, History, Archaeology, Science, Philosophy, Textual Criticism, Context),
- a short answer, and later a full article,
- **related questions**, so readers can follow a thread from one question to the next.
The site starts as an index of about 150 questions across 13 groups and grows into full articles one question at a time.
## Who it's for
1. Christians who've been hit with a hard question (often from a friend, a video or a class) and want a straight, trustworthy answer fast.
2. Honest skeptics checking whether Christians handle the evidence fairly.
3. Youth leaders and teachers who need a reliable reference to point people to.
Most visitors arrive from search on a phone, read one answer, and leave unless the related links pull them further in. Design for that.
## The site's promise
**Show the evidence, then the conclusion, and say how sure we are.** The status system is the site's credibility. A Christian site that admits "this one is debated" or "nobody knows who wrote Hebrews" earns trust for the times it says "this is settled."
## Principles
- Evidence first, verdict second. Every full article separates what Scripture says, what the outside evidence says, where they meet, and what's still open.
- Steelman the other side. State objections the way their best defenders would.
- Calibrated confidence. Green means settled; Yellow means a strong case that's still debated; Red means open. Never inflate a status.
- Plain language. Short sentences, no jargon without a quick definition.
- Everything connects. No dead ends; every page links onward.
## Out of scope for now
User accounts, comments, a CMS, multiple languages, and donations. The architecture should not block adding them later.
+161
View File
@@ -0,0 +1,161 @@
# 02 — Design system
## Concept: the illuminated evidence file
Medieval scribes copied Scripture by hand in iron-gall ink, painted with mineral pigments, gilded key letters, and wrote cross-references in the margins. This site borrows that world, not as costume, but as structure:
- **Pigments become the status colors.** Verdigris (green), orpiment (yellow) and vermilion (red) were real manuscript pigments.
- **Marginalia become the layout.** Related questions and Scripture references sit in a right-hand margin beside the answer, the way scribes noted cross-references.
- **Gold leaf is rare.** Gold is used only for the brand mark and the connection arcs. Nowhere else.
- **The cross-reference arc is the signature.** The famous visualization of the Bible's cross-references draws arcs between chapters. This site draws arcs between its own questions.
Spend the boldness in one place: the arc diagram on the home page. Everything else stays quiet, readable and disciplined.
## Color tokens
Define these as CSS custom properties on `:root`. Light theme is the default; dark theme overrides them.
| Token | Light | Dark | Use |
| --- | --- | --- | --- |
| `--limewash` | `#E9ECEB` | `#121828` | Page background (cool plaster grey, not cream) |
| `--folio` | `#F7F8F7` | `#1A2236` | Raised surfaces: the answer block, menus |
| `--iron-gall` | `#1F2430` | `#E6E8EC` | Body text |
| `--iron-gall-soft` | `#4A5160` | `#A9B0BE` | Secondary text, captions |
| `--rule` | `#C9CECF` | `#2C3550` | Hairlines and borders |
| `--lapis` | `#23408E` | `#8EA6E8` | Links, focus rings, brand blue |
| `--gold-leaf` | `#B88A2C` | `#D9AE55` | Brand mark and connection arcs only |
| `--verdigris` | `#2F7D63` | `#5BB394` | Green status |
| `--orpiment` | `#B07E10` | `#E0B341` | Yellow status |
| `--vermilion` | `#B23A2E` | `#E2685B` | Red status |
Check every text/background pair for WCAG AA. Status colors on `--limewash` are used for seals and short labels; long text stays `--iron-gall`.
## The status seal
Status is never shown by color alone. Each status has a shape:
- **Green — filled circle.** Settled.
- **Yellow — half-filled circle** (left half filled). Strong but debated.
- **Red — open ring.** Open question.
The seal is an inline SVG component (`<StatusSeal status="green" />`), always paired with the status word ("Settled", "Debated", "Open") and the color name available to screen readers. The filled-ness itself tells the story: the more filled, the more settled.
## Typography
Two families, clearly distinct roles:
- **Literata** (Google Fonts, variable, has optical sizes) for headings and all reading text. It was designed for long-form reading on screens.
- **IBM Plex Sans** for interface elements: navigation, buttons, status words, filters, metadata.
Type scale (based on a 1.25 ratio, 18px body):
| Role | Font | Size / line-height | Weight | Notes |
| --- | --- | --- | --- | --- |
| Display (home hero) | Literata, opsz 72 | clamp(2.5rem, 6vw, 4.5rem) / 1.05 | 600 | Letter-spacing −0.02em |
| H1 (question title) | Literata, opsz 48 | clamp(2rem, 4vw, 2.75rem) / 1.15 | 600 | |
| H2 (article section) | Literata | 1.5rem / 1.3 | 600 | |
| H3 | Literata | 1.2rem / 1.4 | 600 | |
| Body | Literata | 1.125rem / 1.7 | 400 | Max 68 characters per line |
| UI | Plex Sans | 0.9375rem / 1.4 | 500 | Sentence case |
| Small / meta | Plex Sans | 0.8125rem / 1.4 | 400 | |
Rules:
- Sentence case everywhere. No all-caps labels, no tracked-out eyebrows above headings.
- Don't emphasize single words in headlines with color or italics.
- Scripture references render in Literata, not monospace.
- Use real punctuation: curly quotes, en dashes for ranges, true ellipses.
## Layout
### Question page (the most important page)
Desktop: a reading column with a margin column to its right.
```
┌──────────────────────────────────────────────────────────────┐
│ Tested Questions Connections About [search] │
├──────────────────────────────────────────────────────────────┤
│ The Canon › 3.4 │
│ │
│ Why isn't Enoch in the Bible? │ Related │
│ ● Settled Textual Criticism, History │ 3.5 Jude quotes │
│ │ Enoch │
│ ┌─────────────────────────────────────┐ │ 3.11 Ethiopian │
│ │ Short answer │ │ Bible │
│ │ It was written c. 300–100 BC by │ │ 3B.10 1 Enoch │
│ │ several authors, not by Enoch... │ │ │
│ └─────────────────────────────────────┘ │ Scripture │
│ │ Jude 14–15 │
│ What Scripture says │ │
│ ... │ │
│ What the evidence says │ │
│ ... │ │
└──────────────────────────────────────────────────────────────┘
```
- Reading column: max 68ch, left-aligned, never justified.
- Margin column: ~16rem, sticky on scroll on desktop. On mobile it moves below the article as "Keep exploring".
- The short-answer block sits on `--folio` with a 3px left border in the status color. It's the only boxed element on the page.
- Breadcrumb shows the group and question number, so readers learn where they are.
### Home page
```
┌──────────────────────────────────────────────────────────────┐
│ Tested [search] │
│ │
│ ╭───────╮ ╭─────────────╮ ╭──╮ │
│ ╭──┼──╮ ╭─┼───┼──╮ ╭───┼──────┼──┼──╮ │
│ ─┴──┴──┴──┴─┴───┴──┴──────┴───┴──────┴──┴──┴─ (arc diagram) │
│ God Creation Canon Text OT Christ ... │
│ │
│ Every hard question about the Bible, │
│ weighed in the open. │
│ [ Search 150 questions... ] │
│ │
│ ● Settled 64 ◐ Debated 78 ○ Open 7 │
│ │
│ Groups (list with counts, not cards) │
└──────────────────────────────────────────────────────────────┘
```
- The arc diagram fills the top of the page. Each question is a small tick on a baseline, grouped by section with section names underneath. Each Related link is a gold arc above the baseline.
- Hovering or focusing a question highlights its arcs and shows its title; clicking opens it.
- The headline and search sit under the diagram, left-aligned. Search is the main action.
- The status counts (computed from data, never hard-coded) double as filters into the question list.
- Groups render as a simple list with question counts and seal tallies, not identical cards.
### Questions list
A dense, scannable list grouped by section. Each row: number, question, seal and status word, domains. Filters for status and domain at the top; filter state lives in the URL query string so filtered views can be shared.
### Connections page
A full-screen force-directed graph (D3) of all questions. Nodes are seals in their status color, edges are hairlines in `--gold-leaf` at low opacity. Selecting a node shows its card and highlights neighbors. It must have a keyboard-accessible alternative: a plain list of each question and its links.
## Motion
- One orchestrated moment: on first home-page load, the arcs draw in left to right over about 1.2 seconds. Nothing else animates on load.
- Interaction motion only: highlight arcs on hover/focus, expand/collapse transitions under 200ms.
- With `prefers-reduced-motion: reduce`, arcs appear instantly and nothing moves.
## Components
- `StatusSeal` — the seal plus status word.
- `QuestionRow` — one row in lists.
- `Marginalia` — the right-hand Related and Scripture column.
- `ShortAnswer` — the bordered short-answer block.
- `ArcDiagram` — the home-page signature (SVG, built at build time, with small hydrated hover script).
- `ConnectionsGraph` — the D3 graph (client-side island).
- `SearchBox` — Pagefind UI, restyled to match tokens.
Border radius: 4px on inputs and buttons, 6px on the short-answer block, 0 elsewhere. No drop shadows except a single soft one on open menus.
## Brand assets (in `brand/`)
- `favicon.svg` — open book with a gold arc rising from one page to the other, crowned by a small cross. Generate `favicon.ico` (32px), `apple-touch-icon.png` (180px) and `icon-512.png` from it with `sharp` in a build script.
- `logo-full.svg` — mark plus "Tested" wordmark in Literata.
- `og-image.svg` — 1200×630 social card. Render to PNG at build time. Per-question OG images are a stretch goal.
When the mark is inlined in the header, swap its fixed fills for `var(--lapis)` (book) and `var(--gold-leaf)` (arcs) so it follows the theme. The favicon keeps its lapis tile in both themes.
+107
View File
@@ -0,0 +1,107 @@
# 03 — Architecture
## Stack
- **Astro** (latest stable) with TypeScript in strict mode. Static output.
- **MDX** for full articles, via Astro content collections.
- **Plain CSS** with custom properties for tokens. One global stylesheet for tokens and base type; component-scoped styles for the rest. No Tailwind, so the design stays its own.
- **Pagefind** for static full-text search (runs after `astro build`).
- **D3** (only `d3-force`, `d3-selection`, `d3-zoom`) for the Connections graph, loaded as a client island on that page only.
- **sharp** for generating PNG icons and the OG image from the SVGs in `brand/`.
- Fonts: Literata and IBM Plex Sans, self-hosted via Fontsource (no Google Fonts requests at runtime).
- Hosting: any static host (Cloudflare Pages, Netlify or Vercel).
Why Astro: the site is mostly reading content that should load fast on phones and rank well in search. Astro ships zero JS by default and adds interactivity only where needed (search, arcs, graph).
## Folder structure
```
/
├── CLAUDE.md
├── docs/ # These specs
├── brand/ # Source SVGs
├── content/source/ # question-index.md exported from the owner's doc
├── scripts/
│ ├── import-index.mjs # Markdown index → src/data/questions.json
│ └── build-icons.mjs # brand SVGs → public/ icons and OG image
├── public/ # Generated icons, robots.txt
└── src/
├── site.config.ts # Site name, tagline, URL, nav
├── data/questions.json # Generated. Do not hand-edit.
├── content/
│ └── articles/ # One MDX file per full article, e.g. 3-4.mdx
├── lib/
│ ├── questions.ts # Typed loaders, lookups, related resolution
│ └── graph.ts # Builds nodes/edges for arcs and graph
├── components/
├── layouts/
├── styles/
│ ├── tokens.css
│ └── base.css
└── pages/
├── index.astro
├── questions/index.astro
├── questions/[slug].astro
├── groups/[group].astro
├── connections.astro
├── about.astro # Explains the status system and method
└── 404.astro
```
## Data model
`src/data/questions.json` is generated by `npm run import`.
```ts
type Status = "green" | "yellow" | "red";
type Domain =
| "Scripture" | "History" | "Archaeology" | "Science"
| "Philosophy" | "Textual Criticism" | "Context" | "Theology";
interface Group {
id: string; // "3", "3B", "12"
slug: string; // "the-canon", "missing-books"
title: string; // "The Canon"
intro?: string; // Paragraph under the heading, if any
order: number;
}
interface Question {
id: string; // "3.4", "3B.10"
slug: string; // "3-4-why-isnt-enoch-in-the-bible"
groupId: string; // "3"
title: string; // Question text, or the book name for 3B rows
status: Status;
domains: Domain[];
answer: string; // Short answer (markdown allowed: *italics*)
related: string[]; // Question ids, e.g. ["3.5", "3.11", "3B.10"]
bookGroup?: string; // 3B only: "Apocrypha", "Pseudepigrapha", ...
authorNotes?: string;// Private. Never rendered outside dev mode.
hasArticle: boolean; // True when src/content/articles/<id>.mdx exists
}
```
Related links in the source look like "3B.1–3B.9 Apocrypha books" (ranges) or "3B Missing books" (a whole group). The importer expands ranges into each id and maps a bare group id to the group page.
## Routes
| Route | Content |
| --- | --- |
| `/` | Arc diagram, headline, search, status counts, group list |
| `/questions/` | Full filterable list (`?status=green&domain=History`) |
| `/questions/[slug]/` | Question page: short answer, article if present, marginalia |
| `/groups/[slug]/` | One group's questions with its intro |
| `/connections/` | Force-directed graph plus accessible list fallback |
| `/about/` | The status system, the domains, the method, who's behind it |
Question pages without a full article still render: title, seal, domains, short answer, related questions, and a quiet "Full article coming" line.
## Dev-only owner notes
When `import.meta.env.DEV` is true, question pages show `authorNotes` in a clearly styled "Owner notes (dev only)" box. Production builds must not include the notes in HTML, JSON, or the search index. Add a build-time check that fails if any note text appears in `dist/`.
## SEO
- Per-page `<title>`, meta description (the short answer), canonical URL, Open Graph tags.
- JSON-LD `FAQPage` on question pages (question plus short answer).
- `sitemap.xml` via `@astrojs/sitemap`, plus `robots.txt`.
+59
View File
@@ -0,0 +1,59 @@
# 04 — Build plan
Work in order. Finish each phase, run the build, then stop and report what changed and why.
## Phase 1 — Scaffold
- Create the Astro project in the repo root (TypeScript strict, MDX, sitemap). Keep `CLAUDE.md`, `docs/`, `brand/`, `content/` and `scripts/` as they are.
- Add `src/site.config.ts` with name "Tested", tagline "Test everything. Hold fast what is good.", placeholder URL.
- Install fonts via Fontsource; add `tokens.css` and `base.css` from the design system.
- Add `npm run import`, `npm run icons`, `npm run build` (astro build, then Pagefind), `npm run preview`.
- Add `.editorconfig` and Prettier (with the Astro plugin) so WebStorm formats consistently.
Done when: `npm run dev` shows a blank page using the right fonts and background, and `npm run build` passes.
## Phase 2 — Data
- Make `scripts/import-index.mjs` work against `content/source/question-index.md` (it's provided; adjust if the export format differs, and report what you changed).
- Write `src/lib/questions.ts`: typed loaders, `getQuestion(id)`, `getGroup(id)`, `getRelated(q)`, status and domain counts.
- Validate: every related id resolves, every status is valid, no duplicate ids. The import fails loudly with a list of problems.
Done when: import produces all groups and questions, and validation passes or lists exact problems.
## Phase 3 — Brand and icons
- Copy `brand/*.svg` into place; write `scripts/build-icons.mjs` using `sharp` to output `favicon.ico`, `favicon.svg`, `apple-touch-icon.png`, `icon-192.png`, `icon-512.png` and `og-image.png` into `public/`.
- Add `site.webmanifest` and all head tags.
Done when: the favicon shows in the browser tab in light and dark mode, and the OG image renders at 1200×630.
## Phase 4 — Core pages
- Layout shell: header with logo and nav, footer, skip link, theme toggle (respects system preference, remembers choice).
- `StatusSeal`, `QuestionRow`, `ShortAnswer`, `Marginalia` components.
- Question page, questions list with URL-driven filters, group pages, About page (explains the statuses and domains using `docs/05-content-rules.md`), 404.
Done when: every question has a working page, filters work and survive a reload, and pages pass an axe accessibility check with no serious issues.
## Phase 5 — Signature visuals
- `ArcDiagram` on the home page, rendered as SVG at build time from `graph.ts`, with a small script for hover, focus and click. Arcs draw in once on load; respect reduced motion.
- `ConnectionsGraph` on `/connections/` with D3, plus the accessible list fallback.
Done when: hovering a question on the home page highlights its arcs and shows its title, keyboard users can tab through questions, and the graph runs smoothly on a mid-range phone.
## Phase 6 — Search and SEO
- Pagefind search in the header and on the home page, styled with the tokens.
- Meta tags, canonical URLs, JSON-LD `FAQPage`, sitemap, robots.txt.
- Build-time check that `authorNotes` text never appears in `dist/`.
Done when: searching "Enoch" finds the Enoch questions, and Lighthouse scores 95+ for performance, accessibility, best practices and SEO on a question page.
## Phase 7 — Articles
- Content collection for `src/content/articles/` with a schema matching the article structure in `docs/05-content-rules.md`.
- Article template rendering the sections with proper headings and a sources list.
- Create one sample article stub for 7.9 ("Did Jesus rise from the dead?") with section headings and TODO markers only. The owner writes the content.
Done when: a question with an MDX file shows the full article; others show the short answer and "Full article coming".
+39
View File
@@ -0,0 +1,39 @@
# 05 — Content rules
## Status meanings
| Status | Seal | Meaning |
| --- | --- | --- |
| Green | Filled circle | Settled. Multiple lines of evidence agree; the answer can be stated with confidence. |
| Yellow | Half-filled circle | Strong case, but debated. Good evidence, yet serious scholars (including Christians) disagree, or it rests on a miracle the evidence supports but can't force. |
| Red | Open ring | Open. The evidence is too thin to conclude; present it and leave it open. |
For myth-busting questions (section 11), the status rates the *answer*. A Green "No" means the claim is debunked.
For the "missing books" table (3B), the status rates how confident we are that leaving the book out was right. Yellow there means major Christian traditions still disagree.
Only the owner sets or changes a status.
## Full article structure
Every full article uses these sections, in this order. Skip a section only if it truly doesn't apply.
1. **Short answer** — two or three sentences, matching the index answer.
2. **What Scripture says** — key passages, quoted briefly, with references.
3. **What the evidence says** — history, archaeology, science, philosophy, textual criticism, as relevant. One subsection per domain.
4. **Where they meet** — how Scripture and the outside evidence fit together.
5. **What's still open** — an honest list of unresolved points and the best objections.
6. **Bottom line** — the verdict and why it has this status.
7. **Sources** — books, papers and pages used, with links where possible.
## Writing style
- Plain words, short sentences, active voice.
- Quote Bible passages briefly and name the translation the first time in each article.
- Present opposing views in their strongest form before answering them.
- Never present an estimate as a fact (example: Stoner's prophecy odds are an illustration, not measured data).
- Dates: "c. 300 BC", "AD 70". En dashes for ranges: "Mark 16:9–20".
## Owner notes
The index includes the owner's private notes (text starting "My Notes:" or "Note:"). They are drafting guidance for future articles. Keep them in the data as `authorNotes`, never render them publicly, and show them in dev mode only.