pandorga 2.3.4 → 2.3.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e725e4e570303f7c13c98b92d6e8d377402164ef0a974c806340f57a1c64edf4
4
- data.tar.gz: cb7f823a4969d464ccd8e6ebaa16c339ecb15459a92f6f13a70c1f0e42622d74
3
+ metadata.gz: 311041e7e397af218e586b40c70c8522975132c9aad3786c0692bf00969cad84
4
+ data.tar.gz: 6fcd7d920461a6cffbcac25b285987aa20558d7619623a3071affc7bd071a0c3
5
5
  SHA512:
6
- metadata.gz: 1f9d2c8fb3120f46ea1afa389a0450721f66f7abae34ad10ddf4ebb50bd65bcccae06aa3b200decf0ff4120d3eae40f5cddcc49eee121a42bd2c6f5a384fa868
7
- data.tar.gz: 26ca186bedad6ac7b0c088cdc91e1bd9c2305488222a5674ed630229bd6ceeaec49e3b0d5517d8d08d001240ec213e97ca042dbee1ac4107122e46ae63656fcc
6
+ metadata.gz: 00211e5bdd16bf3e2db7f560f766e7c7b91fb750282dd67c2e410defcb6ed23bfcba1cdf782ff3564f10abfe098143c62ef500a316356abfe374f1c2f236c137
7
+ data.tar.gz: a6b2a756ce4d72eabf1ef1f68e814b27cfaae59dde08b88a29266070ef585dc3372e2a900fe8dfa1eaf5109b9c54b7217639fa5ac7e7321b2066aa86bb021ef0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.3.6] — 2026-10-30
6
+
7
+ ### Changed
8
+
9
+ - CR-22.4: Home hero C4 — center Projects island in the desktop column (PLT-AC-88); soft edgeless full-bleed photo overlay with no panel behind copy (PLT-AC-89); denser stops for ≥7:1 title/summary contrast across the random pool (PLT-AC-90); family highlighter `--mk-h: 1.02em` / `padding-inline: 0.14em` (PLT-AC-91); default random hero draw when `hero_portrait` is unset, crops at `object-position: center` (PLT-AC-92); hero CTAs use marker wash with white ink allowed (PLT-AC-93); when actions wrap, CV alone on line 1 and contacts grouped on line 2 (PLT-AC-94). See [features/home-hero-c4.md](docs/features/home-hero-c4.md).
10
+
11
+ ## [2.3.5] — 2026-10-29
12
+
13
+ ### Fixed
14
+
15
+ - CR-22.3: stack Projects band uses `padding-block: 1.35rem 0` (~24px @390) to match B3 hero→title gap (was flush at 4px after zeroing `--space-3xl`).
16
+
5
17
  ## [2.3.4] — 2026-10-29
6
18
 
7
19
  ### Fixed
@@ -597,7 +597,8 @@
597
597
  el.innerHTML = contacts.map(renderFooterContact).join('');
598
598
  });
599
599
  heroSlots.forEach(function (el) {
600
- el.outerHTML = contacts.map(renderHeroContact).join('');
600
+ /* Keep .home-hero-actions-contacts wrapper so wrap groups stay intact (PLT-AC-94). */
601
+ el.innerHTML = contacts.map(renderHeroContact).join('');
601
602
  });
602
603
  });
603
604
  }
data/_layouts/home.html CHANGED
@@ -55,12 +55,12 @@ layout: shell
55
55
  {% pandorga_hero_summary %}
56
56
  <div class="home-hero-actions">
57
57
  {%- if _cv_page -%}
58
- <a class="ledger-cta ledger-cta--emphasis home-hero-cta" href="{{ _cv_page.url }}">
58
+ <a class="ledger-cta ledger-cta--emphasis home-hero-cta home-hero-cta--cv" href="{{ _cv_page.url }}">
59
59
  <span>{{ _cv_page.title | default: "Curriculum Vitæ" }}</span>
60
60
  <span class="material-symbols-outlined ledger-cta-arrow" aria-hidden="true">chevron_right</span>
61
61
  </a>
62
62
  {%- endif -%}
63
- <span data-content-hero-contacts></span>
63
+ <span class="home-hero-actions-contacts" data-content-hero-contacts></span>
64
64
  </div>
