/* 안세희 작가 홈페이지 — 종이·먹·인주
   paper: 밝은 미색 바탕(순백 아님) / ink: 글자·괘선 / seal: 인주. 인주는 글자색이 아니라 표식에만:
     낙관 · 장 번호 탭 · 세로 표제 상단선 · 현재 메뉴 밑줄 · 인용 막대 · kicker 점 · focus ring
   괘선 위계: --rule-2(먹 이중선: 마스트헤드 아래·푸터 위 둘뿐) > --rule(먹 1px) > --rule-thin(가는선)
   서체: 나눔명조(--serif)는 표제·이름에만. 1x 화면에서 400은 20px 아래, 700은 28px 아래에서 ㄷ·ㅌ 윗획이 끊기므로
     700은 28px 이상일 때만, 그 아래 표제는 800, 20px 안팎의 h3·읽는 명조·작은 라벨은 본명조(--serif-text, 400/600).
   산세리프 소형 글자는 13.3–13.7px 대역(0.83–0.85rem)에서 ㅌ이 뭉개지므로 0.86rem 또는 0.9rem을 쓴다.
   굵기 규칙: 800 = 이름·정체성·작은 표제, 700 = 큰 표제, 600 = 본명조 표제·라벨, 400 = 읽는 명조 */
:root {
  --paper: #faf8f3;
  --paper-2: #f1ede4;
  --white: #fffdf9;
  --ink: #1b1713;
  --ink-2: #3d3731;
  --ink-3: #6b6259;
  --line: #d8d1c3;
  --seal: #b5301d;
  --rule: 1px solid var(--ink);
  --rule-2: 4px double var(--ink);
  --rule-thin: 1px solid var(--line);
  --serif: 'Nanum Myeongjo', 'Noto Serif KR', 'AppleMyungjo', Batang, serif;        /* 표제·이름. 폴백도 명조 계열로 */
  --serif-text: 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', Batang, serif;   /* 읽는 명조·작은 라벨(400/600) */
  --sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }   /* sticky 마스트헤드(≈83px) 아래로 앵커가 숨지 않게 */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background-color: var(--paper);
  /* 종이결. 알파 .03 — 저사양 기기에서 버벅이면 이 줄만 지운다 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media print { body { background-image: none; } }
@media (min-width: 768px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: inherit; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* 800 = 이름·정체성. 이름 자간은 도입부 이름의 도착값 0.1em */
.page-head h1, .brand-name, .name h3, .tl-table .decade td, .seal, .scrub-name, .scrub-nav-brand { font-weight: 800; }
.brand-name, .scrub-nav-brand, .name h3 { letter-spacing: 0.1em; }
.scrub-name { margin-inline-end: -0.1em; }   /* 마지막 글자 뒤 자간만큼 괘선이 삐져나오지 않게 */

