/* 블로그 화면 스타일. 색·글꼴·간격 토큰과 공용 컴포넌트는 디자인 시스템(design/)에 있다. */

/* ───────── 기본 ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 다크·라이트를 바꾸는 순간에는 모든 색이 한 번에 바뀌게 (main.js 가 잠깐 붙인다) */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #ffe45c;
  color: #19191d;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* 본문 첫 요소의 위쪽 바깥 여백이 main 밖으로 빠져나가지 않게 붙잡는다 (여백 겹침 방지).
   그래야 헤더와 본문 사이 간격이 어느 요소에도 안 잡히는 빈 틈이 아니라 main 안의 공간이 된다.
   아래쪽은 그대로 둔다 — 마지막 요소의 여백은 푸터 여백(96px)과 겹쳐 지금처럼 96px 을 유지한다. */
main.wrap::before {
  content: '';
  display: table;
}

/* 넓은 화면(1200px~)에선 틀을 넓히고, 읽는 글(.read)은 읽기 폭으로 가운데에 둔다 */
.read {
  max-width: var(--maxw-read);
  margin-inline: auto;
}

@media (min-width: 1200px) {
  .wrap {
    max-width: var(--maxw-wide);
  }
}

/* ───────── 헤더·푸터 ───────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.brand-mark .garage {
  fill: var(--accent);
}

.brand-mark .inside {
  fill: var(--text);
}

.brand-mark .door rect {
  fill: var(--surface);
}

.brand-mark .door path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.brand-mark .door {
  transform-box: fill-box;
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark .door {
  transform: scaleY(0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  padding: 6px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s, background-color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--line);
}

.site-nav a.active {
  color: var(--text);
  font-weight: 650;
}

/* 로고: 오래 올려 두면 차고에서 차가 나와 로고 둘레를 한 바퀴 돌고 들어간다.
   움직임은 main.js(driveFrames)가 만든다. 로고 뒤로 지나갈 땐 z-index 가 -1 이 된다. */
.brand {
  position: relative;
  isolation: isolate;
}

.brand.driving .brand-mark .door {
  transform: scaleY(0.22);
}

.car-lot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  pointer-events: none;
}

.car {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 9px;
  overflow: visible;
  transform-origin: 50% 50%;
  opacity: 0;
}

.car-body {
  fill: var(--note);
}

.car-window {
  fill: var(--surface);
}

.car-wheel {
  fill: #19191d;
}

.car-light {
  fill: #ffd60a;
}