65
65
  </div>
66
66
  <div class="home-hero-portrait">
@@ -1320,15 +1320,42 @@ button.home-project-inventory-row {
1320
1320
  /* Inventory left of specimen, flush to card (gap ≤ 2× button gap);
1321
1321
  column width = button width; plate 16:9 at ~215.6×383.3 (+25% CR-21e);
1322
1322
  card hugs plate + padding; visible Explore label removed (CR-21d). */
1323
+ /* PLT-AC-88: center inventory+specimen island in the projects column. */
1324
+ .home-band[data-home-kind="portfolio"] .home-band-inner,
1325
+ #home-projects .home-band-inner {
1326
+ display: flex;
1327
+ flex-direction: column;
1328
+ align-items: center;
1329
+ justify-content: flex-start;
1330
+ min-height: 0;
1331
+ box-sizing: border-box;
1332
+ }
1333
+
1334
+ .home-band[data-home-kind="portfolio"] .ledger-section-banner,
1335
+ #home-projects .ledger-section-banner {
1336
+ width: max-content;
1337
+ max-width: 100%;
1338
+ align-self: center;
1339
+ margin-inline: auto;
1340
+ flex: 0 0 auto;
1341
+ }
1342
+
1343
+ .home-band[data-home-kind="portfolio"] .home-section-note {
1344
+ align-self: center;
1345
+ }
1346
+
1323
1347
  .home-projects-bench {
1324
1348
  --home-specimen-plate-height: 12.25rem; /* ~215.6px at 17.6 root (+25% vs 2.2.6) */
1325
1349
  --home-specimen-plate-width: calc(var(--home-specimen-plate-height) * 16 / 9);
1326
1350
  --home-specimen-max-width: calc(var(--home-specimen-plate-width) + 2 * var(--space-md));
1327
1351
  display: grid;
1328
- grid-template-columns: var(--home-icon-btn-size) minmax(0, 1fr);
1352
+ grid-template-columns: var(--home-icon-btn-size) max-content;
1329
1353
  column-gap: calc(var(--space-xs) * 2); /* ≤ 2× stacked button gap (~8.8px) */
1330
1354
  justify-content: start;
1331
1355
  align-items: start;
1356
+ width: max-content;
1357
+ max-width: 100%;
1358
+ margin-inline: auto;
1332
1359
  }
1333
1360
 
1334
1361
  .home-projects-inventory-wrap {
@@ -1855,7 +1882,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
1855
1882
  }
1856
1883
 