/* 등폭 숫자는 정렬 열에만 */
.tl-table, .press-list .date, .facts, .colophon-line, .sec-head .num, .timeline dt, .meta, .scrub-colophon, figure.panel figcaption::before { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- 라벨·버튼 ---------- */
.kicker {
  font-size: 0.86rem; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 var(--s2);
  display: flex; align-items: center; gap: 0.6em;
}
.kicker::before { content: ''; width: 0.55em; height: 0.55em; background: var(--seal); flex: none; }
.meta { font-size: 0.86rem; color: var(--ink-3); margin: 0.25em 0 0.6em; }
.source { font-size: 0.9rem; color: var(--ink-3); margin-top: var(--s3); }
.btn {
  display: inline-block; background: transparent; color: var(--ink); border: 1px solid var(--ink); text-decoration: none;
  padding: 0.75em 1.4em; min-height: 44px; font-size: 0.95rem; transition: background 180ms ease-out, color 180ms ease-out;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.link { margin-left: var(--s3); font-size: 0.95rem; padding-block: 0.6em; }

/* ---------- 마스트헤드 (위 굵은선 + 아래 이중 괘선). 도입부 다음을 이어받아 상단에 붙는다 ---------- */
.masthead { position: sticky; top: 0; z-index: 30; border-top: 3px solid var(--ink); border-bottom: var(--rule-2); background: var(--paper); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: var(--s3); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; padding: var(--s2) 0; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; }
.brand-sub { font-size: 0.86rem; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }
.nav { display: none; gap: 1.6rem; }
.nav a, .menu nav a { text-decoration: none; font-size: 0.95rem; padding: 0.6em 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a[aria-current], .menu nav a[aria-current] { border-bottom-color: var(--seal); }
.nav a:hover { border-bottom-color: var(--ink); }
.menu summary { list-style: none; cursor: pointer; font-size: 0.95rem; padding: 0.6em 0; min-height: 44px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ''; width: 18px; height: 2px; background: var(--ink); margin-left: 10px; box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
.menu[open] summary::after { box-shadow: none; transform: rotate(45deg); }
.menu nav { position: absolute; left: 0; right: 0; background: var(--paper); border-bottom: var(--rule); padding: var(--s2) var(--gutter) var(--s3); display: flex; flex-direction: column; z-index: 20; }
.menu nav a { min-height: 44px; display: flex; align-items: center; border-bottom: var(--rule-thin); }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } }

/* ---------- 도판 번호 · 낙관 ---------- */
main { counter-reset: fig note work; }
.scrub ~ main { counter-reset: fig 1 note work; }   /* 처음 페이지는 도입부가 도판 1 */
figure.panel { counter-increment: fig; }
figure.panel figcaption::before { content: '도판 ' counter(fig); font-family: var(--serif-text); font-weight: 600; color: var(--ink-2); margin-inline-end: 0.6em; }
.seal {
  display: inline-block; writing-mode: vertical-rl; text-orientation: upright;
  padding: 0.4em 0.28em; background: var(--seal); color: #fff6ee;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1; letter-spacing: 0.12em;
  box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 246, 238, 0.55);
  transform: rotate(-2.5deg); filter: url(#ink-edge); user-select: none;
}

/* ---------- 도판 플레이트(재단선). 절당 주 도판 하나에만: 도입부 스테이지 · quote-fig · essay-fig ---------- */
.panel { margin: 0; }
.panel img { border: var(--rule); background: var(--white); }
.panel figcaption { font-size: 0.9rem; color: var(--ink-3); margin-top: var(--s1); line-height: 1.5; }
.panel figcaption .src { display: block; }
.plate + figcaption { margin-top: 18px; }   /* 아래 눈금(14px) 밑으로 */
.plate { display: block; position: relative; }
.plate::before {
  content: ''; position: absolute; inset: -14px; pointer-events: none; opacity: 0.7;
  --m: linear-gradient(var(--ink), var(--ink));
  background:
    var(--m) left 0 top 14px / 10px 1px, var(--m) left 14px top 0 / 1px 10px,
    var(--m) right 0 top 14px / 10px 1px, var(--m) right 14px top 0 / 1px 10px,
    var(--m) left 0 bottom 14px / 10px 1px, var(--m) left 14px bottom 0 / 1px 10px,
    var(--m) right 0 bottom 14px / 10px 1px, var(--m) right 14px bottom 0 / 1px 10px;
  background-repeat: no-repeat;
}
.panel.essay-fig, .panel.quote-fig, .panel.preface-fig { padding: 14px; }
.quote-fig { max-width: 328px; }
@media (max-width: 639px) {
  .plate::before { display: none; }
  .panel.essay-fig, .panel.quote-fig, .panel.preface-fig { padding: 0; }
}

/* ---------- 섹션 (위 여백 크게, 장 번호 인주 탭). 섹션 머리는 secHead 하나 ---------- */
section.wrap { padding-block: var(--s5) var(--s4); scroll-margin-top: -40px; }   /* 앵커 이동 시 절 위 여백을 마스트헤드 뒤로 보내 제목이 바로 보이게 */
@media (min-width: 900px) { section.wrap { padding-block: var(--s6) var(--s5); scroll-margin-top: -72px; } }
.sec-head {
  display: flex; align-items: baseline; gap: var(--s2); border-bottom: var(--rule);
  padding-bottom: var(--s1); margin-bottom: var(--s4);
}
.sec-head .num {
  font-family: var(--serif-text); font-weight: 600; font-size: 0.9rem; color: var(--ink); letter-spacing: 0.06em;
  align-self: end; padding-bottom: 6px; margin-bottom: -9px; border-bottom: 2px solid var(--seal);
}
.sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; }
@media (min-width: 1170px) { .sec-head h2 { font-weight: 700; } }   /* 2.4vw ≥ 28px 일 때만 700 */
.sec-head .more { margin-left: auto; font-size: 0.86rem; white-space: nowrap; padding-block: 0.75em; }
.sec-intro { max-width: 40em; color: var(--ink-2); margin-bottom: var(--s3); }

.band { background: var(--paper-2); border-top: var(--rule-thin); border-bottom: var(--rule-thin); padding-block: var(--s5); }

/* ---------- 페이지 머리 = 도입부 이름 묶음의 축소판: [세로 표제] h1 → 1px 괘선 → 하위 내비. 모든 폭에서 세로 표제 ---------- */
.page-head { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s2); align-items: start; padding-block: var(--s5) var(--s4) !important; }
.page-head .kicker { display: block; writing-mode: vertical-rl; text-orientation: upright; margin: 0.35em 0 0; padding-top: 0.5em; border-top: 2px solid var(--seal); letter-spacing: 0.1em; }
.page-head .kicker::before { display: none; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); padding-bottom: 0.15em; border-bottom: var(--rule); }
.page-head h1 small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.9rem; color: var(--ink-3); letter-spacing: 0; margin-top: var(--s1); }
.page-head .subnav, .page-head .sec-intro { grid-column: 2; }
.subnav { display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin-top: var(--s2); }
.subnav a { text-decoration: none; padding: 0.6em 0; font-size: 0.92rem; min-height: 44px; display: inline-flex; align-items: center; }
.subnav a:hover { text-decoration: underline; }