.vroom {
  position: absolute;
  top: -12px;
  left: calc(100% + 24px);
  color: var(--muted);
  font-size: 18px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.brand.driving .vroom {
  animation: vroom 4.2s both;
}

@keyframes vroom {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  8%,
  28% {
    opacity: 1;
    transform: none;
  }
  40%,
  100% {
    opacity: 0;
  }
}

/* 작업등 당김줄 — 천장(페이지 맨 위)에서 내려온다 */
.site-header {
  position: relative;
}

.site-nav {
  padding-right: 34px;
}

.pull-chain {
  position: absolute;
  top: 0;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  padding: 0 0 10px;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: top center;
}

.pull-chain:active {
  animation: none;
}

.chain {
  height: 46px;
  border-left: 2px dotted var(--muted);
}

.bead {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}

.pull-chain:hover {
  animation: swing 1.4s ease-in-out infinite;
}

.pull-chain.pulled .chain {
  animation: stretch 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes swing {
  25% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

@keyframes stretch {
  35% {
    height: 60px;
  }
}

.chain-hint {
  position: absolute;
  top: 66px;
  right: 0;
  color: var(--faint);
  font-size: 19px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.chain-hint::after {
  content: '당겨서 불 끄기';
}

:root[data-theme='dark'] .chain-hint::after {
  content: '당겨서 불 켜기';
}

.pull-chain:hover .chain-hint {
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 96px;
  padding-top: 28px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ───────── 히어로 ───────── */
.hero {
  margin: 56px 0 72px;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(30px, 6.4vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

mark {
  background: linear-gradient(var(--marker), var(--marker)) 0 88% / 100% 40% no-repeat;
  color: inherit;
  padding: 0 3px;
}

.hero mark {
  animation: swipe 0.9s 0.35s cubic-bezier(0.6, 0, 0.2, 1) both;
}

/* 이번 방문에서 이미 그었으면 처음부터 칠해진 채로 */
.marked .hero mark {
  animation: none;
}

@keyframes swipe {
  from {
    background-size: 0% 40%;
  }
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.lead a {
  color: var(--accent);
}

/* ───────── 섹션 머리 ───────── */
.block {
  margin-top: 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head a {
  color: var(--faint);
  font-size: 13.5px;
  transition: color 0.15s;
}

.section-head a:hover {
  color: var(--accent);
}

.page-head {
  margin: 48px 0 40px;
}

.page-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 5.4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--faint);
  font-size: 14px;
}

.back:hover {
  color: var(--accent);
}

.page-head .back + .ds-stamp {
  display: flex;
}

.empty {
  color: var(--faint);
}

.type {
  font-size: 12.5px;
  font-weight: 650;
}

.type-log {
  color: var(--accent);
}

.type-note {
  color: var(--note);
}

/* ───────── 글 목록: 썸네일 카드 ───────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 36px 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 이미지 썸네일. 이미지 없는 글은 디자인 시스템의 종이 썸네일(.ds-sheet)을 쓴다 */
.post-thumb--img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.post-card:hover .post-thumb img {
  transform: scale(1.03);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 4px;
}

.post-card-sub {
  color: var(--muted);
  font-size: 12.5px;
}

.post-card-meta .draft-mark {
  margin-left: 0;
}

.post-card-title {
  align-self: flex-start;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  background: linear-gradient(var(--marker), var(--marker)) 0 88% / 0% 38% no-repeat;
  transition: background-size 0.35s cubic-bezier(0.6, 0, 0.2, 1);
}

.post-card:hover .post-card-title,
.post-card:focus-visible .post-card-title {
  background-size: 100% 38%;
}

.post-card-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.post-card-foot {
  display: flex;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.year-group + .year-group {
  margin-top: 40px;
}

.year {
  margin: 0 0 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ───────── 글 본문 ───────── */
.post-head {
  margin: 48px 0 32px;
}

.kicker {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.kicker a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kicker .sep {
  color: var(--faint);
}

.post-head h1 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 5.6vw, 40px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.post-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.series {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s;
}

.series:hover {
  border-color: var(--accent);
}

.series-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.series-title {
  flex: 1;
  font-weight: 650;
}

.series-step {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.prose {
  font-size: 17px;
  line-height: 1.85;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.4em 0 0.7em;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 2em 0 0.6em;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 1.1em 0;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li > ul,
.prose li > ol {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--faint);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  margin: 1.6em 0;
  color: var(--muted);
}

.prose hr {
  margin: 3em auto;
  border: 0;
  text-align: center;
}

.prose hr::after {
  content: '· · ·';
  color: var(--faint);
  letter-spacing: 0.5em;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: 12px;
}

.prose :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.prose pre {
  margin: 1.6em 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
}

.prose pre code {
  font-family: var(--font-mono);
}

.prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--muted);
  font-weight: 650;
}

.prose pre {
  position: relative;
  background: var(--code-bg);
}

.prose pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.table-wrap {
  overflow-x: auto;
}

/* ───────── 초안 ───────── */
.draft-banner {
  margin-top: var(--space-6);
}

.draft-mark {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: 2px;
}

/* ───────── 프로젝트 상세 ───────── */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--faint);
  font-size: 12px;
}

.facts dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.facts a {
  color: var(--accent);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: var(--line);
}

.tl-item {
  position: relative;
  padding: 0 0 34px 36px;
}

.tl-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.tl-item.latest::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.tl-next {
  padding-bottom: 0;
}

.tl-next::before {
  border-style: dashed;
  border-color: var(--faint);
}

.tl-next p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 14.5px;
}

.tl-meta {
  display: flex;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tl-step {
  color: var(--accent);
}

.tl-title {
  display: inline-block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.tl-title:hover {
  color: var(--accent);
}

.tl-item > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ═════════ 작업실 소품 ═════════ */

/* 화면보다 넓게 그리는 장식(격자 배경, 공사장 띠)이 가로 스크롤을 만들지 않게 */
.page {
  overflow-x: clip;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0;
}

/* 커팅 매트 격자 — 홈 첫 화면 뒤에 은은하게 */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: -140px -50vw -60px;
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 50% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 75% at 50% 30%, #000 25%, transparent 72%);
  pointer-events: none;
}

.hero h1 {
  max-width: 540px;
}

.hero .lead {
  max-width: 480px;
}

/* 포스트잇 — 아무 글이나 한 장 (main.js 가 무작위로 고른다) */
.sticky-note {
  position: absolute;
  top: 0; /* 간판 줄과 맞춘다 — 제목 두 줄 옆에 다 들어온다 */
  right: -36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 176px;
  min-height: 150px; /* 메모장의 모든 장은 크기가 같다 — 글이 바뀌어도 크기가 그대로 */
  padding: 18px 16px 12px;
  --pad-edge: color-mix(in srgb, var(--paper) 86%, #000);
  background: var(--paper);
  color: #2a2620;
  /* 아래에 몇 장 더 쌓인 메모장 두께 */
  box-shadow: 1px 2px 0 var(--pad-edge), 2px 4px 0 var(--paper), 3px 5px 0 var(--pad-edge),
    0 14px 28px -14px rgba(70, 50, 0, 0.45);
  transform: rotate(3deg);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 66px;
  height: 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
  transform: translateX(-50%) rotate(-4deg);
  z-index: 3; /* 뜯겨 나가는 장보다 위 — 테이프는 제자리에 남는다 */
}

.sticky-note:hover {
  transform: rotate(0deg);
}

/* 한 장 더: 맨 위 장을 뜯어내면 아래 장(새 글)이 드러난다. main.js 가 뜯기는 장을 붙였다 뗀다 */
.note-sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: inherit;
  padding: inherit;
  background: var(--paper);
  box-shadow: 0 10px 18px -10px rgba(70, 50, 0, 0.5);
  transform-origin: 50% 0;
  pointer-events: none;
}

.note-label {
  color: var(--paper-ink);
  font-size: 22px;
  line-height: 1;
}

.note-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* 메모 어디를 눌러도 글로 간다 */
.note-title::after {
  content: '';
  position: absolute;
  inset: 0;
}

.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.note-shuffle {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper-ink);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--dur-fast);
}

.note-shuffle:hover {
  opacity: 1;
}

.note-cta {
  margin-left: auto;
  color: #c2470e;
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
}

.section-head .aside {
  margin-left: 6px;
  color: var(--faint);
  font-size: 22px;
}

/* 줄자 읽기 진행 막대 */
.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 7px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 40px) 0 0 / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 8px) 0 0 / 100% 3px no-repeat, #ffd60a;
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
  pointer-events: none;
}

/* 시리즈 진행 칸 */
.series-steps {
  display: flex;
  gap: 3px;
}

.series-steps i {
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: var(--line);
}

.series-steps i.on {
  background: var(--accent);
  opacity: 0.45;
}

.series-steps i.cur {
  opacity: 1;
}

/* 본문: 메모처럼 보이는 인용 (손글씨 따옴표), 테이프 붙은 코드 블록 */
.prose blockquote {
  position: relative;
  padding: 16px 20px 16px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.prose blockquote::before {
  content: '“';
  position: absolute;
  top: 6px;
  left: 14px;
  color: var(--faint);
  font-family: var(--font-hand);
  font-size: 44px;
  line-height: 1;
}

.prose blockquote > :first-child {
  margin-top: 0;
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose pre[data-lang]::before {
  top: 10px;
  right: 12px;
  padding: 1px 9px;
  background: var(--tape);
  color: var(--muted);
  transform: rotate(2deg);
}

/* 글 끝 도장 */
.end-mark {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* 타임라인: 지금 여기 + 공사장 테이프 */
.here {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent-ink);
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateX(-5px);
  }
}

.caution {
  max-width: 220px;
  height: 10px;
  margin-top: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(-45deg, #ffc21a 0 10px, #1d1d20 10px 20px);
  opacity: 0.85;
}

.caution-band {
  width: 110vw;
  margin: 24px 0 0 calc(50% - 55vw);
  padding: 6px 0;
  overflow: hidden;
  background: #ffc21a;
  color: #1d1d20;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: rotate(-2deg);
  box-shadow: 0 -5px 0 -1px #1d1d20, 0 5px 0 -1px #1d1d20;
}

/* 푸터 위 줄자 눈금 */
.site-footer {
  position: relative;
  border-top: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 9px;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 50px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px) 0 0 / 100% 5px no-repeat;
  opacity: 0.8;
}

.site-footer .hand {
  font-family: var(--font-hand);
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .hero mark,
  .here {
    animation: none;
  }
}

@media (max-width: 900px) {
  .sticky-note {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    max-width: 260px;
    margin-top: 32px;
    transform: rotate(-1.5deg);
  }
}

/* ═════════ 차고 ═════════ */

.stencil {
  font-family: var(--font-stencil);
  font-weight: 400;
  letter-spacing: 0.12em;
}

/* 첫 화면 간판 줄: 스텐실 간판 + 줄에 매달린 OPEN 간판 */
.hero-signs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
}

.hero-signs .garage-sign {
  margin: 0;
}

.hero-open {
  position: relative;
  margin-top: 6px; /* 매단 줄만큼 내려온다 */
  font-size: 12.5px;
  transform: rotate(-3deg);
  transform-origin: 50% -10px;
}

/* 위에서 내려온 두 가닥 줄 */
.hero-open::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 22%;
  right: 22%;
  height: 10px;
  border-inline: 1px solid var(--faint);
}

.garage-sign {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.garage-sign span {
  margin-left: 6px;
  color: var(--faint);
}

.hero h1 {
  margin-top: 0;
}

/* OPEN 간판 */
.open-sign {
  padding: 2px 7px 1px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: flicker 3.2s 0.6s steps(1) 1 both;
}

@keyframes flicker {
  0%, 6%, 10% { opacity: 1; }
  4%, 8% { opacity: 0.25; }
}

.section-head {
  align-items: center;
}

/* 차고 자리: 진행 중은 작업대, 멈춘 건 구석(방수포), 끝낸 건 출고 선반(박스) */
.garage-bench .section-head {
  margin-bottom: var(--space-6);
}

.bench-stack,
.spot-stack,
.crate-stack {
  display: grid;
  gap: var(--space-5);
}

.bench-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.bench-card h3 {
  margin: 14px 0 6px;
  font-size: 22px;
  font-weight: var(--weight-heavy);
  letter-spacing: -0.025em;
}

.bench-card h3 a:hover {
  color: var(--accent);
}

.bench-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.bench-card .bench-day {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) 10px;
  margin-top: 18px;
}

.bench-day .stencil {
  color: var(--accent);
  font-size: 26px;
  letter-spacing: 0.08em;
}

.bench-day .hand {
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
}

.bench-memo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px dashed var(--line-strong);
}