1857
1884
  /* ═══════════════════════════════════════════════════════════════════════════
1858
- CR-22 / CR-22.2 — Home hero B3 pixel parity (PLT-AC-81…87)
1885
+ CR-22…22.4 — Home hero B3 + C4 (PLT-AC-81…94)
1859
1886
  Photo as hero background + 50/50 masthead with Projects from 1024px.
1860
1887
  Name/summary/actions/spacing match approved B3 measures within ~2px;
1861
1888
  masthead width 1337.625px; crops centered; home plates 16:9.
@@ -1878,34 +1905,38 @@ html[data-theme="light"] .home-featured .ledger-poster {
1878
1905
  object-position: center;
1879
1906
  }
1880
1907
 
1881
- /* Spotlight overlay — centered radial pool + vignette (config-driven; B3 intensity) */
1908
+ /* Soft edgeless photo overlay (C4 / PLT-AC-89) — full-bleed darkening, no panel.
1909
+ Stops tuned for ≥7:1 title+summary on every pool photo; vignette/pool still scale. */
1882
1910
  .home-hero-portrait::after {
1883
1911
  content: "";
1884
1912
  position: absolute;
1885
1913
  inset: 0;
1886
1914
  z-index: 2;
1887
1915
  pointer-events: none;
1916
+ border-radius: 0;
1888
1917
  background:
1889
1918
  radial-gradient(
1890
- ellipse 60% 74% at 50% 50%,
1891
- rgba(0, 0, 0, calc(1 - var(--home-hero-pool))) 0%,
1892
- rgba(0, 0, 0, calc(0.06 * var(--home-hero-vignette) / 0.6)) 30%,
1893
- rgba(0, 0, 0, calc(0.34 * var(--home-hero-vignette) / 0.6)) 64%,
1894
- rgba(0, 0, 0, calc(1 * var(--home-hero-vignette) / 0.6)) 100%
1919
+ ellipse 75% 60% at 55% 32%,
1920
+ rgba(0, 0, 0, calc(0.04 * var(--home-hero-vignette) / 0.6)) 0%,
1921
+ rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 50%,
1922
+ rgba(0, 0, 0, calc(0.52 * var(--home-hero-vignette) / 0.6)) 100%
1895
1923
  ),
1896
1924
  linear-gradient(
1897
1925
  90deg,
1898
- rgba(0, 0, 0, calc(0.52 * var(--home-hero-vignette) / 0.6)) 0%,
1899
- rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 28%,
1900
- rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 50%,
1901
- transparent 74%
1926
+ rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 0%,
1927
+ rgba(0, 0, 0, calc(0.55 * var(--home-hero-vignette) / 0.6)) 14%,
1928
+ rgba(0, 0, 0, calc(0.38 * var(--home-hero-vignette) / 0.6)) 34%,
1929
+ rgba(0, 0, 0, calc(0.18 * var(--home-hero-vignette) / 0.6)) 54%,
1930
+ transparent 76%
1902
1931
  ),
1903
1932
  linear-gradient(
1904
1933
  180deg,
1905
- rgba(0, 0, 0, calc(0.14 * var(--home-hero-vignette) / 0.6)) 0%,
1906
- transparent 20%,
1907
- transparent 55%,
1908
- rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 100%
1934
+ rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 0%,
1935
+ rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 14%,
1936
+ rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 28%,
1937
+ rgba(0, 0, 0, calc(0.48 * var(--home-hero-vignette) / 0.6)) 52%,
1938
+ rgba(0, 0, 0, calc(0.74 * var(--home-hero-vignette) / 0.6)) 72%,
1939
+ rgba(0, 0, 0, calc(0.84 * var(--home-hero-vignette) / 0.6)) 100%
1909
1940
  );
1910
1941
  }
1911
1942
 
@@ -1921,10 +1952,10 @@ html[data-theme="light"] .home-featured .ledger-poster {
1921
1952
  background: #050505;
1922
1953
  }
1923
1954
 
1924
- /* B3 stack: no band padding above Projects title */
1955
+ /* B3 stack: ~24px hero→projects gap (measures-b3 @390), not --space-3xl */
1925
1956
  .home-band[data-home-kind="portfolio"],
1926
1957
  #home-projects {
1927
- padding-block: 0;
1958
+ padding-block: 1.35rem 0;
1928
1959
  margin-block: 0;
1929
1960
  }
1930
1961
  .home-band[data-home-kind="portfolio"] .home-band-inner,
@@ -1994,29 +2025,27 @@ html[data-theme="light"] .home-featured .ledger-poster {
1994
2025
  filter: saturate(0.90) contrast(1.08) brightness(0.94);
1995
2026
  }
1996
2027
 