/* 머리말 (페이지 머리 장치 재사용) + 작가 사진: 넓은 화면에서는 글 오른쪽, 좁은 화면에서는 글 아래 */
.preface-text { font-family: var(--serif-text); font-weight: 400; font-size: 1.15rem; line-height: 1.8; max-width: 36em; margin: 0 0 var(--s3); word-break: keep-all; }
.preface-fig { grid-column: 1 / -1; margin-top: var(--s4); max-width: 500px; }
@media (min-width: 900px) {
  .preface { grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px); column-gap: var(--s5); }
  .preface-fig { grid-column: 3; grid-row: 1; margin-top: -14px; max-width: none; justify-self: end; }   /* -14px: 재단선 여백만큼 글 첫 줄과 윗변을 맞춘다 */
}
.hero-links { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }

/* ---------- 카드(대표작). 표지는 어디서나 같다: 1px 먹선, 흰 바탕, 매트 없음 ---------- */
.grid-4 { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card-img { display: block; border: var(--rule); background: var(--white); aspect-ratio: 9 / 13; overflow: hidden; }   /* 표지 17장 중앙값 비율 */
.card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.card h3 { font-family: var(--serif-text); font-weight: 600; font-size: 1.15rem; margin-top: var(--s2); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
/* 표지 → 구매·기사 외부 링크 */
.ext { display: inline-block; font-size: 0.86rem; color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line); line-height: 1.4; margin-top: 0.3em; padding-block: 0.55em; }
.ext:hover { color: var(--ink); border-bottom-color: var(--ink); }
a.card-img, a.work-img, a.cover-link { display: block; }
a.card-img:hover img, a.work-img:hover img, a.cover-link:hover img { opacity: 0.88; }
.card p { font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 639px) {
  .card { display: grid; grid-template-columns: 120px 1fr; column-gap: var(--s2); align-items: start; }
  .card .card-img { grid-row: 1 / 4; }
  .card h3 { margin-top: 0; }
}

/* ---------- 인용 (가는 먹선 + 인주 막대, 매단 따옴표) ---------- */
.quote-row { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .quote-row { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.6fr); gap: var(--s6); } }
.pull { margin: 0; position: relative; padding-left: 1.4em; border-left: var(--rule); }
.pull::before { content: ''; position: absolute; left: -3px; top: 0.15em; width: 5px; height: 1.2em; background: var(--seal); }
.pull p {
  font-family: var(--serif-text); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.8;
  margin: 0 0 var(--s2); padding-left: 0.5em; text-indent: -0.5em; word-break: keep-all;
}
.pull p::before { content: '\201C'; }
.pull p::after { content: '\201D'; }
.pull cite { display: block; font-style: normal; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-3); }
.pull cite::before { content: '\2014\00a0'; }
.pull cite a { text-decoration-color: var(--line); display: inline-block; padding-block: 0.8em; margin-block: -0.8em; }   /* 터치 타깃만 넓힌다 */
.pull.small p { font-size: 1.1rem; }
.quotes { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 0 var(--s4); }
  .quotes .pull { border-left: 0; padding-left: 0; }
  .quotes .pull::before { display: none; }
  .quotes .pull + .pull { border-left: var(--rule-thin); padding-left: var(--s4); }
}

