Some checks are pending
ci / build (push) Waiting to run
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.
144 lines
11 KiB
CSS
144 lines
11 KiB
CSS
@import url("./tokens.css?v=20261006");
|
|
|
|
/* ── 기본 ── */
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
* { margin: 0; }
|
|
html { background: var(--surface); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
|
|
body { background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: var(--leading-normal); font-synthesis: none; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
|
|
:where(h1, h2) { font-family: var(--font-display); font-weight: var(--weight-display); line-height: var(--leading-tight); letter-spacing: -0.02em; text-wrap: balance; }
|
|
h2 { font-size: var(--step-2); }
|
|
h3 { font-family: var(--font-display); font-size: var(--step-1); font-weight: var(--weight-display); line-height: 1.35; letter-spacing: -0.01em; }
|
|
:where(p, li, dd, dt, figcaption) { text-wrap: pretty; }
|
|
a { color: inherit; text-underline-position: under; }
|
|
.muted { color: var(--ink-muted); }
|
|
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
.skip { position: absolute; z-index: 100; top: 0; left: -9999px; padding: var(--space-3) var(--space-4); background: var(--accent); color: var(--accent-ink); }
|
|
.skip:focus { left: 0; }
|
|
.wrap { width: min(100% - 2 * var(--pad-inline), var(--container)); margin-inline: auto; }
|
|
|
|
/* ── 머리: 워드마크 + 서체 탭(내비는 탭 하나뿐) ── */
|
|
.site-head { border-bottom: 1px solid var(--line); }
|
|
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-block-size: var(--head-height); }
|
|
.wordmark { font-family: var(--font-display); font-size: var(--step-1); font-weight: var(--weight-display); text-decoration: none; white-space: nowrap; }
|
|
.tabs { display: flex; }
|
|
.tab { min-block-size: 2.75rem; white-space: nowrap; padding-inline: var(--space-4); border: 1px solid var(--line-strong); border-inline-start-width: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
|
|
.tab:first-child { border-inline-start-width: 1px; }
|
|
.tab:hover { background: var(--accent-soft); }
|
|
.tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
|
|
.tab[aria-selected="true"] + .tab { border-inline-start-color: var(--accent); }
|
|
|
|
/* ── 첫 화면: 글자 하나가 이미지다 ── */
|
|
.hero { padding-block: 0 var(--space-6); }
|
|
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-5) var(--space-6); min-block-size: calc(100svh - var(--head-height) - var(--space-5)); }
|
|
.hero-grid > * { min-inline-size: 0; }
|
|
.hero-title { grid-column: 1; grid-row: 2; align-self: end; }
|
|
.hero h1 { font-size: var(--step-3); white-space: nowrap; }
|
|
.hero-lead { max-inline-size: 28em; margin-top: var(--space-3); color: var(--ink-muted); }
|
|
.stage { grid-column: 1 / -1; grid-row: 1 / 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
|
|
.glyph { grid-column: 1 / -1; grid-row: 1; justify-self: center; align-self: center; font-family: var(--face-buri); font-size: var(--glyph-size); font-weight: 400; line-height: 1; color: var(--accent); transform-origin: center bottom; view-transition-name: glyph; }
|
|
[data-face="godic"] .glyph { font-family: var(--face-godic); }
|
|
.axis { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-5); align-items: end; align-self: end; }
|
|
.type-status { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--step--1); max-inline-size: 40em; view-transition-name: face-status; }
|
|
.control { display: grid; gap: var(--space-2); }
|
|
.control-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
|
|
.control label, .control output { color: var(--ink-muted); font-size: var(--step--1); }
|
|
.control output, .order-price { font-variant-numeric: tabular-nums; }
|
|
.control-glyph input { inline-size: 3.25rem; min-block-size: 2.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-family: inherit; font-size: var(--step-1); text-align: center; }
|
|
input[type="range"], select { inline-size: 100%; accent-color: var(--accent); }
|
|
input[type="range"] { min-block-size: 2.75rem; margin: 0; }
|
|
select { min-block-size: 2.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; padding-inline: var(--space-3); }
|
|
|
|
/* ── 섹션 공통 ── */
|
|
.section { padding-block: var(--space-8); }
|
|
.section[id] { scroll-margin-block-start: var(--space-4); }
|
|
.band { border-block: 1px solid var(--line); background: var(--surface-raised); }
|
|
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-4) var(--space-6); align-items: end; }
|
|
.section-head h2 { max-inline-size: 22em; }
|
|
.section-note { color: var(--ink-muted); max-inline-size: 28em; }
|
|
|
|
/* ── 비교: 같은 문장, 같은 폭 ── */
|
|
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); border-top: 1px solid var(--line); }
|
|
.typeface { min-inline-size: 0; padding-block: var(--space-5) var(--space-6); border-top: 3px solid transparent; margin-top: -2px; }
|
|
[data-face="buri"] .typeface[data-face="buri"], [data-face="godic"] .typeface[data-face="godic"] { border-top-color: var(--accent); }
|
|
.typeface-head .muted { margin-top: var(--space-2); font-size: var(--step--1); max-inline-size: 30em; }
|
|
.specimen { margin-top: var(--space-5); inline-size: 100%; font-size: 1.375rem; line-height: 1.8; }
|
|
.specimen-buri { font-family: var(--face-buri); }
|
|
.specimen-godic { font-family: var(--face-godic); }
|
|
|
|
/* ── 조판 시험대 ── */
|
|
.bench { display: grid; grid-template-columns: minmax(13rem, 3fr) minmax(0, 7fr); gap: var(--space-6) var(--space-7); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
|
|
.bench-controls { display: grid; align-content: start; gap: var(--space-4); }
|
|
.btn-reset { justify-self: start; min-block-size: 2.75rem; margin-top: var(--space-2); padding-inline: 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
|
|
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }
|
|
.bench-caption { margin-bottom: var(--space-2); color: var(--ink-muted); font-size: var(--step--1); }
|
|
.bench-disclaimer { margin-bottom: var(--space-3); color: var(--ink-muted); font-size: var(--step--1); }
|
|
.bench-sample { max-inline-size: 42rem; border: 1px solid var(--line); background: var(--surface); padding: clamp(var(--space-4), 3vw, var(--space-6)); font-family: var(--face-buri); font-size: 1.0625rem; line-height: 1.8; }
|
|
|
|
/* ── 옆면 여백과 자간: 글자가 그림이다 ── */
|
|
.spacing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) var(--space-7); align-items: center; }
|
|
.spacing-grid > * { min-inline-size: 0; }
|
|
.spacing-text p { margin-top: var(--space-4); max-inline-size: var(--measure); }
|
|
.track-demo { border-block: 1px solid var(--line); padding-block: var(--space-4); overflow: hidden; }
|
|
.track-line { font-family: var(--face-buri); font-size: clamp(2.5rem, 1rem + 6vw, 6rem); font-weight: 400; line-height: 1.2; color: var(--accent); white-space: nowrap; }
|
|
[data-face="godic"] .track-line { font-family: var(--face-godic); }
|
|
.track-tight { letter-spacing: -0.05em; }
|
|
.track-loose { letter-spacing: 0.1em; }
|
|
.track-demo figcaption { margin-top: var(--space-3); color: var(--ink-muted); font-size: var(--step--1); }
|
|
|
|
/* ── 라이선스(예시) ── */
|
|
.order-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: var(--space-5) var(--space-7); align-items: center; }
|
|
.order-grid > * { min-inline-size: 0; }
|
|
.order-text .muted { max-inline-size: 28em; margin-top: var(--space-3); }
|
|
.order-rows { border-top: 1px solid var(--line); }
|
|
.order-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
|
|
.order-row p { margin-top: var(--space-1); color: var(--ink-muted); font-size: var(--step--1); }
|
|
.order-price { flex: 0 0 auto; color: var(--ink); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--step-1); white-space: nowrap; }
|
|
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 2.75rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); padding-inline: 1.25rem; text-decoration: none; }
|
|
.btn:hover { background: var(--accent-hover); }
|
|
|
|
/* ── 푸터: 큰 워드마크 한 줄 ── */
|
|
.site-foot { border-top: 1px solid var(--line); padding-block: var(--space-6) var(--space-5); overflow: hidden; }
|
|
.foot-mark { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--wordmark-size); line-height: 1; letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; }
|
|
.foot-note { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--step--1); max-inline-size: 44em; }
|
|
|
|
/* ── 모션: 탭 전환은 View Transitions, 표본 크기는 스크롤이 움직인다 ── */
|
|
::view-transition-old(glyph), ::view-transition-old(face-status) { animation: calc(var(--dur-slow) * 0.65) var(--ease-in) both vt-out; }
|
|
::view-transition-new(glyph), ::view-transition-new(face-status) { animation: var(--dur-slow) var(--ease-soft) both vt-in; }
|
|
@keyframes vt-out { to { opacity: 0; translate: 0 -0.5rem; } }
|
|
@keyframes vt-in { from { opacity: 0; translate: 0 0.5rem; } }
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
@supports (animation-timeline: scroll()) {
|
|
.glyph { animation: glyph-shrink 1ms linear both; animation-timeline: scroll(root block); animation-range: 0 80vh; }
|
|
@keyframes glyph-shrink { to { scale: 0.55; } }
|
|
}
|
|
}
|
|
|
|
/* ── 반응형 ── */
|
|
@media (max-width: 900px) {
|
|
.hero-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; gap: var(--space-4); }
|
|
.hero-title { grid-row: 2; }
|
|
.stage { grid-row: 1 / 4; }
|
|
.glyph { grid-column: 1; }
|
|
.axis { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
|
|
.control-glyph { grid-template-columns: auto 1fr; align-items: center; }
|
|
.hero-lead { max-inline-size: 34em; }
|
|
.section-head, .comparison, .bench, .spacing-grid, .order-grid { grid-template-columns: 1fr; }
|
|
.bench { gap: var(--space-5); }
|
|
}
|
|
@media (max-width: 560px) {
|
|
:root { --glyph-size: min(72vw, 42svh); --head-height: 7.5rem; }
|
|
.head-inner { flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding-block: var(--space-3); }
|
|
.face-nav { flex: 1 0 100%; }
|
|
.tabs { display: grid; grid-template-columns: 1fr 1fr; }
|
|
.tab { padding-inline: var(--space-3); white-space: normal; }
|
|
.hero { padding-block: 0 var(--space-5); }
|
|
.hero-grid { min-block-size: calc(100svh - var(--head-height) - var(--space-4)); }
|
|
.hero h1, .wordmark { white-space: normal; }
|
|
.section { padding-block: var(--space-7); }
|
|
.order-row { align-items: flex-start; flex-direction: column; }
|
|
.order-price { white-space: normal; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html { scroll-behavior: auto; }
|
|
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
|
|
}
|