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 ` - ${inline(name)} - ${escape(score)}${escape(scoreLabel(score))} - ${detail} - `; + const full = Number(score) === 1; + const detail = none ? inline(none[1].charAt(0).toUpperCase() + none[1].slice(1)) : `Gaps: ${inline(gaps)}`; + const state = full ? `${check}Matches vanilla` : `${escape(score)} · ${escape(scoreLabel(score))}`; + return `
  • +

    ${String(i + 1).padStart(2, "0")}${state}

    +

    ${inline(name)}

    +

    ${detail}

    +
  • `; }) .join("\n"); +const matching = body.filter(([, score]) => Number(score) === 1).length; +const parityHeadline = matching === body.length ? "Every subsystem matches vanilla." : `${matching} of ${body.length} subsystems match vanilla.`; // --- The roadmap and the latest notes ------------------------------------------------- @@ -108,12 +112,15 @@ await mkdir(join(dist, "assets"), { recursive: true }); await cp(join(site, "public"), dist, { recursive: true }); await cp(join(site, "LEGAL.md"), join(dist, "LEGAL.md")); -const md = await readFile(join(site, "src/markdown.js"), "utf8"); -const mdName = `markdown.${fingerprint(md)}.js`; -await writeFile(join(dist, "assets", mdName), md); -const js = (await readFile(join(site, "src/main.js"), "utf8")).replace("./markdown.js", `./${mdName}`); -const jsName = `main.${fingerprint(js)}.js`; -await writeFile(join(dist, "assets", jsName), js); +// The page's modules, fingerprinted; each import of a shared module is rewritten to its name. +const names = {}; +const rewrite = (code) => code.replace(/"\.\/(\w+\.js)"/g, (all, file) => (names[file] ? `"./${names[file]}"` : all)); +for (const file of ["markdown.js", "releases.js", "main.js"]) { + const code = rewrite(await readFile(join(site, "src", file), "utf8")); + names[file] = `${file.replace(".js", "")}.${fingerprint(code)}.js`; + await writeFile(join(dist, "assets", names[file]), code); +} +const jsName = names["main.js"]; const css = await readFile(join(site, "src/style.css"), "utf8"); // The stylesheet is inlined into the page, so the first paint needs no second request. const cssName = `style.${fingerprint(css)}.css`; @@ -133,17 +140,9 @@ const baked = { })), }; -const notesHtml = game.length - ? game.map((r, i) => releaseHtml(r, i === 0)).join("\n") - : `

    The release notes could not be loaded here.

    Read them on GitHub`; - -function releaseHtml(r, open) { - const date = (r.published_at || "").slice(0, 10); - return `
    - ${escape(r.name || r.tag_name)} -
    ${markdown(r.body || "")}

    Downloads and full notes on GitHub

    -
    `; -} +const notesHtml = + releasesHtml(game) || + `

    The release notes could not be loaded here.

    Read them on GitHub`; const values = { CSS: `/assets/${cssName}`, @@ -152,11 +151,13 @@ const values = { PERCENT: percent, HARNESSES: harnesses, AUDITED: audited, - PARITY_INTRO: markdown(intro), - PARITY_ROWS: parityRows, + PARITY_INTRO: markdown(intro.replace("The table below is the project's own audit", "Below is the project's own audit")), + PARITY_CELLS: parityCells, + PARITY_HEADLINE: parityHeadline, + SUBSYSTEMS: String(body.length), ROADMAP: markdown(roadmap, { shift: 1 }), NOTES: notesHtml, - LAUNCHER_VERSION: launcher ? escape(launcher.tag_name.replace("launcher-v", "")) : "", + LAUNCHER_META: `${launcher ? `Launcher ${escape(launcher.tag_name.replace("launcher-v", ""))} for` : "For"} Linux x86-64, macOS on Apple Silicon and Windows x64.`, DISCORD: escape(links.discord || DEFAULT_LINKS.discord), SPONSOR: escape(links.sponsor || DEFAULT_LINKS.sponsor), BAKED: JSON.stringify(baked).replace(/ diff --git a/website/public/og.png b/website/public/og.png index f4df9904e..834f7d279 100644 Binary files a/website/public/og.png and b/website/public/og.png differ diff --git a/website/public/robots.txt b/website/public/robots.txt index c2a49f4fb..7cd2cc71e 100644 --- a/website/public/robots.txt +++ b/website/public/robots.txt @@ -1,2 +1,4 @@ User-agent: * Allow: / + +Sitemap: https://playhorizon.dev/sitemap.xml diff --git a/website/public/sitemap.xml b/website/public/sitemap.xml new file mode 100644 index 000000000..120b57f45 --- /dev/null +++ b/website/public/sitemap.xml @@ -0,0 +1,4 @@ + + + https://playhorizon.dev/ + diff --git a/website/scripts/assets.mjs b/website/scripts/assets.mjs index 5b51cc5d2..e8af69b90 100644 --- a/website/scripts/assets.mjs +++ b/website/scripts/assets.mjs @@ -1,4 +1,4 @@ -// Copies the launcher's fonts, background and the repo's screenshots into public/, +// Copies the launcher's fonts and the repo's screenshots into public/, // converted for the web (woff2, webp in two widths). Run it after any of them change: // `npm run assets`. Its output is committed, because Railway builds only website/. import { mkdir, readFile, writeFile, copyFile } from "node:fs/promises"; @@ -32,6 +32,7 @@ export const images = [ ["docs/media/menu-worlds.png", "menu-worlds"], ["docs/media/menu-options.png", "menu-options"], ["docs/media/menu-pause.png", "menu-pause"], + ["docs/media/settings-simple.png", "settings"], ]; await mkdir(join(pub, "fonts"), { recursive: true }); @@ -51,15 +52,12 @@ for (const [source, name] of images) { await sharp(input).resize({ width: 800 }).webp({ quality: 78 }).toFile(join(pub, "media", `${name}-800.webp`)); } -// The atmosphere: the frozen landscape Horizon renders behind its own title screen, cut from -// the part of docs/media/menu-title.png that has no interface on it and blurred further. -// One file, so it can be replaced. -await sharp(join(repo, "docs/media/menu-title.png")) - .extract({ left: 600, top: 545, width: 1000, height: 400 }) - .resize(1600, 900, { fit: "cover" }) - .blur(10) - .webp({ quality: 78 }) - .toFile(join(pub, "background.webp")); +// The hero: Horizon's sunset over a savanna river valley, darkened and cooled a little so the +// wordmark and the violet accent sit on it, in a landscape and a portrait crop. +const hero = () => sharp(join(repo, "docs/media/sunset.jpg")).modulate({ brightness: 0.82, saturation: 0.86 }).linear(1.04, -6); +await hero().webp({ quality: 74 }).toFile(join(pub, "media/hero.webp")); +await hero().resize({ width: 1200 }).webp({ quality: 72 }).toFile(join(pub, "media/hero-1200.webp")); +await hero().extract({ left: 470, top: 0, width: 840, height: 1080 }).resize({ width: 720 }).webp({ quality: 72 }).toFile(join(pub, "media/hero-portrait.webp")); // Icons from the project's logo. await copyFile(join(repo, "docs/media/logo.svg"), join(pub, "favicon.svg")); diff --git a/website/scripts/shots.mjs b/website/scripts/shots.mjs index 3997a733e..cd6668645 100644 --- a/website/scripts/shots.mjs +++ b/website/scripts/shots.mjs @@ -1,12 +1,12 @@ // Full-page screenshots of the built site at every width that matters, plus the social // preview image. Run `npm run build` first; `npm run shots` serves dist/ and writes -// docs/widths/*.png (and 390-menu.png, the open menu) and public/og.png (rebuild after). -// It also checks each width for horizontal scroll and small tap targets. +// shots/*.png (gitignored: full-page PNGs are too heavy for the repo), 390-menu.png (the open +// menu) and 1440-hero.png, and public/og.png (rebuild after). It also checks each width for +// horizontal scroll, small tap targets and line lengths. `SHOTS=dir` writes them elsewhere. import { chromium } from "playwright"; import { spawn } from "node:child_process"; -import { mkdir, readdir, readFile, writeFile } from "node:fs/promises"; -import sharp from "sharp"; -import { join, dirname } from "node:path"; +import { mkdir } from "node:fs/promises"; +import { join, dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; const site = join(dirname(fileURLToPath(import.meta.url)), ".."); @@ -18,8 +18,9 @@ await new Promise((r) => setTimeout(r, 400)); const widths = [360, 390, 430, 768, 1024, 1180, 1250, 1280, 1366, 1440, 1680, 1920]; const sizes = [...widths.map((w) => [w, w < 900 ? 800 : 900]), [1250, 700]]; const only = process.argv.slice(2); +const out = process.env.SHOTS ? resolve(process.env.SHOTS) : join(site, "shots"); -await mkdir(join(site, "docs/widths"), { recursive: true }); +await mkdir(out, { recursive: true }); const browser = await chromium.launch(); let problems = 0; @@ -38,30 +39,28 @@ for (const [width, height] of sizes) { scrollTo({ top: 0, behavior: "instant" }); }); await page.waitForTimeout(800); - // A full-page capture draws fixed elements once, at the top; pin the sidebar to the whole - // page so the picture shows what a reader sees at every scroll position. - if (height !== 700 && !touch) { - await page.addStyleTag({ content: `.sidebar { position: absolute; bottom: auto; height: ${await page.evaluate(() => document.documentElement.scrollHeight)}px; }` }); - } + // A full-page capture draws the fixed bar once, at the top, over the hero: show it as the + // hero sees it, not in its scrolled state. + await page.evaluate(() => document.querySelector(".nav").classList.remove("is-scrolled")); const report = await page.evaluate((touch) => { const out = []; const doc = document.documentElement; if (doc.scrollWidth > innerWidth) out.push(`horizontal scroll: ${doc.scrollWidth} > ${innerWidth}`); for (const el of document.querySelectorAll("body *")) { const r = el.getBoundingClientRect(); - if (r.width && r.right > innerWidth + 1 && !el.closest(".table-scroll, .lightbox, .sidebar:not(.is-open)")) { + if (r.width && r.right > innerWidth + 1 && !el.closest(".lightbox, .menu, .hero-media, .footer-word")) { out.push(`overflows: ${el.tagName.toLowerCase()}.${el.className} right ${Math.round(r.right)}`); } } if (touch) { for (const el of document.querySelectorAll("a, button, summary")) { - if (el.closest(".sidebar:not(.is-open), .lightbox, .skip") || el.closest(".prose, .footer p:not(.footer-links), .row dd:not(.row-action), .table-meta, .parity")) continue; + if (el.closest(".menu, .lightbox, .skip") || el.closest(".prose, .footer-cols, .fact p, .system-detail, .download-meta, .meta")) continue; const r = el.getBoundingClientRect(); if (r.width && r.height < 44) out.push(`small target: ${el.textContent.trim().slice(0, 30)} (${Math.round(r.height)}px)`); } } // Characters per line of the longest running-text paragraphs. - const lengths = [...document.querySelectorAll(".prose p, .lede, .section-lede, .footer p")] + const lengths = [...document.querySelectorAll(".prose p, .lede, .hero-line, .fact p, .features p, .system-detail, .count-label, .footer-cols p")] .filter((p) => p.textContent.length > 160) .map((p) => { const lh = parseFloat(getComputedStyle(p).lineHeight); @@ -76,11 +75,12 @@ for (const [width, height] of sizes) { const issues = report.filter((l) => !l.startsWith("chars")); problems += issues.length; console.log(`${name}: ${issues.length ? issues.join("; ") : "ok"} · ${report.find((l) => l.startsWith("chars"))}`); - await page.screenshot({ path: join(site, `docs/widths/${name}.png`), fullPage: height !== 700 }); + await page.screenshot({ path: join(out, `${name}.png`), fullPage: height !== 700 }); + if (width === 1440) await page.screenshot({ path: join(out, "1440-hero.png") }); if (width === 390) { await page.click(".menu-button"); - await page.waitForTimeout(700); - await page.screenshot({ path: join(site, "docs/widths/390-menu.png") }); + await page.waitForTimeout(800); + await page.screenshot({ path: join(out, "390-menu.png") }); } await page.close(); } @@ -96,13 +96,6 @@ if (!only.length || only.includes("og")) { await browser.close(); server.kill(); -// Keep the committed screenshots small: losslessly recompressed (a palette loses the 1px dividers). -for (const dir of ["docs/widths"]) { - for (const file of (await readdir(join(site, dir))).filter((f) => f.endsWith(".png"))) { - const path = join(site, dir, file); - await writeFile(path, await sharp(await readFile(path)).png({ compressionLevel: 9, adaptiveFiltering: true }).toBuffer()); - } -} if (problems) { console.log(`${problems} problems`); process.exitCode = 1; diff --git a/website/src/404.html b/website/src/404.html index d102b54b7..1707c70d9 100644 --- a/website/src/404.html +++ b/website/src/404.html @@ -6,17 +6,28 @@ Not found · Horizon + - -
    -

    404

    -

    Not here

    -

    This page doesn't exist. The rest of Horizon is one page away.

    -
    Back to Horizon
    -

    Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.

    +
    + +
    +

    404

    +

    Not here

    +

    This page doesn't exist. The rest of Horizon is one page away.

    + +

    Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.

    +
    diff --git a/website/src/index.html b/website/src/index.html index 79b6a88e4..9dda34d26 100644 --- a/website/src/index.html +++ b/website/src/index.html @@ -7,6 +7,7 @@ + @@ -14,186 +15,239 @@ - + + - + + - + + - -
    - Horizon - + - +
    -
    -

    For Minecraft: Java Edition 26.3 Written in Rust

    -

    Horizon

    -

    A rewrite of the Java Edition client and its game logic in Rust, checked against the game itself with differential tests.

    -
    - Download the launcher - GitHub +
    + -

    Linux x86-64, macOS on Apple Silicon and Windows x64. The launcher installs and updates Horizon.

    -
    -
    -
    Parity
    -
    Every subsystem matches vanilla in all {{HARNESSES}} harnesses: {{PERCENT}} of what the harnesses compare.
    +
    +

    Horizon

    +

    The Minecraft: Java Edition 26.3 client and its game logic, rewritten in Rust and checked against the vanilla game by {{HARNESSES}} differential harnesses.

    + -
    -
    You need
    -
    Your own, legally obtained copy of Minecraft: Java Edition 26.3. Horizon contains no Minecraft code, assets or data.
    -
    -
    -
    Not official
    -
    Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.
    -
    -
    - -
    - Horizon's title screen: a sidebar, the Horizon title, Singleplayer and Multiplayer buttons and the last world played, over a blurred frozen landscape -
    -
    - -
    -

    What it is

    -
    -

    Horizon reimplements the Minecraft: Java Edition 26.3 client and its game logic in Rust, one subsystem at a time, and compares each piece with the vanilla game. Each of its {{HARNESSES}} differential harnesses drives the same inputs through Horizon and through the vanilla client and server, from your own copy of the game, and checks that the outputs are identical.

    -

    Every subsystem now matches vanilla in every harness that compares it. That is {{PERCENT}} of what the harnesses compare, not proof that nothing else differs: the remaining known differences are listed under What's next.

    -

    The native client runs on Linux, macOS on Apple Silicon and Windows. It opens on its own title screen, generates worlds with a Rust port of the vanilla generators and draws them with vanilla's block models, lighting, sky and fog.

    +

    For Linux x86-64, macOS on Apple Silicon and Windows x64.

    -
    -
    -
    Your own copy
    -
    Install Java Edition with the official launcher and play 26.3 once. Horizon builds its resources from those files on your machine and never downloads or shares game files.
    -
    -
    -
    For the setup
    -
    Python 3.10 or newer and Java 25 for the one-time resource preparation; a GPU with Vulkan on Linux and Windows, or any Apple Silicon Mac.
    -
    -
    -
    Licence
    -
    Horizon's own code is MIT. Minecraft is a trademark of Mojang Synergies AB; its code and assets belong to Mojang and Microsoft and are covered by the Minecraft EULA.
    -
    -
    -
    -
    -

    Screenshots

    -

    Captured in the Rust client itself, with vanilla assets from the player's own copy and no mods or shaders.

    -
    - - - -
    - -
    -
    -

    Parity

    -
    {{PARITY_INTRO}}
    -

    From the README on mainlast audited {{AUDITED}}{{PERCENT}} of what the harnesses compare

    -
    - - - - - - {{PARITY_ROWS}} - -
    SubsystemScoreWhat the harnesses check
    +
    +
    +

    01What it is

    +

    Horizon rebuilds Minecraft: Java Edition 26.3 in Rust, one subsystem at a time, and holds every piece to the same inputs as the vanilla game until the outputs are identical.

    +
    +
    +

    Your own copy

    +

    Install Java Edition with the official launcher and play 26.3 once. Horizon builds its resources from those files on your machine, and never downloads or shares game files.

    +
    +
    +

    Native on three platforms

    +

    Linux, macOS on Apple Silicon and Windows. Worlds come from a Rust port of the vanilla generators, drawn with vanilla's block models, lighting, sky and fog.

    +
    +
    +

    Open source

    +

    Horizon's code is MIT. It contains no Minecraft code, assets or data; those belong to Mojang and Microsoft under the Minecraft EULA.

    +
    +
    -

    Each subsystem scores 0 (absent), 0.25 (started), 0.5 (playable, major features missing), 0.75 (mostly complete) or 1 (complete and verified against vanilla by differential tests).

    -
    -

    Patch notes

    -

    What changed in each release, newest first.

    -
    +
    +
    +
    +

    02In game

    +

    Drawn by Horizon

    +

    Captured in the Rust client itself, with vanilla assets from the player's own copy and no mods or shaders.

    +
    +
    +
    01A plains village
    +
    02Moonrise
    +
    03A crimson forest in the Nether
    +
    04Salmon in a river
    +
    05Survival at dusk
    +
    +
    +
    + +
    +
    +

    03Parity

    +
    +
    + +

    {{HARNESSES}} differential harnesses drive the same inputs through Horizon and through the vanilla client and server, and compare what comes out.

    +
    +
    +

    {{PARITY_HEADLINE}}

    +
    {{PARITY_INTRO}}
    +

    Last audited {{AUDITED}}{{PERCENT}} of what the harnesses comparefrom the README on main

    +
    +
    +
      + {{PARITY_CELLS}} +
    +

    Each subsystem scores 0 (absent), 0.25 (started), 0.5 (playable, major features missing), 0.75 (mostly complete) or 1 (complete and verified against vanilla by differential tests).

    +
    +
    + +
    +
    +
    +

    04The launcher

    +

    One small app, then play

    +

    The launcher installs Horizon, prepares it from your copy of the game and keeps both up to date.

    +
      +
    • One-click install

      Pick a release and it installs the build for your platform into its own folder, then prepares the resources from your Java Edition 26.3 install.

    • +
    • Updates on its own

      It looks for a new Horizon release when it starts and every four hours, and updates itself from the launcher's own releases.

    • +
    • Client or server

      Start the client, or a dedicated server in a folder you choose, with a live console.

    • +
    • Your choice of menus

      Play with Horizon's own menus, shown here, or vanilla's classic screens.

    • +
    +
    + Download the launcher +

    {{LAUNCHER_META}}

    +
    +
    + +
    +
    + + + + + +
    +
    +
    Horizon's title screen: a sidebar, the Horizon title, Singleplayer and Multiplayer buttons and the last world played, over a blurred frozen landscape
    +
    The Singleplayer page: three worlds with their dates and game modes, and Create world and Play buttons
    +
    The Video settings in their Simple view: a preset, render distance, field of view, framerate, VSync and GUI scale, each with what it costs
    +
    The pause screen of the world Glacier Pass, with Back to game, Open to LAN and Save and quit
    +
    +

    Horizon's own menus, in the game. The launcher opens them, or vanilla's.

    +
    +
    +
    + +
    +
    +
    +

    05Patch notes

    +

    What changed

    +
    +
    {{NOTES}} +
    -
    -

    What's next

    -

    The roadmap from the README, as it stands on main.

    -
    {{ROADMAP}}
    +
    +
    +
    +

    06What's next

    +

    With parity as the base

    +

    The roadmap from the README, as it stands on main.

    +
    +
    {{ROADMAP}}
    +
    -
    -

    Community

    -
    -
    -
    Discord
    -
    Questions, bug reports and screenshots.
    -
    Join the Discord
    +
    +
    +

    07Community

    +

    Built in the open

    + -
    -
    Sponsor
    -
    Horizon is built in the open. Sponsors fund the next release.
    -
    Sponsor on GitHub
    -
    -
    -
    Source
    -
    Issues and pull requests are welcome.
    -
    Open on GitHub
    -
    -
    +
    - -
    -

    Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.

    -

    Horizon is made by Ludovic Marie, who is responsible for it and for this site; reach him through lu4ovic.com. Horizon contains no Minecraft code, assets or data, and this site offers no game files: you need your own legally obtained copy of Minecraft: Java Edition. Minecraft is a trademark of Mojang Synergies AB.

    -

    Horizon's original work is under the MIT licence. The fonts are Geist and Instrument Serif, under the SIL Open Font License (Geist, Instrument Serif). Every asset on this site is listed in LEGAL.md.

    -

    Privacy: this site sets no cookies, has no analytics or trackers and loads nothing from third parties except GitHub. To show the latest releases, patch notes, roadmap and links, your browser asks api.github.com and raw.githubusercontent.com for them; GitHub's privacy statement covers those requests.

    - -
    +
    +
    + + + +
    + +
    + -
    +
    diff --git a/website/src/main.js b/website/src/main.js index 1df4a286a..053396783 100644 --- a/website/src/main.js +++ b/website/src/main.js @@ -1,12 +1,14 @@ -// The page's behaviour: the download button for this platform, the latest releases, the -// roadmap and links from main, the sidebar's selection, the screenshot tabs and lightbox. +// The page's behaviour: the download buttons for this platform, the latest releases, the +// roadmap and links from main, the navigation, the menus' tabs, the lightbox and the motion. // Everything degrades to the baked-in content when GitHub can't be reached. import { markdown, escape, section } from "./markdown.js"; +import { releasesHtml } from "./releases.js"; const REPO = "ludovic111/horizon"; const RELEASES_PAGE = `https://github.com/${REPO}/releases?q=launcher-v&expanded=true`; const baked = JSON.parse(document.getElementById("baked").textContent); const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)").matches; +const finePointer = matchMedia("(hover: hover) and (pointer: fine)").matches; // --- GitHub -------------------------------------------------------------------------- @@ -57,53 +59,30 @@ function platform() { } async function setUpDownload() { - const button = document.getElementById("download"); - const meta = document.getElementById("download-meta"); const os = platform(); const list = await releases; const launcher = list.find((r) => r.tag_name.startsWith("launcher-v") && !r.prerelease); if (!launcher) return; const version = launcher.tag_name.replace("launcher-v", ""); - document.querySelectorAll("[data-launcher-version]").forEach((el) => (el.textContent = `Launcher ${version}`)); const asset = os && launcher.assets.find((a) => a.name.includes(os.key)); const others = `Other platforms`; - if (asset) { - button.href = asset.browser_download_url; - button.textContent = "Download the launcher"; - const mb = asset.size ? ` · ${(asset.size / 1e6).toFixed(0)} MB` : ""; - meta.innerHTML = `For ${escape(os.label)} · version ${escape(version)}${mb} · ${others}`; - } else { - button.href = launcher.html_url || RELEASES_PAGE; - meta.innerHTML = `Launcher ${escape(version)} for Linux x86-64, macOS on Apple Silicon and Windows x64. It runs on a computer, not on phones or tablets.`; - } + document.querySelectorAll("[data-download]").forEach((a) => (a.href = asset ? asset.browser_download_url : launcher.html_url || RELEASES_PAGE)); + const mb = asset && asset.size ? ` · ${(asset.size / 1e6).toFixed(0)} MB` : ""; + const meta = asset + ? `For ${escape(os.label)} · launcher ${escape(version)}${mb} · ${others}` + : `Launcher ${escape(version)} for Linux x86-64, macOS on Apple Silicon and Windows x64. It runs on a computer, not on phones or tablets.`; + document.querySelectorAll("[data-download-meta]").forEach((p) => (p.innerHTML = meta)); } -// --- Patch notes --------------------------------------------------------------------- +// --- Patch notes, the roadmap and the links from main --------------------------------- const isGame = (tag) => /^v\d{4}\.\d{1,2}\.\d{1,2}/.test(tag); async function setUpNotes() { const list = (await releases).filter((r) => isGame(r.tag_name)); - if (!list.length) return; - const box = document.getElementById("releases"); - const shown = list.slice(0, 3); - box.innerHTML = - shown - .map((r, i) => { - const date = (r.published_at || "").slice(0, 10); - return `
    - ${escape(r.name || r.tag_name)} - -
    `; - }) - .join("") + - (list.length > shown.length - ? `

    Older releases on GitHub

    ` - : ""); + if (list.length) document.getElementById("releases").innerHTML = releasesHtml(list.slice(0, 3)); } -// --- The roadmap and the links from main --------------------------------------------- - async function setUpRoadmap() { try { const readme = await cached("horizon:readme", () => get(`https://raw.githubusercontent.com/${REPO}/main/README.md`, "text")); @@ -121,81 +100,101 @@ async function setUpLinks() { } catch {} document.querySelectorAll("[data-link]").forEach((a) => { const url = links[a.dataset.link]; - // An empty address hides its row, as in the launcher. - if (!url) a.closest(".row").hidden = true; + // An empty address hides its card, as the launcher hides its button. + if (!url) a.hidden = true; else if (/^https:\/\//.test(url)) a.href = url; }); } -// --- The sidebar --------------------------------------------------------------------- +// --- Navigation ---------------------------------------------------------------------- function setUpNav() { - const nav = document.getElementById("nav"); - const sidebar = document.querySelector(".sidebar"); - const menu = document.querySelector(".menu-button"); - const selection = nav.querySelector(".nav-selection"); - const links = [...nav.querySelectorAll("a")]; + const bar = document.querySelector(".nav"); + const links = [...document.querySelectorAll(".nav-links a")]; const sections = links.map((a) => document.querySelector(a.getAttribute("href"))); - const select = (index) => { - links.forEach((a, i) => (i === index ? a.setAttribute("aria-current", "true") : a.removeAttribute("aria-current"))); - const a = links[index]; - selection.style.height = `${a.offsetHeight}px`; - selection.style.transform = `translateY(${a.offsetTop}px)`; - nav.classList.add("has-selection"); - }; - - let current = -1; + let current = null; const update = () => { - const line = innerHeight * 0.35; - let index = 0; + bar.classList.toggle("is-scrolled", scrollY > 24); + const line = innerHeight * 0.4; + let index = -1; sections.forEach((s, i) => { if (s.getBoundingClientRect().top <= line) index = i; }); - if (innerHeight + scrollY >= document.documentElement.scrollHeight - 2) index = sections.length - 1; - if (index !== current) select((current = index)); + if (index !== current) { + current = index; + links.forEach((a, i) => (i === index ? a.setAttribute("aria-current", "true") : a.removeAttribute("aria-current"))); + } }; - let queued = false; - addEventListener("scroll", () => { - if (!queued) requestAnimationFrame(() => ((queued = false), update())); - queued = true; - }, { passive: true }); - addEventListener("resize", () => select(Math.max(current, 0))); + onScroll(update); update(); + // The phone menu: a full-screen sheet; the page behind it is inert while it is open. + const button = document.querySelector(".menu-button"); + const menu = document.getElementById("menu"); + const main = document.getElementById("main"); + const label = button.querySelector(".menu-label"); + const items = [...menu.querySelectorAll("nav a")]; + items.forEach((a, i) => a.style.setProperty("transition-delay", `${60 + i * 35}ms`)); + let closing; const setOpen = (open) => { - sidebar.classList.toggle("is-open", open); - menu.setAttribute("aria-expanded", String(open)); - menu.textContent = open ? "Close" : "Menu"; - if (open) select(Math.max(current, 0)); + clearTimeout(closing); + button.setAttribute("aria-expanded", String(open)); + label.textContent = open ? "Close" : "Menu"; + bar.classList.toggle("is-menu", open); + main.inert = open; + document.body.style.overflow = open ? "hidden" : ""; + if (open) { + menu.hidden = false; + requestAnimationFrame(() => requestAnimationFrame(() => menu.classList.add("is-open"))); + items[0].focus({ preventScroll: true }); + } else { + menu.classList.remove("is-open"); + closing = setTimeout(() => (menu.hidden = true), reducedMotion ? 0 : 320); + } }; - menu.addEventListener("click", () => setOpen(!sidebar.classList.contains("is-open"))); - links.forEach((a) => a.addEventListener("click", () => setOpen(false))); + button.addEventListener("click", () => setOpen(button.getAttribute("aria-expanded") !== "true")); + items.forEach((a) => a.addEventListener("click", () => setOpen(false))); addEventListener("keydown", (e) => { - if (e.key === "Escape" && sidebar.classList.contains("is-open")) { + if (e.key === "Escape" && button.getAttribute("aria-expanded") === "true") { setOpen(false); - menu.focus(); + button.focus(); } }); + matchMedia("(min-width: 1120px)").addEventListener("change", (e) => e.matches && setOpen(false)); } -// --- Screenshots --------------------------------------------------------------------- +// One rAF-throttled scroll listener for everything that follows the scroll. +const scrollers = []; +function onScroll(fn) { + scrollers.push(fn); +} +let queued = false; +const run = () => ((queued = false), scrollers.forEach((fn) => fn())); +addEventListener("scroll", () => !queued && ((queued = true), requestAnimationFrame(run)), { passive: true }); +addEventListener("resize", () => requestAnimationFrame(run)); + +// --- The menus' tabs ------------------------------------------------------------------ function setUpTabs() { - const list = document.querySelector(".segmented"); + const list = document.querySelector(".tabs"); const tabs = [...list.querySelectorAll('[role="tab"]')]; - const selection = list.querySelector(".segment-selection"); + const pill = list.querySelector(".tab-pill"); + const selected = () => tabs.find((t) => t.getAttribute("aria-selected") === "true"); const place = (tab) => { - selection.style.width = `${tab.offsetWidth}px`; - selection.style.height = `${tab.offsetHeight}px`; - selection.style.transform = `translate(${tab.offsetLeft}px, ${tab.offsetTop - 2}px)`; + pill.style.width = `${tab.offsetWidth}px`; + pill.style.height = `${tab.offsetHeight}px`; + pill.style.transform = `translate(${tab.offsetLeft}px, ${tab.offsetTop}px)`; }; const choose = (tab, focus) => { tabs.forEach((t) => { const on = t === tab; t.setAttribute("aria-selected", String(on)); t.tabIndex = on ? 0 : -1; - document.getElementById(t.getAttribute("aria-controls")).hidden = !on; + const panel = document.getElementById(t.getAttribute("aria-controls")); + panel.classList.toggle("is-active", on); + panel.inert = !on; + panel.setAttribute("aria-hidden", String(!on)); }); place(tab); if (focus) tab.focus(); @@ -205,11 +204,13 @@ function setUpTabs() { tab.addEventListener("keydown", (e) => { const step = { ArrowRight: 1, ArrowLeft: -1 }[e.key]; if (step) choose(tabs[(i + step + tabs.length) % tabs.length], true); + if (e.key === "Home") choose(tabs[0], true); + if (e.key === "End") choose(tabs[tabs.length - 1], true); }); }); - place(tabs.find((t) => t.getAttribute("aria-selected") === "true")); - addEventListener("resize", () => place(tabs.find((t) => t.getAttribute("aria-selected") === "true"))); - document.fonts?.ready.then(() => place(tabs.find((t) => t.getAttribute("aria-selected") === "true"))); + choose(selected()); + addEventListener("resize", () => place(selected())); + document.fonts?.ready.then(() => place(selected())); } function setUpLightbox() { @@ -230,8 +231,19 @@ function setUpLightbox() { }); } +// --- Motion --------------------------------------------------------------------------- + function setUpReveal() { - const items = document.querySelectorAll(".reveal"); + // Siblings that enter together come in one after another. + const stagger = (els, step) => els.forEach((el, i) => el.style.setProperty("--d", `${i * step}ms`)); + document.querySelectorAll(".facts, .features, .cards, .mosaic").forEach((group) => stagger([...group.children], 90)); + document.querySelectorAll(".section-head, .parity-count, .parity-copy, .next-head, .launcher-copy").forEach((group) => stagger([...group.querySelectorAll(":scope > .reveal")], 70)); + stagger([...document.querySelectorAll(".system")], 45); + + const count = document.querySelector("[data-digits]"); + count.innerHTML = [...count.textContent].map((c) => `${escape(c)}`).join(""); + + const items = document.querySelectorAll(".reveal, .reveal-media, .systems"); if (reducedMotion || !("IntersectionObserver" in window)) { items.forEach((el) => el.classList.add("is-visible")); return; @@ -244,12 +256,59 @@ function setUpReveal() { observer.unobserve(e.target); } }), - { rootMargin: "0px 0px -8% 0px" }, + { rootMargin: "0px 0px -10% 0px" }, ); items.forEach((el) => observer.observe(el)); } +// The statement lights up in reading order as it scrolls through the view. +function setUpStatement() { + const fill = document.querySelector(".fill"); + if (reducedMotion) return; + const block = fill.parentElement; + const update = () => { + const r = block.getBoundingClientRect(); + if (r.bottom < -200 || r.top > innerHeight + 200) return; + const p = Math.min(1, Math.max(0, (innerHeight * 0.85 - r.top) / (innerHeight * 0.4 + r.height))); + fill.style.setProperty("--p", (p * 104).toFixed(1)); + }; + onScroll(update); + update(); +} + +// The hero's landscape moves slower than the page, and its text drifts up as it leaves. +function setUpParallax() { + if (reducedMotion) return; + const hero = document.querySelector(".hero"); + const layer = hero.querySelector(".hero-parallax"); + const content = hero.querySelector(".hero-content"); + onScroll(() => { + const y = scrollY; + if (y > hero.offsetHeight) return; + layer.style.transform = `translate3d(0, ${(y * 0.3).toFixed(1)}px, 0)`; + content.style.transform = `translate3d(0, ${(y * -0.08).toFixed(1)}px, 0)`; + content.style.opacity = String(Math.max(0, 1 - y / (hero.offsetHeight * 0.7)).toFixed(3)); + }); +} + +// Buttons lean a little towards the pointer. +function setUpMagnetic() { + if (reducedMotion || !finePointer) return; + document.querySelectorAll(".magnetic").forEach((el) => { + el.addEventListener("pointermove", (e) => { + const r = el.getBoundingClientRect(); + const x = (e.clientX - r.left - r.width / 2) * 0.18; + const y = (e.clientY - r.top - r.height / 2) * 0.3; + el.style.transform = `translate3d(${x.toFixed(1)}px, ${y.toFixed(1)}px, 0)`; + }); + el.addEventListener("pointerleave", () => (el.style.transform = "")); + }); +} + setUpReveal(); +setUpStatement(); +setUpParallax(); +setUpMagnetic(); setUpNav(); setUpTabs(); setUpLightbox(); diff --git a/website/src/releases.js b/website/src/releases.js new file mode 100644 index 000000000..38810f10b --- /dev/null +++ b/website/src/releases.js @@ -0,0 +1,42 @@ +// The patch notes: the latest game release in full, the ones before it folded. Shared by +// build.mjs (baked into the page) and main.js (refreshed from GitHub). +import { markdown, escape } from "./markdown.js"; + +const REPO = "ludovic111/horizon"; + +// "Horizon 2026.10.13: 100% of harnessed vanilla parity" reads as the version and its line. +function parts(r) { + const version = r.tag_name.replace(/^v/, ""); + const name = r.name || ""; + const line = name.includes(": ") ? name.slice(name.indexOf(": ") + 2) : name.replace(/^Horizon\s*/, "").replace(version, "").trim(); + return { version, line: line.charAt(0).toUpperCase() + line.slice(1), date: (r.published_at || "").slice(0, 10) }; +} + +export function releasesHtml(list) { + if (!list.length) return ""; + const [latest, ...older] = list; + const l = parts(latest); + const head = `
    +
    +

    Latest release

    +

    ${escape(l.version)}

    + ${l.line ? `

    ${escape(l.line)}

    ` : ""} + Downloads and full notes +
    +
    ${markdown(latest.body || "")}
    +
    `; + const rest = older + .map((r) => { + const o = parts(r); + return `
    + ${escape(o.version)}${escape(o.line)} +
    ${markdown(r.body || "")}

    Downloads and full notes on GitHub

    +
    `; + }) + .join(""); + return `${head} +
    + ${rest ? `

    Earlier releases

    ${rest}` : ""} +

    Every release on GitHub

    +
    `; +} diff --git a/website/src/style.css b/website/src/style.css index f121eaac0..ad647a1c2 100644 --- a/website/src/style.css +++ b/website/src/style.css @@ -1,41 +1,40 @@ -/* Horizon's design tokens (crates/horizon-theme), the dark appearance the launcher draws: - one neutral palette and one violet accent, spacing 4/8/12/16/24/32, 1px dividers, - Geist for the interface, Instrument Serif for titles, Geist Mono for code. */ +/* Horizon's design language (crates/horizon-theme), set as a page rather than a window: + the dark palette and one violet accent, Instrument Serif for display type and Geist for + everything else, 1px dividers, and short motion eased out, never bouncy. */ @font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; } @font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; } -@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; } @font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; } @font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; } :root { --bg: #111113; - --sidebar: #0c0c0d; + --deep: #0c0c0d; --raised: #1a1a1d; --hover: #202024; --border: #26262a; --text: #e8e8ea; --muted: #9a9aa1; - --faint: #8a8a92; /* the token's #626269, lifted to pass WCAG AA for small text, on raised surfaces too */ + --faint: #8a8a92; /* the token's #626269, lifted to pass WCAG AA for small text */ --accent: #7c5cc4; - --accent-text: #a48ae6; /* the accent as link text, readable on --bg */ + --accent-text: #a48ae6; /* the accent as text, readable on --bg */ --on-accent: #ffffff; --font: "Geist", ui-sans-serif, system-ui, sans-serif; --display: "Instrument Serif", ui-serif, Georgia, serif; --mono: "Geist Mono", ui-monospace, monospace; - --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; - --radius: 6px; --radius-segment: 5px; --radius-group: 7px; --radius-card: 8px; - --control: 30px; --segment: 26px; --control-large: 40px; - --sidebar-w: 200px; --row-label: 150px; + --radius: 8px; + --radius-large: 12px; + --gutter: clamp(20px, 5vw, 72px); + --max: 1280px; + --nav: 68px; - /* Motion: short and eased out, never bouncy (GPUI's ease_out_quint). */ - --quick: 160ms; --move: 240ms; + /* GPUI's ease_out_quint: quick for hovers, longer for things entering the page. */ --ease: cubic-bezier(0.22, 1, 0.36, 1); - - --content: 760px; - --wide: 980px; + --quick: 180ms; + --move: 320ms; + --enter: 900ms; } *, *::before, *::after { box-sizing: border-box; } @@ -43,23 +42,29 @@ html { background: var(--bg); color: var(--text); - font: 400 15px/1.6 var(--font); + font: 400 16px/1.65 var(--font); + font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; - scroll-padding-top: var(--s6); + scroll-padding-top: calc(var(--nav) + 16px); } -body { margin: 0; min-height: 100vh; } +body { margin: 0; min-height: 100vh; overflow-x: clip; } img { display: block; max-width: 100%; height: auto; } -::selection { background: rgba(124, 92, 196, 0.45); color: #fff; } +h1, h2, h3 { margin: 0; font-weight: 400; } +p { margin: 0; } +::selection { background: rgba(124, 92, 196, 0.5); color: #fff; } a { color: var(--accent-text); text-decoration: none; transition: color var(--quick) var(--ease); } a:hover { color: var(--text); } -:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 3px; } +/* Links inside running text are underlined, so they don't rely on colour alone. */ +p a:not(.button):not(.link-arrow) { text-decoration: underline; text-decoration-color: rgba(164, 138, 230, 0.45); text-decoration-thickness: 1px; text-underline-offset: 3px; } +p a:not(.button):not(.link-arrow):hover { text-decoration-color: currentColor; } +:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; } code { - font: 13px/1.5 var(--mono); + font: 0.86em/1.5 var(--mono); background: var(--raised); border: 1px solid var(--border); border-radius: 4px; @@ -67,384 +72,573 @@ code { overflow-wrap: anywhere; } +.sr-only { + position: absolute; width: 1px; height: 1px; overflow: hidden; + clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; +} + .skip { - position: fixed; left: var(--s4); top: var(--s4); z-index: 20; - padding: var(--s2) var(--s3); border-radius: var(--radius); + position: fixed; left: 16px; top: 12px; z-index: 100; + padding: 10px 14px; border-radius: var(--radius); background: var(--raised); color: var(--text); border: 1px solid var(--border); transform: translateY(-200%); transition: transform var(--quick) var(--ease); } .skip:focus { transform: none; } -/* The atmosphere: Horizon's frozen landscape, veiled the way the launcher veils its background. */ -.atmosphere { - position: fixed; inset: 0; z-index: -1; pointer-events: none; - background: - linear-gradient(90deg, rgba(17, 17, 19, 0.9) 0%, rgba(17, 17, 19, 0) 70%), - linear-gradient(180deg, rgba(17, 17, 19, 0) 25%, rgba(17, 17, 19, 0.95) 100%), - linear-gradient(rgba(17, 17, 19, 0.55), rgba(17, 17, 19, 0.55)), - url("/background.webp") center / cover no-repeat, - var(--bg); -} +.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); } -/* --- The sidebar, as in the launcher ------------------------------------------------- */ +/* --- Type --------------------------------------------------------------------------- */ -.sidebar { - position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); - display: flex; flex-direction: column; - padding: var(--s5) var(--s3) var(--s5); - background: var(--sidebar); - border-right: 1px solid var(--border); - z-index: 10; +.eyebrow { font-size: 14px; color: var(--muted); letter-spacing: 0.01em; } + +.kicker { + display: flex; align-items: center; gap: 14px; + margin-bottom: clamp(32px, 5vw, 56px); + font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; } -.wordmark { - font: 400 24px/1 var(--display); +.kicker span { font: 12px/1 var(--mono); color: var(--accent-text); } +.kicker::after { content: ""; flex: 1; height: 1px; background: var(--border); } + +.title { + font: 400 clamp(46px, 6.4vw, 96px)/0.98 var(--display); + letter-spacing: -0.025em; color: var(--text); - letter-spacing: -0.01em; + text-wrap: balance; } -.sidebar > .wordmark { padding: var(--s2) 10px var(--s6); } -.wordmark:hover { color: var(--text); } +.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 46ch; text-wrap: pretty; } +.meta { font-size: 13.5px; color: var(--faint); } -nav { position: relative; display: flex; flex-direction: column; gap: 2px; } -nav a { - position: relative; z-index: 1; - height: var(--control); display: flex; align-items: center; - padding: 0 10px; border-radius: var(--radius); - color: var(--muted); font-size: 14px; - transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease); -} -nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); } -nav a[aria-current="true"] { color: var(--text); } -.no-js nav a[aria-current="true"], nav:not(.has-selection) a[aria-current="true"] { background: var(--raised); } -.nav-selection { - position: absolute; left: 0; right: 0; top: 0; height: var(--control); - background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); - opacity: 0; - transition: transform var(--move) var(--ease), opacity var(--quick) var(--ease); -} -nav.has-selection .nav-selection { opacity: 1; } +.prose { color: var(--muted); } +.prose > * + * { margin-top: 1em; } +.prose strong { color: var(--text); font-weight: 500; } +.prose a { text-decoration: underline; text-decoration-color: rgba(164, 138, 230, 0.4); text-underline-offset: 3px; } +.prose a:hover { text-decoration-color: currentColor; } +.prose ul, .prose ol { padding-left: 1.2em; } +.prose li + li { margin-top: 0.55em; } +.prose li::marker { color: var(--faint); } +.prose h2, .prose h3, .prose h4 { font: 400 26px/1.15 var(--display); color: var(--text); letter-spacing: -0.01em; margin-top: 1.6em; } +.prose pre { overflow-x: auto; background: var(--deep); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; } +.prose pre code { background: none; border: 0; padding: 0; } +.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 1px solid var(--border); } +.prose hr { border: 0; height: 1px; background: var(--border); } -.sidebar-foot { - margin-top: auto; padding: 0 10px; - display: flex; flex-direction: column; gap: var(--s2); - font-size: 13px; color: var(--faint); -} -.sidebar-foot a { color: var(--muted); } -.sidebar-foot a:hover { color: var(--text); } -.sidebar-foot span:empty { display: none; } +/* --- Buttons ------------------------------------------------------------------------ */ -.topbar { display: none; } - -/* --- Content ------------------------------------------------------------------------ */ - -main { - margin-left: var(--sidebar-w); - padding: 0 clamp(var(--s5), 6vw, 72px); -} -main > section, .footer { max-width: var(--content); } -main > section.wide { max-width: var(--wide); } -main > section { padding: 96px 0 0; } - -.hero { padding-top: 88px; } -.eyebrow { margin: 0 0 var(--s3); color: var(--faint); font-size: 13px; letter-spacing: 0.01em; } -.eyebrow span { margin: 0 6px; } -h1 { - margin: 0; - font: 400 clamp(64px, 9vw, 112px)/0.95 var(--display); - letter-spacing: -0.02em; -} -.lede { margin: var(--s5) 0 0; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--muted); } - -h2 { - margin: 0 0 var(--s3); - font: 400 44px/1.05 var(--display); - letter-spacing: -0.01em; -} -.section-lede { margin: 0 0 var(--s5); color: var(--muted); } -.section-lede p { margin: 0 0 var(--s3); } -.muted { color: var(--muted); } - -/* Buttons: primary is the accent, secondary is raised with a hairline. */ -.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); } .button { - display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); - height: var(--control); padding: 0 var(--s3); - border-radius: var(--radius); border: 1px solid transparent; - font: 500 13px/1 var(--font); white-space: nowrap; cursor: pointer; - transition: background-color var(--quick) var(--ease), border-color var(--quick) var(--ease), opacity var(--quick) var(--ease), color var(--quick) var(--ease); + display: inline-flex; align-items: center; justify-content: center; gap: 8px; + height: 44px; padding: 0 20px; + border: 1px solid transparent; border-radius: var(--radius); + font: 500 15px/1 var(--font); white-space: nowrap; + cursor: pointer; + transition: background-color var(--quick) var(--ease), border-color var(--quick) var(--ease), + box-shadow var(--move) var(--ease), color var(--quick) var(--ease), transform var(--move) var(--ease); } -.button.large { height: var(--control-large); padding: 0 var(--s5); font-size: 15px; border-radius: var(--radius-group); } -.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0); } -.button.primary:hover { color: var(--on-accent); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 0.1); } -.button.primary:active { opacity: 0.82; } +.button.large { height: 52px; padding: 0 26px; font-size: 15.5px; } +.button.small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 7px; } +.button.primary { + background: var(--accent); color: var(--on-accent); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px -12px rgba(124, 92, 196, 0.7); +} +.button.primary:hover { background: #8a6bd1; color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 40px -12px rgba(124, 92, 196, 0.85); } +.button.ghost { + background: rgba(255, 255, 255, 0.06); color: var(--text); + border-color: rgba(255, 255, 255, 0.14); + -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); +} +.button.ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.22); color: var(--text); } .button.secondary { background: var(--raised); color: var(--text); border-color: var(--border); } .button.secondary:hover { background: var(--hover); color: var(--text); } -.button.secondary:active { opacity: 0.8; } +.button:active { opacity: 0.85; } -.download-meta { margin: var(--s3) 0 0; font-size: 13px; color: var(--faint); min-height: 1.6em; } -.download-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; } -.download-meta a:hover { color: var(--text); } +.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; } +.link-arrow span { transition: transform var(--move) var(--ease); } +.link-arrow:hover span { transform: translateX(4px); } -/* Rows: label, value and an optional action, between 1px dividers. */ -.rows { margin: 40px 0 0; border-top: 1px solid var(--border); } -.row { - display: grid; grid-template-columns: var(--row-label) 1fr auto; gap: var(--s5); - align-items: center; - padding: var(--s4) 0; - border-bottom: 1px solid var(--border); -} -.row dt { color: var(--muted); font-size: 14px; } -.row dd { margin: 0; } -.row-action { justify-self: end; } -.disclaimer { color: var(--text); } +.download-meta { font-size: 13.5px; color: var(--faint); } +.download-meta a { color: var(--accent-text); } -.shot { margin: 0; } -.shot img, .shot .zoom { - border-radius: var(--radius-card); +/* --- Navigation --------------------------------------------------------------------- */ + +.nav { + position: fixed; inset: 0 0 auto; z-index: 50; + border-bottom: 1px solid transparent; + transition: background-color var(--move) var(--ease), border-color var(--move) var(--ease), + -webkit-backdrop-filter var(--move) var(--ease), backdrop-filter var(--move) var(--ease); } -.shot img { - width: 100%; - border: 1px solid var(--border); - background: var(--raised); +.nav.is-scrolled, .nav.is-menu { + background: rgba(17, 17, 19, 0.72); + border-bottom-color: rgba(255, 255, 255, 0.07); + -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); } -.hero-shot { margin-top: 56px; } -.shot figcaption { margin-top: var(--s2); font-size: 13px; color: var(--faint); } +.nav-inner { + display: flex; align-items: center; gap: 24px; + height: var(--nav); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); +} +.nav-mark { font: 400 26px/1 var(--display); color: var(--text); letter-spacing: -0.01em; padding: 10px 0; } +.nav-mark:hover { color: var(--text); } +.nav-links { display: none; gap: 4px; margin: 0 auto; } +.nav-links a { + position: relative; padding: 8px 12px; font-size: 14px; color: rgba(232, 232, 234, 0.72); +} +.nav-links a::after { + content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; + background: var(--accent-text); transform: scaleX(0); transform-origin: left; + transition: transform var(--move) var(--ease); +} +.nav-links a:hover { color: var(--text); } +.nav-links a[aria-current="true"] { color: var(--text); } +.nav-links a[aria-current="true"]::after { transform: scaleX(1); } +.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; } +.nav-github { display: none; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: rgba(232, 232, 234, 0.72); } +.nav-github:hover { color: var(--text); } +.nav-end .button.small { display: none; } + +.menu-button { + display: inline-flex; align-items: center; gap: 12px; + height: 44px; padding: 0 4px 0 14px; + background: none; border: 0; color: var(--text); font: 500 15px/1 var(--font); cursor: pointer; +} +.menu-icon { position: relative; width: 20px; height: 10px; } +.menu-icon::before, .menu-icon::after { + content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; + transition: transform var(--move) var(--ease), top var(--move) var(--ease); +} +.menu-icon::before { top: 0; } +.menu-icon::after { top: 8.5px; } +.menu-button[aria-expanded="true"] .menu-icon::before { top: 4.25px; transform: rotate(45deg); } +.menu-button[aria-expanded="true"] .menu-icon::after { top: 4.25px; transform: rotate(-45deg); } + +.menu { + position: fixed; inset: 0; z-index: 40; + display: flex; flex-direction: column; justify-content: space-between; + padding: calc(var(--nav) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom)); + background: rgba(12, 12, 13, 0.92); + -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); + opacity: 0; transition: opacity var(--move) var(--ease); + overflow-y: auto; +} +.menu.is-open { opacity: 1; } +.menu nav { display: flex; flex-direction: column; } +.menu nav a { + display: block; padding: 6px 0; + font: 400 clamp(38px, 10vw, 56px)/1.12 var(--display); color: var(--text); letter-spacing: -0.02em; + opacity: 0; transform: translateY(14px); + transition: opacity 500ms var(--ease), transform 500ms var(--ease), color var(--quick) var(--ease); +} +.menu.is-open nav a { opacity: 1; transform: none; } +.menu nav a:hover { color: var(--accent-text); } +.menu-foot { display: grid; gap: 20px; padding-top: 32px; border-top: 1px solid var(--border); margin-top: 32px; } +.menu-foot p { font-size: 13.5px; color: var(--muted); } +.menu-foot .button { justify-self: start; } + +@media (min-width: 640px) { .nav-github { display: inline-flex; } } +@media (min-width: 900px) { .nav-end .button.small { display: inline-flex; } } +@media (min-width: 1120px) { + .nav-links { display: flex; } + .nav-inner { gap: 32px; } + .menu-button, .menu { display: none !important; } + .nav-end { margin-left: 0; } +} + +/* --- Hero --------------------------------------------------------------------------- */ + +.hero { + position: relative; isolation: isolate; overflow: hidden; + display: flex; flex-direction: column; justify-content: flex-end; + min-height: 100vh; min-height: 100svh; + padding-top: var(--nav); +} +.hero-media { position: absolute; inset: 0; z-index: -1; background: #1a1418; } +.hero-parallax { position: absolute; inset: -6% 0; will-change: transform; } +.hero-parallax picture { display: block; height: 100%; animation: settle 2.8s var(--ease) both; } +.hero-parallax img { + width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; + animation: drift 48s ease-in-out 2.8s infinite alternate; +} +.hero-veil { + position: absolute; inset: 0; + background: + linear-gradient(180deg, rgba(17, 17, 19, 0.7) 0%, rgba(17, 17, 19, 0) 24%), + linear-gradient(180deg, rgba(17, 17, 19, 0) 40%, rgba(17, 17, 19, 0.62) 70%, var(--bg) 100%), + radial-gradient(130% 90% at 50% 38%, rgba(17, 17, 19, 0) 45%, rgba(10, 10, 12, 0.6) 100%), + linear-gradient(180deg, rgba(62, 40, 120, 0.22), rgba(62, 40, 120, 0) 50%); +} +.grain { + position: absolute; inset: -60%; pointer-events: none; opacity: 0.11; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); + animation: grain 1.4s steps(6) infinite; +} + +.hero-content { + width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; + padding: 0 var(--gutter) clamp(44px, 9vh, 112px); + text-align: center; +} +.hero-title { + margin: 0; + font: 400 clamp(96px, 25vw, 300px)/0.84 var(--display); + letter-spacing: -0.035em; color: #f5f5f6; + text-shadow: 0 4px 60px rgba(0, 0, 0, 0.35); +} +.letters { display: inline-block; white-space: nowrap; } +.letters span { display: inline-block; animation: letter 1.3s var(--ease) both; } +.letters span:nth-child(1) { animation-delay: 0.2s; } +.letters span:nth-child(2) { animation-delay: 0.26s; } +.letters span:nth-child(3) { animation-delay: 0.32s; } +.letters span:nth-child(4) { animation-delay: 0.38s; } +.letters span:nth-child(5) { animation-delay: 0.44s; } +.letters span:nth-child(6) { animation-delay: 0.5s; } +.letters span:nth-child(7) { animation-delay: 0.56s; } +.hero-line { + max-width: 36em; margin: clamp(20px, 3vh, 32px) auto 0; + font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: rgba(232, 232, 234, 0.86); + text-wrap: balance; + animation: rise 1s var(--ease) 0.7s both; +} +.hero-actions { + display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; + margin-top: clamp(28px, 4vh, 40px); + animation: rise 1s var(--ease) 0.82s both; +} +.hero .download-meta { margin-top: 16px; color: rgba(232, 232, 234, 0.6); animation: rise 1s var(--ease) 0.9s both; } +.hero .download-meta a { color: #c3b2f2; } + +.hero-foot { + display: flex; align-items: center; justify-content: space-between; gap: 24px; + width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; + padding: 16px var(--gutter) 18px; + animation: rise 1s var(--ease) 1s both; +} +.hero-foot::before { + content: ""; position: absolute; left: var(--gutter); right: var(--gutter); height: 1px; margin-top: -16px; + background: rgba(255, 255, 255, 0.09); +} +.hero-foot { position: relative; } +.disclaimer { font-size: 13.5px; line-height: 1.5; color: #cfcfd4; } +.disclaimer-tag { + display: inline-block; margin-right: 8px; padding: 2px 7px; + font: 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); + border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; vertical-align: 1px; +} +.scroll-cue { + display: none; align-items: center; gap: 12px; min-height: 44px; + font-size: 13px; color: rgba(232, 232, 234, 0.7); white-space: nowrap; +} +.scroll-cue span { position: relative; width: 1px; height: 28px; background: rgba(255, 255, 255, 0.18); overflow: hidden; } +.scroll-cue span::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: #fff; animation: cue 2.4s var(--ease) infinite; } +.scroll-cue:hover { color: var(--text); } +@media (min-width: 760px) { .scroll-cue { display: inline-flex; } } + +/* --- Sections ----------------------------------------------------------------------- */ + +.section { padding: clamp(96px, 12vw, 168px) 0 0; } +.section-head { display: grid; gap: 24px; margin-bottom: clamp(44px, 6vw, 72px); } +.section-head .kicker { margin-bottom: 8px; } +@media (min-width: 1000px) { + .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; column-gap: 64px; } + .section-head .kicker { grid-column: 1 / -1; margin-bottom: clamp(16px, 2vw, 32px); } + .section-head .lede { justify-self: end; } +} + +/* What it is: a statement that lights up word by word as it scrolls past. */ +.statement { + max-width: 21em; + font: 400 clamp(32px, 4.5vw, 64px)/1.1 var(--display); + letter-spacing: -0.018em; color: var(--text); + text-wrap: pretty; +} +/* The fill runs along the whole inline box, so it lights the lines in reading order. */ +.js .fill { + color: transparent; + background: linear-gradient(90deg, var(--text) calc(var(--p, 0) * 1% - 2%), #3a3a40 calc(var(--p, 0) * 1% + 2%)); + -webkit-background-clip: text; background-clip: text; +} +.facts { display: grid; gap: 40px; margin-top: clamp(64px, 8vw, 112px); } +.fact { padding-top: 24px; border-top: 1px solid var(--border); } +.fact h3 { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 10px; } +.fact p { font-size: 15px; color: var(--muted); max-width: 40ch; } +@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 48px; } } + +/* In game: a mosaic of large screenshots. */ +.mosaic { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: 1fr; } +.tile { margin: 0; min-width: 0; } .zoom { - display: block; width: 100%; padding: 0; margin: 0; - border: 0; background: none; cursor: zoom-in; + position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--deep); + border-radius: var(--radius-large); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; } -.zoom img { transition: border-color var(--quick) var(--ease), opacity var(--quick) var(--ease); } -.zoom:hover img { border-color: #3a3a40; } - -/* Prose: release notes, the roadmap and running text. */ -.prose { color: var(--muted); } -.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin: 0 0 var(--s4); } -.prose strong { color: var(--text); font-weight: 600; } -.prose h3, .prose h4, .prose h5 { margin: var(--s5) 0 var(--s2); color: var(--text); font: 600 15px/1.4 var(--font); } -.prose ul { list-style: none; padding: 0; } -.prose ul > li { position: relative; padding-left: var(--s5); margin-bottom: var(--s2); } -.prose ul > li::before { content: "–"; position: absolute; left: 0; color: var(--faint); } -.prose ol { padding-left: var(--s5); } -.prose pre { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s3); overflow-x: auto; } -.prose pre code { background: none; border: 0; padding: 0; } -.prose a { text-decoration: underline; text-decoration-color: rgba(164, 138, 230, 0.35); text-underline-offset: 3px; } -.prose > :last-child { margin-bottom: 0; } -#about .prose p { color: var(--text); opacity: 0.86; } - -/* The segmented control, as the launcher's Client / Server switch. */ -.segmented { - position: relative; display: inline-flex; gap: 2px; padding: 2px; - background: var(--sidebar); border: 1px solid var(--border); border-radius: var(--radius-group); - margin-bottom: var(--s5); +.zoom::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; } +.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), scale 900ms var(--ease); } +.zoom:hover img { scale: 1.035; } +.tile figcaption { display: flex; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); } +.tile figcaption span { font: 12px/1.7 var(--mono); color: var(--faint); } +@media (min-width: 640px) { + .mosaic { grid-template-columns: repeat(2, 1fr); } + .tile-wide { grid-column: 1 / -1; } } -.segmented button { - position: relative; z-index: 1; - height: var(--segment); padding: 0 var(--s3); - border: 0; border-radius: var(--radius-segment); background: none; - font: 500 13px/1 var(--font); color: var(--muted); cursor: pointer; +@media (min-width: 1000px) { + .mosaic { grid-template-columns: repeat(12, 1fr); } + .tile { grid-column: span 4; } + .tile-wide { grid-column: span 8; } + .tile-tall { display: flex; flex-direction: column; } + .tile-tall .zoom { flex: 1; aspect-ratio: auto; } + .tile-wide .zoom { aspect-ratio: 16 / 9.4; } +} + +/* Parity: the harness count, then the fourteen subsystems. */ +.parity-hero { display: grid; gap: 32px; } +.count { + margin: 0; + font: 400 clamp(150px, 27vw, 400px)/0.78 var(--display); + letter-spacing: -0.045em; + color: var(--text); +} +/* Each digit carries the fade itself, so the digits can move on their own layers. */ +.digits, .digits span { + background: linear-gradient(180deg, #f4f4f5 30%, #5c5c64 100%); + -webkit-background-clip: text; background-clip: text; color: transparent; + padding-bottom: 0.06em; +} +.digits span { display: inline-block; } +.parity-copy { display: grid; gap: 22px; max-width: 640px; } +.count-label { margin-top: 20px; font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); max-width: 34ch; } +.parity-copy .title { font-size: clamp(40px, 4.8vw, 72px); } +.parity-copy .prose { font-size: 15px; max-width: 58ch; } +@media (min-width: 1000px) { + .parity-hero { grid-template-columns: auto 1fr; align-items: end; column-gap: clamp(48px, 6vw, 96px); } +} + +.systems { + list-style: none; margin: clamp(64px, 8vw, 104px) 0 0; padding: 0; + display: grid; grid-template-columns: 1fr; + border: 1px solid var(--border); border-radius: var(--radius-large); overflow: hidden; +} +/* Each cell draws its own right and bottom divider; the container's border hides the outer ones. */ +.system { + background: var(--bg); padding: 26px 26px 30px; + box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); + transition: background-color var(--move) var(--ease); +} +.system:hover { background: #151517; } +.system-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; } +.system-index { font: 12px/1 var(--mono); color: var(--faint); } +.system-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); } +.system.is-full .system-state { color: #c9bdf0; } +.check { width: 15px; height: 15px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } +.check path { stroke-dasharray: 16; stroke-dashoffset: 0; } +.system h3 { margin: clamp(28px, 3vw, 44px) 0 12px; font: 400 28px/1.08 var(--display); letter-spacing: -0.01em; color: var(--text); } +.system-detail { font-size: 14px; line-height: 1.6; color: var(--muted); } +.system-detail .gap { color: var(--text); } +.system-detail code { white-space: nowrap; font-size: 12.5px; background: none; border: 0; padding: 0; color: var(--text); } +.legend { margin-top: 20px; max-width: 80ch; } +@media (min-width: 700px) { .systems { grid-template-columns: repeat(2, 1fr); } } +@media (min-width: 1140px) { .systems { grid-template-columns: repeat(3, 1fr); } } + +/* The launcher: what it does, beside Horizon's own menus. */ +.launcher-grid { display: grid; gap: 56px; } +.launcher-copy .title { margin-bottom: 24px; } +.features { list-style: none; margin: 40px 0 0; padding: 0; } +.features li { padding: 20px 0; border-top: 1px solid var(--border); } +.features li:last-child { border-bottom: 1px solid var(--border); } +.features h3 { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 6px; } +.features p { font-size: 15px; color: var(--muted); max-width: 52ch; } +.launcher-actions { display: grid; justify-items: start; gap: 14px; margin-top: 36px; } +.screens { position: relative; min-width: 0; } +.screens::before { + content: ""; position: absolute; inset: 10% -6% -6%; z-index: -1; pointer-events: none; + background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 196, 0.2), rgba(124, 92, 196, 0)); +} +.tabs { + position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; + background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; +} +.tabs button { + position: relative; z-index: 1; height: 44px; padding: 0 16px; + background: none; border: 0; border-radius: 7px; + font: 500 14px/1 var(--font); color: var(--muted); cursor: pointer; transition: color var(--quick) var(--ease); } -.segmented button[aria-selected="true"] { color: var(--text); } -.segmented button:hover { color: var(--text); } -.segment-selection { - position: absolute; top: 2px; left: 0; height: var(--segment); width: 0; - background: var(--hover); border-radius: var(--radius-segment); +.tabs button:hover, .tabs button[aria-selected="true"] { color: var(--text); } +.tab-pill { + position: absolute; left: 0; top: 0; border-radius: 7px; + background: var(--raised); border: 1px solid var(--border); transition: transform var(--move) var(--ease), width var(--move) var(--ease); } -.no-js .segmented { display: none; } -.no-js .gallery[hidden] { display: grid; margin-top: var(--s5); } - -.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); } -.gallery .span { grid-column: 1 / -1; } -.gallery:not([hidden]) { animation: fade var(--move) var(--ease); } - -/* The parity table. */ -.table-meta { margin: 0 0 var(--s3); font-size: 13px; color: var(--faint); } -.table-meta + .table-scroll { margin-top: var(--s2); } -.table-scroll + .table-meta { margin-top: var(--s4); } -.table-scroll { overflow-x: auto; border-top: 1px solid var(--border); } -.parity { width: 100%; border-collapse: collapse; font-size: 14px; } -.parity th, .parity td { text-align: left; vertical-align: top; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--border); } -.parity thead th { padding-top: var(--s3); padding-bottom: var(--s3); font-weight: 400; font-size: 13px; color: var(--faint); } -.parity tbody th { width: 30%; font-weight: 500; color: var(--text); } -.parity td { color: var(--muted); } -.parity td:last-child { padding-right: 0; } -.parity .score { width: 150px; white-space: nowrap; } -.pill { - display: inline-block; min-width: 26px; padding: 1px 7px; margin-right: var(--s2); - border: 1px solid var(--border); border-radius: 999px; - font: 12px/1.5 var(--mono); text-align: center; color: var(--muted); +.no-js .tabs { display: none; } +.screen { + position: relative; margin-top: 16px; aspect-ratio: 16 / 10; + border-radius: var(--radius-large); overflow: hidden; background: var(--deep); + border: 1px solid var(--border); + box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9); +} +.screen-panel { + position: absolute; inset: 0; + opacity: 0; transform: scale(1.02); filter: blur(6px); + transition: opacity 520ms var(--ease), transform 700ms var(--ease), filter 520ms var(--ease); +} +.screen-panel.is-active { opacity: 1; transform: none; filter: none; } +.screen-panel img { width: 100%; height: 100%; object-fit: cover; } +.no-js .screen { aspect-ratio: auto; display: grid; gap: 1px; background: var(--border); } +.no-js .screen-panel { position: static; opacity: 1; transform: none; filter: none; } +.screen-caption { margin-top: 14px; font-size: 13.5px; color: var(--faint); } +@media (min-width: 1000px) { + .launcher-grid { grid-template-columns: 5fr 7fr; align-items: center; column-gap: clamp(48px, 6vw, 96px); } + .tabs button { height: 36px; } } -.pill.is-full { border-color: rgba(124, 92, 196, 0.55); color: var(--accent-text); } -.score-label { font-size: 13px; color: var(--faint); } -.gap-none { color: var(--text); } -/* Releases. */ -.releases { border-top: 1px solid var(--border); } -.release { border-bottom: 1px solid var(--border); } +/* Patch notes: the latest release set like a page, the ones before it folded. */ +.release-latest { display: grid; gap: 40px; } +.release-head { display: grid; align-content: start; gap: 14px; } +.release-version { font: 400 clamp(56px, 7vw, 108px)/0.92 var(--display); letter-spacing: -0.03em; color: var(--text); } +.release-line { font-size: 18px; color: var(--muted); max-width: 26ch; } +.release-head .link-arrow { margin-top: 6px; } +.release-body { max-width: 58ch; font-size: 16px; } +.release-body > p:first-child { font-size: 18px; color: var(--text); } +.release-body h3:first-child, .release-body h2:first-child { margin-top: 0; } +@media (min-width: 1000px) { + .release-latest { grid-template-columns: 4fr 7fr; column-gap: clamp(48px, 6vw, 96px); } + .release-head { position: sticky; top: calc(var(--nav) + 32px); align-self: start; } +} +.release-older { margin-top: clamp(64px, 8vw, 104px); } +.release-older-title { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; } +.release { border-top: 1px solid var(--border); } +.release:last-of-type { border-bottom: 1px solid var(--border); } .release summary { - display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); - padding: var(--s4) 0; cursor: pointer; list-style: none; + display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 24px; + min-height: 72px; padding: 14px 0; cursor: pointer; list-style: none; } .release summary::-webkit-details-marker { display: none; } -.release-title { font-weight: 600; color: var(--text); } -.release summary::before { - content: ""; flex: none; align-self: center; width: 6px; height: 6px; margin-right: -4px; - border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); - transform: rotate(-45deg); transition: transform var(--quick) var(--ease); +.release-tag { font: 400 26px/1.1 var(--display); color: var(--text); } +.release-sub { font-size: 15px; color: var(--muted); } +.release time { font: 12.5px/1 var(--mono); color: var(--faint); } +.release summary::after { + content: ""; grid-column: 3; grid-row: 1; justify-self: end; width: 9px; height: 9px; margin-left: 56px; + border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); + transform: translateY(-3px) rotate(45deg); transition: transform var(--move) var(--ease); } -.release[open] summary::before { transform: rotate(45deg); } -.release summary .release-title { flex: 1; } -.release time { color: var(--faint); font-size: 13px; white-space: nowrap; } -.release .prose { padding: 0 0 var(--s5) 18px; animation: slide var(--move) var(--ease); } -.release-more { margin-top: var(--s4); font-size: 13px; } - -#roadmap h2, #roadmap h3 { margin-top: 0; } -#roadmap p { margin-bottom: var(--s4); } - -/* Footer. */ -.footer { - margin-top: 120px; padding: var(--s6) 0 48px; - border-top: 1px solid var(--border); - font-size: 13px; color: var(--faint); +.release[open] summary::after { transform: translateY(2px) rotate(-135deg); } +.release summary time { grid-column: 3; grid-row: 1; margin-right: 28px; } +.release summary:hover .release-tag { color: var(--accent-text); } +.release .prose { padding: 4px 0 32px; max-width: 58ch; } +.release-more { margin-top: 20px; } +@media (max-width: 640px) { + .release summary { grid-template-columns: 1fr auto; } + .release-sub { grid-column: 1 / -1; grid-row: 2; } + .release summary time { grid-column: 2; } + .release summary::after { grid-column: 2; margin-left: 0; } } -.footer p { margin: 0 0 var(--s3); max-width: 46em; } -.footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; } -.footer a:hover { color: var(--text); } -.footer code { font-size: 12px; } -.disclaimer-strong { color: var(--text) !important; font-size: 14px; } -.footer-links { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s5) !important; } -.footer-links a { text-decoration: none; } -/* The lightbox. */ +/* What's next: the README's roadmap, its bold leads set as headings. */ +.next-grid { display: grid; gap: 48px; } +.next-head .title { margin-bottom: 24px; } +.roadmap { font-size: 16px; } +.roadmap > p { padding-top: 22px; border-top: 1px solid var(--border); margin-top: 0; margin-bottom: 36px; max-width: 56ch; } +.roadmap > p > strong:first-child { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 0.02em; } +.roadmap > ul { list-style: none; padding: 0; margin: 0; } +.roadmap > ul > li { padding: 24px 0; border-top: 1px solid var(--border); margin: 0; max-width: 56ch; } +.roadmap > ul > li:last-child { border-bottom: 1px solid var(--border); } +.roadmap > ul > li > strong:first-child { display: block; margin-bottom: 8px; font: 400 30px/1.1 var(--display); letter-spacing: -0.01em; } +@media (min-width: 1000px) { + .next-grid { grid-template-columns: 5fr 7fr; column-gap: clamp(48px, 6vw, 96px); } + .next-head { position: sticky; top: calc(var(--nav) + 32px); align-self: start; } +} + +/* Community. */ +.community .title { margin-bottom: clamp(44px, 6vw, 72px); } +.cards { + display: grid; gap: 1px; background: var(--border); + border: 1px solid var(--border); border-radius: var(--radius-large); overflow: hidden; +} +.card { + position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; + min-height: 220px; padding: 30px 30px 26px; background: var(--bg); color: var(--text); + transition: background-color var(--move) var(--ease); +} +.card:hover { background: #151517; color: var(--text); } +.card:focus-visible { outline-offset: -3px; border-radius: 0; } +.card-title { font: 400 44px/1 var(--display); letter-spacing: -0.02em; } +.card-text { font-size: 15px; color: var(--muted); max-width: 30ch; } +.card-arrow { justify-self: end; font-size: 22px; color: var(--muted); transition: transform var(--move) var(--ease), color var(--quick) var(--ease); } +.card:hover .card-arrow { transform: translateX(6px); color: var(--accent-text); } +@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } } + +/* --- Footer ------------------------------------------------------------------------- */ + +.footer { margin-top: clamp(112px, 14vw, 200px); border-top: 1px solid var(--border); padding-top: clamp(64px, 8vw, 104px); overflow: hidden; } +.footer-disclaimer { max-width: 22em; font: 400 clamp(28px, 3.4vw, 46px)/1.15 var(--display); letter-spacing: -0.01em; color: var(--text); text-wrap: balance; } +.footer-cols { display: grid; gap: 24px; margin-top: 48px; } +.footer-cols p { font-size: 14px; color: var(--muted); max-width: 62ch; } +@media (min-width: 1180px) { .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 48px; } } +.footer-bar { + display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; + margin-top: 56px; padding: 16px 0; border-top: 1px solid var(--border); +} +.footer-mark { font: 400 24px/1 var(--display); } +.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; } +.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); } +.footer-links a:hover { color: var(--text); } +.footer-word { + margin: 24px 0 -0.24em; text-align: center; white-space: nowrap; + font: 400 27vw/0.9 var(--display); letter-spacing: -0.045em; + color: transparent; -webkit-text-stroke: 1px #24242a; + user-select: none; +} + +/* --- Lightbox ----------------------------------------------------------------------- */ + .lightbox { - width: min(1400px, 94vw); max-width: none; max-height: 94vh; padding: var(--s4); - background: var(--bg); color: var(--text); - border: 1px solid var(--border); border-radius: var(--radius-card); + max-width: min(1600px, 94vw); max-height: 94vh; padding: 0; border: 0; background: none; color: var(--text); overflow: visible; } -.lightbox::backdrop { background: rgba(8, 8, 9, 0.82); } -.lightbox[open] { animation: fade var(--move) var(--ease); } -.lightbox img { width: 100%; max-height: calc(94vh - 110px); object-fit: contain; border-radius: var(--radius); } -.lightbox form { display: flex; justify-content: flex-end; margin-bottom: var(--s3); } -.lightbox-caption { margin: var(--s3) 0 0; font-size: 13px; color: var(--muted); } +.lightbox[open] { animation: open 420ms var(--ease) both; } +.lightbox::backdrop { background: rgba(8, 8, 9, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } +.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius-large); } +.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 12px; } +.lightbox-caption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; } -/* Motion: sections fade and rise once; nothing moves for those who ask for less. */ -.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); } -.js .reveal.is-visible { opacity: 1; transform: none; } -.hero > * { animation: rise 600ms var(--ease) both; } -.hero > :nth-child(2) { animation-delay: 40ms; } -.hero > :nth-child(3) { animation-delay: 80ms; } -.hero > :nth-child(4), .hero > :nth-child(5) { animation-delay: 120ms; } -.hero > :nth-child(n + 6) { animation-delay: 180ms; } -@keyframes rise { from { opacity: 0; transform: translateY(8px); } } -@keyframes fade { from { opacity: 0; } } -@keyframes slide { from { opacity: 0; transform: translateY(-4px); } } +/* --- Motion ------------------------------------------------------------------------- */ + +.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); } +.js .reveal-media { opacity: 0; transform: translateY(44px); } +.js .reveal-media .zoom img { transform: scale(1.1); } +.js .reveal, .js .reveal-media { + transition: opacity var(--enter) var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms), filter var(--enter) var(--ease) var(--d, 0ms); +} +.js .is-visible { opacity: 1; transform: none; filter: none; } +.js .is-visible .zoom img { transform: none; } +.js .systems .system { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 900ms var(--ease) var(--d, 0ms), background-color var(--move) var(--ease); } +.js .systems.is-visible .system { opacity: 1; transform: none; } +.js .systems .check path { stroke-dashoffset: 16; transition: stroke-dashoffset 700ms var(--ease) calc(var(--d, 0ms) + 350ms); } +.js .systems.is-visible .check path { stroke-dashoffset: 0; } +.js .count.is-visible .digits span { animation: letter 1.2s var(--ease) both; } +.js .count.is-visible .digits span:nth-child(2) { animation-delay: 0.08s; } +.js .count.is-visible .digits span:nth-child(3) { animation-delay: 0.16s; } +.js .count.is-visible .digits span:nth-child(4) { animation-delay: 0.24s; } +.magnetic { will-change: transform; } + +@keyframes letter { from { opacity: 0; transform: translateY(0.18em); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } } +@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } +@keyframes settle { from { transform: scale(1.09); } to { transform: none; } } +@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); } } +@keyframes grain { + 0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); } + 50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } +} +@keyframes cue { from { transform: translateY(-12px); } to { transform: translateY(28px); } } +@keyframes open { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } - *, *::before, *::after { animation: none !important; transition: none !important; } - .js .reveal { opacity: 1; transform: none; } + *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; } + .js .reveal, .js .reveal-media, .js .systems .system { opacity: 1; transform: none; filter: none; } + .js .reveal-media .zoom img { transform: none; } + .js .systems .check path { stroke-dashoffset: 0; } + .js .fill { color: var(--text); background: none; } } -/* The 404 page. */ -.lost-main { margin: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 720px; padding: 48px clamp(24px, 8vw, 96px); } -.lost-main .disclaimer-strong { margin-top: 64px; color: var(--faint) !important; font-size: 13px; } +/* --- The not-found page ------------------------------------------------------------- */ -/* --- Phones and narrow windows ------------------------------------------------------ */ - -@media (max-width: 900px) { - html { scroll-padding-top: 72px; } - .topbar { - position: sticky; top: 0; z-index: 11; - display: flex; align-items: center; justify-content: space-between; - height: 56px; padding: 0 var(--s4); - background: rgba(12, 12, 13, 0.86); - -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); - border-bottom: 1px solid var(--border); - } - .topbar .wordmark { font-size: 24px; } - .menu-button { - height: var(--control); padding: 0 var(--s3); - background: var(--raised); color: var(--text); - border: 1px solid var(--border); border-radius: var(--radius); - font: 500 13px/1 var(--font); cursor: pointer; - } - .no-js .menu-button { display: none; } - .sidebar { - inset: 56px 0 auto 0; width: auto; padding: var(--s3) var(--s4) var(--s4); - border-right: 0; border-bottom: 1px solid var(--border); - background: rgba(12, 12, 13, 0.97); - opacity: 0; transform: translateY(-6px); visibility: hidden; - transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease), visibility 0s linear var(--quick); - } - .sidebar.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; } - .no-js .sidebar { position: static; opacity: 1; transform: none; visibility: visible; } - .sidebar > .wordmark { display: none; } - .sidebar-foot { flex-direction: row; justify-content: space-between; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); } - nav a { height: 40px; font-size: 15px; } - .nav-selection { height: 40px; } - - main { margin-left: 0; padding: 0 20px; } - main > section { padding-top: 72px; } - .hero { padding-top: 48px; } - .lede { font-size: 17px; } - h2 { font-size: 38px; } - .row { grid-template-columns: 1fr; gap: var(--s1); } - .row-action { justify-self: start; margin-top: var(--s2) !important; } - .gallery { grid-template-columns: 1fr; } - .actions .button.large { flex: 1 1 auto; } - .parity, .parity tbody, .parity tr, .parity th, .parity td { display: block; width: auto !important; } - .parity thead { display: none; } - .parity tr { padding: var(--s4) 0; border-bottom: 1px solid var(--border); } - .parity th, .parity td { border: 0; padding: 0; } - .parity tbody th { margin-bottom: var(--s2); } - .parity .score { margin-bottom: var(--s2); } - .release .prose { padding-left: 0; } - .footer { margin-top: 88px; } -} - -/* Line lengths: running text stays between about 45 and 80 characters a line. */ -.prose p, .prose li, .section-lede, .lede, .row dd, .footer p, .table-meta { max-width: 68ch; } -.parity td { max-width: 60ch; } - -/* Touch: every control is at least 44px tall, whatever the width. */ -@media (pointer: coarse), (max-width: 900px) { - .button, .button.large, .menu-button, nav a, .segmented button { min-height: 44px; } - .nav-selection { height: 44px; } - .segmented button { padding: 0 var(--s4); } - .release summary { min-height: 44px; align-items: center; } - .zoom { min-height: 44px; } - .footer-links a, .sidebar-foot a, .download-meta a { display: inline-flex; align-items: center; min-height: 44px; } - .footer-links { gap: var(--s4); } -} - -/* Short windows: the hero keeps its title, line and buttons in view. */ -@media (max-height: 760px) and (min-width: 901px) { - .hero { padding-top: 48px; } - h1 { font-size: clamp(56px, 12vh, 96px); } - .lede { margin-top: var(--s4); } - .actions { margin-top: var(--s5); } - .rows { margin-top: var(--s6); } - .sidebar > .wordmark { padding-bottom: var(--s5); } -} - -@media (max-width: 420px) { - main { padding: 0 16px; } - h1 { font-size: 64px; } - h2 { font-size: 34px; } -} - -.footer p { max-width: 36em; } -.topbar .wordmark { display: inline-flex; align-items: center; min-height: 44px; } -@media (max-width: 420px) { - html { font-size: 14.5px; } - .prose, .row dd { letter-spacing: -0.003em; } -} -.js .gallery[hidden] { display: none; } -.prose p, .prose li, .section-lede, .row dd { max-width: 56ch; } -.hero { max-width: var(--wide) !important; } -.hero > .rows, .hero > .download-meta { max-width: var(--content); } -.hero > .lede { max-width: 34em; } -main { position: relative; z-index: 0; } -@media (max-width: 900px) { - .sidebar { background: var(--sidebar); z-index: 12; } -} +.lost { display: grid; min-height: 100vh; } +.lost .hero { min-height: 100vh; } +.lost .hero-content { padding-bottom: clamp(64px, 14vh, 160px); } +.lost .eyebrow { margin-bottom: 12px; } +.lost .hero-title { font-size: clamp(88px, 16vw, 240px); } +.lost .disclaimer { margin-top: 40px; }