/* ---------- 네 개의 이름 ---------- */
.names { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.name { border-top: var(--rule); padding-top: var(--s2); display: flex; flex-direction: column; }
.name h3 { font-size: 2rem; }
.name p { font-size: 0.95rem; color: var(--ink-2); }
.name img, .name .work-noimg { width: 110px; margin-top: auto; aspect-ratio: 9 / 13; object-fit: contain; }
.name .cover-link { margin-top: auto; width: 110px; }
.name .cover-link img { margin-top: 0; }
.name img { border: var(--rule); background: var(--white); }
.name p:last-of-type { margin-bottom: var(--s2); }

/* ---------- 연보(짧은, 세로 괘선) · 기사 ---------- */
.two-col { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); } }
.timeline { margin: 0; max-width: 46em; }
.timeline > div { display: grid; grid-template-columns: 5em 1fr; gap: 0 var(--s3); padding: 0; }
.timeline dt, .timeline dd { padding-block: 0.55em; }
.timeline dt { font-family: var(--serif-text); font-weight: 600; text-align: right; padding-right: var(--s2); border-right: var(--rule); }
.timeline dd { margin: 0; color: var(--ink-2); }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li { padding: 0.7em 0; border-bottom: var(--rule-thin); display: grid; gap: 2px 1em; }
.press-list .date, .press-list .outlet { font-size: 0.86rem; color: var(--ink-3); }
.press-list a { text-decoration: none; display: block; padding-block: 0.5em; }
.press-list a:hover { text-decoration: underline; }
.press-list .meta { margin: 0; }
@media (min-width: 640px) {
  .press-full li { grid-template-columns: 6.5em 11em 1fr; align-items: baseline; }
  .press-full .meta { grid-column: 3; }
}

/* ---------- 작가소개 ---------- */
.prose { max-width: 40em; }
.prose p { margin-bottom: 1.25em; word-break: keep-all; }
.prose p + p { text-indent: 1em; }
.prose .first { font-size: 1.2rem; }
.side .panel { margin-bottom: var(--s3); }
.facts { margin: 0; border-top: var(--rule); }
.facts > div { display: grid; grid-template-columns: 4.5em 1fr; gap: var(--s2); padding: 0.55em 0; border-bottom: var(--rule-thin); font-size: 0.93rem; }
.facts dt { color: var(--ink-3); font-size: 0.86rem; padding-top: 0.15em; }
.facts dd { margin: 0; }

