:root {
  --text: #161616;
  --muted: #5f5f5f;
  --faint: #8a8a8a;
  --line: #e4e4e4;
  --bg: #ffffff;
  --link: #161616;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1 { font-size: 28px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: 64px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 19px; line-height: 1.4; margin: 0 0 6px; }

p { margin: 0 0 12px; }

.lead { font-size: 17px; margin: 12px 0 10px; }
.contact, .updated, .meta, .tags, .caption, .back { color: var(--muted); font-size: 14px; }
.contact a { color: var(--muted); }
.updated { color: var(--faint); margin-top: 4px; }

/* 대표 프로젝트 목록 */
.project {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.project:first-of-type { padding-top: 4px; }
.project .media video, .project .media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
  border-radius: 4px;
}
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project .key { font-size: 15px; margin: 8px 0; }
.tags { margin: 10px 0 0; }
.more { font-size: 14px; margin-top: 8px; }

/* 그 밖의 작업 */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .name { font-weight: 600; }
.list .desc { color: var(--text); }
.list .sub { color: var(--muted); font-size: 14px; }

/* 표 */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 14px; }
td.when { white-space: nowrap; color: var(--muted); width: 1%; padding-right: 20px; }
td.kind { white-space: nowrap; width: 1%; padding-right: 20px; }
td.num { white-space: nowrap; }

/* 상세 페이지 */
.back { display: inline-block; margin-bottom: 28px; }
.meta { margin: 6px 0 24px; }
figure { margin: 24px 0; }
figure video, figure img, figure svg { width: 100%; height: auto; display: block; border-radius: 4px; }
figure video, figure img { background: #f2f2f2; }
.caption, figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row figure { margin: 0; }
.case { margin: 0 0 22px; }
.case h3 { font-size: 17px; margin-bottom: 4px; }
ul.plain { padding-left: 18px; margin: 0 0 12px; }
ul.plain li { margin-bottom: 6px; }

svg text { font-family: inherit; }

footer {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
footer a { color: var(--faint); }

@media (max-width: 680px) {
  main { padding: 36px 16px 64px; }
  h1 { font-size: 24px; }
  .project { grid-template-columns: 1fr; gap: 14px; }
  .row { grid-template-columns: 1fr 1fr; }
  figure:has(svg) { overflow-x: auto; }
  figure svg { min-width: 620px; }
  td.when { white-space: normal; }
}