.bench-memo .hand {
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
}

.bench-memo a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1.45;
  transition: color var(--dur-fast);
}

.bench-memo a:hover {
  color: var(--accent);
}

.bench-memo a span {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-regular);
}

/* 동시에 여러 개: 옆으로 넘겨 보는 작업대. 다음 카드 가장자리가 살짝 보인다 */
.slider {
  display: flex;
  gap: var(--space-4);
  margin: -6px -6px 0;
  padding: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 calc(100% - 44px);
  scroll-snap-align: start;
}

.slide .bench-card {
  height: 100%;
  transition: opacity var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.slide:not(.is-current) .bench-card {
  opacity: 0.5;
}

/* 옆 카드: 누르면 그 카드로 넘어간다. 올리면 또렷해지며 가운데 쪽으로 살짝 끌려온다 —
   「누르면 이쪽으로 넘어와요」 힌트. 오른쪽 카드는 왼쪽으로, 왼쪽 카드(.is-before)는 오른쪽으로 */
.slide:not(.is-current) {
  cursor: pointer;
}

.slide:not(.is-current):hover .bench-card {
  opacity: 0.85;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateX(-6px);
}

.slide.is-before:hover .bench-card {
  transform: translateX(6px);
}

/* 옆 카드 안의 링크는 링크처럼 반응하지 않는다 (눌러도 넘어가기만 한다) */
.slide:not(.is-current) a {
  pointer-events: none;
}

/* 제목 줄 오른쪽: ‹ 1 / 3 › · 전체 보기 */
.section-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.slide-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.slide-nav[hidden] {
  display: none;
}

.slide-count {
  min-width: 40px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .slider {
    scroll-behavior: auto;
  }
}

.garage-floor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.garage-bench + .garage-floor {
  margin-top: 72px;
}

.tarp-card {
  display: block;
  overflow: hidden;
  padding: 22px 22px 18px;
}

.tarp-card > :not(.ds-tarp) {
  position: relative;
  max-width: 56%;
  opacity: 0.72;
}

.tarp-card h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.tarp-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.tarp-card .hand {
  display: block;
  color: var(--faint);
  font-size: 19px;
  line-height: 1.2;
}

/* 끝낸 프로젝트의 기념 명판 */
.project-plaque {
  margin-bottom: var(--space-12);
}

/* 글 머리: 작업기록은 작업 일지, 노트는 설계도면 */
.post-head.ds-logbook {
  margin: 24px calc(-1 * var(--space-5)) 16px;
}

.log-day {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 0;
}

.log-day .hand {
  color: var(--faint);
  font-size: 21px;
  line-height: 1;
}

.post-head.ds-blueprint {
  margin: 40px 0;
}

.ds-blueprint .kicker,
.ds-blueprint .lead {
  color: color-mix(in srgb, currentColor 80%, transparent);
}

.ds-blueprint .type-note {
  color: inherit;
}

@media (max-width: 560px) {
  .bench-card,
  .garage-floor {
    grid-template-columns: 1fr;
  }

  .slide {
    flex-basis: calc(100% - 28px);
  }

  /* 모바일은 밀어서 넘긴다 — 화살표는 숨기고 숫자만 */
  .slide-nav .ds-btn {
    display: none;
  }

  .bench-memo {
    padding: 18px 0 0;
    border-top: 1px dashed var(--line-strong);
    border-left: 0;
  }

  .post-head.ds-logbook {
    margin-inline: -16px;
    padding-left: 36px;
  }

  .post-head.ds-logbook::before {
    left: 20px;
  }

  .post-head.ds-blueprint {
    padding: 26px 22px 22px;
  }
}

/* 푸터 스텐실 서명 */
.footer-sign {
  width: 100%;
  margin-top: 18px;
  color: var(--line);
  font-size: 22px;
  letter-spacing: 0.2em;
  text-align: center;
  user-select: none;
}

:root[data-theme='dark'] .footer-sign {
  color: #26262a;
}

@media (prefers-reduced-motion: reduce) {
  .open-sign {
    animation: none;
  }
}

@media (max-width: 560px) {
  .footer-sign {
    font-size: 15px;
  }
}

/* ═════════ 장난감들 ═════════ */

/* 간판: 밤엔 달, 새벽엔 닫힘 */
.open-sign.late::after {
  content: ' ☾';
}

.open-sign.closed {
  background: var(--faint);
  box-shadow: none;
  animation: none;
}

/* 글 끝 도장: 쾅 */
.stamp-wait {
  opacity: 0;
}

.stamp-slam {
  animation: slam 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

@keyframes slam {
  from {
    opacity: 0;
    transform: scale(2.4) rotate(-16deg);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 0.85;
    transform: scale(1) rotate(-4deg);
  }
}

/* 코드 블록 복사 — 라벨기 테이프 */
.code-wrap {
  position: relative;
  margin: 1.6em 0;
}

.code-wrap pre {
  margin: 0;
}

.copy-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px 2px;
  border: 0;
  border-radius: 3px;
  background: #1f1f23;
  color: #f4f2ee;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  transform: rotate(-1deg);
  transition: opacity 0.15s;
}

:root[data-theme='dark'] .copy-btn {
  background: #c8352b;
}

.code-wrap:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .copy-btn {
    opacity: 1;
  }
}