.tl-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tl-table th, .tl-table td { text-align: left; vertical-align: top; padding: 0.6em 0.6em 0.6em 0; border-bottom: var(--rule-thin); }
.tl-table thead th { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3); font-weight: 500; border-bottom: var(--rule); }
.tl-table tbody th { font-family: var(--serif-text); font-weight: 600; white-space: nowrap; width: 7em; }
.tl-table .mark { font-family: var(--serif-text); font-size: 0.75rem; color: var(--ink-3); margin-left: 0.5em; letter-spacing: 0.06em; vertical-align: baseline; position: relative; top: -0.45em; line-height: 0; white-space: nowrap; }
.tl-table thead th:first-child, .tl-table tbody th { text-align: right; padding-right: var(--s2); border-right: var(--rule); }
.tl-table th + th, .tl-table th + td { padding-left: var(--s3); }
.tl-table .decade td { padding: var(--s4) 0 0.4em; border-bottom: var(--rule); font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.tl-table tbody > tr:first-child.decade td { padding-top: 0.6em; }
@media (max-width: 639px) {   /* 연도를 내용 위 블록으로 */
  .tl-table thead { display: none; }
  .tl-table, .tl-table tbody, .tl-table tr, .tl-table th, .tl-table td { display: block; }
  .tl-table tbody th { width: auto; text-align: left; border-right: 0; border-bottom: 0; padding: 0.7em 0 0; }
  .tl-table td { padding: 0 0 0.7em; }
  .tl-table th + td { padding-left: 0; }
}

.grid-3 { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.plain { border-top: var(--rule); padding-top: var(--s2); }
.plain h3 { font-family: var(--serif-text); font-weight: 600; font-size: 1.2rem; }
.plain h3 .meta { display: block; font-family: var(--sans); font-weight: 400; }
.plain p { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- 작품세계 (각주 · 펼침면) ---------- */
.essay { display: grid; gap: var(--s4); align-items: start; counter-increment: note; }
.essay .sec-head { margin-bottom: var(--s3); }
.essay-text p { max-width: 36em; word-break: keep-all; }
.essay-text > p:not(.source) + p:not(.source) { text-indent: 1em; }
.essay .source {
  max-width: 28em; margin-top: var(--s4); padding-top: 0.7em; font-size: 0.9rem;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 3.5em 1px no-repeat;
}
.essay .source::before { content: counter(note) ' '; color: var(--ink-3); font-weight: 600; }
.essay-fig { max-width: 420px; }
.spread { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule); background: var(--white); }
.spread img { border: 0; }
.spread img + img { border-left: 1px solid var(--line); }
.essay-spread { max-width: 100%; }
@media (max-width: 639px) {
  .spread { grid-template-columns: 1fr; }
  .spread img + img { border-left: 0; border-top: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .essay { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s6); }
  .essay-flip .essay-text { order: 2; }
  .essay-fig { justify-self: end; }
  .essay-flip .essay-fig { justify-self: start; }
  .essay-spread { grid-column: 1 / -1; max-width: 860px; justify-self: start; }
  .essay-wide .essay-text { grid-column: 1 / -1; order: 0; columns: 2; column-gap: var(--s5); }   /* 펼침 절은 항상 글 → 도판 */
  .essay-wide.essay-one .essay-text { columns: auto; }   /* 문단 하나면 단을 나누지 않는다 */
  .essay-wide .essay-text :is(.sec-head, .source) { column-span: all; }
  .essay-wide .essay-text p { max-width: none; break-inside: avoid; }
  .essay-wide.essay-one .essay-text p { max-width: 36em; }
}

/* ---------- 작품 (도록 번호 · 원고지 격자) ---------- */
.works { display: grid; row-gap: 0; column-gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }
.work { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); align-items: start; counter-increment: work; padding-block: var(--s3); border-top: var(--rule-thin); }
@media (max-width: 639px) { .work { grid-template-columns: 96px 1fr; gap: var(--s2); } }
.work-text::before {
  content: '작품 ' counter(work, decimal-leading-zero); display: block;
  font-family: var(--serif-text); font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 0.2em;
}
.work-img { border: var(--rule); background: var(--white); aspect-ratio: 9 / 13; }
.work-img img { width: 100%; height: 100%; object-fit: contain; }
.work-noimg {
  aspect-ratio: 9 / 13; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.78rem; color: var(--ink-3);
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, var(--line) 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 11px, var(--line) 11px 12px), var(--white);
}
.work-noimg span { background: var(--paper); padding: 0.2em 0.6em; }
.work h3 { font-family: var(--serif-text); font-weight: 600; font-size: 1.15rem; }
.work p { font-size: 0.93rem; color: var(--ink-2); }
.work .ext { margin-top: 0; }
.card .ext { margin-top: 0.2em; }