1997
- /* B3 stack vignette intensity (still centered pool for PLT-AC-84) */
2028
+ /* C4 stack soft overlay — denser under title+summary for ≥7:1 (PLT-AC-89/90) */
1998
2029
  .home-hero-portrait::after {
2030
+ border-radius: 0;
1999
2031
  background:
2000
2032
  radial-gradient(
2001
- ellipse 70% 78% at 50% 50%,
2002
- rgba(0, 0, 0, calc(1 - var(--home-hero-pool))) 0%,
2003
- rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 34%,
2004
- rgba(0, 0, 0, calc(0.45 * var(--home-hero-vignette) / 0.6)) 66%,
2005
- rgba(0, 0, 0, calc(0.70 * var(--home-hero-vignette) / 0.6)) 100%
2006
- ),
2007
- linear-gradient(
2008
- 90deg,
2009
- rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 0%,
2010
- rgba(0, 0, 0, calc(0.38 * var(--home-hero-vignette) / 0.6)) 28%,
2011
- rgba(0, 0, 0, calc(0.12 * var(--home-hero-vignette) / 0.6)) 55%,
2012
- transparent 78%
2033
+ ellipse 85% 50% at 50% 14%,
2034
+ rgba(0, 0, 0, calc(0.08 * var(--home-hero-vignette) / 0.6)) 0%,
2035
+ rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 50%,
2036
+ rgba(0, 0, 0, calc(0.55 * var(--home-hero-vignette) / 0.6)) 100%
2013
2037
  ),
2014
2038
  linear-gradient(
2015
2039
  180deg,
2016
- rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 0%,
2017
- rgba(0, 0, 0, calc(0.08 * var(--home-hero-vignette) / 0.6)) 18%,
2018
- rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 55%,
2019
- rgba(0, 0, 0, calc(0.65 * var(--home-hero-vignette) / 0.6)) 100%
2040
+ rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 0%,
2041
+ rgba(0, 0, 0, calc(0.22 * var(--home-hero-vignette) / 0.6)) 6%,
2042
+ rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 16%,
2043
+ rgba(0, 0, 0, calc(0.68 * var(--home-hero-vignette) / 0.6)) 26%,
2044
+ rgba(0, 0, 0, calc(0.82 * var(--home-hero-vignette) / 0.6)) 36%,
2045
+ rgba(0, 0, 0, calc(0.88 * var(--home-hero-vignette) / 0.6)) 48%,
2046
+ rgba(0, 0, 0, calc(0.84 * var(--home-hero-vignette) / 0.6)) 62%,
2047
+ rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 80%,
2048
+ rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 100%
2020
2049
  );
2021
2050
  }
2022
2051
 
@@ -2047,7 +2076,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
2047
2076
  line-height: 1.08;
2048
2077
  max-width: 100%;
2049
2078
  color: #f4f4f4;
2050
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
2079
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.25);
2051
2080
  margin-bottom: 1rem;
2052
2081
  }
2053
2082
 
@@ -2064,7 +2093,8 @@ html[data-theme="light"] .home-featured .ledger-poster {
2064
2093
  --mark-1: 42%;
2065
2094
  --mark-2: 32%;
2066
2095
  --mark-3: 14%;
2067
- --mk-h: 0.72em;
2096
+ --mk-h: 1.02em;
2097
+ padding-inline: 0.14em;
2068
2098
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
2069
2099
  }
2070
2100
 
@@ -2073,7 +2103,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
2073
2103
  .home-hero .home-hero-summary p,
2074
2104
  .home-hero .home-hero-tagline {
2075
2105
  color: #f0f0f0;
2076
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
2106
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.25);
2077
2107
  max-width: min(34rem, 100%);
2078
2108
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
2079
2109
  line-height: 1.45;
@@ -2088,22 +2118,49 @@ html[data-theme="light"] .home-featured .ledger-poster {
2088
2118
  }
2089
2119
 
2090
2120
  .home-hero-actions {
2121
+ display: flex;
2091
2122
  margin-top: 1.5rem;
2092
2123
  flex-wrap: wrap;
2124
+ align-items: center;
2093
2125
  gap: 0.4rem 0.55rem;
2094
2126
  }
2095
2127
 
2128
+ /* PLT-AC-94: contacts stay one unit when actions wrap (CV alone on line 1). */
2129
+ .home-hero-actions-contacts {
2130
+ display: inline-flex;
2131
+ flex-wrap: nowrap;
2132
+ align-items: center;
2133
+ gap: 0.4rem 0.55rem;
2134
+ max-width: 100%;
2135
+ }
2136
+
2137
+ /* PLT-AC-93: marker wash (white ink OK on photo), no solid filled box. */
2096
2138
  .home-hero-actions .ledger-cta,
2097
2139
  .home-hero-actions .home-hero-cta {
2098
- background: rgba(245, 245, 245, 0.94);
2099
- color: #111;
2100
- border-color: rgba(255, 255, 255, 0.55);
2140
+ --mark-ink: #ffffff;
2141
+ --mark-1: var(--mark-strong-a);
2142
+ --mark-2: var(--mark-strong-b);
2143
+ --mark-3: var(--mark-strong-c);
2144
+ color: #ffffff;
2145
+ border-color: transparent;
2146
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
2147
+ }
2148
+
2149
+ .home-hero-actions .ledger-cta--emphasis-alt {
2150
+ --mark-ink: #c8e4f5;
2101
2151
  }