/* 주행계 */
.odo-wrap {
  width: 100%;
  margin-top: 22px;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}

.odo {
  display: inline-flex;
  gap: 2px;
  margin: 0 4px;
  padding: 3px;
  border-radius: 5px;
  background: #2a2a2e;
  vertical-align: middle;
}

.odo-digit {
  display: inline-block;
  height: 1.5em;
  overflow: hidden;
  padding: 0 4px;
  border-radius: 2px;
  background: #19191d;
  color: #f4f2ee;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5em;
}

.odo-digit:last-child {
  background: #f4f2ee;
  color: #19191d;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--d) * -1.5em));
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.odo-digit:nth-child(2) .odo-strip {
  transition-delay: 0.1s;
}

.odo-digit:nth-child(3) .odo-strip {
  transition-delay: 0.2s;
}

.odo-digit:nth-child(4) .odo-strip {
  transition-delay: 0.3s;
}

.odo-reset .odo-strip {
  transform: translateY(0);
  transition: none;
}

/* 셔터 버튼 (푸터 서명) */
button.footer-sign {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}

button.footer-sign:hover {
  color: var(--faint);
}

/* 이스터에그: 차고 셔터 */
.shutter {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(180deg, #9a9a9f 0 2px, #b9b9be 2px 26px, #8d8d92 26px 28px), #b0b0b5;
  box-shadow: inset 0 -14px 0 #6f6f74;
  color: #2a2a2e;
  font-size: clamp(16px, 3vw, 26px);
  animation: shutter 2.4s cubic-bezier(0.5, 0, 0.3, 1) both;
}

.shutter span {
  padding: 8px 18px;
  background: #ffc21a;
  box-shadow: 0 0 0 4px #1d1d20;
  letter-spacing: 0.1em;
}

@keyframes shutter {
  0% {
    transform: translateY(-100%);
  }
  28% {
    transform: translateY(0);
  }
  32% {
    transform: translateY(-2%);
  }
  36%,
  72% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pull-chain:hover,
  .pull-chain.pulled .chain {
    animation: none;
  }

  .shutter {
    animation: fade-shutter 1.6s both;
  }

  @keyframes fade-shutter {
    0%,
    100% {
      opacity: 0;
      transform: none;
    }
    20%,
    80% {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 560px) {
  .pull-chain {
    right: 8px;
  }

  .chain {
    height: 38px;
  }
}

/* ═════════ 디자인 시스템 견본 페이지 (/design/) ═════════ */
.ds-doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.ds-doc-section {
  margin-top: var(--space-16);
  scroll-margin-top: var(--space-6);
}

.ds-doc-section > h2 {
  margin: 0 0 var(--space-3);
}

.ds-doc-desc {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: var(--text-md);
}

.ds-doc-h3 {
  margin: var(--space-6) 0 var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.ds-doc-rules {
  margin: 0;
  padding-left: 1.3em;
  line-height: var(--leading-loose);
}

.ds-doc-demo {
  margin-bottom: var(--space-5);
}

.ds-doc-label {
  margin-bottom: var(--space-2);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.ds-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.ds-doc-stack {
  display: grid;
  gap: var(--space-2);
  width: 100%;
}

.ds-doc-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}

.ds-doc-swatch {
  display: grid;
  gap: 2px;
  font-size: var(--text-xs);
}

.ds-doc-swatch .chip {
  height: 44px;
  margin-bottom: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.ds-doc-swatch small {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  word-break: break-all;
}

.ds-doc-type > div {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}

.ds-doc-type code {
  flex: 0 0 120px;
  color: var(--faint);
  font-size: var(--text-xs);
}

.ds-doc-spaces {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-6);
}

.ds-doc-spaces > div {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ds-doc-spaces span {
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.ds-doc-spaces code {
  color: var(--faint);
  font-size: var(--text-xs);
}

.ds-doc-box {
  display: grid;
  place-items: center;
  width: 120px;
  height: 64px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--text-2xs);
}

.ds-doc-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: var(--space-4);
}

.ds-doc-wide {
  grid-column: 1 / -1;
}

/* ═════════ 연락받는 길 ═════════ */

/* 초인종 연락 카드 */
.doorbell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-12);
  padding: var(--space-5) var(--space-6);
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--surface);
}

.doorbell-bell {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transform-origin: 50% 8px;
}

.doorbell-bell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doorbell.rang .doorbell-bell {
  animation: ring 0.9s var(--ease-out);
}

@keyframes ring {
  10%, 30%, 50% { transform: rotate(16deg); }
  20%, 40%, 60% { transform: rotate(-16deg); }
  75% { transform: rotate(6deg); }
}

.doorbell-text strong {
  font-size: var(--text-md);
}

.doorbell-text p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.doorbell-actions {
  display: flex;
  gap: var(--space-2);
}

.doorbell-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  grid-column: 2 / -1;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
}

.doorbell-reveal[hidden] {
  display: none;
}

.doorbell-email {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

.doorbell-noscript {
  grid-column: 2 / -1;
  margin: 0;
  font-family: var(--font-mono);
}

/* 소개 */
.about-role {
  margin: -4px 0 var(--space-3);
  color: var(--accent-ink);
  font-weight: var(--weight-semibold);
}

.about-open {
  margin: var(--space-5) 0 0;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

/* 프로젝트 포트폴리오 칸 */
.project-result {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  font-size: var(--text-md);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  .doorbell.rang .doorbell-bell {
    animation: none;
  }
}

@media (max-width: 560px) {
  .doorbell {
    grid-template-columns: auto 1fr;
    padding: var(--space-4);
  }

  .doorbell-actions {
    grid-column: 1 / -1;
  }

  .doorbell-reveal {
    grid-column: 1 / -1;
  }
}

/* ═════════ 포트폴리오: 요즘 · 해 온 일 · 한 장 요약 ═════════ */

.now-block .ds-clipboard {
  margin-inline: 0 auto;
}

/* 해 온 일 — 왼쪽 기간, 오른쪽 내용 */
.career {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.career li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--line);
}

.career-period {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}

.career strong {
  font-size: var(--text-md);
}

.career-org {
  color: var(--muted);
}

.career p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* 소개의 한 장 요약 카드 */
.cv-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
}

.cv-thumb {
  display: block;
  transition: transform var(--dur) var(--ease-out);
}

.cv-thumb:hover {
  transform: rotate(-2deg);
}

.cv-card-text strong {
  font-size: var(--text-lg);
}

.cv-card-text p {
  margin: 6px 0 var(--space-4);
  color: var(--muted);
  font-size: 14.5px;
}

.cv-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* /cv/ — 화면 */
.cv-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: min(100%, 210mm);
  margin: var(--space-8) auto var(--space-4);
}