/* ---------- 강연·협업 ---------- */
.partners { list-style: none; margin: 0 0 var(--s3); padding: 0; column-gap: var(--s3); max-width: 46em; }
@media (min-width: 640px) { .partners { columns: 2; } }
.partners li { padding: 0.5em 0; border-bottom: var(--rule-thin); break-inside: avoid; font-size: 0.95rem; }
.contact-box p { max-width: 36em; }

/* ---------- 푸터 (이중 괘선 + 도입부 판권 줄 + 낙관) ---------- */
.footer { border-top: var(--rule-2); margin-top: var(--s6); padding-block: var(--s3) var(--s5); }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s4); align-items: start; font-size: 0.86rem; color: var(--ink-3); }
.colophon-line { margin: 0; display: flex; justify-content: space-between; gap: 2em; letter-spacing: 0.04em; color: var(--ink); }
.footer .seal { grid-column: 2; grid-row: 1 / span 2; }
.footer-copy { margin: 0; grid-column: 1; max-width: 40em; }
@media (max-width: 639px) { .colophon-line { flex-direction: column; gap: 0.1em; } }

/* ---------- 스크롤 스크럽 도입부 ---------- */
/* .scrub-stage: 프레임(16:9 / 9:16)을 cover로 맞춘 상자. cq 단위로 두면 어떤 뷰포트에서도 그림과 이름의 관계가 고정된다. svh: 주소창 접힘 점프 방지 */
.scrub { position: relative; height: 100svh; min-height: 520px; width: 100%; overflow: hidden; background: var(--paper); }
.scrub-stage {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100%, calc(100svh * 16 / 9)); height: max(100%, calc(100vw * 9 / 16));
  container-type: size;
}
.scrub-canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.scrub.is-ready .scrub-canvas { opacity: 1; }

/* 이름 묶음: 잉크 캔버스(z3) 위, 완성된 그림 아래 빈 자리에. 이름 → 괘선 → 판권 → 낙관 */
.scrub-mark {
  --mark: 14cqh;
  position: absolute; z-index: 4; left: 50%; top: 80cqh; transform: translate(-50%, -50%);
  display: grid; justify-items: start; width: max-content; pointer-events: none;
}
.scrub-name {
  display: block; font-family: var(--serif); line-height: 1; color: var(--ink);
  font-size: var(--mark); letter-spacing: 0.35em; opacity: 0; white-space: nowrap;
}
.scrub-rule { display: block; width: 100%; height: 1px; background: var(--ink); margin-top: 0.12em; font-size: var(--mark); transform: scaleX(0); transform-origin: left center; }
.scrub-colophon {
  display: flex; justify-content: space-between; gap: 2em; width: 100%; margin: 0.45em 0 0;
  font-size: clamp(12px, 1.05vw, 18px); font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; opacity: 0;
}
.scrub-seal.seal { position: absolute; right: calc(-1 * var(--mark) * 0.2); top: var(--mark); font-size: max(16px, calc(var(--mark) * 0.2)); padding: 0.4em 0.28em; opacity: 0; transform: translateY(-100%) rotate(-2.5deg) scale(1.12); }
.scrub-cap {
  position: absolute; z-index: 4; left: 66cqw; top: 13cqh; margin: 0; opacity: 0;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink-3);
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.08em; pointer-events: none;
}

/* 초기 제목: 프레임 0 + 폰트 도착 후에 보인다(hero.js is-ready) */
.scrub-title {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 6%; text-align: center; pointer-events: none;
}
.js .scrub-title { visibility: hidden; }
.js .scrub.is-ready .scrub-title { visibility: visible; }
.scrub-title .kicker { justify-content: center; margin-bottom: var(--s2); }
.scrub-title h1 { font-size: clamp(1.35rem, 2.6vw, 2.4rem); line-height: 1.3; color: var(--ink); font-weight: 800; }
@media (min-width: 1080px) { .scrub-title h1 { font-weight: 700; } }   /* 2.6vw ≥ 28px 일 때만 700 */

