designpaca/apps/site/public/work/form-architecture/styles/main.css
Yun Chan 8e3cdb0d3b
Some checks are pending
ci / build (push) Waiting to run
feat(site): rework 19 marketing showcases for composition diversity
Measured convergence before: split hero 13/19, top-bar nav 19/19,
one-line notice footer 14/19, body Pretendard 17/21, 10 similarity
pairs above 0.78. Each showcase got a pre-assigned hero family, nav
form, footer form, type pair, background, accent hue, radius, motion
grammar and material from outputs/rework-2026-10-06/plan.md; direction
cards and the chosen reason are recorded in every design.md.

After: 0 similarity warnings, 19 distinct display faces, 7 hero
families, 5 nav forms, 5 footer forms, no scroll reveals, 5 showcases
with SVG filter materials. Example contact values replace bracket
placeholders under the existing fictional-brand notices. Thumbnails,
OG images, card copy and three e2e assertions updated; dead CSS in
dure-enrollment and hannam-jari removed; similarity.mjs learns the new
font families.
2026-10-06 16:55:50 +09:00

147 lines
11 KiB
CSS

/* 스튜디오 폼 — 레이아웃·재질·모션. 값은 tokens.css 토큰만 쓴다. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--surface); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-width: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-weight: var(--weight-body); font-size: var(--step-0); line-height: var(--leading-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* 한글 조판(typography §6-5) */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
:lang(ko) :is(p, li, dd, dt, address, figcaption) { letter-spacing: 0; text-wrap: pretty; }
:lang(ko) :is(h1, h2) { text-wrap: pretty; }
:root { font-synthesis-style: none; }
:lang(ko) :is(em, i, cite, dfn, var, address) { font-style: normal; }
:lang(ko) a { text-underline-position: under; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--surface); padding: var(--space-3); }
.skip:focus { left: 0; }
/* 재질: 종이 결. 타일 한 장을 고정 레이어로 깐다. 필터 연산은 로드 때 한 번뿐이다 */
body::before { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background-image: var(--grain); opacity: var(--grain-opacity); }
/* ── 틀: 왼쪽 색인 레일 + 오른쪽 시트 ── */
.frame { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); column-gap: var(--space-6); padding-inline-start: var(--pad); }
.rail { position: sticky; top: 0; align-self: start; min-height: 100dvh; max-height: 100dvh; overflow-y: auto; padding: var(--space-4) var(--space-4) var(--space-5) 0; }
.sheet { min-width: 0; padding-inline-end: var(--pad); }
.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.toc-summary { display: none; }
.toc-label { margin-top: var(--space-5); font-size: var(--step--1); line-height: 1.5; color: var(--ink-faint); }
.toc-note { margin-top: var(--space-2); font-size: var(--step--1); line-height: 1.5; color: var(--ink-faint); }
.index, .parts { list-style: none; padding: 0; margin-top: var(--space-2); border-top: 1px solid var(--line-strong); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: var(--space-2); min-height: 2.75rem; padding: 0.55rem 0 0.55rem 0.75rem; font-size: var(--step--1); line-height: 1.45; text-decoration: none; color: var(--ink-muted); transition: color var(--dur-quick) var(--ease); }
.index a:hover { color: var(--ink); }
.idx-no { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.idx-name { color: var(--ink); }
.idx-meta { grid-column: 2; display: flex; gap: var(--space-2); }
.idx-meta span:last-child { font-variant-numeric: tabular-nums; }
.index a[aria-current="true"] { border-inline-start: 2px solid var(--ink); padding-inline-start: 0.625rem; }
.index a[aria-current="true"] .idx-no { color: var(--ink); }
.parts a { display: block; min-height: 2.25rem; padding: 0.4rem 0 0.4rem 0.75rem; font-size: var(--step--1); line-height: 1.5; text-decoration: none; color: var(--ink-muted); transition: color var(--dur-quick) var(--ease); }
.parts a:hover { color: var(--ink); }
.parts a[aria-current="true"] { color: var(--ink); border-inline-start: 2px solid var(--ink); padding-inline-start: 0.625rem; }
/* 진행선: 레일과 시트 사이 세로 실선. 먹 구간이 스크롤에 따라 아래로 자란다 */
.progress { position: absolute; inset-block: 0; right: 0; width: 1px; background: var(--line); }
.progress-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: top; scale: 1 1; }
/* ── 히어로: 긴 문장 표제 + 전폭 무대 ── */
.hero { padding-top: var(--space-4); }
h1 { font-weight: var(--weight-light); font-size: var(--step-2); line-height: var(--leading-title); letter-spacing: 0; max-width: var(--measure-title); min-height: 2.75rem; padding-top: 0.45rem; }
.stage { margin-top: var(--space-6); margin-inline-end: calc(-1 * var(--pad)); }
.stage img { width: 100%; aspect-ratio: var(--stage-ratio); object-fit: cover; object-position: center 56%; filter: grayscale(1) contrast(1.04); }
figcaption { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--step--1); line-height: 1.5; color: var(--ink-muted); }
.stage-caption { margin-top: var(--space-2); padding-inline-end: var(--pad); }
.cap-no { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.notice { margin-top: var(--space-4); max-width: var(--measure); font-size: var(--step--1); line-height: 1.6; color: var(--ink-muted); }
/* ── 본문 섹션 ── */
.section { padding-top: var(--space-7); max-width: 80rem; }
h2 { font-weight: var(--weight-light); font-size: var(--step-2); line-height: var(--leading-title); letter-spacing: 0; max-width: var(--measure); border-top: 1px solid var(--line-strong); padding-top: var(--space-3); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-3); }
.plan { margin-top: var(--space-5); max-width: var(--sheet-max); view-timeline: --plan block; }
.plan-svg { display: block; width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--line); }
.plan-caption { margin-top: var(--space-2); }
.wall { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: miter; }
.wall.inner { stroke-width: 1.25; }
.window, .door { fill: none; stroke: var(--ink-muted); stroke-width: 1; }
.hatch { fill: none; stroke: var(--line); stroke-width: 1; }
.dim path, .north path { fill: none; stroke: var(--ink-muted); stroke-width: 1; }
.dim text, .north text { fill: var(--ink-faint); font-family: inherit; font-size: 13px; }
.room-label text { fill: var(--ink); font-family: inherit; font-size: 14px; paint-order: stroke; stroke: var(--sheet); stroke-width: 6px; stroke-linejoin: round; }
.drawing-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.55fr); gap: var(--space-4) var(--space-6); margin-top: var(--space-5); max-width: var(--sheet-max); align-items: start; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); border-top: 1px solid var(--line-strong); padding-top: var(--space-3); font-size: var(--step--1); line-height: 1.5; }
.spec dt { color: var(--ink-faint); }
.spec dd { margin-top: var(--space-1); font-variant-numeric: tabular-nums; }
.photo-grid { display: grid; grid-template-columns: minmax(14rem, 0.5fr) minmax(0, 1fr); gap: var(--space-5); margin-top: var(--space-5); align-items: end; }
.ph figcaption { margin-bottom: var(--space-2); }
.ph img { width: 100%; filter: grayscale(1); }
.ph-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.ph-panel img { aspect-ratio: var(--panel-ratio); object-fit: cover; object-position: center 58%; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.45fr); gap: var(--space-4) var(--space-6); margin-top: var(--space-5); max-width: var(--sheet-max); align-items: start; }
.studio-address { font-style: normal; color: var(--ink-muted); border-top: 1px solid var(--line-strong); padding-top: var(--space-3); font-size: var(--step--1); line-height: 1.6; }
/* ── 푸터: 큰 워드마크 한 줄 ── */
.foot { grid-column: 1 / -1; margin-top: var(--space-7); padding: var(--space-5) var(--pad) var(--space-4) 0; border-top: 1px solid var(--line-strong); }
.foot-mark { font-weight: var(--weight-light); font-size: var(--step-display); line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.foot-line { margin-top: var(--space-3); max-width: var(--measure); font-size: var(--step--1); line-height: 1.6; color: var(--ink-muted); }
/* ── 모션: 스크롤 축 ── */
@supports (animation-timeline: view()) {
.plan-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1ms linear both; animation-timeline: --plan; animation-range: entry calc(10% + var(--i, 0) * 7%) cover calc(42% + var(--i, 0) * 7%); }
.plan-draw path:nth-child(2) { --i: 1; }
.plan-draw path:nth-child(3) { --i: 2; }
.plan-draw path:nth-child(4) { --i: 3; }
.plan-draw path:nth-child(5) { --i: 3; }
.plan-draw path:nth-child(6) { --i: 4; }
.plan-draw path:nth-child(7) { --i: 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
}
@supports (animation-timeline: scroll()) {
.progress-fill { scale: 1 0; animation: fill 1ms linear both; animation-timeline: scroll(root block); }
@keyframes fill { to { scale: 1 1; } }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.index a, .parts a { transition: none; }
/* 감소 모션은 완성 상태: 도면은 다 그어져 있고 진행선은 정보이므로 남긴다 */
.plan-draw path { animation: none; stroke-dashoffset: 0; }
.progress-fill { animation: none; scale: 1 1; }
}
/* ── 좁은 화면: 레일이 위쪽 접는 차례가 된다 ── */
@media (max-width: 64rem) {
.frame { display: block; padding-inline: var(--pad); }
.rail { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 0; max-height: none; overflow: visible; margin-inline: calc(-1 * var(--pad)); padding: var(--space-1) var(--pad); background: var(--surface); border-bottom: 1px solid var(--line); }
.progress { display: none; }
.toc-summary { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--space-2); cursor: pointer; list-style: none; font-size: var(--step--1); }
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary span { border-bottom: 1px solid var(--ink); }
.toc-close-label, .toc[open] .toc-open-label { display: none; }
.toc[open] .toc-close-label { display: inline; }
.toc:not([open]) .toc-body { display: none; }
.toc-body { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 3.5rem); overflow-y: auto; padding: var(--space-2) var(--pad) var(--space-4); background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.toc-label { margin-top: var(--space-3); }
.sheet { padding-inline-end: 0; }
.hero { padding-top: var(--space-5); }
.stage { margin-inline: calc(-1 * var(--pad)); }
.stage-caption { padding-inline: var(--pad); }
.drawing-notes, .photo-grid, .studio-grid { grid-template-columns: 1fr; }
.photo-grid { align-items: start; }
.ph-tall { max-width: 24rem; }
.foot { padding-inline: 0; }
}
@media (max-width: 40rem) {
.spec { grid-template-columns: 1fr; }
.ph-tall { max-width: 100%; }
}