.cv-tools .back {
  margin: 0;
}

.cv-tools .hand {
  flex: 1;
  color: var(--faint);
  font-size: 19px;
  text-align: center;
}

.cv {
  font-size: 10.5pt;
  line-height: 1.55;
  word-break: keep-all;
}

.cv a {
  color: inherit;
  text-decoration: none;
}

.cv-head {
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  padding-bottom: 6mm;
  border-bottom: 2px solid #19191d;
}

.cv-head h1 {
  margin: 0;
  font-size: 24pt;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cv-role {
  margin: 2mm 0 0;
  color: #c2470e;
  font-weight: 700;
}

.cv-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4a4842;
  font-family: var(--font-mono);
  font-size: 8.5pt;
  text-align: right;
}

.cv-summary {
  margin: 5mm 0 0;
  color: #34322d;
}

.cv section {
  margin-top: 6mm;
}

.cv h2 {
  margin: 0 0 3mm;
  padding-bottom: 1.5mm;
  border-bottom: 1px solid #e4e1da;
  color: #8a8579;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.career--compact {
  gap: 3mm;
}

.career--compact li {
  grid-template-columns: 28mm 1fr;
  gap: 4mm;
  padding: 0;
  border: 0;
}

.career--compact .career-period {
  color: #8a8579;
  font-size: 8.5pt;
  line-height: 1.8;
}