/* 크롬: 알약 내비(가로 스크롤, 마스트헤드와 같은 활자) · 재단선 · 힌트 · 건너뛰기 · 진행 바 */
.scrub-nav {
  position: absolute; z-index: 6; top: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; height: 46px; padding: 0 20px 0 18px;
  border-radius: 999px; border: 1px solid rgba(27, 23, 19, 0.25); background: rgba(250, 248, 243, 0.92);
  max-width: calc(100% - 2 * var(--gutter)); overflow-x: auto; scrollbar-width: none;
  transition: opacity 240ms ease-out, visibility 0s linear 0s;
}
.scrub-nav::-webkit-scrollbar { display: none; }
.scrub-nav.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 240ms ease-out, visibility 0s linear 240ms; }
.scrub-nav a { font-size: 0.95rem; font-weight: 400; text-decoration: none; white-space: nowrap; color: var(--ink); padding: 0.5em 0; letter-spacing: 0; align-self: stretch; display: inline-flex; align-items: center; }
.scrub-nav .scrub-nav-brand { font-family: var(--serif); font-size: 1rem; margin-right: 4px; font-weight: 800; letter-spacing: 0.1em; }

.scrub::before {
  content: ''; position: absolute; inset: 14px; z-index: 6; pointer-events: none; opacity: 0.7;
  --m: linear-gradient(var(--ink), var(--ink));
  background:
    var(--m) left 0 top 0 / 10px 1px, var(--m) left 0 top 0 / 1px 10px,
    var(--m) right 0 top 0 / 10px 1px, var(--m) right 0 top 0 / 1px 10px,
    var(--m) left 0 bottom 0 / 10px 1px, var(--m) left 0 bottom 0 / 1px 10px,
    var(--m) right 0 bottom 0 / 10px 1px, var(--m) right 0 bottom 0 / 1px 10px;
  background-repeat: no-repeat;
}
.scrub-hint {
  position: absolute; z-index: 6; left: 50%; bottom: clamp(28px, 6vh, 56px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-3);
  font-size: 0.86rem; letter-spacing: 0.06em; transition: opacity 0.4s ease; pointer-events: none; white-space: nowrap;
}
.scrub-hint i { display: block; width: 1px; height: 18px; background: var(--ink-3); animation: scrub-drop 1.6s ease-in-out infinite; }
@keyframes scrub-drop { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scrub-hint i { animation: none; } }
.scrub-skip {
  position: absolute; z-index: 6; right: 8px; bottom: 14px; padding: 0.8em 1em;   /* 터치 타깃 44px */
  font-size: 0.86rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 0.2em;
}
.scrub.is-done .scrub-skip, .scrub:not(.is-locked) .scrub-skip { visibility: hidden; }
/* 다시 보기: 완성 뒤 건너뛰기 자리에. 재생 중·잠금 중에는 숨긴다 */
.scrub-replay {
  position: absolute; z-index: 6; right: 8px; bottom: 14px; padding: 0.8em 1em; margin: 0;
  display: inline-flex; align-items: center; gap: 0.5em; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.86rem; color: var(--ink-3); visibility: hidden;
}
.scrub-replay .tri { width: 0; height: 0; border-style: solid; border-width: 0.32em 0 0.32em 0.55em; border-color: transparent transparent transparent currentColor; }
.scrub-replay:hover { color: var(--ink); }
.scrub.is-done:not(.is-locked):not(.is-playing) .scrub-replay { visibility: visible; }
.scrub-bar { position: absolute; z-index: 6; left: 14px; right: 14px; bottom: 14px; height: 3px; }
.scrub-bar > div { height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: height 200ms ease-out; }
.scrub.is-done .scrub-bar > div { height: 3px; }

/* 세로 화면(4:5 이하): 9:16 스테이지 */
@media (max-aspect-ratio: 4/5) {
  .scrub-stage { width: max(100%, calc(100svh * 9 / 16)); height: max(100%, calc(100vw * 16 / 9)); }
  .scrub-mark { --mark: 19cqw; top: 67cqh; }
  .scrub-colophon { flex-direction: column; gap: 0.1em; font-size: 12px; }
  .scrub-cap { left: auto; right: calc(50cqw - 50vw + 16px); top: 16cqh; font-size: 12px; }
  .scrub::before { inset: 10px; }
  .scrub-bar { left: 10px; right: 10px; bottom: 10px; }
  .scrub-skip, .scrub-replay { right: 4px; bottom: 10px; }
}