2102
2152
 
2103
2153
  .home-hero-actions .ledger-cta span,
2104
2154
  .home-hero-actions .home-hero-cta span,
2105
2155
  .home-hero-actions .material-symbols-outlined {
2156
+ color: inherit;
2157
+ }
2158
+
2159
+ .home-hero-actions .ledger-cta--emphasis:hover,
2160
+ .home-hero-actions .ledger-cta--emphasis-alt:hover {
2106
2161
  color: #111;
2162
+ text-shadow: none;
2163
+ background: rgba(255, 255, 255, 0.92);
2107
2164
  }
2108
2165
  }
2109
2166
 
@@ -2163,14 +2220,29 @@ html[data-theme="light"] .home-featured .ledger-poster {
2163
2220
  padding-block: 0;
2164
2221
  padding-inline: 0;
2165
2222
  border-bottom: 0;
2166
- align-self: start;
2223
+ align-self: stretch;
2224
+ height: 100%;
2225
+ min-height: 0;
2167
2226
  }
2168
2227
 
2169
2228
  .home-band[data-home-kind="portfolio"] .home-band-inner {
2170
2229
  max-width: none;
2171
2230
  width: 100%;
2231
+ height: 100%;
2172
2232
  margin: 0;
2173
2233
  padding-inline: 0;
2234
+ display: flex;
2235
+ flex-direction: column;
2236
+ align-items: center;
2237
+ justify-content: flex-start;
2238
+ min-height: 0;
2239
+ box-sizing: border-box;
2240
+ }
2241
+
2242
+ .home-band[data-home-kind="portfolio"] .home-projects-bench {
2243
+ margin-top: auto;
2244
+ flex: 1 1 auto;
2245
+ min-height: 0;
2174
2246
  }
2175
2247
 
2176
2248
  .home-band:not(.home-band--hero):not([data-home-kind="portfolio"]) {
@@ -2258,7 +2330,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
2258
2330
  max-width: 100%;
2259
2331
  overflow: hidden;
2260
2332
  color: #f4f4f4;
2261
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
2333
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.25);
2262
2334
  margin-bottom: 1rem;
2263
2335
  }
2264
2336
 
@@ -2275,7 +2347,8 @@ html[data-theme="light"] .home-featured .ledger-poster {
2275
2347
  --mark-1: 42%;
2276
2348
  --mark-2: 32%;
2277
2349
  --mark-3: 14%;
2278
- --mk-h: 0.72em;
2350
+ --mk-h: 1.02em;
2351
+ padding-inline: 0.14em;
2279
2352
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
2280
2353
  }
2281
2354
 
@@ -2283,7 +2356,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
2283
2356
  .home-hero .home-hero-summary p,
2284
2357
  .home-hero .home-hero-tagline {
2285
2358
  color: #f0f0f0;
2286
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
2359
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.25);
2287
2360
  max-width: 100%;
2288
2361
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
2289
2362
  line-height: 1.45;
@@ -2295,26 +2368,50 @@ html[data-theme="light"] .home-featured .ledger-poster {
2295
2368
 
2296
2369
  .home-hero-actions {
2297
2370
  display: flex;
2298
- flex-wrap: nowrap;
2371
+ flex-wrap: wrap;
2372
+ align-items: center;
2299
2373
  gap: 0.4rem 0.5rem;
2300
2374
  margin-top: 1.5rem;
2301
2375
  width: 100%;
2302
2376
  }
2303
2377
 
2378
+ .home-hero-actions-contacts {
2379
+ display: inline-flex;
2380
+ flex-wrap: nowrap;
2381
+ align-items: center;
2382
+ gap: 0.4rem 0.5rem;
2383
+ max-width: 100%;
2384
+ }
2385
+
2304
2386
  .home-hero-actions .ledger-cta,
2305
2387
  .home-hero-actions .home-hero-cta {
2306
2388
  flex: 0 1 auto;
2307
2389
  white-space: nowrap;
2308
2390
  min-width: 0;
2309
- background: rgba(245, 245, 245, 0.94);
2310
- color: #111;
2311
- border-color: rgba(255, 255, 255, 0.55);
2391
+ --mark-ink: #ffffff;
2392
+ --mark-1: var(--mark-strong-a);
2393
+ --mark-2: var(--mark-strong-b);
2394
+ --mark-3: var(--mark-strong-c);
2395
+ color: #ffffff;
2396
+ border-color: transparent;
2397
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
2398
+ }
2399
+
2400
+ .home-hero-actions .ledger-cta--emphasis-alt {
2401
+ --mark-ink: #c8e4f5;
2312
2402
  }
2313
2403
 
2314
2404
  .home-hero-actions .ledger-cta span,
2315
2405
  .home-hero-actions .home-hero-cta span,
2316
2406
  .home-hero-actions .material-symbols-outlined {
2407
+ color: inherit;
2408
+ }
2409
+
2410
+ .home-hero-actions .ledger-cta--emphasis:hover,
2411
+ .home-hero-actions .ledger-cta--emphasis-alt:hover {
2317
2412
  color: #111;
2413
+ text-shadow: none;
2414
+ background: rgba(255, 255, 255, 0.92);
2318
2415
  }
2319
2416
  }