.career--compact strong {
  font-size: 10.5pt;
}

.career--compact .career-org {
  color: #6b6860;
}

.career--compact p {
  margin: 0.5mm 0 0;
  color: #4a4842;
  font-size: 9.5pt;
}

.cv-works {
  display: grid;
  gap: 3.5mm;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-work-role {
  margin-left: 2mm;
  color: #8a8579;
  font-size: 9pt;
}

.cv-works p {
  margin: 0.5mm 0 0;
  color: #4a4842;
  font-size: 9.5pt;
}

.cv-works .cv-stack {
  color: #8a8579;
  font-family: var(--font-mono);
  font-size: 8pt;
}

.cv-skills {
  margin: 0;
}

.cv-foot {
  margin-top: 10mm;
  padding-top: 3mm;
  border-top: 1px solid #e4e1da;
  color: #a3a097;
  font-family: var(--font-mono);
  font-size: 7.5pt;
}

/* 인쇄 — 한 장 요약은 종이만, 나머지 페이지도 장식은 뺀다 */
@media print {
  @page {
    size: A4;
    margin: 0;
  }

  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .read-progress,
  .pull-chain,
  .no-print,
  .doorbell,
  .hero-grid {
    display: none !important;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .ds-paper {
    width: 210mm;
    min-height: 0;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  .career li,
  .cv-card {
    grid-template-columns: 1fr;
  }

  .cv-card .cv-thumb {
    width: 96px;
  }

  .cv-tools .hand {
    display: none;
  }

  .ds-paper.cv {
    padding: 8mm 6mm;
  }

  .cv-head {
    flex-direction: column;
  }

  .cv-contact {
    text-align: left;
  }
}

/* ───────── 모바일 ───────── */
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .hero {
    margin: 32px 0 56px;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .series {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

}

/* ───────── 넓은 화면 (1200px~) ───────── */
@media (min-width: 1200px) {
  /* 첫 화면: 제목을 키우고 포스트잇은 제목 옆 오른쪽에 */
  .hero h1 {
    max-width: 760px;
    font-size: 54px;
  }

  .sticky-note {
    top: 6px;
    right: 64px;
    width: 210px;
    min-height: 170px;
    padding: 22px 20px 14px;
  }

  .note-title {
    font-size: 16px;
  }

  /* 작업대 캐러셀: 다음 카드가 더 많이 보인다 */
  .slide {
    flex-basis: calc(62% - 8px);
  }

  .garage-floor {
    gap: 40px;
  }
}

/* ───────── 프로젝트 목록: 틀 썸네일 + 작업 줄자 카드 ───────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

/* 태블릿 · 좁은 창(640~1199px): 한 줄에 1개, 가로형 카드 — 썸네일은 왼쪽에 크게, 정보는 오른쪽.
   넓은 화면(1200px~)은 세로 카드 2개, 휴대폰은 세로 카드 1개 */
@media (min-width: 640px) and (max-width: 1199px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-grid .project-card {
    flex-direction: row;
  }

  .project-grid .project-card > .ds-frame--flush {
    flex: 0 0 56%;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 260px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .project-grid .project-card-body {
    min-width: 0;
    padding: 18px 20px;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.project-card-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.project-card-kind {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.project-card-title {
  font-size: 19px;
  font-weight: var(--weight-heavy);
  letter-spacing: -0.02em;
}

.project-card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.project-card .ds-tape {
  margin-top: 12px;
}

.project-card-last {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-card-last span {
  margin-right: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* 프로젝트 상세: 결과물을 틀째 크게 */
.project-cover {
  margin-bottom: var(--space-12);
}

.project-cover .ds-frame {
  box-shadow: var(--shadow-md);
}

/* 메인 도면함 */
.drawings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.ds-drawing .draft-mark {
  align-self: flex-start;
  margin: 0;
  border-color: currentColor;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .post-thumb img {
    transition: none;
  }
}
