pandorga 2.2.8 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/_layouts/home.html +13 -0
- data/assets/css/base.css +1 -0
- data/assets/css/ledger/home.css +445 -94
- data/examples/full/_config.yml +4 -0
- data/examples/minimal/_config.yml +3 -0
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/test-css-structure.rb +6 -2
- data/scripts/test/test-hero-16x9.rb +17 -20
- data/scripts/test/test-hero-name.rb +5 -1
- data/scripts/test/test-regression-gate.mjs +171 -13
- data/scripts/test/test-v3-layout.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da1a0fafdbcf941ba9a15f0877c748a06b92327b0c84de5250d9326accf5cb00
|
|
4
|
+
data.tar.gz: d32f3605f5ee46108e8b5ed196a08561f6a1a49d69123ee8aa3ee9635695d7de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7df59f7292fffda8fc3d4e2723b3303002f72720ed0d91800c895545466d05e4f52e5ac9f5ddd5e4e2f4db9cb9c3b44898e625301aeaf51b499f2b3a7b8ebdb
|
|
7
|
+
data.tar.gz: 70fc16c8eeed66f4d8cf9ad7f9e5041f5e4caf58796c4fdfc1c071fce140373f16061fcc06bf7c2e2bdba4ca6e4fcabaf7da7fd8566d459f7a7c3749357ddc65
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.3.1] — 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- CR-22.1: Home hero name uses approved B3 clamps (~35px@1024 / ~40px@1440 / stack clamp) and must fit inside the panel (PLT-AC-86); summary/tagline forced light on the photo (specificity over legend); desktop hero panel uses B3 aspect ratios 454/736 and 637/693 (PLT-AC-87); featured home posters keep 16:9 instead of stretching to content height; stronger bottom scrim for stack legibility.
|
|
10
|
+
|
|
11
|
+
## [2.3.0] — 2026-10-29
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- CR-22: Home hero B3 — portrait as centered spotlight background; desktop masthead places hero and Projects in two 50% content columns; stacked full-bleed hero below 1024px; config `pandorga.home.hero_overlay` (`vignette`, `pool`); gates PLT-AC-81…85. See [features/home-hero-b3.md](docs/features/home-hero-b3.md).
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- CR-21g (2.2.9): specimen card meta/copy/chips/CTAs restored to pre-2.2.7 sizes; inventory glyphs `calc(1.375rem + 6pt)`; title keeps −2pt (PLT-AC-80).
|
|
20
|
+
|
|
21
|
+
## [2.2.9] — 2026-10-29
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- CR-21g: Revert desktop home specimen card font-size -2pt reduction on meta line, description copy, chips/tags, and footer CTA buttons back to exact pre-2.2.7 token computed sizes (meta ~17.13px, copy ~18.93px, chips ~16.03px, foot CTAs ~16.03px) while keeping -2pt on the title (~24.64px). Reduce desktop (≥900px) inventory column icon glyph font-size by 2pt to `calc(1.375rem + 6pt)` (~32.2px). Mobile unchanged (PLT-AC-80).
|
|
26
|
+
|
|
5
27
|
## [2.2.8] — 2026-10-29
|
|
6
28
|
|
|
7
29
|
### Changed
|
data/_layouts/home.html
CHANGED
|
@@ -20,6 +20,19 @@ layout: shell
|
|
|
20
20
|
{%- assign _home_bands = site.data.pandorga_home_bands -%}
|
|
21
21
|
|
|
22
22
|
<main class="home-ledger">
|
|
23
|
+
{%- assign _hero_overlay = site.pandorga.home.hero_overlay -%}
|
|
24
|
+
{%- if _hero_overlay -%}
|
|
25
|
+
<style>
|
|
26
|
+
:root {
|
|
27
|
+
{%- if _hero_overlay.vignette -%}
|
|
28
|
+
--home-hero-vignette: {{ _hero_overlay.vignette }};
|
|
29
|
+
{%- endif -%}
|
|
30
|
+
{%- if _hero_overlay.pool -%}
|
|
31
|
+
--home-hero-pool: {{ _hero_overlay.pool }};
|
|
32
|
+
{%- endif -%}
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
35
|
+
{%- endif -%}
|
|
23
36
|
|
|
24
37
|
<section class="home-band home-band--hero">
|
|
25
38
|
<div class="home-hero-art home-hero-pandorga" aria-hidden="true">
|
data/assets/css/base.css
CHANGED
|
@@ -1478,6 +1478,7 @@ a.ledger-chip:hover {
|
|
|
1478
1478
|
width: 100%;
|
|
1479
1479
|
height: 100%;
|
|
1480
1480
|
object-fit: cover;
|
|
1481
|
+
object-position: center; /* CR-22 / PLT-AC-85: centered crops on home (and shared cards) */
|
|
1481
1482
|
display: block;
|
|
1482
1483
|
filter: saturate(0.92) contrast(1.02);
|
|
1483
1484
|
transition: filter var(--motion-duration-base) var(--motion-ease-default), transform var(--motion-duration-slow) var(--motion-ease-default);
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -359,74 +359,9 @@ html[data-theme="light"] .home-hero-plate {
|
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
/* ── Hero from 1024px ──
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
covers that box, at least 15rem tall, like the featured article poster.
|
|
366
|
-
This block follows the base hero rules on purpose: before them, their
|
|
367
|
-
max-width, position and aspect-ratio won on source order (PLT-AC-51). */
|
|
368
|
-
@media (min-width: 1024px) {
|
|
369
|
-
.home-hero {
|
|
370
|
-
display: flex;
|
|
371
|
-
flex-direction: row;
|
|
372
|
-
align-items: stretch;
|
|
373
|
-
gap: var(--space-2xl);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.home-hero-copy {
|
|
377
|
-
flex: 0 0 46%;
|
|
378
|
-
min-width: 0;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.home-hero-portrait {
|
|
382
|
-
flex: 1 1 0;
|
|
383
|
-
align-self: stretch;
|
|
384
|
-
width: auto;
|
|
385
|
-
min-width: 0;
|
|
386
|
-
min-height: 15rem;
|
|
387
|
-
max-width: none;
|
|
388
|
-
aspect-ratio: auto;
|
|
389
|
-
overflow: hidden;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.home-hero-plate-wrap {
|
|
393
|
-
position: absolute;
|
|
394
|
-
inset: 0;
|
|
395
|
-
aspect-ratio: auto;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.home-hero-plate {
|
|
399
|
-
position: absolute;
|
|
400
|
-
inset: 0;
|
|
401
|
-
width: 100%;
|
|
402
|
-
height: 100%;
|
|
403
|
-
aspect-ratio: auto;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.home-hero-plate img {
|
|
407
|
-
position: absolute;
|
|
408
|
-
inset: 0;
|
|
409
|
-
width: 100%;
|
|
410
|
-
height: 100%;
|
|
411
|
-
max-width: none;
|
|
412
|
-
object-fit: cover;
|
|
413
|
-
object-position: center;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* --hero-name-fit is the longer name part in em at the title's tracking
|
|
417
|
-
(Ancizar stacked-line default ~6.9em); a site with a longer word raises it.
|
|
418
|
-
The selector outranks a site's one-line size written as .home-ledger .home-hero-title. */
|
|
419
|
-
.home-ledger .home-hero-title {
|
|
420
|
-
white-space: normal;
|
|
421
|
-
font-size: min(calc(100cqi / var(--hero-name-fit, 6.9)), var(--hero-name-max, 4.5rem));
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.home-hero-given,
|
|
425
|
-
.home-hero-family {
|
|
426
|
-
display: inline-block;
|
|
427
|
-
white-space: nowrap;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
362
|
+
CR-22 supersedes the prior 46% copy | plate flex. Desktop photo-bg,
|
|
363
|
+
masthead 50/50, name +2pt, and CTA nowrap live in the CR-22 block
|
|
364
|
+
at the end of this file (PLT-AC-81…85 / docs/features/home-hero-b3.md). */
|
|
430
365
|
|
|
431
366
|
/* ── Section banners ──
|
|
432
367
|
Atelier plate edge: a denser hairline, a longer accent rule, and a short
|
|
@@ -1418,11 +1353,11 @@ button.home-project-inventory-row {
|
|
|
1418
1353
|
flex: 0 0 auto;
|
|
1419
1354
|
}
|
|
1420
1355
|
|
|
1421
|
-
/*
|
|
1356
|
+
/* CR-21g: +6pt over the shared CR-16 size (PLT-AC-80).
|
|
1422
1357
|
Leave --initial on --type-card (fixture + letter marks). */
|
|
1423
1358
|
.home-project-inventory-row .home-project-inventory-glyph:not(.home-project-inventory-glyph--initial),
|
|
1424
1359
|
.home-project-inventory-row .home-project-inventory-glyph.material-symbols-outlined {
|
|
1425
|
-
font-size: calc(1.375rem +
|
|
1360
|
+
font-size: calc(1.375rem + 6pt);
|
|
1426
1361
|
}
|
|
1427
1362
|
|
|
1428
1363
|
.home-project-specimen {
|
|
@@ -1466,30 +1401,11 @@ button.home-project-inventory-row {
|
|
|
1466
1401
|
flex: 0 1 auto;
|
|
1467
1402
|
}
|
|
1468
1403
|
|
|
1469
|
-
/* CR-
|
|
1470
|
-
.home-specimen-strip .ledger-meta,
|
|
1471
|
-
.home-specimen-strip > .ledger-status {
|
|
1472
|
-
font-size: calc(var(--type-label-lg) - 2pt);
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1404
|
+
/* CR-21g: specimen title keeps -2pt (desktop only). Meta, description, chips, and foot CTAs revert to base token sizes (PLT-AC-80). */
|
|
1475
1405
|
.home-project-specimen .home-specimen-title,
|
|
1476
1406
|
.home-project-specimen .ledger-card-title {
|
|
1477
1407
|
font-size: calc(var(--type-card-lg) - 2pt);
|
|
1478
1408
|
}
|
|
1479
|
-
|
|
1480
|
-
.home-project-specimen .ledger-card-copy {
|
|
1481
|
-
font-size: calc(var(--type-body) - 2pt);
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
.home-project-specimen .ledger-chip {
|
|
1485
|
-
font-size: calc(var(--type-cta) - 2pt);
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
.home-specimen-foot .ledger-cta,
|
|
1489
|
-
.home-specimen-foot .home-specimen-open,
|
|
1490
|
-
.home-project-specimen .home-specimen-open {
|
|
1491
|
-
font-size: calc(var(--type-cta) - 2pt);
|
|
1492
|
-
}
|
|
1493
1409
|
}
|
|
1494
1410
|
|
|
1495
1411
|
/* ── Reference band: Sources + Network of Ideas ──────────────────────────
|
|
@@ -1800,12 +1716,15 @@ button.home-project-inventory-row {
|
|
|
1800
1716
|
}
|
|
1801
1717
|
|
|
1802
1718
|
/* ── Featured article poster ──
|
|
1803
|
-
|
|
1719
|
+
Plate is always 16:9; cover crops the photo inside (PLT-AC-85 companion). */
|
|
1804
1720
|
.home-featured .ledger-poster {
|
|
1805
|
-
|
|
1806
|
-
|
|
1721
|
+
width: 100%;
|
|
1722
|
+
height: auto;
|
|
1723
|
+
aspect-ratio: 16 / 9;
|
|
1724
|
+
min-height: 0;
|
|
1807
1725
|
border: 1.5px solid var(--border-ink);
|
|
1808
1726
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-on-surface) 10%, transparent);
|
|
1727
|
+
overflow: hidden;
|
|
1809
1728
|
}
|
|
1810
1729
|
|
|
1811
1730
|
:root:not([data-theme="dark"]) .home-featured .ledger-poster,
|
|
@@ -1832,7 +1751,9 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
1832
1751
|
|
|
1833
1752
|
.home-featured .ledger-poster {
|
|
1834
1753
|
order: 2;
|
|
1835
|
-
|
|
1754
|
+
width: 100%;
|
|
1755
|
+
height: auto;
|
|
1756
|
+
aspect-ratio: 16 / 9;
|
|
1836
1757
|
}
|
|
1837
1758
|
}
|
|
1838
1759
|
|
|
@@ -1917,3 +1838,433 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
1917
1838
|
font-variant-numeric: tabular-nums;
|
|
1918
1839
|
color: var(--color-on-surface);
|
|
1919
1840
|
}
|
|
1841
|
+
|
|
1842
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
1843
|
+
CR-22 / CR-22.1 — Home hero B3 (PLT-AC-81…87)
|
|
1844
|
+
Photo as hero background + 50/50 masthead with Projects from 1024px.
|
|
1845
|
+
Name sizes match approved B3 clamps; summary is light on the photo;
|
|
1846
|
+
desktop hero panel uses B3 aspect ratios; crops centered; home plates 16:9.
|
|
1847
|
+
Config: --home-hero-vignette, --home-hero-pool (see pandorga.home.hero_overlay).
|
|
1848
|
+
═══════════════════════════════════════════════════════════════════════════ */
|
|
1849
|
+
|
|
1850
|
+
:root {
|
|
1851
|
+
--home-hero-vignette: 0.60;
|
|
1852
|
+
--home-hero-pool: 0.94;
|
|
1853
|
+
--home-masthead-gutter: clamp(1.25rem, 2.2vw, 2rem);
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
/* Shared: centered crop on home specimen/card plates (hero centers in CR-22 media). */
|
|
1857
|
+
.home-specimen-figure > .ledger-poster img,
|
|
1858
|
+
.home-specimen-figure > .ledger-poster video,
|
|
1859
|
+
.home-card-grid .ledger-poster img,
|
|
1860
|
+
.home-card-grid .ledger-poster video,
|
|
1861
|
+
.home-featured .ledger-poster img,
|
|
1862
|
+
.home-featured .ledger-poster video {
|
|
1863
|
+
object-position: center;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
/* Spotlight overlay — centered radial pool + vignette (config-driven) */
|
|
1867
|
+
.home-hero-portrait::after {
|
|
1868
|
+
content: "";
|
|
1869
|
+
position: absolute;
|
|
1870
|
+
inset: 0;
|
|
1871
|
+
z-index: 2;
|
|
1872
|
+
pointer-events: none;
|
|
1873
|
+
background:
|
|
1874
|
+
radial-gradient(
|
|
1875
|
+
ellipse 62% 70% at 50% 50%,
|
|
1876
|
+
rgba(0, 0, 0, calc(1 - var(--home-hero-pool))) 0%,
|
|
1877
|
+
rgba(0, 0, 0, calc(0.18 * var(--home-hero-vignette) / 0.6)) 34%,
|
|
1878
|
+
rgba(0, 0, 0, calc(0.55 * var(--home-hero-vignette) / 0.6)) 66%,
|
|
1879
|
+
rgba(0, 0, 0, calc(1 * var(--home-hero-vignette) / 0.6 * 0.92)) 100%
|
|
1880
|
+
),
|
|
1881
|
+
linear-gradient(
|
|
1882
|
+
90deg,
|
|
1883
|
+
rgba(0, 0, 0, calc(0.55 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
1884
|
+
rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 28%,
|
|
1885
|
+
rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 55%,
|
|
1886
|
+
transparent 76%
|
|
1887
|
+
),
|
|
1888
|
+
linear-gradient(
|
|
1889
|
+
180deg,
|
|
1890
|
+
rgba(0, 0, 0, calc(0.18 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
1891
|
+
transparent 22%,
|
|
1892
|
+
transparent 48%,
|
|
1893
|
+
rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 100%
|
|
1894
|
+
);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
/* ── Stacked / full-bleed (< 1024): photo edge-to-edge, height hugs copy ── */
|
|
1898
|
+
@media (max-width: 1023px) {
|
|
1899
|
+
.home-band--hero {
|
|
1900
|
+
padding: 0;
|
|
1901
|
+
width: 100vw;
|
|
1902
|
+
max-width: 100vw;
|
|
1903
|
+
margin-left: calc(50% - 50vw);
|
|
1904
|
+
margin-right: calc(50% - 50vw);
|
|
1905
|
+
border-bottom: 0;
|
|
1906
|
+
background: #050505;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
.home-band--hero .home-hero-art,
|
|
1910
|
+
.home-band--hero .home-hero-pandorga {
|
|
1911
|
+
display: none;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.home-band--hero .home-band-inner {
|
|
1915
|
+
max-width: none;
|
|
1916
|
+
width: 100%;
|
|
1917
|
+
margin: 0;
|
|
1918
|
+
padding: 0;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
.home-hero {
|
|
1922
|
+
display: flex;
|
|
1923
|
+
flex-direction: column;
|
|
1924
|
+
position: relative;
|
|
1925
|
+
isolation: isolate;
|
|
1926
|
+
min-height: 0;
|
|
1927
|
+
height: auto;
|
|
1928
|
+
gap: 0;
|
|
1929
|
+
justify-content: flex-end;
|
|
1930
|
+
align-items: stretch;
|
|
1931
|
+
padding: clamp(1.35rem, 4.5vw, 2.1rem) clamp(1.15rem, 5vw, 2rem) clamp(1.5rem, 4.5vw, 2.1rem);
|
|
1932
|
+
box-sizing: border-box;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
.home-hero-portrait {
|
|
1936
|
+
position: absolute;
|
|
1937
|
+
inset: 0;
|
|
1938
|
+
width: 100%;
|
|
1939
|
+
height: 100%;
|
|
1940
|
+
min-height: 0;
|
|
1941
|
+
z-index: 0;
|
|
1942
|
+
margin: 0;
|
|
1943
|
+
pointer-events: none;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
.home-hero-plate-wrap,
|
|
1947
|
+
.home-hero-plate {
|
|
1948
|
+
position: absolute;
|
|
1949
|
+
inset: 0;
|
|
1950
|
+
width: 100%;
|
|
1951
|
+
height: 100%;
|
|
1952
|
+
max-width: none;
|
|
1953
|
+
aspect-ratio: auto;
|
|
1954
|
+
border: 0;
|
|
1955
|
+
border-radius: 0;
|
|
1956
|
+
margin: 0;
|
|
1957
|
+
box-shadow: none;
|
|
1958
|
+
background: #050505;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
.home-hero-plate img {
|
|
1962
|
+
position: absolute;
|
|
1963
|
+
inset: 0;
|
|
1964
|
+
width: 100%;
|
|
1965
|
+
height: 100%;
|
|
1966
|
+
object-fit: cover;
|
|
1967
|
+
object-position: center;
|
|
1968
|
+
filter: saturate(0.90) contrast(1.08) brightness(0.94);
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.home-hero-plate .ledger-frame-corners,
|
|
1972
|
+
.home-hero-plate-wrap .ledger-frame-crosshairs {
|
|
1973
|
+
display: none;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
.home-hero-copy {
|
|
1977
|
+
position: relative;
|
|
1978
|
+
z-index: 3;
|
|
1979
|
+
display: flex;
|
|
1980
|
+
flex-direction: column;
|
|
1981
|
+
justify-content: flex-end;
|
|
1982
|
+
gap: 0.85rem;
|
|
1983
|
+
padding: 0;
|
|
1984
|
+
max-width: 36rem;
|
|
1985
|
+
width: 100%;
|
|
1986
|
+
box-sizing: border-box;
|
|
1987
|
+
background: transparent;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
/* B3 stack name (~33.4px @390, ~45.8px @768) */
|
|
1991
|
+
.home-ledger .home-hero-title,
|
|
1992
|
+
.home-hero-title {
|
|
1993
|
+
white-space: normal;
|
|
1994
|
+
font-size: clamp(1.9rem, 7vw, 2.6rem);
|
|
1995
|
+
line-height: 1.08;
|
|
1996
|
+
max-width: 100%;
|
|
1997
|
+
color: #f4f4f4;
|
|
1998
|
+
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
|
|
1999
|
+
margin-bottom: 0;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
.home-hero-given {
|
|
2003
|
+
color: #f4f4f4;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
.home-hero-family {
|
|
2007
|
+
color: #c8e4f5;
|
|
2008
|
+
--mark-ink: #7eb8d8;
|
|
2009
|
+
--mark-a: 42%;
|
|
2010
|
+
--mark-b: 32%;
|
|
2011
|
+
--mark-c: 14%;
|
|
2012
|
+
--mark-1: 42%;
|
|
2013
|
+
--mark-2: 32%;
|
|
2014
|
+
--mark-3: 14%;
|
|
2015
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/* Specificity beats .home-hero .home-hero-summary { color: legend } */
|
|
2019
|
+
.home-hero .home-hero-summary,
|
|
2020
|
+
.home-hero .home-hero-summary p,
|
|
2021
|
+
.home-hero .home-hero-tagline {
|
|
2022
|
+
color: #f0f0f0;
|
|
2023
|
+
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
|
|
2024
|
+
max-width: min(34rem, 100%);
|
|
2025
|
+
font-size: clamp(0.95rem, 3.6vw, 1.05rem);
|
|
2026
|
+
line-height: 1.45;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
.home-hero-tagline {
|
|
2030
|
+
margin-bottom: 0.55rem;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
.home-hero-tagline::after {
|
|
2034
|
+
border-top-color: color-mix(in srgb, #fff 35%, transparent);
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
.home-hero-actions {
|
|
2038
|
+
margin-top: 0.35rem;
|
|
2039
|
+
flex-wrap: wrap;
|
|
2040
|
+
gap: 0.4rem 0.55rem;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
.home-hero-actions .ledger-cta,
|
|
2044
|
+
.home-hero-actions .home-hero-cta {
|
|
2045
|
+
background: rgba(245, 245, 245, 0.94);
|
|
2046
|
+
color: #111;
|
|
2047
|
+
border-color: rgba(255, 255, 255, 0.55);
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
.home-hero-actions .ledger-cta span,
|
|
2051
|
+
.home-hero-actions .home-hero-cta span,
|
|
2052
|
+
.home-hero-actions .material-symbols-outlined {
|
|
2053
|
+
color: #111;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
/* ── Desktop masthead (>= 1024): 50/50 hero | projects ── */
|
|
2058
|
+
@media (min-width: 1024px) {
|
|
2059
|
+
.home-ledger {
|
|
2060
|
+
display: grid;
|
|
2061
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
2062
|
+
column-gap: 0;
|
|
2063
|
+
align-items: start;
|
|
2064
|
+
width: min(80rem, calc(100% - 2 * var(--gutter, 2rem)));
|
|
2065
|
+
max-width: 80rem;
|
|
2066
|
+
margin-inline: auto;
|
|
2067
|
+
box-sizing: border-box;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
.home-band--hero {
|
|
2071
|
+
grid-column: 1;
|
|
2072
|
+
grid-row: 1;
|
|
2073
|
+
justify-self: start;
|
|
2074
|
+
width: calc(100% - var(--home-masthead-gutter));
|
|
2075
|
+
max-width: 100%;
|
|
2076
|
+
margin: 0;
|
|
2077
|
+
padding: 0;
|
|
2078
|
+
border-bottom: 0;
|
|
2079
|
+
background: #050505;
|
|
2080
|
+
border-radius: 3px;
|
|
2081
|
+
overflow: hidden;
|
|
2082
|
+
align-self: start;
|
|
2083
|
+
/* B3 @1024 ≈ 454×736 (w/h ≈ 0.617) */
|
|
2084
|
+
aspect-ratio: 454 / 736;
|
|
2085
|
+
height: auto;
|
|
2086
|
+
min-height: 0;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
.home-band--hero .home-hero-art,
|
|
2090
|
+
.home-band--hero .home-hero-pandorga {
|
|
2091
|
+
display: none;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
.home-band--hero .home-band-inner {
|
|
2095
|
+
max-width: none;
|
|
2096
|
+
width: 100%;
|
|
2097
|
+
margin: 0;
|
|
2098
|
+
padding: 0;
|
|
2099
|
+
height: 100%;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.home-band[data-home-kind="portfolio"] {
|
|
2103
|
+
grid-column: 2;
|
|
2104
|
+
grid-row: 1;
|
|
2105
|
+
justify-self: stretch;
|
|
2106
|
+
width: 100%;
|
|
2107
|
+
margin: 0;
|
|
2108
|
+
padding-block: 1.25rem 1.75rem;
|
|
2109
|
+
padding-inline: 0;
|
|
2110
|
+
border-bottom: 0;
|
|
2111
|
+
align-self: start;
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
.home-band[data-home-kind="portfolio"] .home-band-inner {
|
|
2115
|
+
max-width: none;
|
|
2116
|
+
width: 100%;
|
|
2117
|
+
margin: 0;
|
|
2118
|
+
padding-inline: 0;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
.home-band:not(.home-band--hero):not([data-home-kind="portfolio"]) {
|
|
2122
|
+
grid-column: 1 / -1;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
.home-hero {
|
|
2126
|
+
display: flex;
|
|
2127
|
+
flex-direction: column;
|
|
2128
|
+
position: relative;
|
|
2129
|
+
isolation: isolate;
|
|
2130
|
+
min-height: 100%;
|
|
2131
|
+
height: 100%;
|
|
2132
|
+
gap: 0;
|
|
2133
|
+
align-items: stretch;
|
|
2134
|
+
justify-content: flex-end;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.home-hero-portrait {
|
|
2138
|
+
position: absolute;
|
|
2139
|
+
inset: 0;
|
|
2140
|
+
flex: none;
|
|
2141
|
+
width: 100%;
|
|
2142
|
+
height: 100%;
|
|
2143
|
+
min-height: 0;
|
|
2144
|
+
max-width: none;
|
|
2145
|
+
aspect-ratio: auto;
|
|
2146
|
+
z-index: 0;
|
|
2147
|
+
overflow: hidden;
|
|
2148
|
+
pointer-events: none;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
.home-hero-plate-wrap,
|
|
2152
|
+
.home-hero-plate {
|
|
2153
|
+
position: absolute;
|
|
2154
|
+
inset: 0;
|
|
2155
|
+
width: 100%;
|
|
2156
|
+
height: 100%;
|
|
2157
|
+
aspect-ratio: auto;
|
|
2158
|
+
border: 0;
|
|
2159
|
+
border-radius: 0;
|
|
2160
|
+
margin: 0;
|
|
2161
|
+
box-shadow: none;
|
|
2162
|
+
background: #050505;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
.home-hero-plate img {
|
|
2166
|
+
position: absolute;
|
|
2167
|
+
inset: 0;
|
|
2168
|
+
width: 100%;
|
|
2169
|
+
height: 100%;
|
|
2170
|
+
max-width: none;
|
|
2171
|
+
object-fit: cover;
|
|
2172
|
+
object-position: center;
|
|
2173
|
+
filter: saturate(0.90) contrast(1.08) brightness(0.94);
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
.home-hero-plate .ledger-frame-corners,
|
|
2177
|
+
.home-hero-plate-wrap .ledger-frame-crosshairs {
|
|
2178
|
+
display: none;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
.home-hero-copy {
|
|
2182
|
+
position: relative;
|
|
2183
|
+
z-index: 3;
|
|
2184
|
+
flex: 0 0 auto;
|
|
2185
|
+
display: flex;
|
|
2186
|
+
flex-direction: column;
|
|
2187
|
+
justify-content: flex-end;
|
|
2188
|
+
gap: 0.85rem;
|
|
2189
|
+
width: 100%;
|
|
2190
|
+
max-width: 100%;
|
|
2191
|
+
min-width: 0;
|
|
2192
|
+
padding: 1.75rem 1.35rem 1.85rem 1.45rem;
|
|
2193
|
+
box-sizing: border-box;
|
|
2194
|
+
background: transparent;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
/* B3 desk name (~35.2px @1024, ~40.1px @1440) */
|
|
2198
|
+
.home-ledger .home-hero-title,
|
|
2199
|
+
.home-hero-title {
|
|
2200
|
+
white-space: nowrap;
|
|
2201
|
+
font-size: calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt);
|
|
2202
|
+
line-height: 1.08;
|
|
2203
|
+
max-width: 100%;
|
|
2204
|
+
overflow: hidden;
|
|
2205
|
+
color: #f4f4f4;
|
|
2206
|
+
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
|
|
2207
|
+
margin-bottom: 0;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
.home-hero-given {
|
|
2211
|
+
color: #f4f4f4;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.home-hero-family {
|
|
2215
|
+
color: #c8e4f5;
|
|
2216
|
+
--mark-ink: #7eb8d8;
|
|
2217
|
+
--mark-a: 42%;
|
|
2218
|
+
--mark-b: 32%;
|
|
2219
|
+
--mark-c: 14%;
|
|
2220
|
+
--mark-1: 42%;
|
|
2221
|
+
--mark-2: 32%;
|
|
2222
|
+
--mark-3: 14%;
|
|
2223
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
.home-hero .home-hero-summary,
|
|
2227
|
+
.home-hero .home-hero-summary p,
|
|
2228
|
+
.home-hero .home-hero-tagline {
|
|
2229
|
+
color: #f0f0f0;
|
|
2230
|
+
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
|
|
2231
|
+
max-width: 100%;
|
|
2232
|
+
font-size: clamp(0.95rem, 1.15vw, 1.05rem);
|
|
2233
|
+
line-height: 1.45;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.home-hero-tagline::after {
|
|
2237
|
+
border-top-color: color-mix(in srgb, #fff 35%, transparent);
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.home-hero-actions {
|
|
2241
|
+
display: flex;
|
|
2242
|
+
flex-wrap: nowrap;
|
|
2243
|
+
gap: 0.4rem 0.5rem;
|
|
2244
|
+
margin-top: 0.35rem;
|
|
2245
|
+
width: 100%;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
.home-hero-actions .ledger-cta,
|
|
2249
|
+
.home-hero-actions .home-hero-cta {
|
|
2250
|
+
flex: 0 1 auto;
|
|
2251
|
+
white-space: nowrap;
|
|
2252
|
+
min-width: 0;
|
|
2253
|
+
background: rgba(245, 245, 245, 0.94);
|
|
2254
|
+
color: #111;
|
|
2255
|
+
border-color: rgba(255, 255, 255, 0.55);
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
.home-hero-actions .ledger-cta span,
|
|
2259
|
+
.home-hero-actions .home-hero-cta span,
|
|
2260
|
+
.home-hero-actions .material-symbols-outlined {
|
|
2261
|
+
color: #111;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/* Wider desktop: B3 @1440 ≈ 637×693 (w/h ≈ 0.92) */
|
|
2266
|
+
@media (min-width: 1280px) {
|
|
2267
|
+
.home-band--hero {
|
|
2268
|
+
aspect-ratio: 637 / 693;
|
|
2269
|
+
}
|
|
2270
|
+
}
|
data/examples/full/_config.yml
CHANGED
|
@@ -24,7 +24,7 @@ module Pandorga
|
|
|
24
24
|
|
|
25
25
|
gem "pandorga", "~> 2.0"
|
|
26
26
|
# Local checkout: gem "pandorga", path: "../pandorga"
|
|
27
|
-
# GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.
|
|
27
|
+
# GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.1"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -302,8 +302,12 @@ end
|
|
|
302
302
|
if home_sheet.match?(/Cinzel/i) || home_sheet.include?("5.55")
|
|
303
303
|
errors << "assets/css/ledger/home.css must not contain Cinzel or obsolete 5.55 comments/divisors (PLT-AC-68)"
|
|
304
304
|
end
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
# Phone/base keep Ancizar 6.9; desktop CR-22.1 uses the approved B3 vw clamp.
|
|
306
|
+
unless home_sheet.include?("calc(100cqi * 0.92 / 6.9)")
|
|
307
|
+
errors << "assets/css/ledger/home.css: phone/base hero clamp must use Ancizar ~6.9 (PLT-AC-68)"
|
|
308
|
+
end
|
|
309
|
+
unless home_sheet.include?("calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)")
|
|
310
|
+
errors << "assets/css/ledger/home.css: desktop B3 name clamp missing (CR-22.1 / PLT-AC-86)"
|
|
307
311
|
end
|
|
308
312
|
|
|
309
313
|
# PLT-AC-69. Inventory / project logo icon font-sizes +2pt.
|
|
@@ -29,6 +29,7 @@ require_relative "../../lib/pandorga/thumbnail_variants"
|
|
|
29
29
|
ONLY_ITEMS = ARGV.map { |a| a.sub(/\A(PLT-AC-)?51\./, "") }.to_set
|
|
30
30
|
DESKTOP = "(min-width:1024px)"
|
|
31
31
|
PHONE = "(max-width:767px)"
|
|
32
|
+
STACK = "(max-width:1023px)" # CR-22 full-bleed photo-bg
|
|
32
33
|
|
|
33
34
|
$failures = []
|
|
34
35
|
|
|
@@ -134,7 +135,9 @@ end
|
|
|
134
135
|
|
|
135
136
|
def expect_decl(sel, prop, want, media: nil)
|
|
136
137
|
got = decl(sel, prop, media: media)
|
|
137
|
-
|
|
138
|
+
# CR-22 overrides use !important; compare the declared value without the flag.
|
|
139
|
+
bare = got.to_s.sub(/\s*!important\z/, "").strip
|
|
140
|
+
ok = want.is_a?(Regexp) ? bare.match?(want) : bare == want
|
|
138
141
|
where = media ? " under #{media}" : ""
|
|
139
142
|
fail!("#{sel} #{prop} should be #{want.inspect}#{where}, got #{got.inspect}") unless ok
|
|
140
143
|
end
|
|
@@ -160,15 +163,16 @@ item(1) do
|
|
|
160
163
|
fail!("no .home-hero-plate--landscape rule may remain") unless landscape.empty?
|
|
161
164
|
end
|
|
162
165
|
|
|
163
|
-
# ── 51.2
|
|
166
|
+
# ── 51.2 Stacked full-bleed (CR-22, <1024) ─────────────────────────────────
|
|
164
167
|
|
|
165
168
|
item(2) do
|
|
166
|
-
expect_decl(".home-hero
|
|
167
|
-
expect_decl(".home-hero-portrait", "
|
|
168
|
-
expect_decl(".home-hero-plate", "
|
|
169
|
+
expect_decl(".home-band--hero", "width", "100vw", media: STACK)
|
|
170
|
+
expect_decl(".home-hero-portrait", "position", "absolute", media: STACK)
|
|
171
|
+
expect_decl(".home-hero-plate", "aspect-ratio", "auto", media: STACK)
|
|
172
|
+
expect_decl(".home-hero-plate img", "object-position", /\Acenter( center)?\z/, media: STACK)
|
|
169
173
|
end
|
|
170
174
|
|
|
171
|
-
# ── 51.3
|
|
175
|
+
# ── 51.3 Portrait must not be width-capped ─────────────────────────────────
|
|
172
176
|
|
|
173
177
|
item(3) do
|
|
174
178
|
rules_for(".home-hero-portrait").each do |r|
|
|
@@ -178,18 +182,13 @@ item(3) do
|
|
|
178
182
|
fail!(".home-hero-portrait max-width #{val} under #{r[:media].inspect} caps the plate")
|
|
179
183
|
end
|
|
180
184
|
end
|
|
181
|
-
expect_decl(".home-hero-portrait", "width", "100%")
|
|
182
185
|
end
|
|
183
186
|
|
|
184
|
-
# ── 51.4 From 1024px
|
|
187
|
+
# ── 51.4 From 1024px — photo as background (CR-22 / PLT-AC-82) ─────────────
|
|
185
188
|
|
|
186
189
|
item(4) do
|
|
187
190
|
expect_decl(".home-hero", "display", "flex", media: DESKTOP)
|
|
188
|
-
expect_decl(".home-hero-
|
|
189
|
-
expect_decl(".home-hero-copy", "min-width", "0", media: DESKTOP)
|
|
190
|
-
expect_decl(".home-hero-portrait", "flex", "1 1 0", media: DESKTOP)
|
|
191
|
-
expect_decl(".home-hero-portrait", "min-height", "15rem", media: DESKTOP)
|
|
192
|
-
expect_decl(".home-hero-portrait", "max-width", "none", media: DESKTOP)
|
|
191
|
+
expect_decl(".home-hero-portrait", "position", "absolute", media: DESKTOP)
|
|
193
192
|
expect_decl(".home-hero-portrait", "aspect-ratio", "auto", media: DESKTOP)
|
|
194
193
|
[".home-hero-plate-wrap", ".home-hero-plate"].each do |sel|
|
|
195
194
|
expect_decl(sel, "position", "absolute", media: DESKTOP)
|
|
@@ -198,6 +197,7 @@ item(4) do
|
|
|
198
197
|
end
|
|
199
198
|
expect_decl(".home-hero-plate img", "object-fit", "cover", media: DESKTOP)
|
|
200
199
|
expect_decl(".home-hero-plate img", "object-position", /\Acenter( center)?\z/, media: DESKTOP)
|
|
200
|
+
expect_decl(".home-hero-actions", "flex-wrap", "nowrap", media: DESKTOP)
|
|
201
201
|
|
|
202
202
|
layout = LAYOUT.read
|
|
203
203
|
fail!("the crosshairs must stay on the plate wrapper") unless layout.include?('class="ledger-frame-crosshairs"')
|
|
@@ -221,15 +221,12 @@ end
|
|
|
221
221
|
# ── 51.6 Name from 1024px ───────────────────────────────────────────────────
|
|
222
222
|
|
|
223
223
|
item(6) do
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
# CR-22.1: B3 desk name clamp (also declared on .home-hero-title)
|
|
225
|
+
title = ".home-hero-title"
|
|
226
|
+
expect_decl(title, "white-space", "nowrap", media: DESKTOP)
|
|
226
227
|
expect_decl(title, "font-size",
|
|
227
|
-
"
|
|
228
|
+
"calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)",
|
|
228
229
|
media: DESKTOP)
|
|
229
|
-
%w[.home-hero-given .home-hero-family].each do |sel|
|
|
230
|
-
expect_decl(sel, "display", "inline-block", media: DESKTOP)
|
|
231
|
-
expect_decl(sel, "white-space", "nowrap", media: DESKTOP)
|
|
232
|
-
end
|
|
233
230
|
end
|
|
234
231
|
|
|
235
232
|
# ── 51.7 Markup ─────────────────────────────────────────────────────────────
|
|
@@ -145,7 +145,11 @@ check!(hero.include?("@media (min-width: 640px) and (max-width: 767px)"),
|
|
|
145
145
|
"missing 640-767 size query")
|
|
146
146
|
check!(hero.include?("calc(clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt)"),
|
|
147
147
|
"from 640px to 767px the name must be the section-lg clamp plus 3pt")
|
|
148
|
-
|
|
148
|
+
# CR-22.1 supersedes desktop --hero-name-fit 6.9 with the approved B3 clamp.
|
|
149
|
+
check!(css.include?("calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)"),
|
|
150
|
+
"desktop B3 name clamp must be present (CR-22.1)")
|
|
151
|
+
check!(css.include?("clamp(1.9rem, 7vw, 2.6rem)"),
|
|
152
|
+
"stack B3 name clamp must be present (CR-22.1)")
|
|
149
153
|
|
|
150
154
|
plain = hero.index("@media (min-width: 640px) {")
|
|
151
155
|
banded = hero.index("@media (min-width: 640px) and (max-width: 767px)")
|
|
@@ -247,14 +247,14 @@ const ASSERT_EXPRESSION = `
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// 5. Desktop home projects inventory logo-button stack (PLT-AC-74)
|
|
250
|
-
// 6. CR-21b/c/d/e/f
|
|
250
|
+
// 6. CR-21b/c/d/e/f/g + CR-22 masthead/photo-bg/centered crops (PLT-AC-75…85)
|
|
251
251
|
{
|
|
252
252
|
const bench = document.querySelector('.home-projects-bench');
|
|
253
253
|
const rows = document.querySelectorAll('.home-project-inventory-row');
|
|
254
254
|
const rootFs = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
255
|
-
// Mobile / shared: calc(1.375rem + 2pt). Desktop (>=900): +
|
|
255
|
+
// Mobile / shared: calc(1.375rem + 2pt). Desktop (>=900): +6pt (CR-21g / PLT-AC-80).
|
|
256
256
|
const expectedGlyphMobile = 1.375 * rootFs + 2 * (96 / 72);
|
|
257
|
-
const expectedGlyphDesktop = 1.375 * rootFs +
|
|
257
|
+
const expectedGlyphDesktop = 1.375 * rootFs + 6 * (96 / 72);
|
|
258
258
|
|
|
259
259
|
if (rows.length > 0) {
|
|
260
260
|
const first = rows[0];
|
|
@@ -270,8 +270,9 @@ const ASSERT_EXPRESSION = `
|
|
|
270
270
|
expectFs = parseFloat(rawCard) || expectedGlyphMobile;
|
|
271
271
|
if (rawCard.endsWith('rem')) expectFs = expectFs * rootFs;
|
|
272
272
|
}
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
const tol = window.innerWidth >= 900 && !isInitial ? 1.0 : 1.5;
|
|
274
|
+
if (Math.abs(gfs - expectFs) > tol) {
|
|
275
|
+
errors.push('Inventory glyph font-size (' + gfs.toFixed(2) + 'px) not within ' + tol.toFixed(1) + 'px of expected ' + expectFs.toFixed(2) + 'px (PLT-AC-75/76/80)');
|
|
275
276
|
}
|
|
276
277
|
if (!isInitial && window.innerWidth >= 900 && gfs < 22) {
|
|
277
278
|
errors.push('Desktop inventory icon glyph too small (' + gfs.toFixed(2) + 'px); Material Symbols inherit must not win (PLT-AC-75)');
|
|
@@ -341,7 +342,7 @@ const ASSERT_EXPRESSION = `
|
|
|
341
342
|
}
|
|
342
343
|
}
|
|
343
344
|
|
|
344
|
-
// CR-
|
|
345
|
+
// CR-21g / PLT-AC-80: specimen card meta, copy, chips, CTAs revert to base token size; title keeps -2pt
|
|
345
346
|
{
|
|
346
347
|
const pt = 2 * (96 / 72);
|
|
347
348
|
const parseToken = (raw) => {
|
|
@@ -352,11 +353,11 @@ const ASSERT_EXPRESSION = `
|
|
|
352
353
|
return v;
|
|
353
354
|
};
|
|
354
355
|
const checks = [
|
|
355
|
-
{ sel: '.home-specimen-strip .ledger-meta', token: '--type-label-lg', name: 'meta' },
|
|
356
|
-
{ sel: '.home-project-specimen .home-specimen-title, .home-project-specimen .ledger-card-title', token: '--type-card-lg', name: 'title' },
|
|
357
|
-
{ sel: '.home-project-specimen .ledger-card-copy', token: '--type-body', name: 'copy' },
|
|
358
|
-
{ sel: '.home-project-specimen .ledger-chip', token: '--type-cta', name: 'chip' },
|
|
359
|
-
{ sel: '.home-specimen-foot .ledger-cta, .home-project-specimen .home-specimen-open', token: '--type-cta', name: 'foot' }
|
|
356
|
+
{ sel: '.home-specimen-strip .ledger-meta', token: '--type-label-lg', name: 'meta', minusPt: false },
|
|
357
|
+
{ sel: '.home-project-specimen .home-specimen-title, .home-project-specimen .ledger-card-title', token: '--type-card-lg', name: 'title', minusPt: true },
|
|
358
|
+
{ sel: '.home-project-specimen .ledger-card-copy', token: '--type-body', name: 'copy', minusPt: false },
|
|
359
|
+
{ sel: '.home-project-specimen .ledger-chip', token: '--type-cta', name: 'chip', minusPt: false },
|
|
360
|
+
{ sel: '.home-specimen-foot .ledger-cta, .home-project-specimen .home-specimen-open', token: '--type-cta', name: 'foot', minusPt: false }
|
|
360
361
|
];
|
|
361
362
|
const root = document.documentElement;
|
|
362
363
|
checks.forEach((c) => {
|
|
@@ -364,10 +365,10 @@ const ASSERT_EXPRESSION = `
|
|
|
364
365
|
if (!el) return;
|
|
365
366
|
const base = parseToken(getComputedStyle(root).getPropertyValue(c.token));
|
|
366
367
|
if (base == null) return;
|
|
367
|
-
const expect = base - pt;
|
|
368
|
+
const expect = c.minusPt ? base - pt : base;
|
|
368
369
|
const got = parseFloat(getComputedStyle(el).fontSize);
|
|
369
370
|
if (Math.abs(got - expect) > 1.5) {
|
|
370
|
-
errors.push('Specimen ' + c.name + ' font-size (' + got.toFixed(2) + 'px) not within 1.5px of token−2pt (' + expect.toFixed(2) + 'px) (PLT-AC-
|
|
371
|
+
errors.push('Specimen ' + c.name + ' font-size (' + got.toFixed(2) + 'px) not within 1.5px of ' + (c.minusPt ? 'token−2pt' : 'token base') + ' (' + expect.toFixed(2) + 'px) (PLT-AC-80)');
|
|
371
372
|
}
|
|
372
373
|
});
|
|
373
374
|
}
|
|
@@ -510,6 +511,163 @@ const ASSERT_EXPRESSION = `
|
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
513
|
|
|
514
|
+
|
|
515
|
+
// CR-22 / CR-22.1 / PLT-AC-81…87: B3 masthead, photo-bg, name fit, contrast, 16:9 plates
|
|
516
|
+
{
|
|
517
|
+
const hero = document.querySelector('.home-band--hero');
|
|
518
|
+
const proj = document.querySelector('.home-band[data-home-kind="portfolio"]');
|
|
519
|
+
const title = document.querySelector('.home-hero-title');
|
|
520
|
+
const actions = document.querySelector('.home-hero-actions');
|
|
521
|
+
const plateImg = document.querySelector('.home-hero-plate img');
|
|
522
|
+
const summary = document.querySelector('.home-hero-summary') || document.querySelector('.home-hero-summary p');
|
|
523
|
+
|
|
524
|
+
function parseRgb(c) {
|
|
525
|
+
if (!c) return null;
|
|
526
|
+
const m = String(c).match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i);
|
|
527
|
+
if (!m) return null;
|
|
528
|
+
return { r: +m[1], g: +m[2], b: +m[3] };
|
|
529
|
+
}
|
|
530
|
+
function relLum({ r, g, b }) {
|
|
531
|
+
const f = (v) => {
|
|
532
|
+
v /= 255;
|
|
533
|
+
return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
|
|
534
|
+
};
|
|
535
|
+
return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
if (hero && proj && window.innerWidth >= 1024) {
|
|
539
|
+
const ledger = document.querySelector('.home-ledger');
|
|
540
|
+
const lb = ledger.getBoundingClientRect();
|
|
541
|
+
const mid = lb.left + lb.width / 2;
|
|
542
|
+
const pb = proj.getBoundingClientRect();
|
|
543
|
+
const hb = hero.getBoundingClientRect();
|
|
544
|
+
const delta = Math.abs(pb.left - mid);
|
|
545
|
+
if (delta > 1) {
|
|
546
|
+
errors.push('Projects left (' + pb.left.toFixed(1) + ') not within 1px of content mid (' + mid.toFixed(1) + ') Δ=' + delta.toFixed(1) + ' (PLT-AC-81)');
|
|
547
|
+
}
|
|
548
|
+
if (hb.right > mid + 1) {
|
|
549
|
+
errors.push('Hero right (' + hb.right.toFixed(1) + ') crosses content mid (' + mid.toFixed(1) + ') (PLT-AC-81)');
|
|
550
|
+
}
|
|
551
|
+
if (actions) {
|
|
552
|
+
const ctas = [...actions.querySelectorAll(':scope > .ledger-cta, :scope > .home-hero-cta, :scope > span > .ledger-cta, :scope > span > a')];
|
|
553
|
+
const ctaTops = new Set(ctas.filter(el => el.getBoundingClientRect().width > 4).map(el => Math.round(el.getBoundingClientRect().top)));
|
|
554
|
+
if (ctaTops.size > 1) {
|
|
555
|
+
errors.push('Hero CTAs wrap to ' + ctaTops.size + ' rows at desktop; expected one line (PLT-AC-82)');
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
const portrait = document.querySelector('.home-hero-portrait');
|
|
559
|
+
if (portrait) {
|
|
560
|
+
const pcs = getComputedStyle(portrait);
|
|
561
|
+
if (pcs.position !== 'absolute') {
|
|
562
|
+
errors.push('Hero portrait position is ' + pcs.position + ', expected absolute background (PLT-AC-82)');
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// PLT-AC-86: name fits in panel; size near B3 (±4px)
|
|
567
|
+
if (title && hb.width > 40) {
|
|
568
|
+
const tr = title.getBoundingClientRect();
|
|
569
|
+
if (tr.right > hb.right + 1) {
|
|
570
|
+
errors.push('Hero name right (' + tr.right.toFixed(1) + ') past panel right (' + hb.right.toFixed(1) + ') (PLT-AC-86)');
|
|
571
|
+
}
|
|
572
|
+
const fs = parseFloat(getComputedStyle(title).fontSize);
|
|
573
|
+
const expect = window.innerWidth >= 1280 ? 40.11 : 35.23;
|
|
574
|
+
if (Math.abs(fs - expect) > 4) {
|
|
575
|
+
errors.push('Hero name font-size ' + fs.toFixed(2) + 'px not within 4px of B3 ' + expect + 'px (PLT-AC-86)');
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// PLT-AC-87: hero panel aspect near B3
|
|
580
|
+
if (hb.height > 40) {
|
|
581
|
+
const ratio = hb.width / hb.height;
|
|
582
|
+
const expectR = window.innerWidth >= 1280 ? (637 / 693) : (454 / 736);
|
|
583
|
+
if (Math.abs(ratio - expectR) / expectR > 0.08) {
|
|
584
|
+
errors.push('Hero panel ratio ' + ratio.toFixed(3) + ' not within 8% of B3 ' + expectR.toFixed(3) + ' (PLT-AC-87)');
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
if (hero && window.innerWidth < 1024) {
|
|
590
|
+
const hb = hero.getBoundingClientRect();
|
|
591
|
+
if (Math.abs(hb.width - window.innerWidth) > 3) {
|
|
592
|
+
errors.push('Stacked hero width (' + hb.width.toFixed(1) + ') != viewport (' + window.innerWidth + ') (PLT-AC-83)');
|
|
593
|
+
}
|
|
594
|
+
if (title) {
|
|
595
|
+
const topSpace = title.getBoundingClientRect().top - hb.top;
|
|
596
|
+
if (topSpace > 120) {
|
|
597
|
+
errors.push('Stacked hero top spacing before name (' + topSpace.toFixed(1) + 'px) > 120px (PLT-AC-83)');
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
if (proj) {
|
|
601
|
+
const pb = proj.getBoundingClientRect();
|
|
602
|
+
if (pb.top + 2 < hb.bottom) {
|
|
603
|
+
errors.push('Projects not below stacked hero (PLT-AC-83)');
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
// Summary must be light on the photo (PLT-AC-86)
|
|
609
|
+
if (hero && summary) {
|
|
610
|
+
const col = getComputedStyle(summary).color;
|
|
611
|
+
const rgb = parseRgb(col);
|
|
612
|
+
if (rgb) {
|
|
613
|
+
const L = relLum(rgb);
|
|
614
|
+
if (L < 0.45) {
|
|
615
|
+
errors.push('Hero summary color luminance ' + L.toFixed(3) + ' < 0.45 (got ' + col + '); need light text on photo (PLT-AC-86)');
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// Centered object-position on home crops (PLT-AC-85)
|
|
621
|
+
const cropImgs = document.querySelectorAll(
|
|
622
|
+
'.home-hero-plate img, .home-specimen-figure .ledger-poster img, .home-featured .ledger-poster img, .home-card-grid .ledger-poster img'
|
|
623
|
+
);
|
|
624
|
+
cropImgs.forEach((img, idx) => {
|
|
625
|
+
const op = getComputedStyle(img).objectPosition || '';
|
|
626
|
+
const norm = op.trim().toLowerCase();
|
|
627
|
+
const ok = norm === 'center' || norm === '50% 50%' || /^50%\s+50%$/.test(norm);
|
|
628
|
+
if (!ok && img.getBoundingClientRect().width > 4) {
|
|
629
|
+
errors.push('Home crop #' + idx + ' object-position is "' + op + '", expected 50% 50% (PLT-AC-85)');
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
|
|
633
|
+
// Home plates (not hero bg) must be 16:9 (PLT-AC-85 / plate rule)
|
|
634
|
+
const plates = document.querySelectorAll(
|
|
635
|
+
'.home-specimen-figure > .ledger-poster, .home-specimen-figure > .projects-plate, .home-featured .ledger-poster, .home-card-grid .ledger-poster'
|
|
636
|
+
);
|
|
637
|
+
plates.forEach((el, idx) => {
|
|
638
|
+
const r = el.getBoundingClientRect();
|
|
639
|
+
if (r.width < 8 || r.height < 8) return;
|
|
640
|
+
const ratio = r.width / r.height;
|
|
641
|
+
if (Math.abs(ratio - 16 / 9) / (16 / 9) > 0.03) {
|
|
642
|
+
errors.push('Home plate #' + idx + ' ratio ' + ratio.toFixed(3) + ' not 16:9 ±3% (PLT-AC-85)');
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
// Spotlight overlay present on portrait
|
|
647
|
+
if (hero) {
|
|
648
|
+
const portrait = document.querySelector('.home-hero-portrait');
|
|
649
|
+
if (portrait) {
|
|
650
|
+
const after = getComputedStyle(portrait, '::after');
|
|
651
|
+
const bg = after && after.backgroundImage;
|
|
652
|
+
if (bg && bg !== 'none') {
|
|
653
|
+
if (!/radial-gradient/i.test(bg)) {
|
|
654
|
+
errors.push('Hero spotlight ::after missing radial-gradient (PLT-AC-84)');
|
|
655
|
+
} else {
|
|
656
|
+
const atMatch = bg.match(/radial-gradient\([^)]*?\bat\s+([^,\)]+)/i);
|
|
657
|
+
if (atMatch) {
|
|
658
|
+
const pos = atMatch[1].trim().toLowerCase().replace(/\s+/g, ' ');
|
|
659
|
+
const centered = pos === '50% 50%' || pos === 'center' || pos === 'center center';
|
|
660
|
+
if (!centered) {
|
|
661
|
+
errors.push('Hero spotlight radial at "' + atMatch[1].trim() + '", expected 50% 50% (PLT-AC-84)');
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
|
|
513
671
|
return { errors };
|
|
514
672
|
})()
|
|
515
673
|
`;
|
|
@@ -241,7 +241,10 @@ RETIRED_SHARDS = %w[
|
|
|
241
241
|
|
|
242
242
|
item(3) do
|
|
243
243
|
home = SHEETS["ledger/home.css"][:text]
|
|
244
|
-
|
|
244
|
+
# CR-22 reintroduces a functional spotlight radial on .home-hero-portrait::after
|
|
245
|
+
# (text contrast). Ban any other radial-gradient / blur pool in home.css.
|
|
246
|
+
home_wo_spotlight = home.gsub(/\.home-hero-portrait::after\s*\{.*?\}/m, "")
|
|
247
|
+
fail!("home.css still draws a radial-gradient pool") if home_wo_spotlight.include?("radial-gradient(")
|
|
245
248
|
fail!("home.css still blurs a pool (filter: blur)") if home.match?(/(?<![-\w])filter:\s*blur\(/)
|
|
246
249
|
keep = %w[_includes/page/site-footer.html _includes/home/band-index.html]
|
|
247
250
|
Dir[ROOT.join("{_layouts,_includes}/**/*.html").to_s].sort.each do |path|
|