A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Site: a Civ VI style redesign, a Cabinet page and a clean in-engine hero (refs #393) (#656)
Eyal Golan95e86717363e
diff --git a/.github/workflows/site.yml b/.github/workflows/site.ymlindex e0fe9e2e9..4b6c6ced7 100644--- a/.github/workflows/site.yml+++ b/.github/workflows/site.yml@@ -9,9 +9,9 @@ name: Siteon:push:branches: [main]- paths: ["site/**", "content/**", "docs/images/**", "docs/sources/**", "promo/final/**", "unity/Assets/UI/EventImages/**", "ASSETS.yaml", ".github/workflows/site.yml"]+ paths: ["site/**", "content/**", "docs/images/**", "docs/sources/**", "promo/final/**", "unity/Assets/UI/EventImages/**", "unity/Assets/UI/Portraits/**", "ASSETS.yaml", "ASSETS.portraits.yaml", "README.md", "README.he.md", ".github/workflows/site.yml"]pull_request:- paths: ["site/**", "content/**", "docs/images/**", "docs/sources/**", "promo/final/**", "unity/Assets/UI/EventImages/**", "ASSETS.yaml", ".github/workflows/site.yml"]+ paths: ["site/**", "content/**", "docs/images/**", "docs/sources/**", "promo/final/**", "unity/Assets/UI/EventImages/**", "unity/Assets/UI/Portraits/**", "ASSETS.yaml", "ASSETS.portraits.yaml", "README.md", "README.he.md", ".github/workflows/site.yml"]workflow_dispatch:permissions:diff --git a/ASSETS.yaml b/ASSETS.yamlindex 25332073f..89d493307 100644--- a/ASSETS.yaml+++ b/ASSETS.yaml@@ -75,6 +75,10 @@ rules:licence: CC-BY-4.0source: "Real screenshots of the game's own WebGL build, dated in the README caption; map derived from Copernicus DEM, portraits public domain or CC0, the event-card photograph CC BY 4.0 with its credit line in the picture (Meitar Collection / National Library of Israel; NOTICE), the start screen's painting AI-generated (CC0, its row above)"status: verified+ - glob: "docs/images/hero-engine-*.jpg"+ licence: CC-BY-4.0+ source: "In-engine render of the game's own map with no interface (no AI): MapCapture.Promo (unity/Assets/Editor/MapCapture.cs) with -extraPose hero_c:34.76:32.06:36000:12 on the Mobile quality tier (the WebGL tier), 1920x1080, Unity 6000.3.25f1, commit 98515c5, 2026-10-15; saved as JPEG (quality 84). Map derived from Copernicus DEM. The website's home page hero"+ status: verified- glob: "docs/images/build-gameplay.*"licence: CC-BY-4.0source: "In-engine capture: about 11 seconds of real play recorded from the game's own WebGL build (commit f93fd5e, 2026-10-13) in headed Chrome at 1920x1080; the animated WebP for the README, the MP4 (H.264) and WebM (VP9) for the website. Map derived from Copernicus DEM; the event-card photograph CC BY 4.0 with its credit line in the picture (Meitar Collection / National Library of Israel; NOTICE)"diff --git a/docs/images/captures.yaml b/docs/images/captures.yamlindex bb626b0cf..02edc61fd 100644--- a/docs/images/captures.yaml+++ b/docs/images/captures.yaml@@ -24,6 +24,17 @@ video:alt:en: "22 to 29 May 1948: the camera pans across Tel Aviv's white blocks, Jaffa and the coastal plain; a click on a hex opens its panel; the player answers the One Army event card and ends the turn, and the date moves to 29 May."he: "22 עד 29 במאי 1948: המצלמה עוברת על הבתים הלבנים של תל אביב, על יפו ועל מישור החוף; לחיצה על משושה פותחת את הלוח שלו; השחקן עונה על כרטיס האירוע \"צבא אחד\" ומסיים את התור, והתאריך מתקדם ל־29 במאי."+# `hero` is the home page's hero still: a clean in-engine render with no interface, composed for the title, with its+# own build and date (it is not a README screenshot, so it is not in the gallery). tools/: MapCapture.Promo with+# -extraPose, on the Mobile tier, which is the WebGL tier (docs/visual-v1.md).+hero:+ file: hero-engine-coast.jpg+ build: main 98515c5+ date: 2026-10-15+ title: { en: "Tel Aviv, Jaffa and the coast, without the interface", he: "תל אביב, יפו והחוף, בלי הממשק" }+ alt:+ en: "An in-engine render of the 1948 map with no interface: the coast at Jaffa and Tel Aviv, with sailing boats off Jaffa's breakwater, Tel Aviv's white blocks, a train on the coastal railway, groves, villages and the sub-district borders."+ he: "תמונה מתוך מנוע המשחק של מפת 1948 בלי הממשק: החוף ביפו ובתל אביב, עם סירות מפרש מול שובר הגלים של יפו, הבתים הלבנים של תל אביב, רכבת על מסילת החוף, מטעים, כפרים וגבולות הנפות."images:- file: build-m3-city.jpgtitle: { en: "Tel Aviv’s white blocks and Jaffa", he: "הבתים הלבנים של תל אביב, ויפו" }diff --git a/docs/images/hero-engine-coast.jpg b/docs/images/hero-engine-coast.jpgnew file mode 100644index 000000000..639c50a56Binary files /dev/null and b/docs/images/hero-engine-coast.jpg differdiff --git a/site/README.md b/site/README.mdindex a9aa6583f..c4bf46c46 100644--- a/site/README.md+++ b/site/README.md@@ -21,14 +21,15 @@ npm run preview # http://localhost:4321/statecraft-israel/en/- `src/i18n/ui.ts`: interface strings in both languages. The build fails if a Hebrew string is missing.- `src/content/<lang>/*.md`: longer page text. `src/content/devlog/<lang>/`: devlog posts, the same file name in both languages.- `src/lib/media.ts`: every image and video the site shows, with its label. The images are read from `docs/images/` and `promo/final/` and converted to AVIF and WebP at build time; they are not copied into `site/`.-- `docs/images/captures.yaml`: the in-engine screenshots. The site's hero and in-engine gallery are the README's `docs/images/build-*.jpg`, described by this file (build, date, title and alt text in both languages; the first entry is the hero). The build fails if a screenshot has no entry or an entry has no file.-- `src/lib/repo.ts`: reads `content/events/`, `ASSETS.yaml` and the event photographs' mapping at build time. The History and Sources pages show that content as it is.+- `docs/images/captures.yaml`: the in-engine screenshots. The site's in-engine gallery is the README's `docs/images/build-*.jpg`, described by this file (build, date, title and alt text in both languages). Its `hero:` entry is the home page's hero still, `docs/images/hero-engine-*.jpg`: a clean in-engine render with no interface, with its own build and date (without the entry, the first screenshot is the hero). The build fails if a picture has no entry or an entry has no file.+- `src/lib/repo.ts`: reads `content/events/`, `ASSETS.yaml` and the event photographs' mapping at build time. The History and Sources pages show that content as it is. It also reads the Roadmap table in `README.md` and `README.he.md` for the home page; the build fails if a phase row is missing or has a status it does not know. The Cabinet page reads `content/people.yaml`, `offices.yaml`, `parties.yaml`, the game's portraits in `unity/Assets/UI/Portraits/` and their credits in `ASSETS.portraits.yaml`; it shows no quote, because `content/` holds none.- `scripts/press-kit.mjs`: the Press page's two downloads, written to `public/downloads/` (git-ignored) at the start of every build and never committed: a zip of the in-engine screenshots from `captures.yaml`, and a zip of the AI concept art in `promo/final/` as full-size JPEG (quality 90), with "AI concept art" in every file name and "AI likeness, not a photograph" in the two with likenesses of real ministers. Each holds a README.txt with the label, licence and provenance of every image, taken from `ASSETS.yaml`.+- `src/data/people-in-images.yaml`: every in-engine picture and video the site shows, with the real people visible in it, checked by hand (a check cannot see inside a screenshot). A file is shown only if it is listed and every portrait and event photograph in it has a `verified` provenance row; `npm run build` (media.ts, press-kit.mjs and check-site) fails otherwise. The Cabinet screenshot is held back this way while its owner-verify portraits are hidden (decision D-P).- `src/data/contributors.yaml`: the Contributors grid. Photos go in `src/assets/contributors/`, each with an `ASSETS.yaml` row and the person's consent. Never a GitHub avatar, never a generated image of a person.## The gameplay clip-A real gameplay clip in `docs/images/build-*.mp4` and `.webm`, listed under `video:` in `docs/images/captures.yaml`, becomes the home page's hero loop: muted, looping, started only after the page has loaded, never under reduced motion, with a pause button, and labelled "Real gameplay — <build>, <date>". The M2 flythrough then leaves the home page and stays in the Media page's in-engine gallery, after the clip. Until the clip exists, the hero is the first screenshot.+A real gameplay clip in `docs/images/build-*.mp4` and `.webm`, listed under `video:` in `docs/images/captures.yaml`, is the home page's first video: a click-to-play poster under the hero (no video bytes before the click), labelled as an in-engine capture with its build and date, and the first video in the Media page's in-engine gallery. The hero itself is a still, so the first screen loads no video. Until the clip exists, that section shows the M2 flythrough.## Refreshing the screenshotsdiff --git a/site/scripts/check-site.mjs b/site/scripts/check-site.mjsindex 150589458..3be2d0e32 100644--- a/site/scripts/check-site.mjs+++ b/site/scripts/check-site.mjs@@ -15,11 +15,18 @@// (and "AI likeness, not a photograph" in 04 and 08, which the README's first line names), and// are linked from the Press page in both languages.// 9. the history approach page exists in both languages, links to the two documents it restates, and History links to it.+// 10. no page publishes a game portrait whose ASSETS.portraits.yaml row is not verified (the owner-verify GPO+// photographs are hidden for now: owner, 15 October 2026, decision D-P), the Cabinet page exists in both languages,+// and Golda Meir's Hebrew card uses the feminine title (title_he_form, #661);+// 11. no page shows an in-engine picture or video that site/src/data/people-in-images.yaml does not clear. A check cannot+// see inside a screenshot, so that file records, checked by hand, the real people visible in each one; a screenshot+// of a hidden portrait (the Cabinet screen) is held back here.// Run after `astro build` (npm run build does both). Exit 1 with one line per problem.import fs from 'node:fs';import path from 'node:path';import YAML from 'yaml';import { plan, zipEntries, zipRead, CONCEPT_TAG, LIKENESS_TAG } from './press-kit.mjs';+import { imageRules } from './people-in-images.mjs';const dist = path.resolve(process.argv[2] ?? 'dist');const problems = [];@@ -219,9 +226,80 @@ for (const lang of ['en', 'he']) {if (!fs.existsSync(index) || !fs.readFileSync(index, 'utf8').includes(`/${lang}/history/approach/"`)) fail(index, 'no link to history/approach/');}+// 10. Unverified portraits are never published. A built image keeps its source name (kaplan.<hash>_<hash>.avif), so+// a page naming /_astro/<id>.<...> for an unverified <id>.jpg publishes it. SITE_PORTRAITS points at a fixture instead.+{+ const rows = YAML.parse(fs.readFileSync(process.env.SITE_PORTRAITS ?? path.resolve(dist, '..', '..', 'ASSETS.portraits.yaml'), 'utf8')).rules ?? [];+ const dir = 'unity/Assets/UI/Portraits/';+ const hidden = rows.filter((r) => r.glob.startsWith(dir) && r.status !== 'verified').map((r) => r.glob.slice(dir.length).replace(/\.jpg$/, ''));+ if (!rows.some((r) => r.glob.startsWith(dir))) problems.push('ASSETS.portraits.yaml: no game portrait rows found');+ for (const f of pages) {+ const html = fs.readFileSync(f, 'utf8');+ for (const id of hidden) if (new RegExp(`/_astro/${id}\\.[A-Za-z0-9_-]+\\.(?:avif|webp|jpe?g|png)`).test(html)) fail(f, `publishes the unverified portrait ${id}.jpg (ASSETS.portraits.yaml status is not verified)`);+ }+ for (const lang of ['en', 'he']) if (!fs.existsSync(path.join(dist, lang, 'cabinet', 'index.html'))) problems.push(`${lang}/cabinet/index.html: missing`);+ // The two plates: a person whose game portrait is held back (its ASSETS.portraits.yaml row is not verified) gets+ // "Portrait awaiting a licence check"; a person with no portrait at all keeps "No public-domain portrait yet".+ {+ const peopleDoc = YAML.parse(fs.readFileSync(path.resolve(dist, '..', '..', 'content', 'people.yaml'), 'utf8')).people;+ const withPortrait = new Set(peopleDoc.filter((x) => x.portrait).map((x) => x.id));+ const held = new Set(hidden);+ const texts = { en: { held: 'Portrait awaiting a licence check', none: 'No public-domain portrait yet' }, he: { held: 'הצילום ממתין לבדיקת רישיון', none: 'אין עדיין צילום בנחלת הכלל' } };+ let seen = { held: 0, none: 0 };+ for (const lang of ['en', 'he']) {+ const page = path.join(dist, lang, 'cabinet', 'index.html');+ if (!fs.existsSync(page)) continue;+ const html = fs.readFileSync(page, 'utf8');+ for (const m of html.matchAll(/<article class="minister"[^>]*\sid="([a-z_]+)"[\s\S]*?<\/article>/g)) {+ const [card, id] = m;+ const plate = card.match(/data-plate="(\w+)"/)?.[1];+ const want = held.has(id) ? 'held' : withPortrait.has(id) ? null : 'none';+ if (plate !== (want ?? undefined)) { fail(page, `${id}: plate ${plate ?? 'none shown'}, expected ${want ?? 'the portrait'}`); continue; }+ if (want && !card.includes(texts[lang][want])) fail(page, `${id}: the ${want} plate does not say "${texts[lang][want]}"`);+ if (want) seen[want]++;+ }+ }+ if (held.size && !seen.held) problems.push('cabinet: no "awaiting a licence check" plate found, though some portraits are held back');+ if (!seen.none) problems.push('cabinet: no "no portrait yet" plate found');+ }+ // The feminine Hebrew title (#661, title_he_form: feminine): Golda Meir's card reads שרת העבודה, never שר העבודה.+ const heCab = path.join(dist, 'he', 'cabinet', 'index.html');+ if (fs.existsSync(heCab)) {+ const html = fs.readFileSync(heCab, 'utf8');+ const at = html.indexOf('id="golda_meir"');+ const card = at < 0 ? '' : html.slice(at, html.indexOf('</article>', at));+ if (!card) fail(heCab, 'no card for golda_meir');+ else if (!card.includes('שרת העבודה') || /שר העבודה/.test(card)) fail(heCab, 'Golda Meir\'s card does not read שרת העבודה (title_he_form: feminine)');+ }+}++// 11. In-engine pictures and videos: every file in docs/images/ (the README's screenshots, the hero, the gameplay clip)+// and every file people-in-images.yaml lists must be cleared before a page names it. A built file keeps its source name+// (/_astro/<stem>.<hash>...), and a public/ file keeps its path.+{+ const repo = path.resolve(dist, '..', '..');+ const people = imageRules(repo, process.env.SITE_PEOPLE_IN_IMAGES);+ const candidates = new Set([...people.listed.keys()]);+ for (const n of fs.readdirSync(path.join(repo, 'docs/images'))) if (/\.(jpe?g|png|webp|mp4|webm)$/.test(n)) candidates.add(`docs/images/${n}`);+ const blocked = [...candidates].map((f) => [f, people.why(f)]).filter(([, w]) => w);+ for (const f of pages) {+ const html = fs.readFileSync(f, 'utf8');+ for (const [file, why] of blocked) {+ const base = path.basename(file);+ const stem = base.replace(/\.[^.]+$/, '');+ const esc = (x) => x.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');+ // A picture is re-encoded (any image extension); a video keeps its own extension.+ const ext = /\.(mp4|webm)$/.test(base) ? base.split('.').pop() : '(?:avif|webp|jpe?g|png)';+ const built = new RegExp(`/_astro/${esc(stem)}\\.[A-Za-z0-9_-]+\\.${ext}(?![a-z0-9])`);+ const direct = file.startsWith('site/public/') ? html.includes(`/${file.slice('site/public/'.length)}`) : false;+ if (built.test(html) || direct) fail(f, `shows ${file}: ${why}`);+ }+ }+}+if (problems.length) {console.error(problems.join('\n'));console.error(`check-site: ${problems.length} problem(s)`);process.exit(1);}-console.log(`check-site: ${pages.length} pages OK (both languages, labels on every image and video, nothing from other origins, devlog RSS feeds, contributors groups, press zips, history approach page)`);+console.log(`check-site: ${pages.length} pages OK (both languages, labels on every image and video, nothing from other origins, devlog RSS feeds, contributors groups, press zips, history approach page, no unverified portraits, cabinet page, in-engine pictures cleared for the people in them)`);diff --git a/site/scripts/people-in-images.mjs b/site/scripts/people-in-images.mjsnew file mode 100644index 000000000..d466bec83--- /dev/null+++ b/site/scripts/people-in-images.mjs@@ -0,0 +1,33 @@+// Which in-engine pictures the website may show, from site/src/data/people-in-images.yaml (checked by hand) and the+// provenance rows: a file is shown only if it is listed, every game portrait visible in it has a verified+// ASSETS.portraits.yaml row, every event photograph visible in it has a verified ASSETS.yaml row, and no visible portrait+// is unidentified. Used by src/lib/media.ts (what the pages show), press-kit.mjs (the screenshots zip) and+// check-site.mjs (nothing else reaches dist/).+import fs from 'node:fs';+import path from 'node:path';+import YAML from 'yaml';++/** @returns {{ listed: Map<string, object>, why: (file: string) => string | null }} why() is null when the file may be shown. */+export function imageRules(repo, list = path.join(repo, 'site/src/data/people-in-images.yaml')) {+ const read = (p) => YAML.parse(fs.readFileSync(path.isAbsolute(p) ? p : path.join(repo, p), 'utf8'));+ const listed = new Map(Object.entries(read(list).images ?? {}));+ const status = new Map();+ for (const r of read('ASSETS.yaml').rules) status.set(r.glob, r.status);+ for (const r of read('ASSETS.portraits.yaml').rules) status.set(r.glob, r.status);+ const why = (file) => {+ const e = listed.get(file);+ if (!e) return `${file} is not in site/src/data/people-in-images.yaml (not checked by hand for the people in it)`;+ if (!e.checked) return `${file}: its people-in-images entry has no checked date`;+ if ((e.unidentified ?? 0) > 0) return `${file} shows ${e.unidentified} portrait(s) nobody has identified`;+ for (const id of e.portraits ?? []) {+ const s = status.get(`unity/Assets/UI/Portraits/${id}.jpg`);+ if (s !== 'verified') return `${file} shows the portrait of ${id}, whose ASSETS.portraits.yaml row is ${s ?? 'missing'}`;+ }+ for (const id of e.photos ?? []) {+ const s = status.get(`unity/Assets/UI/EventImages/${id}.jpg`);+ if (s !== 'verified') return `${file} shows the event photograph ${id}, whose ASSETS.yaml row is ${s ?? 'missing'}`;+ }+ return null;+ };+ return { listed, why };+}diff --git a/site/scripts/press-kit.mjs b/site/scripts/press-kit.mjsindex 7e99b15d9..ef7731162 100644--- a/site/scripts/press-kit.mjs+++ b/site/scripts/press-kit.mjs@@ -13,6 +13,7 @@ import path from 'node:path';import zlib from 'node:zlib';import { fileURLToPath } from 'node:url';import YAML from 'yaml';+import { imageRules } from './people-in-images.mjs';const here = fileURLToPath(new URL('../../', import.meta.url));@@ -62,7 +63,11 @@ export function plan(repo = here) {// 1. In-engine screenshots, as captures.yaml lists them.const label = `In-engine capture — ${captures.build}, ${longDate(String(captures.date))}`;+ // Only the screenshots the site may show (site/src/data/people-in-images.yaml): never one with a portrait that is not+ // cleared for publication.+ const people = imageRules(repo);const shots = captures.images.map((img) => ({ file: `docs/images/${img.file}`, img }))+ .filter(({ file }) => people.why(file) === null).sort((a, b) => a.file.localeCompare(b.file));const shotRows = new Map();const shotLines = shots.map(({ file, img }) => {diff --git a/site/src/components/Footer.astro b/site/src/components/Footer.astroindex 62aa2ac18..ec9a369db 100644--- a/site/src/components/Footer.astro+++ b/site/src/components/Footer.astro@@ -5,7 +5,7 @@ const { lang, page } = Astro.props;const other = otherLang(lang);const links: { page: Page; key: Parameters<typeof t>[1] }[] = [{ page: '', key: 'nav.home' }, { page: 'play', key: 'nav.play' }, { page: 'history', key: 'nav.history' },- { page: 'history/sources', key: 'nav.sources' }, { page: 'media', key: 'nav.media' }, { page: 'devlog', key: 'nav.devlog' },+ { page: 'history/sources', key: 'nav.sources' }, { page: 'cabinet', key: 'nav.cabinet' }, { page: 'media', key: 'nav.media' }, { page: 'devlog', key: 'nav.devlog' },];const links2: { page: Page; key: Parameters<typeof t>[1] }[] = [{ page: 'contributors', key: 'nav.contributors' }, { page: 'how-we-make-it', key: 'nav.how' },diff --git a/site/src/components/Header.astro b/site/src/components/Header.astroindex 9f9ee38d7..bc06314bb 100644--- a/site/src/components/Header.astro+++ b/site/src/components/Header.astro@@ -4,6 +4,7 @@ interface Props { lang: Lang; page: Page }const { lang, page } = Astro.props;const main: { page: Page; key: Parameters<typeof t>[1] }[] = [{ page: 'history', key: 'nav.history' },+ { page: 'cabinet', key: 'nav.cabinet' },{ page: 'media', key: 'nav.media' },{ page: 'devlog', key: 'nav.devlog' },{ page: 'contributors', key: 'nav.contributors' },diff --git a/site/src/components/MediaLabel.astro b/site/src/components/MediaLabel.astroindex 69f8d4490..3f6005e51 100644--- a/site/src/components/MediaLabel.astro+++ b/site/src/components/MediaLabel.astro@@ -9,4 +9,4 @@ const text = kind === 'engine' ? t(lang, gameplay ? 'label.gameplay' : 'label.en: kind === 'cinematic' ? t(lang, 'label.cinematic'): t(lang, 'label.archival');----<span class={`label label-${kind}`} data-media-label={kind}>{text}{kind === 'engine' && build && <> — <bdi>{build.id[lang]}</bdi>{lang === 'he' ? ' · ' : ', '}<bdi>{build.date[lang]}</bdi></>}</span>+<span class={`label label-${kind}`} data-media-label={kind}><span>{text}{kind === 'engine' && build && <> — <bdi>{build.id[lang]}</bdi>{lang === 'he' ? ' · ' : ', '}<bdi>{build.date[lang]}</bdi></>}</span></span>diff --git a/site/src/components/PersonPortrait.astro b/site/src/components/PersonPortrait.astronew file mode 100644index 000000000..48dd8c00d--- /dev/null+++ b/site/src/components/PersonPortrait.astro@@ -0,0 +1,56 @@+---+// One office holder's portrait: an archival photograph with its label and the credit its licence requires, or, where no+// photograph may be shown yet, a lettered plate that says so (never a generated picture). Only portraits whose+// ASSETS.portraits.yaml row is verified reach here (lib/repo.ts cabinet()); check-site fails if any other is published.+import { Picture } from 'astro:assets';+import type { ImageMetadata } from 'astro';+import MediaLabel from './MediaLabel.astro';+import type { Lang } from '../i18n/ui';+import type { Person } from '../lib/repo';+interface Props { person: Person; lang: Lang; sizes: string; credit?: boolean }+const { person: p, lang, sizes, credit = true } = Astro.props;+const he = lang === 'he';+const files = import.meta.glob<{ default: ImageMetadata }>('../../../unity/Assets/UI/Portraits/*.jpg', { eager: true });+const img = p.portrait && Object.entries(files).find(([f]) => f.endsWith(`/${p.id}.jpg`))?.[1].default;+const c = p.portrait?.credit;+// Two plates: a portrait held back while its licence is checked (owner-verify, D-P), and no portrait at all.+const plate = p.portraitHeld ? 'held' : 'none';+const none = p.portraitHeld+ ? (he ? 'הצילום ממתין לבדיקת רישיון' : 'Portrait awaiting a licence check')+ : (he ? 'אין עדיין צילום בנחלת הכלל' : 'No public-domain portrait yet');+---+{img && p.portrait && c ? (+ <figure class="media person-portrait" data-kind="archival">+ <div class="media-frame">+ <MediaLabel lang={lang} kind="archival" />+ <Picture src={img} alt={he ? `צילום ארכיון של ${p.name_he}` : `Archival photograph of ${p.name}`} formats={['avif']} fallbackFormat="webp"+ widths={[240, 480].filter((w) => w <= img.width)} sizes={sizes} loading="lazy"+ style={`object-position: 50% ${Math.round((p.portrait.focus_y ?? 0.35) * 100)}%`} />+ </div>+ {credit && (+ <figcaption class="credit" lang="en" dir="ltr">+ {c.who}{c.collection && !c.who.includes(c.collection) && <> · {c.collection}</>}+ {' · '}{c.licenceUrl ? <a href={c.licenceUrl}>{c.licence}</a> : c.licence}+ {c.adapted && <> · {c.adapted}</>}+ {' · '}<a href={p.portrait.source}>Wikimedia Commons</a>+ </figcaption>+ )}+ </figure>+) : (+ <div class="no-portrait" role="img" aria-label={none} data-plate={plate}>+ <span aria-hidden="true">{(he ? p.name_he : p.name).split(/[\s-]+/).filter(Boolean).map((w) => w[0]).slice(0, 2).join('')}</span>+ <small>{none}</small>+ </div>+)}++<style>+ .person-portrait .media-frame { aspect-ratio: 4 / 5; }+ .person-portrait .media-frame :global(picture), .person-portrait .media-frame :global(img) { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }+ .credit { font-size: 0.72rem; line-height: 1.35; overflow-wrap: anywhere; }+ .no-portrait {+ aspect-ratio: 4 / 5; display: grid; place-content: center; text-align: center; gap: 0.5rem; padding: 1rem;+ border: 1px solid var(--gold-dim); box-shadow: 0 0 0 4px var(--navy-deep), 0 0 0 5px var(--gold-dim); background: var(--navy-deep);+ }+ .no-portrait span { font-size: 3rem; color: var(--gold); line-height: 1; }+ .no-portrait small { color: var(--ink-dim); font-size: 0.85rem; }+</style>diff --git a/site/src/data/people-in-images.yaml b/site/src/data/people-in-images.yamlnew file mode 100644index 000000000..d66f13829--- /dev/null+++ b/site/src/data/people-in-images.yaml@@ -0,0 +1,28 @@+# Every in-engine picture and video the website may show, checked by hand for the real people visible in it. A check+# (check-site, press-kit, src/lib/media.ts) cannot see inside a screenshot, so this list is the record. The site shows+# a file only if it is listed here and everything it shows of a real person is cleared:+# portraits: people.yaml ids whose game portrait is visible; each needs its ASSETS.portraits.yaml row `verified`+# (owner, 15 October 2026: the owner-verify GPO photographs are hidden for now, decision D-P);+# photos: event photographs (unity/Assets/UI/EventImages/<id>.jpg) visible in the picture; each needs its+# ASSETS.yaml row `verified`;+# unidentified: portraits visible whose person cannot be named from the picture; any number above 0 hides the file.+# A new screenshot, or a retaken one, needs an entry checked again by a person (or an agent who looked at the file),+# with the date. Not listed means not shown. Concept art and the cinematic trailer are AI-generated and labelled as such+# (src/lib/media.ts); the History page's archival photographs carry their own credits and rows. Neither is listed here.+images:+ docs/images/hero-engine-coast.jpg: { checked: 2026-10-15, note: "The coast at Jaffa and Tel Aviv, no interface: map only, no people." }+ docs/images/build-m3-city.jpg: { checked: 2026-10-15, note: "Tel Aviv and Jaffa with the top bar: tiny brigade figures, no identifiable person." }+ docs/images/build-m3-map.jpg: { checked: 2026-10-15, photos: [idf_founding], note: "The One Army event card: its archival photograph, no minister portrait." }+ docs/images/build-m3-why.jpg: { checked: 2026-10-15, photos: [idf_founding], note: "The Why panel and the One Army card: its archival photograph, no minister portrait." }+ docs/images/build-m3-start.jpg: { checked: 2026-10-15, note: "The start screen: an AI-generated painting with no identifiable person (its ai_part label)." }+ docs/images/build-m3-cabinet.jpg:+ checked: 2026-10-15+ portraits: [ben_gurion, kaplan, sharett, shapira, gruenbaum]+ unidentified: 5+ note: "The Cabinet screen: named cards for Ben-Gurion, Kaplan, Sharett, Shapira (twice) and Gruenbaum, and five more portraits cut off below their names. Hidden: Kaplan and Gruenbaum are owner-verify, and five cannot be named."+ docs/images/build-gameplay.mp4: { checked: 2026-10-15, photos: [idf_founding], note: "Real play, 22 to 29 May 1948: the map, the One Army card with its archival photograph, the hex panel. No minister portrait (frames checked at 1 per second)." }+ docs/images/build-gameplay.webm: { checked: 2026-10-15, photos: [idf_founding], note: "The same clip as the MP4." }+ promo/final/10-m2-topdown.png: { checked: 2026-10-15, note: "The M2 map from above: map only." }+ site/src/assets/media/flythrough-m2-poster.jpg: { checked: 2026-10-15, note: "The M2 flythrough's first frame: map only." }+ site/public/media/flythrough-m2-720p.mp4: { checked: 2026-10-15, note: "Eight seconds over the M2 map, no interface: map only (frames checked at 1 per second)." }+ site/public/media/flythrough-m2-720p.webm: { checked: 2026-10-15, note: "The same flight as the MP4." }diff --git a/site/src/i18n/ui.ts b/site/src/i18n/ui.tsindex 2adb322c3..6d8c01825 100644--- a/site/src/i18n/ui.ts+++ b/site/src/i18n/ui.ts@@ -5,7 +5,7 @@ export const languages = ['en', 'he'] as const;export type Lang = (typeof languages)[number];export const pages = [- '', 'play', 'history', 'history/sources', 'history/approach', 'media', 'devlog', 'contributors', 'how-we-make-it', 'press',+ '', 'play', 'history', 'history/sources', 'history/approach', 'cabinet', 'media', 'devlog', 'contributors', 'how-we-make-it', 'press','contribute', 'privacy',] as const;export type Page = (typeof pages)[number];@@ -24,6 +24,7 @@ const en = {'nav.sources': 'Sources','nav.approach': 'Our approach','nav.media': 'Media',+ 'nav.cabinet': 'Cabinet','nav.devlog': 'Devlog','nav.contributors': 'Contributors','nav.how': 'How we make it',@@ -87,6 +88,7 @@ const he: Dict = {'nav.sources': 'מקורות','nav.approach': 'הגישה שלנו','nav.media': 'מדיה',+ 'nav.cabinet': 'הממשלה','nav.devlog': 'יומן פיתוח','nav.contributors': 'תורמים','nav.how': 'איך המשחק נעשה',diff --git a/site/src/lib/media.ts b/site/src/lib/media.tsindex ff322e705..3ea051572 100644--- a/site/src/lib/media.ts+++ b/site/src/lib/media.ts@@ -18,6 +18,8 @@ import flythroughPoster from '../assets/media/flythrough-m2-poster.jpg';import trailerPoster from '../assets/media/cinematic-trailer-1-poster.jpg';import { type Lang, formatDate } from '../i18n/ui';import { repoRoot } from './repo';+// @ts-expect-error: a plain .mjs module shared with the build scripts+import { imageRules } from '../../scripts/people-in-images.mjs';export type Kind = 'engine' | 'concept' | 'cinematic';type Text = Record<Lang, string>;@@ -81,12 +83,37 @@ export const gameplay: GameplayClip | undefined = manifest.video ? {} : undefined;/** The current build's screenshots, in the manifest's order. The first is the home page's hero. */-export const captures: MediaImage[] = manifest.images.map((e) => {+// The real people visible in each in-engine picture were checked by hand (src/data/people-in-images.yaml): a screenshot+// that shows a portrait not cleared for publication (an owner-verify GPO photograph, decision D-P) is left out of the+// site, though it stays in the README and on main.+const people = imageRules(repoRoot) as { why: (file: string) => string | null };+/** Fails the build when the site would show a file not cleared in src/data/people-in-images.yaml. */+export const mustShow = (file: string) => { const w = people.why(file); if (w) throw new Error(`media: ${w}`); };+const allCaptures: MediaImage[] = manifest.images.map((e) => {const src = shotByName.get(e.file);if (!src) throw new Error(`media: docs/images/captures.yaml names ${e.file}, which is not in docs/images/`);return { id: e.file.replace(/\.jpg$/, ''), kind: 'engine', src, build: currentBuild, title: e.title, alt: e.alt, aiPart: e.ai_part, file: `docs/images/${e.file}` };});+/** The README screenshots the site may show, in the manifest's order. */+export const captures: MediaImage[] = allCaptures.filter((c) => people.why(c.file) === null);+if (!captures.length) throw new Error('media: no in-engine screenshot is cleared in src/data/people-in-images.yaml');+// The home page's hero still (`hero:` in captures.yaml): a clean in-engine render with no interface, composed for the+// title, with its own build and date. It is not one of the README's screenshots, so it is not in the gallery.+interface HeroEntry { file: string; build: string; date: string | Date; title: Text; alt: Text }+const heroFiles = import.meta.glob<{ default: ImageMetadata }>('../../../docs/images/hero-engine-*.jpg', { eager: true });+const heroEntry = (manifest as { hero?: HeroEntry }).hero;+for (const p of Object.keys(heroFiles)) {+ const name = p.split('/').pop()!;+ if (heroEntry?.file !== name) throw new Error(`media: docs/images/${name} is not the hero: entry in docs/images/captures.yaml`);+}+export const heroShot: MediaImage = (() => {+ if (!heroEntry) return captures[0];+ const src = Object.entries(heroFiles).find(([p]) => p.endsWith(`/${heroEntry.file}`))?.[1].default;+ if (!src) throw new Error(`media: docs/images/captures.yaml names the hero ${heroEntry.file}, which is not in docs/images/`);+ return { id: heroEntry.file.replace(/\.jpg$/, ''), kind: 'engine', src, build: buildText(heroEntry.build, heroEntry.date), title: heroEntry.title, alt: heroEntry.alt, file: `docs/images/${heroEntry.file}` };+})();export const capture = (file: string) => {+ mustShow(`docs/images/${file}`);const c = captures.find((x) => x.file === `docs/images/${file}`);if (!c) throw new Error(`media: no capture ${file} in docs/images/captures.yaml`);return c;@@ -224,3 +251,10 @@ export const trailer: MediaVideo = {captions: { en: 'media/promo-trailer.en.vtt', he: 'media/promo-trailer.he.vtt' },duration: 'PT1M23S', durationText: '1:23', sound: true,};++// Every other in-engine picture and video the site shows must be cleared too (src/data/people-in-images.yaml).+mustShow(heroShot.file);+for (const e of engine) mustShow(e.file);+for (const f of manifest.video?.files ?? []) mustShow(`docs/images/${f}`);+mustShow('site/src/assets/media/flythrough-m2-poster.jpg');+for (const s of flythrough.sources) mustShow(`site/public/${s.src}`);diff --git a/site/src/lib/repo.ts b/site/src/lib/repo.tsindex f4e2f73db..0cca20dcd 100644--- a/site/src/lib/repo.ts+++ b/site/src/lib/repo.ts@@ -123,3 +123,150 @@ export function markdownSection(rel: string, heading: string): string {const end = lines.findIndex((l, i) => i > start && /^## /.test(l));return lines.slice(start + 1, end < 0 ? undefined : end).join('\n').trim();}++// The roadmap table in README.md and README.he.md ("| 0 | what it adds | status | [#375](url) |"), read as it is, so the+// home page never says something the README does not. An unknown status word fails the build instead of guessing.+export type PhaseState = 'done' | 'now' | 'next' | 'later';+export interface Phase { n: string; what: { text: string; href?: string }[]; status: string; state: PhaseState; issue: string; url: string }+const STATES: [RegExp, PhaseState][] = [[/^(Done|הושלם)/, 'done'], [/^(In progress|בתהליך)/, 'now'], [/^(Next|הבא)/, 'next'], [/^(Later|בהמשך)/, 'later']];+export function roadmap(lang: 'en' | 'he'): Phase[] {+ const md = read(lang === 'he' ? 'README.he.md' : 'README.md');+ const rows = [...md.matchAll(/^\| (\d) \| (.+?) \| (.+?) \| \[(#\d+)\]\(([^)]+)\) \|$/gm)];+ if (rows.length < 8) throw new Error(`site: the roadmap table in ${lang === 'he' ? 'README.he.md' : 'README.md'} has ${rows.length} phase rows, expected 8`);+ return rows.map(([, n, what, status, issue, url]) => {+ const state = STATES.find(([re]) => re.test(status))?.[1];+ if (!state) throw new Error(`site: roadmap phase ${n} has an unknown status: ${status}`);+ // Markdown links in the cell become links; a repository path is resolved against the repository on GitHub.+ const parts = what.split(/(\[[^\]]+\]\([^)]+\))/).filter(Boolean).map((seg) => {+ const m = seg.match(/^\[([^\]]+)\]\(([^)]+)\)$/);+ return m ? { text: m[1], href: /^https?:/.test(m[2]) ? m[2] : `https://github.com/eyalgolan/statecraft-israel/blob/main/${m[2]}` } : { text: seg };+ });+ return { n, what: parts, status, state, issue, url };+ });+}++// The Cabinet page: everyone who held an office in the game's years, read from content/people.yaml, offices.yaml and+// parties.yaml as they are: terms from the state's founding on 14 May 1948 (the game starts the next day) to the end of+// 1951. Nothing here is written for the website: the tagline is built from the sourced offices and dates, never a quote+// (content/ holds no sourced quotes).+export interface Named { en: string; he?: string }+export interface Term { office: string; title: Named; party?: Named; from: string; to?: string; sources: Source[] }+/** A portrait the site may publish: only ASSETS.portraits.yaml rows marked verified (owner, 15 October 2026: the+ * owner-verify GPO photographs are hidden for now, decision D-P). `credit` is the attribution an open licence requires,+ * from NOTICE: the photographer and year, the collection, the licence with its link, and that the file was adapted. */+export interface Portrait {+ file: string; source: string; focus_y?: number;+ credit: { who: string; collection?: string; licence: string; licenceUrl?: string; adapted?: string };+}+export interface Person {+ id: string; name: string; name_he: string; born: string; died?: string; party?: Named;+ status: string; competence: number; loyalty: number; terms: Term[]; group: 'government' | 'state' | 'deputy';+ portrait?: Portrait; bioSources: Source[];+ /** The game has a portrait, but its licence row is not verified yet (owner-verify, D-P): the site holds it back. */+ portraitHeld: boolean;+}+const GAME_START = '1948-05-14';+const GAME_END = '1952-01-01';+const PORTRAIT_DIR = 'unity/Assets/UI/Portraits/';+// The Hebrew form of a person's office titles (#661): `title_he_form: feminine` in content/people.yaml, sourced under+// biography_sources.title_he_form, picks the office's feminine title (offices.yaml title_he_f, "שרת העבודה"); left out,+// the title is title_he. The sim's mirror is Office.TitleHeFor(Person?). Any other value fails the build.+const feminine = (p: Record<string, any>) => {+ const v = p.title_he_form;+ if (v === undefined || v === null) return false;+ if (v !== 'feminine') throw new Error(`site: ${p.id} has title_he_form ${JSON.stringify(v)}; the only value is "feminine"`);+ return true;+};++/** The CC BY 4.0 and CC BY-SA 4.0 portrait credits in NOTICE ("Portraits:" paragraph): each licence block names its+ * collection, and each file line its photographer, year and "cropped". */+function noticeCredits(): Map<string, { who: string; collection: string; licence: string; licenceUrl: string; adapted: string }> {+ const text = read('NOTICE');+ const start = text.indexOf('Portraits:');+ const end = text.indexOf('\n\n', start);+ if (start < 0 || end < 0) throw new Error('site: NOTICE has no "Portraits:" paragraph');+ const para = text.slice(start, end);+ const out = new Map<string, { who: string; collection: string; licence: string; licenceUrl: string; adapted: string }>();+ const blocks = [...para.matchAll(/(CC BY(?:-SA)? 4\.0) \((https:\/\/creativecommons\.org\/licenses\/[^)]+)\),([\s\S]*?)via Wikimedia(?:\s|\n)+Commons([\s\S]*?)(?=CC BY(?:-SA)? 4\.0 \(https|$)/g)];+ for (const [, licence, url, collection, body] of blocks) {+ for (const m of body.matchAll(/^- ([a-z_]+)\.jpg: (.+?), (CC BY(?:-SA)? 4\.0), cropped\.$/gm)) {+ if (m[3] !== licence) throw new Error(`site: NOTICE lists ${m[1]}.jpg as ${m[3]} under ${licence}`);+ out.set(m[1], { who: m[2], collection: collection.replace(/\s+/g, ' ').trim().replace(/,$/, ''), licence, licenceUrl: url, adapted: 'cropped and resized' });+ }+ }+ return out;+}++export function cabinet(): Person[] {+ const officeDoc = readYaml('content/offices.yaml').offices as { id: string; title: string; title_he?: string; title_he_f?: string }[];+ const officeOrder = new Map(officeDoc.map((o, i) => [o.id, i]));+ const office = new Map(officeDoc.map((o) => [o.id, o]));+ const parties = new Map((readYaml('content/parties.yaml').parties as { id: string; name: string; name_he?: string }[]).map((p) => [p.id, p]));+ const party = (id?: string): Named | undefined => {+ if (!id) return undefined;+ const x = parties.get(id);+ if (!x) throw new Error(`site: party ${id} is not in parties.yaml`);+ return { en: x.name, he: x.name_he };+ };+ const credits = new Map((readYaml('ASSETS.portraits.yaml').rules as { glob: string; licence: string; source: string; artist?: string; status: string }[]).map((r) => [r.glob, r]));+ const notice = noticeCredits();+ const people = readYaml('content/people.yaml').people as Record<string, any>[];+ const list: Person[] = [];+ for (const p of people) {+ if (p.status === 'draft') continue;+ const raw = (p.offices as Record<string, any>[])+ .map((o) => ({ office: o.office as string, party: o.party as string | undefined, from: toIso(o.from), to: o.to ? toIso(o.to) : undefined, sources: o.sources as Source[] }))+ .filter((o) => o.from < GAME_END && (!o.to || o.to > GAME_START))+ .sort((a, b) => a.from.localeCompare(b.from));+ if (!raw.length) continue;+ // Terms are split per government in content/; join a term to the one before it when the office runs on unbroken+ // for the same list (a term's own `party` is the list the holder sat for then; otherwise the person's applies).+ const terms: (Term & { partyId?: string })[] = [];+ for (const o of raw) {+ const partyId = o.party ?? p.party ?? undefined;+ const prev = [...terms].reverse().find((t) => t.office === o.office);+ if (prev && prev.to === o.from && prev.partyId === partyId) {+ prev.to = o.to;+ for (const s of o.sources) if (!prev.sources.some((x) => x.url === s.url)) prev.sources.push(s);+ } else {+ const off = office.get(o.office);+ if (!off) throw new Error(`site: ${p.id} holds an office that offices.yaml does not define: ${o.office}`);+ const he = feminine(p) && off.title_he_f ? off.title_he_f : off.title_he;+ terms.push({ office: o.office, title: { en: off.title, he }, partyId, party: party(partyId), from: o.from, to: o.to, sources: [...o.sources] });+ }+ }+ terms.sort((a, b) => (officeOrder.get(a.office)! - officeOrder.get(b.office)!) || a.from.localeCompare(b.from));+ const ids = terms.map((t) => t.office);+ const group = ids.some((i) => i === 'prime_minister' || (i.endsWith('_minister') && !i.startsWith('deputy_')))+ ? 'government' : ids.some((i) => i.startsWith('deputy_')) ? 'deputy' : 'state';+ let portrait: Portrait | undefined;+ let portraitHeld = false;+ if (p.portrait) {+ const file = `${PORTRAIT_DIR}${p.id}.jpg`;+ const row = credits.get(file);+ if (!row) throw new Error(`site: portrait ${file} has no row in ASSETS.portraits.yaml`);+ portraitHeld = row.status !== 'verified';+ if (row.status === 'verified') {+ const open = /^CC-BY/.test(row.licence);+ const n = notice.get(p.id);+ if (open && !n) throw new Error(`site: ${file} is ${row.licence} but NOTICE has no credit line for it`);+ portrait = {+ file, source: row.source, focus_y: p.portrait.focus_y,+ credit: n ? { who: n.who, collection: n.collection, licence: n.licence, licenceUrl: n.licenceUrl, adapted: n.adapted }+ : { who: row.artist ?? '', licence: row.licence === 'CC0-1.0' ? 'CC0' : 'Public domain' },+ };+ }+ }+ const bio = p.biography_sources ?? {};+ const bioSources: Source[] = [];+ for (const k of ['born', 'died', 'name_he', 'title_he_form']) for (const s of (bio[k] ?? []) as Source[]) if (!bioSources.some((x) => x.url === s.url)) bioSources.push(s);+ list.push({+ id: p.id, name: p.name, name_he: p.name_he, born: toIso(p.born), died: p.died ? toIso(p.died) : undefined,+ party: party(p.party || undefined), status: p.status, competence: p.competence, loyalty: p.loyalty,+ terms: terms.map(({ partyId: _x, ...t }) => t), group, bioSources, portrait, portraitHeld,+ });+ }+ const rank = (x: Person) => Math.min(...x.terms.map((t) => officeOrder.get(t.office)!));+ return list.sort((a, b) => rank(a) - rank(b) || a.terms[0].from.localeCompare(b.terms[0].from) || a.name.localeCompare(b.name));+}+diff --git a/site/src/pages/[lang]/cabinet.astro b/site/src/pages/[lang]/cabinet.astronew file mode 100644index 000000000..7de7a1bbf--- /dev/null+++ b/site/src/pages/[lang]/cabinet.astro@@ -0,0 +1,174 @@+---+// The Cabinet: one card for everyone who held an office in the game's years, in the Civ VI leader-post order (portrait,+// history, then "In the game"). Everything is read from content/people.yaml, offices.yaml and parties.yaml, the game's+// own portraits and ASSETS.portraits.yaml. No quote appears: content/ holds none, so each card opens with a tagline+// built from its sourced offices and dates. Portraits are archival photographs only, never generated.+import Layout from '../../layouts/Layout.astro';+import PersonPortrait from '../../components/PersonPortrait.astro';+import { type Lang, languages, href, t, formatDate, repoFile } from '../../i18n/ui';+import { cabinet, events, type Person, type Term, type Named } from '../../lib/repo';++export const getStaticPaths = () => languages.map((lang) => ({ params: { lang } }));+const lang = Astro.params.lang as Lang;+const he = lang === 'he';++const people = cabinet();+const evs = events();++// A name in the page's language; where content/ has no Hebrew form, the English, marked as English.+const hasHe = (n: Named) => !!n.he;+const label = (n: Named) => (he && n.he) || n.en;+const year = (iso?: string) => iso?.slice(0, 4);+// A year range is isolated left to right (U+2066 ... U+2069), or Hebrew text shows 1948–1952 as 1952–1948. One year+// is written once.+const span = (tm: Term) => !tm.to ? (he ? `מ־${year(tm.from)}` : `from ${year(tm.from)}`)+ : year(tm.from) === year(tm.to) ? year(tm.from)! : `\u2066${year(tm.from)}–${year(tm.to)}\u2069`;+// The tagline: the offices held in the game's years, with their years. Built from the sourced terms, never a quote.+const tagline = (p: Person) => {+ // Terms split only by a change of list are one stretch in office here: join them before writing the years.+ const runs: Term[] = [];+ for (const tm of [...p.terms].sort((a, b) => a.from.localeCompare(b.from))) {+ const prev = runs.find((r) => r.office === tm.office && r.to === tm.from);+ if (prev) prev.to = tm.to; else runs.push({ ...tm });+ }+ const order = new Map(p.terms.map((t, i) => [t.office, i]));+ runs.sort((a, b) => order.get(a.office)! - order.get(b.office)! || a.from.localeCompare(b.from));+ const seen = new Map<string, { t: Term; spans: string[] }>();+ for (const tm of runs) {+ const k = label(tm.title);+ const e = seen.get(k) ?? { t: tm, spans: [] };+ if (!e.spans.includes(span(tm))) e.spans.push(span(tm));+ seen.set(k, e);+ }+ return [...seen.values()];+};+const inGame = (p: Person) => evs.filter((e) => e.office && p.terms.some((tm) => tm.office === e.office && e.from >= tm.from && (!tm.to || e.from < tm.to)));+const host = (u: string) => { try { const x = new URL(u); return x.hostname.replace(/^www\./, '') + decodeURIComponent(x.pathname).replace(/\/$/, ''); } catch { return u; } };+const groups = [+ { id: 'government', title: he ? 'הממשלה' : 'The government', note: he ? 'ראש הממשלה והשרים, מהממשלה הזמנית ועד הממשלה השלישית.' : 'The Prime Minister and the ministers, from the Provisional Government to the Third Government.' },+ { id: 'state', title: he ? 'הנשיא והצבא' : 'Head of state and the army', note: he ? 'נושאי משרה שהמשחק מציג ואינם חברי ממשלה.' : 'Office holders the game shows who were not members of the government.' },+ { id: 'deputy', title: he ? 'סגני שרים' : 'Deputy ministers', note: he ? 'תארים היסטוריים בלבד: במשחק אין להם סמכויות.' : 'Historical titles only: they carry no powers in the game.' },+] as const;+const statusText = (s: string) => s === 'fact-checked' || s === 'sensitivity-reviewed' ? t(lang, `history.status.${s}` as 'history.status.fact-checked') : s;+---+<Layout lang={lang} page="cabinet" title={t(lang, 'nav.cabinet')}+ description={he ? 'כל מי שכיהן בתפקיד בשנים של המשחק, 1948 עד 1951: צילום ארכיון, התפקידים והתאריכים עם המקורות, ומה הם עושים במשחק.' : 'Everyone who held office in the game’s years, 1948 to 1951: an archival photograph, the offices and dates with their sources, and what they do in the game.'}>+ <div class="wrap page">+ <header class="page-head">+ <span class="eyebrow">{t(lang, 'nav.cabinet')}</span>+ <h1>{he ? 'נושאי המשרה, 1948 עד 1951' : 'Office holders, 1948 to 1951'}</h1>+ <p>{he+ ? `${people.length} האנשים שכיהנו בתפקיד בשנים של המשחק. בכל כרטיס מופיע קודם מה שקרה, התפקידים והתאריכים עם המקורות שלהם, ואחר כך מה שהמשחק עושה איתם. הנתונים נלקחים כמו שהם מתיקיית content במאגר. הצילומים הם צילומי ארכיון בנחלת הכלל או ברישיון פתוח, עם הקרדיט שהרישיון דורש; צילומים שהרישיון שלהם עדיין בבדיקה אינם מוצגים בינתיים. אין בעמוד הזה תמונות שנוצרו בבינה מלאכותית.`+ : `The ${people.length} people who held office in the game’s years. Each card shows first what happened, the offices and dates with their sources, then what the game does with them. The data is taken as it is from the repository’s content folder. The portraits are archival photographs in the public domain or under an open licence, with the credit the licence asks for; photographs whose licence is still being checked are not shown yet. There are no AI-generated images on this page.`}</p>+ {he && <p class="note">{'שמות התפקידים בעברית נבדקו מול המקורות על ידי סוכן בינה מלאכותית ומחכים לבדיקה של דובר עברית (#564).'}</p>}+ </header>++ <nav class="jump" aria-label={he ? 'קבוצות' : 'Groups'}>+ {groups.map((g) => people.some((p) => p.group === g.id) && <a href={`#${g.id}`}>{g.title}</a>)}+ </nav>++ {groups.map((g) => {+ const members = people.filter((p) => p.group === g.id);+ if (!members.length) return null;+ return (+ <section class="group" aria-labelledby={g.id}>+ <div class="group-head">+ <h2 id={g.id} class="plaque">{g.title}</h2>+ <p class="muted">{g.note}</p>+ </div>+ <div class="cards">+ {members.map((p) => {+ const games = inGame(p);+ return (+ <article class="minister" id={p.id}>+ <PersonPortrait person={p} lang={lang} sizes="13rem" />+ <div class="body">+ <p class="tagline">{tagline(p).map((e, i) => <>{i > 0 && ' · '}{he && !hasHe(e.t.title) ? <span lang="en" dir="ltr">{e.t.title.en}</span> : label(e.t.title)}, {e.spans.join(he ? ' ו־' : ' and ')}</>)}</p>+ <h3>{he ? p.name_he : p.name}</h3>+ <p class="alt-name" lang={he ? 'en' : 'he'} dir={he ? 'ltr' : 'rtl'}>{he ? p.name : p.name_he}</p>+ <dl class="facts">+ {/* Neutral Hebrew labels (לידה, פטירה): content/ records no gender, and the cards include women. */}+ <dt>{he ? 'לידה' : 'Born'}</dt><dd>{formatDate(lang, p.born)}</dd>+ {p.died && <><dt>{he ? 'פטירה' : 'Died'}</dt><dd>{formatDate(lang, p.died)}</dd></>}+ {p.party && <><dt>{he ? 'מפלגה' : 'Party'}</dt><dd>{he && !hasHe(p.party) ? <span lang="en" dir="ltr">{p.party.en}</span> : label(p.party)}</dd></>}+ </dl>+ <h4>{he ? 'בתפקיד' : 'In office'}</h4>+ <ul class="terms">+ {p.terms.map((tm) => (+ <li><span class="t-title">{he && !hasHe(tm.title) ? <span lang="en" dir="ltr">{tm.title.en}</span> : label(tm.title)}</span>{' '}<span class="t-dates">{formatDate(lang, tm.from)}{' – '}{tm.to ? formatDate(lang, tm.to) : (he ? 'אחרי 1951' : 'beyond 1951')}</span>+ {tm.party && (!p.party || tm.party.en !== p.party.en) && <span class="t-party">{he ? ' · ברשימת ' : ' · for '}{he && !hasHe(tm.party) ? <span lang="en" dir="ltr">{tm.party.en}</span> : label(tm.party)}</span>}</li>+ ))}+ </ul>+ <details class="sources">+ <summary>{t(lang, 'history.sources')} ({new Set([...p.bioSources, ...p.terms.flatMap((tm) => tm.sources)].map((s) => s.url)).size}) · {t(lang, 'history.status')}: {statusText(p.status)}</summary>+ <ul>+ {[...new Map([...p.bioSources, ...p.terms.flatMap((tm) => tm.sources)].map((s) => [s.url, s])).values()].map((s) => (+ <li><a href={s.url} class="ltr">{host(s.url)}</a></li>+ ))}+ </ul>+ <p><a href={repoFile('content/people.yaml')}>{he ? 'קובץ האנשים במאגר' : 'The people file in the repository'}</a></p>+ </details>+ <div class="ingame">+ <h4>{he ? 'במשחק' : 'In the game'}</h4>+ {games.length ? (+ <>+ <p>{he ? 'האירועים שהמשחק מציב לתפקיד הזה בזמן הכהונה:' : 'The events the game puts to their office while they hold it:'}</p>+ <ul class="events" lang="en" dir="ltr">+ {games.slice(0, 5).map((e) => <li><a href={`${href(lang, 'history')}#${e.id}`}>{e.title}</a> <span class="muted">{formatDate('en', e.from)}</span></li>)}+ </ul>+ {games.length > 5 && <p><a href={href(lang, 'history')}>{he ? `ועוד ${games.length - 5} בעמוד ההיסטוריה` : `and ${games.length - 5} more on the History page`}</a></p>}+ </>+ ) : (+ <p>{he ? 'עדיין אין אירוע שמוצב לתפקיד הזה.' : 'No event is put to their office yet.'}</p>+ )}+ <p class="ratings">{he+ ? `יכולת ${p.competence} ונאמנות ${p.loyalty} מתוך 10: ערכי איזון של המשחק, לא עובדות היסטוריות.`+ : `Competence ${p.competence} and loyalty ${p.loyalty} out of 10: game-balance values, not historical facts.`}</p>+ </div>+ </div>+ </article>+ );+ })}+ </div>+ </section>+ );+ })}+ </div>+</Layout>++<style>+ .note { color: var(--ink-dim); font-size: 0.95em; margin-block-start: 0.8rem !important; }+ .jump { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-block: 0.6rem; border-block: 1px solid var(--gold-faint); margin-block-end: 1rem; }+ .jump a { color: var(--gold-light); text-decoration: none; font-weight: 600; }+ .group { padding-block: 3rem 1rem; }+ .group + .group { position: relative; }+ .group + .group::before { content: ''; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 6px; transform: translateY(-50%); background: var(--gilt-band); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(0, 0, 0, 0.6); }+ .group-head { max-inline-size: var(--measure); margin-block-end: 2rem; }+ .cards { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); }+ /* One card: the portrait in a gilt frame beside the text, like a leader screen. On the grain texture (7:1 checked). */+ .minister {+ display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.4rem; align-items: start; padding: 1.4rem;+ border: 1px solid var(--gold-dim); background-color: var(--navy-solid); background-image: var(--grain);+ --ink-dim: rgb(196, 190, 176);+ }+ @media (max-width: 30rem) { .minister { grid-template-columns: 1fr; } .minister > :first-child { max-inline-size: 15rem; } }+ .t-party { color: var(--ink-dim); }+ .tagline { color: var(--gold-light); font-size: 0.9rem; font-weight: 600; margin-block-end: 0.3rem; }+ .minister h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); margin-block-end: 0.1rem; }+ .alt-name { color: var(--ink-dim); margin-block-end: 0.6rem; }+ .facts { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.75rem; font-size: 0.95rem; margin-block-end: 0.8rem; }+ .facts dt { color: var(--gold-light); }+ .facts dd { margin: 0; }+ .minister h4 { font-size: 0.95rem; color: var(--gold-light); margin-block: 0.6rem 0.3rem; padding-block-end: 0.25rem; border-block-end: 1px solid var(--gold-faint); }+ .terms { list-style: none; padding: 0; margin: 0 0 0.6rem; font-size: 0.95rem; }+ .terms li { margin-block: 0.15rem; }+ .t-dates { color: var(--ink-dim); white-space: nowrap; }+ .sources summary { cursor: pointer; color: var(--ink-dim); font-size: 0.9rem; }+ .sources ul { font-size: 0.85rem; padding-inline-start: 1.1rem; overflow-wrap: anywhere; }+ .sources p { font-size: 0.85rem; }+ .ingame { margin-block-start: 0.6rem; padding: 0.7rem 0.9rem; background: rgba(9, 14, 26, 0.75); border: 1px solid var(--gold-faint); font-size: 0.95rem; }+ .ingame h4 { margin-block-start: 0 !important; }+ .ingame p { margin-block-end: 0.4rem; }+ .events { margin: 0 0 0.5rem; padding-inline-start: 1.1rem; }+ .ratings { color: var(--ink-dim); font-size: 0.85rem; margin: 0 !important; }+</style>diff --git a/site/src/pages/[lang]/history/index.astro b/site/src/pages/[lang]/history/index.astroindex 79bfcc7a0..bc64154d9 100644--- a/site/src/pages/[lang]/history/index.astro+++ b/site/src/pages/[lang]/history/index.astro@@ -34,6 +34,17 @@ for (const l of ['he', 'en'] as const) {}const host = (u: string) => { try { const x = new URL(u); return x.hostname.replace(/^www\./, '') + decodeURIComponent(x.pathname).replace(/\/$/, ''); } catch { return u; } };+const yearCount = (y: string) => list.filter((e) => e.from.startsWith(y)).length;+// The year banner: the first archival photograph of that year's events, darkened under the numeral, with its label+// and credit like every other photograph on the page.+const yearBanner = (y: string) => {+ for (const e of list.filter((x) => x.from.startsWith(y))) {+ const ph = photos.get(e.id);+ const img = ph && photoByFile.get(ph.file);+ if (ph && img) return { ph, img };+ }+ return undefined;+};const sensitiveCount = list.filter((e) => e.status === 'sensitivity-reviewed').length;---<Layout lang={lang} page="history" title={t(lang, 'nav.history')}@@ -71,14 +82,38 @@ const sensitiveCount = list.filter((e) => e.status === 'sensitivity-reviewed').l</div></section>+ <div class="chron">+ {/* Proposal v2: a sticky year rail (a bar on phones) and one collapsible list per year, so the page is no longer one+ long list. 1948 starts open; a link to a year or an event opens its list (script below, and the browser's own+ details revealing for find-in-page). */}<nav class="years" aria-label={he ? 'שנים' : 'Years'}>- {years.map((y) => <a href={`#y${y}`}>{y}</a>)}- <a href="#how">{he ? 'איך זה עובד במשחק' : 'How it works in the game'}</a>+ {years.map((y) => <a href={`#y${y}`} data-year={y}><span class="ry">{y}</span> <span class="rc">{yearCount(y)}</span></a>)}+ <a href="#how" class="r-how">{he ? 'איך זה עובד במשחק' : 'How it works in the game'}</a></nav>- {years.map((y) => (- <section class="year" aria-labelledby={`y${y}`}>- <h2 id={`y${y}`} class="year-title">{y}</h2>+ <div class="chron-main">+ {years.map((y, i) => {+ const banner = yearBanner(y);+ return (+ <section class="year" aria-labelledby={`y${y}`} data-year={y}>+ <header class="year-card seam">+ {banner && (+ <figure class="media year-banner" data-kind="archival">+ <div class="media-frame">+ <MediaLabel lang={lang} kind="archival" />+ <Picture src={banner.img} alt="" formats={['avif']} fallbackFormat="webp" widths={[800, 1200]} quality={55}+ sizes="(min-width: 76rem) 64rem, 100vw" loading={i === 0 ? 'eager' : 'lazy'} />+ </div>+ <figcaption lang="en" dir="ltr">{banner.ph.credit} · <a href={banner.ph.commons}>Wikimedia Commons</a></figcaption>+ </figure>+ )}+ <div class="year-text">+ <h2 id={`y${y}`} class="year-title plaque plaque-center">{y}</h2>+ <p class="year-count">{he ? `${yearCount(y)} אירועים` : `${yearCount(y)} events`}</p>+ </div>+ </header>+ <details class="year-events" open={i === 0}>+ <summary><span class="when-closed">{he ? `להצגת ${yearCount(y)} האירועים של ${y}` : `Show the ${yearCount(y)} events of ${y}`}</span><span class="when-open">{he ? `להסתרת האירועים של ${y}` : `Hide the events of ${y}`}</span></summary>{list.filter((e) => e.from.startsWith(y)).map((e) => {const ph = photos.get(e.id);const img = ph && photoByFile.get(ph.file);@@ -89,7 +124,7 @@ const sensitiveCount = list.filter((e) => e.status === 'sensitivity-reviewed').l<div class="media-frame"><MediaLabel lang={lang} kind="archival" /><Picture src={img} alt={ph.alt} lang="en" formats={['avif']} fallbackFormat="webp" widths={[400, 720]}- sizes="(min-width: 60rem) 22rem, 100vw" loading="lazy" />+ sizes="(min-width: 60rem) 26rem, 100vw" loading="lazy" /></div><figcaption lang="en" dir="ltr">{ph.credit} · <a href={ph.commons}>Wikimedia Commons</a></figcaption></figure>@@ -122,8 +157,12 @@ const sensitiveCount = list.filter((e) => e.status === 'sensitivity-reviewed').l</article>);})}+ </details></section>- ))}+ );+ })}+ </div>+ </div><section class="how prose" aria-labelledby="how"><h2 id="how">{he ? 'איך זה עובד במשחק' : 'How it works in the game'}</h2>@@ -157,8 +196,40 @@ const sensitiveCount = list.filter((e) => e.status === 'sensitivity-reviewed').l.note { color: var(--ink-dim); font-size: 0.95em; border-block-start: 1px solid var(--gold-faint); padding-block-start: 0.8rem; }.years { position: sticky; inset-block-start: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem; background: var(--navy-deep); border-block: 1px solid var(--gold-faint); margin-block-end: 1rem; }.years a { color: var(--gold-light); text-decoration: none; font-weight: 600; }- .year-title { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); color: var(--gold); margin-block: 2.5rem 1rem; border-block-end: 1px solid var(--gold-faint); padding-block-end: 0.3rem; }- .event { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); padding-block: 1.75rem; border-block-end: 1px solid var(--navy-line); }+ .years .rc { color: var(--ink-dim); font-weight: 400; font-size: 0.85em; }+ .years a.on .ry { color: var(--ink); }+ .years a.on { box-shadow: inset 0 -2px 0 var(--gold); }+ /* Desktop: the rail stands beside the years, like the game's left column. */+ @media (min-width: 72rem) {+ .chron { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }+ .years { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; border-block: 0; border-inline-end: 1px solid var(--gold-faint); inset-block-start: calc(var(--header-h) + 1.5rem); margin-block-start: 3rem; background: none; }+ .years a { display: flex; justify-content: space-between; align-items: baseline; padding: 0.55rem 1rem 0.55rem 0; padding-inline: 0 1rem; border-block-end: 1px solid var(--navy-line); }+ .years .ry { font-size: 1.6rem; line-height: 1; }+ .years a.on { box-shadow: inset -3px 0 0 var(--gold); }+ [dir='rtl'] .years a.on { box-shadow: inset 3px 0 0 var(--gold); }+ .years .r-how { font-size: 0.9rem; font-weight: 500; border-block-end: 0; }+ }+ .year-events > summary { cursor: pointer; list-style: none; text-align: center; padding: 0.7rem 1rem; margin-block: 0.75rem 0.5rem; border: 1px solid var(--gold-dim); color: var(--gold-light); font-weight: 600; background: var(--navy-solid); }+ .year-events > summary::-webkit-details-marker { display: none; }+ .year-events > summary:hover { border-color: var(--gold); }+ .year-events[open] .when-closed, .year-events:not([open]) .when-open { display: none; }+ /* Proposal: each year is a title card, Civ VI's expansion lockup applied to time: a large numeral on the grain+ texture, with the plaque under it and a gilt seam above. */+ /* Proposal v2: the year card is a picture band: the year's first archival photograph, darkened, under the numeral. */+ .year-card { margin-block: 3rem 0; text-align: center; display: grid; }+ .year-card > * { grid-area: 1 / 1; }+ .year-banner { margin: 0; }+ .year-banner .media-frame { block-size: clamp(12rem, 22vw, 17rem); }+ .year-banner .media-frame :global(picture), .year-banner .media-frame :global(img) { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(0.2) brightness(0.55); }+ .year-banner .media-frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 70% at 50% 50%, rgba(9, 14, 26, 0.88), rgba(9, 14, 26, 0.45) 75%, rgba(9, 14, 26, 0.3)); }+ .year-banner figcaption { position: absolute; inset-block-end: 0.35rem; inset-inline-end: 0.6rem; font-size: 0.72rem; padding: 0.1rem 0.4rem; background: rgba(9, 14, 26, 0.85); color: var(--ink-dim); }+ .year-card { position: relative; }+ .year-text { align-self: center; position: relative; z-index: 2; padding: 1.5rem 1rem; pointer-events: none; }+ .year-card:not(:has(.year-banner)) .year-text { background-color: var(--navy-solid); background-image: var(--grain); border: 1px solid var(--gold-faint); }+ .year-title { font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); color: var(--gold-light); margin: 0; letter-spacing: 0.08em; line-height: 1; }+ .year-count { margin: 0.6rem 0 0; color: var(--ink); font-size: 0.95rem; }+ :lang(he) .year-title { letter-spacing: 0; }+ .event { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); padding-block: 1.75rem; border-block-end: 1px solid var(--navy-line); }.event:not(:has(.event-photo)) .event-body { grid-column: 2; }@media (max-width: 60rem) {.event { grid-template-columns: 1fr; }@@ -177,4 +248,28 @@ const sensitiveCount = list.filter((e) => e.status === 'sensitivity-reviewed').l.sources ul { font-size: 0.9rem; margin-block: 0.6rem; padding-inline-start: 1.1rem; overflow-wrap: anywhere; }.sources p { font-size: 0.9rem; }.how { margin-block-start: 3rem; }+ .event-photo :global(img) { inline-size: 100%; }</style>++<script>+ // Open a year's list when a link targets the year or an event inside it, and mark the year in view on the rail.+ const openFor = (id: string) => {+ const el = id && document.getElementById(id);+ if (!el) return;+ const sec = el.closest<HTMLElement>('section.year');+ const d = sec?.querySelector<HTMLDetailsElement>('details.year-events');+ if (d && !d.open) { d.open = true; if (el.closest('details') === d) el.scrollIntoView(); }+ };+ openFor(decodeURIComponent(location.hash.slice(1)));+ window.addEventListener('hashchange', () => openFor(decodeURIComponent(location.hash.slice(1))));+ const rail = new Map([...document.querySelectorAll<HTMLAnchorElement>('.years a[data-year]')].map((a) => [a.dataset.year!, a]));+ if ('IntersectionObserver' in window) {+ const io = new IntersectionObserver((entries) => {+ for (const en of entries) if (en.isIntersecting) {+ for (const a of rail.values()) a.classList.remove('on');+ rail.get((en.target as HTMLElement).dataset.year!)?.classList.add('on');+ }+ }, { rootMargin: '-45% 0px -50% 0px' });+ document.querySelectorAll('section.year').forEach((s) => io.observe(s));+ }+</script>diff --git a/site/src/pages/[lang]/index.astro b/site/src/pages/[lang]/index.astroindex 33a5e0862..7a7750e29 100644--- a/site/src/pages/[lang]/index.astro+++ b/site/src/pages/[lang]/index.astro@@ -2,19 +2,19 @@import { getImage } from 'astro:assets';import Layout from '../../layouts/Layout.astro';import Figure from '../../components/Figure.astro';+import PersonPortrait from '../../components/PersonPortrait.astro';import VideoFacade from '../../components/VideoFacade.astro';import MediaLabel from '../../components/MediaLabel.astro';import { type Lang, languages, href, t, REPO, formatDate, asset } from '../../i18n/ui';-import { captures, capture, currentBuild, engine, flythrough, trailer, gameplay, captureDateIso } from '../../lib/media';+import { capture, engine, concept, flythrough, trailer, gameplay, gameplayVideo, captureDateIso, heroShot } from '../../lib/media';import { posts } from '../../lib/devlog';+import { roadmap, cabinet as cabinetPeople } from '../../lib/repo';export const getStaticPaths = () => languages.map((lang) => ({ params: { lang } }));const lang = Astro.params.lang as Lang;const he = lang === 'he';-const heroShot = captures[0];const mapShot = capture('build-m3-map.jpg');-const cabinet = capture('build-m3-cabinet.jpg');const why = capture('build-m3-why.jpg');const topdown = engine.find((e) => e.id === 'm2-topdown')!;// The hero is a real screenshot of the build (the LCP image): preloaded as AVIF, never lazy.@@ -22,7 +22,18 @@ const heroWidths = [800, 1200, 1568];const heroSizes = '100vw';const heroAvif = await getImage({ src: heroShot.src, widths: heroWidths, format: 'avif', quality: 70 });const heroWebp = await getImage({ src: heroShot.src, widths: heroWidths, format: 'webp', quality: 78 });-const latest = posts(lang)[0];+// The heartbeat strip: the release and the two newest devlog posts, from the same data as /devlog (proposal).+const recent = posts(lang).slice(0, 2);+const phases = roadmap(lang);+// Proposal v2: the cabinet strip (archival portraits from the game's own catalogue) and the promo 03 concept band.+const people = cabinetPeople();+const cabinetCount = people.length;+// The first six of the government, by office: a portrait where one may be shown, otherwise the lettered plate.+const ministers = people.filter((p) => p.group === 'government').slice(0, 6);+const target = concept.find((c) => c.id === 'gameplay-1936')!;+const stateWord = (s: string) => ({+ done: he ? 'הושלם' : 'Done', now: he ? 'בתהליך' : 'In progress', next: he ? 'הבא' : 'Next', later: he ? 'בהמשך' : 'Later',+} as Record<string, string>)[s];const abs = (p: string) => new URL(p, Astro.site).href;const poster = await getImage({ src: flythrough.poster, width: 1280, format: 'jpg' });@@ -66,13 +77,6 @@ const pitch = he: 'A turn-based grand-strategy game about governing Israel. You are the prime minister on 15 May 1948. The ministers are the real ones, the map is real, and every historical fact comes with a source.';const features = [- {- item: cabinet,- title: he ? 'שרים אמיתיים, קואליציה אמיתית' : 'Real ministers in a real coalition',- text: he- ? 'ממנים ומחליפים שרים אמיתיים, כמו דוד בן־גוריון, אליעזר קפלן ומשה שרת, בתוך קואליציה אמיתית. הפורטרטים הם צילומים בנחלת הכלל או ברישיון CC0.'- : 'Appoint and replace real ministers such as David Ben-Gurion, Eliezer Kaplan and Moshe Sharett, inside a real coalition. The portraits are public-domain or CC0 photographs.',- },{item: mapShot, crop: '100% 0%',title: he ? 'החלטות אמיתיות במועדן האמיתי' : 'Real decisions at their real dates',@@ -112,25 +116,17 @@ const missing = he<img src={heroWebp.src} srcset={heroWebp.srcSet.attribute} sizes={heroSizes} width={heroShot.src.width}height={heroShot.src.height} alt={heroShot.alt[lang]} fetchpriority="high" loading="eager" decoding="sync" /></picture>- {gameplay && (- <video class="hero-video" muted loop playsinline preload="none" aria-label={`${t(lang, 'hero.video')}: ${gameplay.alt[lang]}`} data-hero-video>- {gameplay.sources.map((s) => <source src={s.src} type={s.type} />)}- </video>- )}<figcaption class="hero-label">- {gameplay- ? <MediaLabel lang={lang} kind="engine" build={gameplay.build} gameplay />- : <MediaLabel lang={lang} kind="engine" build={currentBuild} />}- {gameplay && (- <button type="button" class="hero-pause" data-hero-pause- data-pause={t(lang, 'video.pause')} data-play={t(lang, 'video.resume')}>{t(lang, 'video.pause')}</button>- )}+ <MediaLabel lang={lang} kind="engine" build={heroShot.build} /></figcaption></figure><div class="hero-copy"><div class="wrap">- <h1 id="hero-title" lang="en">Statecraft: Israel</h1>- <p class="hero-pitch">{pitch}</p>+ <h1 id="hero-title" class="lockup" lang="en">+ <span class="lk-small">Statecraft<span class="visually-hidden">:</span></span>+ <span class="lk-big">Israel</span>+ </h1>+ <p class="lk-era plaque plaque-center"><span class="ltr">1948–1951</span></p><div class="btn-row"><a class="btn btn-primary" href={href(lang, 'play')}>{t(lang, 'cta.play')}</a><a class="btn" href={REPO}>{t(lang, 'cta.github')}</a>@@ -140,11 +136,23 @@ const missing = he</div></section>- <section class="section wrap" aria-labelledby="what">+ <aside class="heartbeat seam" aria-label={he ? 'מה חדש' : 'Latest'}>+ <div class="wrap hb">+ <p class="hb-item"><span class="hb-k">{he ? 'גרסה' : 'Release'}</span> {t(lang, 'version')}</p>+ {recent.map((p) => (+ <p class="hb-item"><span class="hb-k">{he ? 'יומן פיתוח' : 'Devlog'}</span>+ <time datetime={p.date}>{formatDate(lang, p.date)}</time>{' · '}<a href={`${href(lang, 'devlog')}#${p.slug}`}>{p.title}</a></p>+ ))}+ <p class="hb-item"><a href={`${href(lang, 'devlog')}rss.xml`} type="application/rss+xml">RSS</a></p>+ </div>+ </aside>++ <section class="section band-grain seam" aria-labelledby="what"><div class="wrap">+ <p class="pitch">{pitch}</p><div class="split"><div class="prose"><span class="eyebrow">{he ? 'על מה המשחק' : 'What it is'}</span>- <h2 id="what">{he ? 'אתם בכיסא ראש הממשלה מיום הקמת המדינה' : 'You sit in the prime minister’s chair from the founding of the state'}</h2>+ <h2 id="what" class="plaque">{he ? 'אתם בכיסא ראש הממשלה מיום הקמת המדינה' : 'You sit in the prime minister’s chair from the founding of the state'}</h2>{he ? (<p>בכל תור אתם ממנים ומחליפים שרים אמיתיים בתוך קואליציה אמיתית, מחלקים תקציב זעום בין ביטחון, קליטת עלייה, המעברות והצנע, מנהלים את הביטחון על סולם הסלמה בן חמש דרגות, מאיומים שגרתיים ועד מלחמה כוללת, ומכריעים בהחלטות אמיתיות במועדן האמיתי.</p>) : (@@ -162,36 +170,24 @@ const missing = he<ul>{missing.map((w) => <li>{w}</li>)}</ul></div></div>- </section>+ </div></section>-{!gameplay && (- <section class="section wrap" aria-labelledby="footage">+ {/* The real gameplay clip, behind a click: the hero is now a clean still, so the first screen loads no video. */}+ <section class="section" aria-labelledby="footage"><div class="wrap"><div class="section-head"><span class="eyebrow">{he ? 'צילום מתוך המשחק' : 'In-engine footage'}</span>- <h2 id="footage">{he ? 'המפה, מהנגב ועד חיפה' : 'The map, from the Negev to Haifa'}</h2>+ <h2 id="footage" class="plaque">{gameplayVideo ? (he ? 'כך זה נראה כשמשחקים' : 'What playing looks like') : (he ? 'המפה, מהנגב ועד חיפה' : 'The map, from the Negev to Haifa')}</h2><p>{he? 'הסרטון הראשון באתר מצולם מתוך המשחק עצמו. הטריילר הקולנועי, שנוצר בכלי בינה מלאכותית, מופיע אחריו עם תווית משלו.': 'The first video on this site is recorded in the game itself. The cinematic trailer, made with AI tools, follows below under its own label.'}</p></div>- <VideoFacade video={flythrough} lang={lang} />- </section>-)}-- <section class="section wrap promo" aria-labelledby="promo">- <div class="section-head">- <span class="label label-cinematic">{t(lang, 'label.cinematic')}</span>- <h2 id="promo">{he ? 'הטריילר' : 'The trailer'}</h2>- <p>{he- ? 'סיפור על התקופה שנוצר בכלי וידאו של בינה מלאכותית מאמנות הקונספט שלנו. זה אינו צילום מהמשחק: את המשחק עצמו רואים בצילומים שלמעלה ובעמוד המדיה.'- : 'A story about the era, made with AI video tools from our concept art. It is not gameplay: the game itself is in the captures above and on the Media page.'}</p>- </div>- <VideoFacade video={trailer} lang={lang} />- </section>+ <VideoFacade video={gameplayVideo ?? flythrough} lang={lang} />+ </div></section>- <section class="section wrap" aria-labelledby="features">+ <section class="section" aria-labelledby="features"><div class="wrap"><div class="section-head"><span class="eyebrow">{he ? 'במשחק' : 'In the game'}</span>- <h2 id="features">{he ? 'מה עושים בכל תור' : 'What you do each turn'}</h2>+ <h2 id="features" class="plaque">{he ? 'מה עושים בכל תור' : 'What you do each turn'}</h2></div><div class="features">{features.map((f) => (@@ -205,13 +201,55 @@ const missing = he</article>))}</div>+ </div></section>++ <section class="section band-grain" aria-labelledby="cabinet"><div class="wrap">+ <div class="section-head">+ <span class="eyebrow">{he ? 'השרים' : 'The ministers'}</span>+ <h2 id="cabinet" class="plaque">{he ? 'ממשלה אמיתית, שר אחר שר' : 'A real cabinet, minister by minister'}</h2>+ <p>{he+ ? 'צילומי ארכיון של השרים שמהם מרכיבים את הממשלה במשחק. בעמוד הממשלה יש כרטיס לכל אחד: התפקידים והתאריכים עם המקורות, ומה המשחק עושה איתו.'+ : 'Archival photographs of the ministers you build the government from. The Cabinet page has a card for each: the offices and dates with their sources, and what the game does with them.'}</p>+ </div>+ <div class="cab-strip">+ {ministers.map((p) => (+ <div class="cab-card">+ <PersonPortrait person={p} lang={lang} sizes="(min-width: 76rem) 14rem, 45vw" />+ <p class="cab-name"><a href={`${href(lang, 'cabinet')}#${p.id}`}>{he ? p.name_he : p.name}</a>+ <span class="cab-office">{he && !p.terms[0].title.he ? <span lang="en" dir="ltr">{p.terms[0].title.en}</span> : (he ? p.terms[0].title.he : p.terms[0].title.en)}</span></p>+ </div>+ ))}+ </div>+ <p class="cab-more"><a class="btn" href={href(lang, 'cabinet')}>{he ? `כל ${cabinetCount} נושאי המשרה` : `All ${cabinetCount} office holders`}</a></p>+ </div></section>++ <section class="concept-band seam" aria-labelledby="target">+ <div class="wrap section-head">+ <span class="label label-concept">{t(lang, 'label.concept')}</span>+ <h2 id="target" class="plaque">{he ? 'המראה שאליו אנחנו שואפים' : 'The look we are building toward'}</h2>+ <p>{he+ ? 'אמנות קונספט שנוצרה בבינה מלאכותית: יעד חזותי, לא הגרסה הנוכחית. יש בה דברים שאין במשחק. את המשחק עצמו רואים בצילומים שלמעלה.'+ : 'Concept art made with AI: a visual target, not the current build. It shows things the game does not have. The game itself is in the captures above.'}</p>+ </div>+ <Figure item={target} lang={lang} sizes="100vw" widths={[800, 1200, 1600, 2400]} class="band-figure" /></section>- <section class="section wrap" aria-labelledby="next">+ <section class="section promo seam" aria-labelledby="promo"><div class="wrap">+ <div class="section-head">+ <span class="label label-cinematic">{t(lang, 'label.cinematic')}</span>+ <h2 id="promo" class="plaque">{he ? 'הטריילר' : 'The trailer'}</h2>+ <p>{he+ ? 'סיפור על התקופה שנוצר בכלי וידאו של בינה מלאכותית מאמנות הקונספט שלנו. זה אינו צילום מהמשחק: את המשחק עצמו רואים בצילומים שלמעלה ובעמוד המדיה.'+ : 'A story about the era, made with AI video tools from our concept art. It is not gameplay: the game itself is in the captures above and on the Media page.'}</p>+ </div>+ <VideoFacade video={trailer} lang={lang} />+ </div></section>++ <section class="section band-grain" aria-labelledby="next"><div class="wrap"><div class="split"><div class="prose"><span class="eyebrow">{he ? 'לאן זה הולך' : 'Where it is going'}</span>- <h2 id="next">{he ? 'עיצוב חדש, עדיין בעבודה' : 'A new design, still in progress'}</h2>+ <h2 id="next" class="plaque">{he ? 'עיצוב חדש, עדיין בעבודה' : 'A new design, still in progress'}</h2>{he ? (<><p>מסמך עיצוב המשחק של הבעלים, GDD v0.1 מ־12 באוקטובר 2026, הוא העיצוב המחייב. הוא מתאר תורות חודשיים, יחידות, ערים, עבודת חלוצים ושלוש מטרות לשנים 1948 עד 1951. רבים מהכללים בו עדיין מסומנים כפתוחים, ובגרסה שאפשר לשחק בה הם עוד לא קיימים.</p>@@ -225,21 +263,28 @@ const missing = he)}<p><a href={`${REPO}/blob/main/docs/GDD.md`}>{he ? 'מסמך העיצוב (GDD, באנגלית)' : 'The design document (GDD)'}</a></p></div>- {latest && (- <article class="panel latest">- <span class="eyebrow">{he ? 'מיומן הפיתוח' : 'From the devlog'}</span>- <h3><a href={`${href(lang, 'devlog')}#${latest.slug}`}>{latest.title}</a></h3>- <p class="muted"><time datetime={latest.date}>{formatDate(lang, latest.date)}</time></p>- <p>{latest.summary}</p>- </article>- )}+ <div class="panel roadmap">+ <span class="eyebrow">{he ? 'מפת הדרכים' : 'Roadmap'}</span>+ <h3>{he ? 'ה־MVP של 1948 עד 1951' : 'The 1948 to 1951 MVP'}</h3>+ <ol class="phases">+ <li class="ph ph-done"><span class="ph-mark" aria-hidden="true"></span>+ <span class="ph-what">{t(lang, 'version')}</span><span class="ph-state">{stateWord('done')}</span></li>+ {phases.map((p) => (+ <li class={`ph ph-${p.state}`}><span class="ph-mark" aria-hidden="true"></span>+ <span class="ph-what"><span class="ph-n">{he ? `שלב ${p.n}` : `Phase ${p.n}`}</span> · {p.what.map((w) => w.href ? <a href={w.href}>{w.text}</a> : w.text)}</span>+ <span class="ph-state">{p.state === 'now' ? p.status : stateWord(p.state)} · <a href={p.url}>{p.issue}</a></span></li>+ ))}+ </ol>+ <p class="muted ph-note">{he ? 'מתוך טבלת מפת הדרכים ב־README. מפת הדרכים אינה קובעת תאריכים.' : 'From the roadmap table in the README. The roadmap sets no dates.'}+ {' '}<a href={`${REPO}/issues/374`}>#374</a></p>+ </div></div>- </section>+ </div></section>- <section class="section wrap honest" aria-labelledby="honest">+ <section class="section honest" aria-labelledby="honest"><div class="wrap"><div class="section-head"><span class="eyebrow">{he ? 'בגלוי' : 'In the open'}</span>- <h2 id="honest">{he ? 'מה אמיתי ומה לא' : 'What is real and what is not'}</h2>+ <h2 id="honest" class="plaque">{he ? 'מה אמיתי ומה לא' : 'What is real and what is not'}</h2></div><div class="cards3"><div class="panel">@@ -264,10 +309,10 @@ const missing = he<a href={href(lang, 'how-we-make-it')}>{t(lang, 'nav.how')}</a></div></div>- </section>+ </div></section>- <section class="section wrap closing" aria-labelledby="join">- <h2 id="join">{he ? 'להשתתף' : 'Take part'}</h2>+ <section class="section band-grain closing" aria-labelledby="join"><div class="wrap">+ <h2 id="join" class="plaque">{he ? 'להשתתף' : 'Take part'}</h2><p class="muted prose">{he? 'שאלות ורעיונות נכנסים לדיונים ב־GitHub, ובאגים וטעויות היסטוריות לרשימת הבעיות. מתכנתים, היסטוריונים, אמנים, מעצבי משחק, כותבים ומתרגמים מוזמנים.': 'Questions and ideas go in GitHub Discussions; bugs and historical errors go in the issue tracker. Programmers, historians, artists, game designers, writers and translators are welcome.'}</p>@@ -277,67 +322,104 @@ const missing = he<a class="btn" href={`${REPO}/discussions`}>{he ? 'דיונים' : 'Discussions'}</a><a class="btn" href={`${REPO}/issues/new?template=historical_accuracy.yml`}>{he ? 'דיווח על טעות היסטורית' : 'Report a historical error'}</a></div>- </section>+ </div></section>+</Layout><style>.hero { position: relative; background: var(--navy-deep); }.hero-media { margin: 0; position: relative; }- .hero-media img { inline-size: 100%; block-size: min(calc(100svh - var(--header-h)), 56.25vw); min-block-size: 22rem; object-fit: cover; object-position: 50% 30%; }+ /* Proposal v2: the key-art hero. The real build fills the first screen, as Civ's key art does, with the lockup centred+ at the bottom over a gradient to navy and one gold button. The pitch moves to the band below. */+ .hero-media img { inline-size: 100%; block-size: min(calc(100svh - var(--header-h)), 56.25vw); min-block-size: 30rem; object-fit: cover; object-position: 50% 30%; } /* 16:9 at most, so the game's own HUD is never cut */.hero-label { position: absolute; inset-block-end: 1.1rem; inset-inline-end: var(--gutter); padding: 0; z-index: 3; display: flex; gap: 0.5rem; align-items: center; }- .hero-video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; }- .hero-video.on { opacity: 1; }- .hero-pause { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: rgba(9, 14, 26, 0.92); border: 1px solid var(--gold-dim); border-radius: 2px; padding: 0.25em 0.8em; cursor: pointer; min-block-size: 2rem; }- .hero-pause:hover { border-color: var(--gold); color: var(--gold-light); }.hero-label :global(.label) { background: rgba(9, 14, 26, 0.92); margin: 0; font-size: 0.85rem; }.hero-copy {- position: absolute; inset-inline: 0; inset-block-end: 0; padding-block: 7rem 3.5rem;- background: linear-gradient(to top, rgba(9, 14, 26, 0.97) 0%, rgba(9, 14, 26, 0.9) 45%, rgba(9, 14, 26, 0) 100%);+ position: absolute; inset-inline: 0; inset-block-end: 0; padding-block: 6rem 3rem;+ /* The lockup sits higher than the old h1, so the scrim stays dark further up (checked at the brightest sand). */+ background: linear-gradient(to top, rgba(9, 14, 26, 0.97) 0%, rgba(9, 14, 26, 0.92) 68%, rgba(9, 14, 26, 0.78) 84%, rgba(9, 14, 26, 0) 100%);}- .hero-copy .wrap > * { max-inline-size: 44rem; }- .hero-copy h1 { margin-block-end: 0.35em; letter-spacing: 0.04em; font-family: var(--serif); }- .hero-pitch { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; margin-block-end: 1.25rem; }+ .hero-copy .wrap { text-align: center; }+ .hero-copy .wrap > * { max-inline-size: 48rem; margin-inline: auto; }+ .hero-copy .btn-row { justify-content: center; }+ .hero-copy .btn { font-size: 1.1rem; padding-inline: 1.8em; min-block-size: 3.1rem; }+ .hero-label { inset-block-start: auto; }+ /* Proposal: the title lockup, in live text (Civ sets its lockup as an image inside an h1). STATECRAFT small and+ spaced above a large ISRAEL in gilt, then the era. The h1 is English on both pages, so its letter-spacing never+ touches Hebrew; the era line is digits only. */+ .lockup { margin-block-end: 0.15em; font-family: var(--serif); line-height: 1; }+ .lk-small { display: block; text-shadow: 0 1px 2px rgba(9, 14, 26, 0.9); font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.3rem); letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-block-end: 0.2em; }+ .lk-big {+ display: block; font-size: clamp(3.1rem, 1.9rem + 5.2vw, 6.4rem); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600;+ color: var(--gold-light);+ background: linear-gradient(180deg, var(--gold-light) 0%, #f3e2b4 38%, #d8b874 62%, var(--gold-light) 100%);+ -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;+ filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55));+ }+ @media (forced-colors: active) { .lk-big { background: none; -webkit-text-fill-color: currentColor; filter: none; } }+ .lk-era { font-size: 1rem; letter-spacing: 0.3em; color: var(--gold-light); font-weight: 600; margin-block-end: 1.1rem; }+ .lk-era::after { inline-size: min(16.25rem, 60%); }+ :lang(he) .lk-era { letter-spacing: 0; } /* the rule is no letter-spacing on Hebrew pages; the range is wrapped in .ltr */+ .pitch { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.45; text-align: center; max-inline-size: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); color: var(--ink); text-wrap: balance; }.hero-version { margin: 1rem 0 0; color: var(--ink-dim); font-size: 0.95rem; }.hero-version span { color: var(--gold-light); }@media (max-width: 48rem) {- .hero-media img { block-size: auto; min-block-size: 0; aspect-ratio: 16 / 9; }+ .hero-media img { block-size: auto; min-block-size: 0; max-block-size: none; aspect-ratio: 4 / 3; object-position: 38% 50%; }.hero-copy { position: static; background: var(--navy-deep); padding-block: 1.5rem 2rem; }- .hero-label { inset-block-end: 0.5rem; inset-inline-end: 0.5rem; }+ /* The label and the pause button leave the picture on phones: a caption bar under it, on one line each,+ instead of a pill that wrapped into three columns over the video (the 390px bug). */+ .hero-label { position: static; justify-content: space-between; padding: 0.5rem var(--gutter); background: var(--navy-solid); border-block-end: 1px solid var(--gold-faint); }+ .hero-label :global(.label) { min-inline-size: 0; }+ .hero-label :global(.label) { font-size: 0.8rem; }}+ .heartbeat { background: var(--navy-solid); border-block-end: 0; }+ .hb { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; padding-block: 0.9rem; font-size: 0.9rem; color: var(--ink-dim); }+ .hb-item { margin: 0; }+ .hb-k { color: var(--gold); font-weight: 600; margin-inline-end: 0.4em; }+ .hb a { color: var(--ink); }.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }.status ul { padding-inline-start: 1.2rem; font-size: 0.97em; }.status h3 { font-size: 1.15rem; color: var(--gold-light); }- .features { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }- .feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }+ /* Larger imagery: the feature pictures take about two thirds of a wider column. */+ .features { display: grid; gap: clamp(3rem, 7vw, 6rem); }+ .feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); align-items: center; }+ .feature-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }.feature:nth-child(even) > :global(figure) { order: 2; }+ .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }.feature :global(.crop .media-frame img) { aspect-ratio: 4 / 3; object-fit: cover; }.feature-text p { color: var(--ink-dim); }@media (max-width: 48rem) {- .feature { grid-template-columns: 1fr; }+ .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }.feature:nth-child(even) > :global(figure) { order: 0; }}+ .cab-strip { display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }+ @media (min-width: 40rem) { .cab-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }+ @media (min-width: 64rem) { .cab-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }+ .cab-card :global(.label) { font-size: 0.7rem; }+ .cab-card :global(.credit) { font-size: 0.66rem; }+ .cab-name { display: grid; text-align: center; margin-block-start: 0.4rem; }+ .cab-name a { font-size: 1.1rem; color: var(--ink); text-decoration: none; }+ .cab-name a:hover, .cab-name a:focus-visible { color: var(--gold-light); text-decoration: underline; }+ .cab-office { color: var(--ink-dim); font-size: 0.9rem; }+ .cab-more { text-align: center; margin-block-start: 2rem; }+ /* The promo 03 band: once, edge to edge, with its label on the picture and in the heading, and the AI mark. */+ .concept-band { padding-block: clamp(3rem, 7vw, 5.5rem) 0; background: var(--navy-deep); }+ .concept-band :global(.band-figure .media-frame) { border-inline: 0; box-shadow: none; border-block: 1px solid var(--gold-dim); }+ .concept-band :global(.band-figure figcaption) { max-inline-size: var(--wide); margin-inline: auto; padding: 0.6rem var(--gutter) 0; }.cards3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }.cards3 p { color: var(--ink-dim); font-size: 0.97em; }- .latest h3 a { color: var(--ink); text-decoration: none; }- .latest h3 a:hover { color: var(--gold-light); }+ .phases { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.15rem; }+ .ph { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0 0.5rem; padding-block: 0.4rem; border-block-end: 1px solid var(--navy-line); font-size: 0.95em; }+ .ph-what { grid-column: 2; }+ .ph-state { grid-column: 2; font-size: 0.85rem; color: var(--ink-dim); }+ .ph-n { color: var(--gold-light); font-weight: 600; }+ .ph-mark { grid-row: 1 / span 2; inline-size: 0.8rem; block-size: 0.8rem; margin-block-start: 0.45rem; transform: rotate(45deg); border: 1.5px solid var(--gold-dim); }+ .ph-done .ph-mark { background: var(--gold); border-color: var(--gold); }+ .ph-now .ph-mark { border-color: var(--gold-light); background: linear-gradient(135deg, var(--gold-light) 50%, transparent 50%); }+ .ph-done .ph-what, .ph-now .ph-what { color: var(--ink); }+ .ph-next .ph-what, .ph-later .ph-what { color: var(--ink-dim); }+ .ph-note { font-size: 0.9rem; margin: 0; }.closing .btn-row { margin-block-start: 1.25rem; }</style>-<script>- // The hero loop: real gameplay, muted. It starts only after the page has loaded (the still stays the LCP image), never- // under prefers-reduced-motion, and the button pauses and resumes it (WCAG 2.2.2).- const video = document.querySelector<HTMLVideoElement>('[data-hero-video]');- const button = document.querySelector<HTMLButtonElement>('[data-hero-pause]');- if (video && button) {- const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;- const show = (playing: boolean) => {- button.textContent = playing ? button.dataset.pause! : button.dataset.play!;- };- const start = () => { video.preload = 'auto'; video.play().then(() => { video.classList.add('on'); show(true); }).catch(() => show(false)); };- button.addEventListener('click', () => { if (video.paused) start(); else { video.pause(); show(false); } });- if (reduce) show(false);- else if (document.readyState === 'complete') start();- else window.addEventListener('load', start, { once: true });- }-</script>diff --git a/site/src/pages/[lang]/media.astro b/site/src/pages/[lang]/media.astroindex 29eddebb4..c9e75114c 100644--- a/site/src/pages/[lang]/media.astro+++ b/site/src/pages/[lang]/media.astro@@ -30,47 +30,47 @@ const firstSizes = '(min-width: 76rem) 36rem, (min-width: 48rem) 50vw, 100vw';<section class="section-g" aria-labelledby="engine"><div class="g-head"><span class="label label-engine">{t(lang, 'label.engine')}</span>- <h2 id="engine">{he ? 'מתוך המשחק' : 'In-engine captures'}</h2>+ <h2 id="engine" class="plaque">{he ? 'מתוך המשחק' : 'In-engine captures'}</h2><p>{he? 'צילומי מסך והקלטות אמיתיים מהגרסאות של המשחק, עם הגרסה והתאריך. היישובים והעצים הם עדיין אמנות זמנית.': 'Real screenshots and recordings from the game’s builds, with the build and the date. Settlements and trees are still placeholder art.'}</p></div><div class="gallery">- {engine.map((item, i) => <Figure item={item} lang={lang} eager={i === 0} />)}+ {engine.map((item, i) => <Figure item={item} lang={lang} eager={i === 0} sizes={firstSizes} />)}</div>{gameplayVideo && (<div class="video-row">- <VideoFacade video={gameplayVideo} lang={lang} sizes="(min-width: 76rem) 48rem, 100vw" />+ <VideoFacade video={gameplayVideo} lang={lang} sizes="(min-width: 76rem) 64rem, 100vw" /></div>)}<div class="video-row">- <VideoFacade video={flythrough} lang={lang} sizes="(min-width: 76rem) 48rem, 100vw" />+ <VideoFacade video={flythrough} lang={lang} sizes="(min-width: 76rem) 64rem, 100vw" /></div></section><section class="section-g" aria-labelledby="concept"><div class="g-head"><span class="label label-concept">{t(lang, 'label.concept')}</span>- <h2 id="concept">{he ? 'אמנות קונספט' : 'Concept art'}</h2>+ <h2 id="concept" class="plaque">{he ? 'אמנות קונספט' : 'Concept art'}</h2><p>{he? 'התמונות האלה נוצרו בבינה מלאכותית (ElevenLabs Image API: GPT Image 2.5 ו־Nano Banana Pro). הן מראות את המראה שאליו אנחנו שואפים, לא את הגרסה הנוכחית, ויש בהן דברים, שנים ומסכים שאין במשחק. בשתיים מהן מופיעות דמויות של שרים אמיתיים שנוצרו בבינה מלאכותית לפי צילומים בנחלת הכלל; הן אינן צילומים, ואינן בשימוש במשחק.': 'These images were made with AI (ElevenLabs Image API: GPT Image 2.5 and Nano Banana Pro). They show the look we are building toward, not the current build, and they show things, years and screens the game does not have. Two show AI likenesses of real ministers made from public-domain photographs; they are not photographs and are not used in the game.'}</p></div><div class="gallery">- {concept.map((item) => <Figure item={item} lang={lang} />)}+ {concept.map((item) => <Figure item={item} lang={lang} sizes={firstSizes} />)}</div></section><section class="section-g" aria-labelledby="cinematic"><div class="g-head"><span class="label label-cinematic">{t(lang, 'label.cinematic')}</span>- <h2 id="cinematic">{he ? 'פרומו קולנועי' : 'Cinematic promo'}</h2>+ <h2 id="cinematic" class="plaque">{he ? 'פרומו קולנועי' : 'Cinematic promo'}</h2><p>{he? 'הטריילר נוצר בכלי וידאו של בינה מלאכותית מאמנות הקונספט שלנו. זה סיפור על התקופה, לא תצוגה מקדימה של המשחק: אין בו שום צילום מתוך המשחק.': 'The trailer was made with AI video tools from our concept art. It is a story about the era, not a preview of the game: none of it is in-game footage.'}</p></div><div class="video-row">- <VideoFacade video={trailer} lang={lang} sizes="(min-width: 76rem) 48rem, 100vw" />+ <VideoFacade video={trailer} lang={lang} sizes="(min-width: 76rem) 64rem, 100vw" /></div></section>@@ -79,9 +79,13 @@ const firstSizes = '(min-width: 76rem) 36rem, (min-width: 48rem) 50vw, 100vw';</Layout><style>.section-g { padding-block: 1rem 3rem; }- .section-g + .section-g { border-block-start: 1px solid var(--gold-faint); padding-block-start: 2.5rem; }+ .section-g + .section-g { position: relative; padding-block-start: 3rem; }+ /* Proposal: the gilt seam between the three galleries. */+ .section-g + .section-g::before { content: ''; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 6px; transform: translateY(-50%); background: var(--gilt-band); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(0, 0, 0, 0.6); }.g-head { max-inline-size: var(--measure); margin-block-end: 1.5rem; }.g-head h2 { margin-block: 0.6rem 0.5rem; }.g-head p { color: var(--ink-dim); }- .video-row { max-inline-size: 48rem; margin-block-start: 2rem; }+ .video-row { max-inline-size: 64rem; margin-block-start: 2.5rem; }+ /* Proposal v2: larger imagery, two pictures a row on a desktop instead of three. */+ .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }</style>diff --git a/site/src/styles/global.css b/site/src/styles/global.cssindex 4eafcd3e4..de04783ce 100644--- a/site/src/styles/global.css+++ b/site/src/styles/global.css@@ -21,6 +21,16 @@--gutter: clamp(1rem, 4vw, 2.5rem);--wide: 76rem;--header-h: 3.75rem;+ /* Ornament (proposal, after Civ VI's gilt rule and plaque, drawn in CSS and inline SVG instead of PNGs).+ The seam is symmetric, so it needs no RTL variant. */+ --umber: rgb(104, 62, 22);+ --gilt-band: linear-gradient(180deg, rgba(255, 244, 214, 0.55), rgba(255, 244, 214, 0) 45%, rgba(0, 0, 0, 0.35)),+ linear-gradient(90deg, #6e5426, var(--gold) 18%, var(--gold-light) 50%, var(--gold) 82%, #6e5426);+ --plaque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 12'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c4a05c' stop-opacity='0'/%3E%3Cstop offset='.36' stop-color='%23c4a05c'/%3E%3Cstop offset='.5' stop-color='%23e8cc8e'/%3E%3Cstop offset='.64' stop-color='%23c4a05c'/%3E%3Cstop offset='1' stop-color='%23c4a05c' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 6L116 4.2L130 0L144 4.2L260 6L144 7.8L130 12L116 7.8Z' fill='url(%23g)'/%3E%3Cpath d='M130 3.2L132.8 6L130 8.8L127.2 6Z' fill='%23090e1a'/%3E%3C/svg%3E");+ /* A fine plaster grain in gilt, about 3% over the panel navy. Text on it is checked at its+ lightest pixel (proposal: 7:1 or better for --ink). A soft lamp-light glow does the mottling; an SVG mottle tiled+ with visible seams. */+ --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .91 0 0 0 0 .8 0 0 0 0 .56 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");}:root:lang(he) { --body: var(--serif-he); }@@ -75,21 +85,28 @@ th { color: var(--gold); font-weight: 600; }.prose h3 { margin-block-start: 1.6rem; }.prose li + li { margin-block-start: 0.3em; }.page { padding-block: clamp(2rem, 5vw, 4rem) 4rem; }-.page-head { border-block-end: 1px solid var(--gold-faint); padding-block-end: 1.5rem; margin-block-end: 2rem; }+.page-head { padding-block-end: 1.5rem; margin-block-end: 2rem; }+/* Proposal: every page title carries the plaque instead of a hairline under the header block. */+.page-head h1::after { content: ''; display: block; inline-size: min(16.25rem, 70%); block-size: 0.75rem; margin-block-start: 0.6rem; background: var(--plaque) no-repeat center / 100% 100%; }.page-head p { color: var(--ink-dim); max-inline-size: var(--measure); margin: 0; }.lede { font-size: 1.15em; color: var(--ink); }.muted { color: var(--ink-dim); }.ltr { direction: ltr; unicode-bidi: isolate; }/* Buttons: the game's gold-bordered panel buttons. */+/* Proposal: an engraved double rule, after Civ VI's 3px gold border plus a dark inset line. The outer gold border,+ a navy gap and a thin inner gilt line on the plain button; a dark inner line on the gold one. Hover turns the gold+ button burnt umber with cream text (contrast 7.25:1), as Civ VI's gold turns brown. */.btn {display: inline-flex; align-items: center; gap: 0.5em; min-block-size: 2.75rem; padding: 0.55em 1.3em;- border: 1px solid var(--gold); border-radius: 2px; color: var(--ink); background: rgba(9, 14, 26, 0.7);+ border: 2px solid var(--gold); border-radius: 1px; color: var(--ink); background: rgba(9, 14, 26, 0.7);+ box-shadow: inset 0 0 0 2px var(--navy-deep), inset 0 0 0 3px var(--gold-dim);text-decoration: none; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2;}-.btn:hover { background: var(--navy-raised); color: var(--gold-light); }-.btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }-.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }+.btn:hover { background: var(--navy-raised); color: var(--gold-light); box-shadow: inset 0 0 0 2px var(--navy-deep), inset 0 0 0 3px var(--gold); }+.btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 3px rgba(9, 14, 26, 0.5); }+.btn-primary:hover { background: var(--umber); color: var(--ink); box-shadow: inset 0 0 0 2px var(--umber), inset 0 0 0 3px var(--gold-light); }+:lang(he) .btn { letter-spacing: 0; }.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }/* Panels with the game's gold corner frame. */@@ -139,7 +156,7 @@ th { color: var(--gold); font-weight: 600; }@media (max-width: 26rem) { .header-actions .btn { display: none; } }/* Footer */-.site-footer { border-block-start: 1px solid var(--gold-faint); background: var(--navy-solid); padding-block: 2.5rem; color: var(--ink-dim); font-size: 0.95rem; }+.site-footer { position: relative; background: var(--navy-solid); padding-block: 2.5rem; color: var(--ink-dim); font-size: 0.95rem; }.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }.site-footer ul { list-style: none; padding: 0; margin: 0; }.site-footer li { margin-block: 0.3rem; }@@ -148,7 +165,10 @@ th { color: var(--gold); font-weight: 600; }/* Media labels: on every image and video, in both languages, where it appears. */.media { margin: 0; }-.media-frame { position: relative; background: var(--navy-solid); border: 1px solid var(--gold-dim); overflow: hidden; }+/* Proposal: a gilt picture frame, so a screenshot reads as one of the game's panels: a gold outer line, a 4px navy mat+ and the existing dim inner line. Box shadows take no layout space. */+.media-frame { position: relative; background: var(--navy-solid); border: 1px solid var(--gold-dim); overflow: hidden;+ box-shadow: 0 0 0 4px var(--navy-deep), 0 0 0 5px var(--gold), 0 6px 18px rgba(0, 0, 0, 0.45); }.media-frame img, .media-frame video { inline-size: 100%; }.media.portrait .media-frame { aspect-ratio: 16 / 9; }.media.portrait .media-frame picture { display: block; block-size: 100%; }@@ -160,6 +180,7 @@ th { color: var(--gold); font-weight: 600; }padding: 0.25em 0.6em; border-radius: 2px; letter-spacing: 0.01em; margin-block-end: 0.35rem;font-family: var(--body);}+:lang(he) .label { letter-spacing: 0; }.label::before { content: ''; inline-size: 0.55em; block-size: 0.55em; border-radius: 50%; background: currentColor; flex: none; }.label-engine { background: rgba(126, 196, 120, 0.14); color: rgb(166, 220, 160); border: 1px solid rgba(126, 196, 120, 0.45); }.label-concept { background: rgba(196, 160, 92, 0.14); color: var(--gold-light); border: 1px solid var(--gold-dim); }@@ -186,7 +207,26 @@ th { color: var(--gold); font-weight: 600; }/* Grids */.gallery { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }.section { padding-block: clamp(3rem, 7vw, 5.5rem); }-.section + .section { border-block-start: 1px solid var(--gold-faint); }+/* Proposal: the gilt seam. A 6px bevelled band that straddles the boundary between two sections (Civ VI's+ full-width divider), with a dark hairline on each side so it reads as metal set into the page. */+.section + .section, .seam { position: relative; }+.section + .section::before, .seam::before, .site-footer::before {+ content: ''; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 6px; transform: translateY(-50%);+ background: var(--gilt-band); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 1;+}+/* Full-width bands: the section spans the page and its content sits in an inner .wrap. */+.band { padding-block: clamp(3rem, 7vw, 5.5rem); }+.band-grain { background-color: var(--navy-solid); background-image: var(--grain), radial-gradient(ellipse 70% 90% at 25% 0%, rgba(196, 160, 92, 0.05), transparent 70%), radial-gradient(ellipse 60% 80% at 85% 100%, rgba(196, 160, 92, 0.04), transparent 70%); }+/* On the texture the dim text and the gold caps step up one shade, so they keep 7:1 at the grain's lightest pixel. */+.band-grain { --ink-dim: rgb(196, 190, 176); }+.band-grain .eyebrow { color: var(--gold-light); }+/* Proposal: the plaque. A tapered gilt bar with the HUD's diamond at its centre, under a section heading. */+.plaque::after {+ content: ''; display: block; inline-size: min(16.25rem, 70%); block-size: 0.75rem; margin-block-start: 0.55rem;+ background: var(--plaque) no-repeat center / 100% 100%;+}+.plaque-center { text-align: center; }+.plaque-center::after { margin-inline: auto; }.section-head { max-inline-size: var(--measure); margin-block-end: 2rem; }.section-head p { color: var(--ink-dim); }