html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic',
               -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 첫 소리가 난 뒤에야 나타난다. 자리는 처음부터 잡아두므로
   나타날 때 화면이 밀리지 않는다. */
#enter {
  color: #000;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  /* 나타날 때는 천천히, 호버 반응은 즉각적으로 */
  transition: opacity 1.6s ease, color .25s ease, transform .25s ease;
}

#enter.on {
  opacity: 1;
  pointer-events: auto;
}

#enter:hover,
#enter:focus-visible {
  color: #999;
  transform: translateX(5px);
}

#mark {
  width: 180px;
  max-width: 40vw;
  height: auto;
  overflow: visible;
}

/* 막대는 제 중심을 축으로 */
#mark .bar {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* 다리 4개는 각자 위쪽 끝을 축으로 매달려 있다 */
#mark .leg {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

/* 다리 1은 위가 좁고 아래로 갈수록 넓어지는 모양이라
   bbox 가로중앙(50%)이 실제 매달린 지점에서 43단위 벗어난다.
   획 맨 윗부분의 중앙에 맞춰 축을 옮긴다. */
#mark .leg-1 {
  transform-origin: 17.5% 0%;
}

/* 커서가 지나가는 걸 감지하는 영역. 로고보다 넉넉해야
   스쳐 지나가는 것만으로도 반응한다. */
#stage {
  padding: 90px 120px;
  /* 눌러도 된다는 유일한 신호. 브라우저 정책상 소리를 열려면
     클릭·탭이 반드시 한 번 필요한데, 빈 페이지에는 알릴 방법이 없다. */
  cursor: pointer;
}

/* 진단 화면 — 주소에 ?debug 를 붙였을 때만 만들어진다 */
#debug {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px 12px;
  background: #000;
  color: #0f0;
  font: 11px/1.5 ui-monospace, Menlo, monospace;
  white-space: pre-wrap;
  z-index: 99;
}

/* ── 메인 페이지 ─────────────────────────────────────────────
   랜딩(index)은 body가 flex 중앙정렬이지만, 여기는 읽는 문서라
   .doc 로 그걸 되돌리고 글 흐름대로 쌓는다. */
body.doc {
  display: block;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  height: auto;
  color: #000;
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.doc .home img {
  width: 52px;
  height: auto;
  display: block;
  margin-bottom: 2.5rem;
}

.doc h1 {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.doc h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4rem 0 .8rem;
}

.doc .lead {
  margin-bottom: 0;
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.doc li {
  margin-bottom: .3rem;
}

.doc a {
  color: #000;
}

.doc footer {
  margin-top: 5rem;
  font-size: .85rem;
  color: #666;
}
