designpaca/apps/site/public/work/synapse-bci/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

374 lines
7.3 KiB
CSS

@import url("./tokens.css?v=20261002");
/* ==========================================================================
Synapse BCI Lab — 동의서처럼 읽는 개념서.
구도: 가운데 한 단(40rem)의 문서 흐름. 조 번호는 왼쪽 여백에 걸어 두고,
기록지만 화면 양끝까지 뻗는다. 좌우 분할 히어로를 쓰지 않는다.
========================================================================== */
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html {
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
background: var(--surface);
color-scheme: light;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
body {
word-break: keep-all;
overflow-wrap: break-word;
font-synthesis: none;
background: var(--surface);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--step-0);
line-height: var(--leading-normal);
}
:where(h1, h2, h3) {
font-family: var(--font-display);
line-height: var(--leading-tight);
letter-spacing: 0;
text-wrap: balance;
}
h1 {
font-weight: 600;
}
h2 {
font-size: var(--step-2);
font-weight: 600;
}
h3 {
font-size: var(--step-1);
font-weight: 600;
}
:where(p, th, td, li, figcaption) {
text-wrap: pretty;
}
a {
color: inherit;
text-underline-offset: 0.25em;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.skip {
position: absolute;
left: -9999px;
top: 0;
background: var(--ink);
color: var(--surface);
padding: var(--space-3) var(--space-4);
z-index: 100;
}
.skip:focus {
left: var(--space-3);
top: var(--space-3);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.wrap {
width: min(100% - 2 * var(--pad-inline), var(--container));
margin-inline: auto;
}
.doc {
width: min(100% - 2 * var(--pad-inline), var(--measure));
margin-inline: auto;
}
/* ── 머리 ── */
.site-head {
border-bottom: 1px solid var(--ink);
}
.head-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
min-height: 4rem;
flex-wrap: wrap;
}
.wordmark {
font-family: var(--font-display);
font-weight: 700;
font-size: 1.25rem;
text-decoration: none;
white-space: nowrap;
}
.wordmark span {
font-weight: 400;
color: var(--ink-muted);
margin-left: 0.4em;
font-size: 0.95rem;
}
/* 상단 바에는 워드마크만 둔다. 차례는 표제부(.toc)가 맡는다. */
.scope-note {
border-bottom: 1px solid var(--ink);
font-size: var(--step--1);
color: var(--ink-muted);
text-align: center;
}
.scope-note p {
padding-block: 0.55rem;
}
/* ── 표제부 ── */
.title-block {
padding-block: var(--space-6) var(--space-5);
text-align: center;
}
.doc-id {
display: inline-block;
padding-bottom: var(--space-2);
border-bottom: 2px solid var(--accent);
font-size: var(--step--1);
color: var(--ink-muted);
}
.title-block h1 {
margin-top: var(--space-4);
font-size: var(--step-3);
}
.title-block .lead {
margin: var(--space-4) auto 0;
max-width: 34rem;
color: var(--ink-muted);
}
/* 차례 — 표제부에 녹인 내비. 문서 앞머리의 목차처럼 번호·제목·괘선으로만 짠다. */
.toc {
max-width: 34rem;
margin: var(--space-5) auto 0;
text-align: left;
border-top: 2px solid var(--ink);
}
.toc-title {
padding-block: var(--space-2);
border-bottom: 1px solid var(--ink);
font-family: var(--font-body);
font-size: var(--step--1);
font-weight: 700;
letter-spacing: 0.08em;
color: var(--ink-muted);
}
.toc-list {
list-style: none;
padding: 0;
}
.toc-list a {
display: grid;
grid-template-columns: 4.5rem minmax(0, 1fr);
align-items: baseline;
gap: var(--space-3);
min-height: 44px;
padding-block: 0.55rem;
border-bottom: 1px solid var(--grid);
text-decoration: none;
}
.toc-list li:last-child a {
border-bottom: 0;
}
.toc-no {
font-family: var(--font-display);
font-weight: 600;
color: var(--accent);
}
.toc-list a:hover .toc-name,
.toc-list a:focus-visible .toc-name {
text-decoration: underline;
}
/* ── 기록지 ── */
.recorder {
border-block: 2px solid var(--ink);
}
.recorder canvas {
display: block;
width: 100%;
height: clamp(200px, 22vw, 300px);
}
.recorder figcaption {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--space-2) var(--space-4);
padding-block: var(--space-2);
font-size: var(--step--1);
color: var(--ink-muted);
}
.recorder figcaption b {
color: var(--ink);
font-weight: 700;
}
/* ── 조항 ── */
.section {
padding-block: var(--space-7);
}
.section + .section {
border-top: 1px solid var(--ink);
}
.article-head {
margin-bottom: var(--space-4);
}
.article-no {
display: block;
font-family: var(--font-display);
font-size: var(--step--1);
font-weight: 600;
color: var(--accent);
margin-bottom: var(--space-2);
}
.doc p + p {
margin-top: var(--space-3);
}
.clauses {
list-style: none;
padding: 0;
counter-reset: clause;
}
.clauses li {
position: relative;
padding: var(--space-4) 0 var(--space-4) 3.25rem;
border-top: 1px solid var(--ink);
counter-increment: clause;
}
.clauses li:last-child {
border-bottom: 1px solid var(--ink);
}
.clauses li::before {
content: counter(clause) ".";
position: absolute;
left: 0;
top: var(--space-4);
font-family: var(--font-display);
font-size: var(--step-1);
font-weight: 600;
color: var(--accent);
line-height: 1.3;
}
.clauses h3 {
margin-bottom: var(--space-2);
}
.clauses p {
color: var(--ink-muted);
}
/* ── 도판 ── */
.plate {
margin-block: var(--space-5);
}
.plate img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
border: 1px solid var(--plate);
background: var(--plate);
}
.plate figcaption {
margin-top: var(--space-2);
font-size: var(--step--1);
color: var(--ink-muted);
}
/* ── 보고 표 ── */
.table-wrap {
overflow-x: auto;
}
.report-table {
width: 100%;
border-collapse: collapse;
background: var(--surface-raised);
}
.report-table th,
.report-table td {
text-align: left;
padding: var(--space-3);
border: 1px solid var(--ink);
vertical-align: top;
font-size: 1rem;
}
.report-table thead th {
font-family: var(--font-display);
font-weight: 600;
}
.report-table .num {
text-align: center;
width: 4.5rem;
}
/* ── 맺음 ── */
.closing {
padding-block: var(--space-7);
border-top: 2px solid var(--ink);
text-align: center;
}
.closing h2 {
font-size: var(--step-2);
}
.back-link {
display: inline-flex;
align-items: center;
min-height: 44px;
margin-top: var(--space-5);
font-weight: 700;
}
.site-foot {
border-top: 1px solid var(--ink);
padding-block: var(--space-4);
font-size: var(--step--1);
color: var(--ink-muted);
}
.foot-inner {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--space-3);
}
@media (max-width: 600px) {
.title-block {
padding-top: var(--space-5);
}
.toc-list a {
grid-template-columns: 3.75rem minmax(0, 1fr);
}
.clauses li {
padding-left: 2.25rem;
}
}
/* 좁은 화면·글자 확대에서는 부제를 접어 워드마크가 폭을 넘지 않게 한다. */
@media (max-width: 480px) {
.wordmark span {
display: none;
}
}