2320
2417
 
@@ -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.3.4"
27
+ # GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.6"
28
28
  gem "csv"
29
29
  gem "base64"
30
30
  RUBY
@@ -51,7 +51,7 @@ home:
51
51
  notes: Include path for hero decoration (default `page/hero-default.html`)
52
52
  hero_portrait:
53
53
  type: string
54
- notes: Optional stem or path fragment; when set, the home hydrator prefers that pool entry instead of a random draw (e.g. `DSC00571`)
54
+ notes: Optional stem or path fragment; when set, the home hydrator prefers that pool entry instead of a random draw (e.g. `DSC00571`). Omit for random selection each load.
55
55
  hero_overlay:
56
56
  type: map
57
57
  notes: Optional `{ vignette, pool }` (0–1) emitted as `--home-hero-vignette` / `--home-hero-pool`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pandorga
4
- VERSION = "2.3.4"
4
+ VERSION = "2.3.6"
5
5
  end
@@ -245,7 +245,7 @@ require_declarations(
245
245
  )
246
246
  require_declarations(
247
247
  errors, "assets/css/ledger/home.css", home_sheet,
248
- ".home-projects-bench", ["grid-template-columns: var(--home-icon-btn-size) minmax(0, 1fr)", "column-gap: calc(var(--space-xs) * 2)", "justify-content: start"]
248
+ ".home-projects-bench", ["grid-template-columns: var(--home-icon-btn-size) max-content", "column-gap: calc(var(--space-xs) * 2)", "width: max-content", "margin-inline: auto"]
249
249
  )
