diff --git a/website/.gitignore b/website/.gitignore
index b94707787..14a497406 100644
--- a/website/.gitignore
+++ b/website/.gitignore
@@ -1,2 +1,3 @@
node_modules/
dist/
+shots/
diff --git a/website/Caddyfile b/website/Caddyfile
index 03a6ae77f..c2c11060e 100644
--- a/website/Caddyfile
+++ b/website/Caddyfile
@@ -1,5 +1,7 @@
# Serves dist/ on Railway's $PORT. Fingerprinted CSS and JS are cached for a year,
-# media for a week, and the page itself is always revalidated.
+# media for a week, and the page itself is always revalidated. The site lives at
+# https://playhorizon.dev: Railway's own *.up.railway.app address redirects there, so the
+# page is indexed once. Railway's healthcheck (Host: healthcheck.railway.app) is still served.
{
admin off
auto_https off
@@ -8,6 +10,9 @@
:{$PORT:8080} {
root * /srv
+
+ @railway header_regexp Host ^[^.]+\.up\.railway\.app(:[0-9]+)?$
+ redir @railway https://playhorizon.dev{uri} permanent
encode zstd gzip
header {
@@ -20,7 +25,7 @@
}
@assets path /assets/*
header @assets Cache-Control "public, max-age=31536000, immutable"
- @media path /media/* /fonts/* /background.webp /og.png /favicon* /apple-touch-icon.png
+ @media path /media/* /fonts/* /og.png /favicon* /apple-touch-icon.png
header @media Cache-Control "public, max-age=604800"
@pages path / /index.html /404.html
header @pages Cache-Control "no-cache"
diff --git a/website/LEGAL.md b/website/LEGAL.md
index cfa47727c..28c3dc606 100644
--- a/website/LEGAL.md
+++ b/website/LEGAL.md
@@ -31,21 +31,22 @@ The fonts are self-hosted; nothing is fetched from a font service.
| File | Source | Licence |
| --- | --- | --- |
| `public/favicon.svg`, `public/favicon-32.png`, `public/apple-touch-icon.png` | Horizon's logo, `docs/media/logo.svg` (an original drawing of a sunset over blocks) | MIT, Horizon's original work |
-| `public/og.png` | Rendered by `scripts/shots.mjs` from `public/og.html`: the Instrument Serif wordmark over `public/background.webp` | MIT for the layout; the fonts and background as listed here |
+| `public/og.png` | Rendered by `scripts/shots.mjs` from `public/og.html`: the Instrument Serif wordmark over `public/media/hero-1200.webp` | MIT for the layout; the fonts and the hero as listed here |
No Minecraft logo or wordmark appears anywhere on the site, in images or as text styling.
GitHub and Discord appear only as plain text links, without their logos.
-## Background
+## The hero
| File | Source | Licence |
| --- | --- | --- |
-| `public/background.webp` | A crop of the frozen landscape Horizon renders behind its own title screen, cut from the interface-free part of `docs/media/menu-title.png` and blurred further (`scripts/assets.mjs`) | Horizon's rendering of a world generated by Horizon; the textures it draws are Mojang's, from the player's own copy of the game (see Screenshots) |
+| `public/media/hero.webp`, `hero-1200.webp`, `hero-portrait.webp` | `docs/media/sunset.jpg`, darkened slightly and, for phones, cropped by `scripts/assets.mjs` | A screenshot of Horizon's client, as listed under Screenshots |
-The launcher's own background (`launcher/assets/background.jpg`, from backgrounds.supply) is
-**not** used: its licence is unconfirmed. For the same reason the launcher's screenshots,
-which show it, are not on the site. To use another background, replace
-`public/background.webp` (one file; `og.png` is rendered from it).
+The grain over the hero is drawn by the stylesheet (an SVG noise filter inlined as a data URI),
+not an image file. The launcher's own background (`launcher/assets/background.jpg`, from
+backgrounds.supply) is **not** used: its licence is unconfirmed. For the same reason the
+launcher's screenshots, which show it, are not on the site; the launcher section shows
+Horizon's own menus instead. No image from backgrounds.supply or prismal is used anywhere.
## Screenshots
@@ -59,7 +60,8 @@ and 800 pixels wide by `scripts/assets.mjs`.
| `menu-worlds*.webp` | `docs/media/menu-worlds.png` | Horizon's own world list |
| `menu-options*.webp` | `docs/media/menu-options.png` | Horizon's own options screen |
| `menu-pause*.webp` | `docs/media/menu-pause.png` | Horizon's own pause screen |
-| `sunset*.webp`, `village*.webp`, `survival*.webp`, `nether*.webp`, `night*.webp`, `underwater*.webp` | `docs/media/*.jpg` | In-game views; none shows a Mojang logo or splash text |
+| `settings*.webp` | `docs/media/settings-simple.png` | Horizon's own Video settings, Simple view |
+| `hero*.webp`, `sunset*.webp`, `village*.webp`, `survival*.webp`, `nether*.webp`, `night*.webp`, `underwater*.webp` | `docs/media/*.jpg` | In-game views; none shows a Mojang logo or splash text |
Horizon's interface in these images is Horizon's original work (MIT). The block, mob and
item textures and the HUD sprites drawn in them belong to Mojang and Microsoft; they are
diff --git a/website/README.md b/website/README.md
index 3277fb6b6..7a2e6d319 100644
--- a/website/README.md
+++ b/website/README.md
@@ -1,8 +1,13 @@
# Horizon's website
-One static page in the launcher's design: the tokens of `crates/horizon-theme` (palette,
-spacing, radii, motion), its bundled fonts, and the launcher's sidebar, rows and buttons.
-Plain HTML, CSS and JavaScript; no framework and no runtime dependencies.
+Live at **https://playhorizon.dev**.
+
+One static page in the launcher's design language rather than its layout: the palette and
+violet accent of `crates/horizon-theme`, Instrument Serif for display type and Geist for the
+rest, 1px dividers and short, eased motion. A full-viewport hero over Horizon's own sunset,
+then a scroll through what it is, the screenshots, the parity grid, the launcher, the patch
+notes, the roadmap and the community links. Plain HTML, CSS and JavaScript; no framework and
+no runtime dependencies.
## Layout
@@ -12,14 +17,15 @@ serve.mjs a tiny static server for local checks
src/index.html the page, with {{placeholders}} build.mjs fills
src/404.html the not-found page
src/style.css the design tokens and every style
-src/main.js download button, patch notes, roadmap, links, nav, tabs, lightbox
+src/main.js download buttons, patch notes, roadmap, links, nav and menu, tabs, lightbox, motion
src/markdown.js a small Markdown renderer (escapes everything), shared by build and page
-public/ fonts, screenshots, background, icons, og.png: copied as is
+src/releases.js the patch notes' markup, shared by build and page
+public/ fonts, screenshots, the hero, icons, og.png, robots.txt, sitemap.xml: copied as is
scripts/assets.mjs rebuilds public/ from the repo (fonts to WOFF2, images to WebP)
scripts/shots.mjs Playwright screenshots at every width, and og.png
Dockerfile, Caddyfile, railway.json the Railway service
LEGAL.md every asset, its source and licence
-docs/widths/ full-page screenshots at 360–1920 px, a 1250×700 window and the open phone menu
+shots/ (gitignored) full-page screenshots at 360–1920 px, a 1250×700 window, the open phone menu
```
## What comes from where
@@ -47,16 +53,21 @@ Asset and screenshot scripts need the dev dependencies (sharp, wawoff2, Playwrig
npm install
GITHUB_TOKEN=$(gh auth token) node build.mjs # optional token: bakes the releases past the API rate limit
npm run assets # after a font, screenshot or logo changes in the repo
-npm run shots # docs/widths/*.png and public/og.png
+npm run shots # shots/*.png (gitignored; SHOTS=dir to write elsewhere) and public/og.png
```
-Line lengths stay between 45 and 80 characters a line from 430 px up; on 360 and 390 px
-phones the narrowest paragraphs (the roadmap's) fall to about 36–40, which is what 15 px text
-allows in that width. `npm run shots` also reports horizontal overflow, tap targets under 44 px on touch widths
+The screenshots are not committed: full-page PNGs at a dozen widths weigh about 17 MB.
+Running text stays under 80 characters a line; on 360–430 px phones the narrowest paragraphs
+fall to about 26–35, which is what that width allows. `npm run shots` also reports horizontal overflow, tap targets under 44 px on touch widths
and characters per line, for 360 to 1920 px wide and a 1250×700 window.
## Railway
+The service deploys the `website` branch and answers on https://playhorizon.dev. Its
+`*.up.railway.app` address redirects there with a 301 (the Caddyfile), so search engines index
+one URL; the page also names it as canonical, in its Open Graph tags and in `sitemap.xml`.
+Railway's healthcheck reaches `$PORT` under its own host name and is served normally.
+
Create a service from the GitHub repo with **root directory `website`**. `railway.json`
selects the Dockerfile: a Node stage runs `build.mjs` (reading the README from `main`), and
a Caddy stage serves `dist/` on `$PORT` with compression, cache headers, a strict
@@ -65,18 +76,20 @@ or `launcher/links.json` change on main. No variables are needed; an optional
`GITHUB_TOKEN` (read-only, public repos) lets the build bake the releases even when
GitHub's anonymous rate limit is hit.
-## The background
+## The hero
-`public/background.webp` is Horizon's own frozen landscape, cut from the interface-free part
-of `docs/media/menu-title.png`. The launcher's prismal background is not used, and the
-launcher's screenshots are left out because they show it: its licence (backgrounds.supply)
-is unconfirmed. The atmosphere is one replaceable file; see LEGAL.md.
+`public/media/hero*.webp` is Horizon's sunset over a savanna river valley
+(`docs/media/sunset.jpg`), darkened a little by `scripts/assets.mjs`, with a portrait crop for
+phones. The launcher's prismal background is not used, and the launcher's screenshots are left
+out because they show it: its licence (backgrounds.supply) is unconfirmed. The launcher section
+shows Horizon's own menus and settings instead; see LEGAL.md.
## Rules the site keeps
- The disclaimer, "Not an official Minecraft product. Not approved by or associated with
- Mojang or Microsoft.", is in the hero, the footer and the 404 page.
+ Mojang or Microsoft.", is in the hero, the phone menu, the footer and the 404 page.
- No Minecraft logo or wordmark; "Minecraft" appears only descriptively ("for Minecraft:
Java Edition 26.3"). No game files are offered or linked.
- Parity is worded as the README words it: 100% of what the harnesses compare.
- No cookies, analytics, trackers or third-party fonts and scripts.
+- Motion stops under `prefers-reduced-motion`; nothing hijacks the scroll.
diff --git a/website/build.mjs b/website/build.mjs
index 61d0c87de..0edf6d53c 100644
--- a/website/build.mjs
+++ b/website/build.mjs
@@ -10,6 +10,7 @@ import { createHash } from "node:crypto";
import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
import { markdown, inline, section, escape } from "./src/markdown.js";
+import { releasesHtml } from "./src/releases.js";
const site = dirname(fileURLToPath(import.meta.url));
const dist = join(site, "dist");
@@ -74,20 +75,23 @@ const audited = (parityBody.match(/Last audited\s+(\d{4}-\d{2}-\d{2})/) || [])[1
const intro = status.split(/^###/m)[0].trim();
const scoreLabel = (s) => ({ 0: "Absent", 0.25: "Started", 0.5: "Playable", 0.75: "Mostly complete", 1: "Complete" })[Number(s)] ?? s;
-const parityRows = body
- .map(([name, score, gaps]) => {
+const check = ``;
+const parityCells = body
+ .map(([name, score, gaps], i) => {
// "None: what matches" reads as the evidence; anything else is a gap and says so.
const none = gaps.match(/^None:\s*(.*)$/);
- const detail = none
- ? `No known gaps. ${inline(none[1].charAt(0).toUpperCase() + none[1].slice(1))}`
- : inline(gaps);
- return `