www.git

www

~ Personal site — projects, posts, about. Built with sqzass.
git clone https://github.com/debuman/www.git
commit 48fd81024925279e6f7e864fee036ceb238dafce
parent 81189e7b43b4e14ac964740c70f038dfe649d39b
Author: sqzer <110329244+sqzer-x@users.noreply.github.com>
Date: Wed, 5 Aug 2026 18:34:01 +0900

The featured card stops being flat

Ours was 1235 x 400 = 3.09:1 against the reference's 1123 x 422 = 2.66:1. The
card was visibly flatter and that was the whole of the difference in height.

The cause: the <video>'s width and height attributes state 16:9, and with no CSS
ratio that intrinsic figure became the grid row. So the picture's own file
decided the card's proportion. This site's picture ratio is 16:10 — the project
frames on /projects/ already use it — and this card was the one place not
following it. With aspect-ratio declared, the row is the greater of the label's
natural height and the picture's width over 1.6, so a long title still wins and
grows the card. 1235 x 464 = 2.66:1, the reference's proportion exactly.

The crop is horizontal now, which is the safe direction for this poster: the
mandala and the figure are both centred, so what leaves the frame is background.
Flat would have cropped vertically, and vertically the first thing to go is her
head.

The split moves 1.35fr to 1.5fr, near the reference's 1.55, and the title to
49.4px at 1440. That is not a size picked for effect: the label's measure is
401px there and the title now runs 396 of it. A headline that fills its column
is why the reference's card reads as a headline and ours read as a caption —
theirs runs 353 of 353. Past this size a fifteen-character title breaks in two,
which looks forced; a longer one breaks on its own and the card grows with it.

What still differs is the one thing no stylesheet reaches. Their label is 87.7%
full because their title is thirty-nine characters and wraps to three lines.
Ours is 56% full because "A New Beginning" is fifteen and takes one. Below
1000px ours already fills completely, because the column narrows until the title
wraps.

Diffstat:
Mstatic/css/main.css | 17+++++++++++++++--
1 file changed, 15 insertion(+), 2 deletion(-)

diff --git a/static/css/main.css b/static/css/main.css
@@ -747,7 +747,7 @@ html[lang="ko"] [data-tooltip]::after { letter-spacing: 0; text-transform: none;
    행과 같은 응답이다. */
 .feature {
   display: grid;
-  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
+  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
   border: 1px solid var(--rule);
   border-radius: var(--radius);
   overflow: hidden;
@@ -771,6 +771,14 @@ html[lang="ko"] [data-tooltip]::after { letter-spacing: 0; text-transform: none;
      비율이 그대로 행 높이의 바닥이 되고, 라벨이 더 길면 라벨이 이긴다. 예전의
      clamp 는 어느 폭에서도 이 값을 넘지 못해서 아무 일도 하지 않았다. */
   width: 100%; height: 100%;
+  /* 16:10 은 이 사이트의 그림 비율이다 — /projects/ 의 .frame-media 가 같은 값을
+     쓴다. 이 카드만 <video> 의 width/height 속성이 주는 16:9 를 그대로 행 높이로
+     써서, 카드가 3.09:1 로 납작했다(참조는 2.66:1). CSS 비율이 내재 비율을
+     덮으므로 행은 이제 max(이름표의 자연 높이, 그림 폭 ÷ 1.6) 이고, 제목이
+     길어지면 이름표가 이긴다.
+     좌우가 잘리는데 이 포스터는 만다라도 인물도 가운데 있어서 잘려 나가는 것은
+     배경이다. 반대로 납작하게 두면 세로가 잘리고, 그때 잘리는 것은 머리다. */
+  aspect-ratio: 16 / 10;
   object-fit: cover;
   border-right: 1px solid var(--rule);
   background: var(--bg-3);
@@ -791,7 +799,12 @@ html[lang="ko"] [data-tooltip]::after { letter-spacing: 0; text-transform: none;
 .feature:hover .feature-date { color: var(--accent); }
 .feature-title {
   margin: 0;
-  font-size: clamp(1.4rem, 1.15rem + 1.35vw, 2.35rem);
+  /* 1440 에서 49.4px. 이 폭에서 이름표의 측정폭은 402px 이고 지금 제목이 396px 을
+     차지한다 — 제목이 자기 열을 꽉 채우는 것이 참조 카드가 헤드라인처럼 읽히는
+     이유이고(그쪽은 353 중 353), 그 성질을 숫자로 맞춘 값이다.
+     더 키우면 두 줄이 되는데, 15자짜리 제목이 꺾이는 건 억지로 보인다. 제목이
+     길어지면 알아서 꺾이고 그때는 카드가 같이 자란다. */
+  font-size: clamp(1.5rem, 1.15rem + 1.95vw, 2.6rem);
   font-weight: var(--w-section); letter-spacing: var(--track-air); line-height: 1.2;
   color: var(--ink-2); transition: color var(--tr-ink);
   /* 이 시트의 모든 제목이 balance 다. 한때 여기만 pretty 로 바꿔 두고 "balance 는