250
250
  require_declarations(
251
251
  errors, "assets/css/ledger/home.css", home_sheet,
@@ -197,7 +197,7 @@ item(4) do
197
197
  end
198
198
  expect_decl(".home-hero-plate img", "object-fit", "cover", media: DESKTOP)
199
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)
200
+ expect_decl(".home-hero-actions", "flex-wrap", "wrap", 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"')
@@ -0,0 +1,122 @@
1
+ # frozen_string_literal: true
2
+
3
+ # CR-22.4 / pandorga 2.3.6 — C4 home hero gates (PLT-AC-88…94).
4
+ # One assertion block per acceptance criterion in docs/features/home-hero-c4.md.
5
+
6
+ require "pathname"
7
+
8
+ ROOT = Pathname(__dir__).join("../..").expand_path
9
+ HOME = ROOT.join("assets/css/ledger/home.css").read
10
+ LAYOUT = ROOT.join("_layouts/home.html").read
11
+ FRAGMENTS = ROOT.join("_includes/content-runtime/60-fragments.html").read
12
+ SPEC = ROOT.join("docs/features/home-hero-c4.md").read
13
+ VALIDATE = ROOT.join("scripts/validate.sh").read
14
+
15
+ failed = 0
16
+ def fail!(msg)
17
+ warn "FAIL test-home-hero-c4: #{msg}"
18
+ true
19
+ end
20
+
21
+ # PLT-AC-88 — Projects island centered in desktop column
22
+ unless HOME.match?(/\.home-projects-bench[\s\S]{0,800}?margin-inline:\s*auto/)
23
+ failed = 1 if fail!("PLT-AC-88: .home-projects-bench must use margin-inline: auto")
24
+ end
25
+ unless HOME.match?(/\.home-projects-bench[\s\S]{0,800}?width:\s*max-content/)
26
+ failed = 1 if fail!("PLT-AC-88: .home-projects-bench must use width: max-content")
27
+ end
28
+ unless HOME.include?("PLT-AC-88") || SPEC.include?("PLT-AC-88")
29
+ failed = 1 if fail!("PLT-AC-88: spec must name PLT-AC-88")
30
+ end
31
+
32
+ # PLT-AC-89 — soft edgeless overlay, no panel behind copy
33
+ unless HOME.match?(/\.home-hero-portrait::after[\s\S]{0,800}?border-radius:\s*0/) ||
34
+ HOME.match?(/\.home-hero-portrait::after[\s\S]{0,200}?inset:\s*0/)
35
+ # inset 0 full-bleed is required; border-radius 0 optional if never set
36
+ unless HOME.match?(/\.home-hero-portrait::after[\s\S]{0,120}?inset:\s*0/)
37
+ failed = 1 if fail!("PLT-AC-89: .home-hero-portrait::after must be full-bleed (inset: 0)")
38
+ end
39
+ end
40
+ copy_bodies = HOME.scan(/\.home-hero-copy\s*\{([^}]+)\}/m).flatten
41
+ unless copy_bodies.any? { |b| b.include?("background: transparent") || b.include?("background:transparent") }
42
+ failed = 1 if fail!("PLT-AC-89: .home-hero-copy must stay background: transparent")
43
+ end
44
+ if HOME.match?(/\.home-hero-copy::(?:before|after)\s*\{[^}]*background:\s*(?!none)[^;]+/)
45
+ failed = 1 if fail!("PLT-AC-89: .home-hero-copy must not paint a panel via ::before/::after")
46
+ end
47
+ # Soft overlay denser under text (stack recipe carries high bottom stop)
48
+ unless HOME.include?("0.84") || HOME.include?("0.88") || HOME.include?("rgba(0, 0, 0, 0.84)")
49
+ failed = 1 if fail!("PLT-AC-89: soft overlay must include dense bottom darkening (≥0.84)")
50
+ end
51
+
52
+ # PLT-AC-90 — light title/summary + text-shadow for ≥7:1 (structure)
53
+ unless HOME.match?(/\.home-hero-title[\s\S]{0,200}?color:\s*#f[0-9a-fA-F]{3,5}/)
54
+ failed = 1 if fail!("PLT-AC-90: .home-hero-title must use light ink (#f…)")
55
+ end
56
+ unless HOME.match?(/\.home-hero-summary[\s\S]{0,200}?text-shadow:/)
57
+ failed = 1 if fail!("PLT-AC-90: .home-hero-summary must keep text-shadow on the photo")
58
+ end
59
+
60
+ # PLT-AC-91 — highlighter 1.02em / 0.14em
61
+ unless HOME.match?(/\.home-hero-family[\s\S]{0,300}?--mk-h:\s*1\.02em/)
62
+ failed = 1 if fail!("PLT-AC-91: .home-hero-family must set --mk-h: 1.02em")
63
+ end
64
+ unless HOME.match?(/\.home-hero-family[\s\S]{0,300}?padding-inline:\s*0\.14em/)
65
+ failed = 1 if fail!("PLT-AC-91: .home-hero-family must set padding-inline: 0.14em")
66
+ end
67
+ if HOME.match?(/\.home-hero-family[\s\S]{0,300}?--mk-h:\s*0\.72em/)
68
+ failed = 1 if fail!("PLT-AC-91: .home-hero-family must not keep --mk-h: 0.72em")
69
+ end
70
+
71
+ # PLT-AC-92 — random when unpinned; object-position center
72
+ unless FRAGMENTS.include?("pickHeroPortrait(entries, Math.random")
73
+ failed = 1 if fail!("PLT-AC-92: hydrate must draw with Math.random when prefer is empty")
74
+ end
75
+ unless HOME.match?(/\.home-hero-plate img[\s\S]{0,200}?object-position:\s*center/)
76
+ failed = 1 if fail!("PLT-AC-92: .home-hero-plate img must use object-position: center")
77
+ end
78
+ unless SPEC.include?("Omit for random") || SPEC.include?("random draw")
79
+ failed = 1 if fail!("PLT-AC-92: spec must document default random draw")
80
+ end
81
+
82
+ # PLT-AC-93 — marker CTAs, no solid box override on hero actions
83
+ hero_actions_blocks = HOME.scan(/\.home-hero-actions\s+\.ledger-cta[\s\S]{0,80}?\{([^}]+)\}/m).flatten
84
+ solid = hero_actions_blocks.any? { |b| b.match?(/background:\s*rgba\(\s*245/) }
85
+ if solid
86
+ failed = 1 if fail!("PLT-AC-93: hero CTAs must not override marker wash with solid rgba(245…) box")
87
+ end
88
+ unless HOME.match?(/\.home-hero-actions[\s\S]{0,500}?--mark-ink:/) ||
89
+ HOME.match?(/home-hero-cta[\s\S]{0,200}?--mark-ink:/)
90
+ failed = 1 if fail!("PLT-AC-93: hero CTAs must set --mark-ink for marker wash on the photo")
91
+ end
92
+
93
+ # PLT-AC-94 — CV / contacts wrap groups
94
+ unless LAYOUT.include?("home-hero-actions-contacts")
95
+ failed = 1 if fail!("PLT-AC-94: home layout must wrap contacts in .home-hero-actions-contacts")
96
+ end
97
+ unless FRAGMENTS.match?(/data-content-hero-contacts[\s\S]{0,800}?innerHTML\s*=/)
98
+ failed = 1 if fail!("PLT-AC-94: hydrateContacts must set innerHTML on hero contact slots (keep wrapper)")
99
+ end
100
+ if FRAGMENTS.match?(/heroSlots\.forEach[\s\S]{0,120}?outerHTML\s*=/)
101
+ failed = 1 if fail!("PLT-AC-94: hydrateContacts must not replace hero contact slot via outerHTML")
102
+ end
103
+ unless HOME.match?(/\.home-hero-actions[\s\S]{0,120}?flex-wrap:\s*wrap/)
104
+ failed = 1 if fail!("PLT-AC-94: .home-hero-actions must allow flex-wrap: wrap")
105
+ end
106
+ unless HOME.match?(/\.home-hero-actions-contacts[\s\S]{0,120}?flex-wrap:\s*nowrap/)
107
+ failed = 1 if fail!("PLT-AC-94: .home-hero-actions-contacts must keep flex-wrap: nowrap")
108
+ end
109
+
110
+ # Spec + validate wiring
111
+ unless SPEC.include?("PLT-AC-94") && SPEC.include?("2.3.6")
112
+ failed = 1 if fail!("spec docs/features/home-hero-c4.md must cover PLT-AC-88…94 and 2.3.6")
113
+ end
114
+ unless VALIDATE.include?("test-home-hero-c4.rb")
115
+ failed = 1 if fail!("scripts/validate.sh must allowlist test-home-hero-c4.rb")
116
+ end
117
+
118
+ if failed.zero?
119
+ puts "PASS test-home-hero-c4 (PLT-AC-88…94)"
120
+ else
121
+ exit 1
122
+ end
data/scripts/validate.sh CHANGED
@@ -79,6 +79,7 @@ TESTS=(
79
79
  scripts/test/test-v3-layout.rb
80
80
  scripts/test/test-studio-section-texts.rb
81
81
  scripts/test/test-home-article-cards.rb
82
+ scripts/test/test-home-hero-c4.rb
82
83
  scripts/test/test-parallel-content-publish.rb
83
84
  scripts/test/test-mobile-density-home-measure.rb
84
85
  scripts/test/test-regression-gate.rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandorga
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Pandorga contributors
@@ -443,6 +443,7 @@ files:
443
443
  - scripts/test/test-home-articles.rb
444
444
  - scripts/test/test-home-band-art.rb
445
445
  - scripts/test/test-home-band-intro.rb
446
+ - scripts/test/test-home-hero-c4.rb
446
447
  - scripts/test/test-home-lists.rb
447
448
  - scripts/test/test-hydrate-reserve.rb
448
449
  - scripts/test/test-install-functions.rb