/* ============================================================
   Obsidian Aurora Glass — Article pages
   본문 가독성 최우선: 좁은 읽기 폭, 강한 대비, 절제된 유리
   ============================================================ */

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post {
  width: min(92%, var(--reading-max));
  padding: 120px 0 80px;
}

/* ---------- 대표 이미지 ---------- */
.post__hero {
  overflow: hidden;
  border-radius: var(--surface-med-radius);
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--surface-med-shadow);
  margin-bottom: 40px;
}

.post__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

/* ---------- 본문 타이포그래피 ---------- */
#content h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

#content h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 0.9em;
  font-size: clamp(20px, 2.6vw, 25px);
  border-top: 1px solid var(--divider);
}

#content h3 {
  margin: 1.6em 0 0.4em;
  font-size: 17.5px;
  color: var(--ice-cyan);
}

#content p {
  margin: 0.55em 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}

#content strong {
  color: var(--text-primary);
  font-weight: 600;
}

#content ul {
  margin: 0.6em 0 0.6em 4px;
  list-style: none;
}

#content li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}

#content li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(120deg, var(--ice-cyan), var(--electric-indigo));
  opacity: 0.8;
}

#content img {
  max-width: 100%;
  margin: 1.2em 0;
  border-radius: 14px;
  border: 1px solid var(--glass-border-soft);
}

#content hr {
  border: none;
  height: 1px;
  background: var(--divider);
  margin: 0.4em 0;
}

#content a {
  color: var(--ice-cyan);
  word-break: break-all;
}

#content br {
  line-height: 0.5em;
}

/* ---------- 인라인 코드 / 코드 블록 ---------- */
#content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(102, 227, 255, 0.08);
  color: var(--ice-cyan);
  border: 1px solid rgba(102, 227, 255, 0.14);
  border-radius: 6px;
  padding: 2px 7px;
}

.code-block {
  position: relative;
  margin: 1.2em 0;
  background: rgba(4, 6, 12, 0.7);
  border: 1px solid var(--glass-border-soft);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(2, 4, 10, 0.4);
  overflow: hidden;
}

.code-block .code-lang {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.code-block pre {
  padding: 20px 22px;
  overflow-x: auto;
}

.code-block pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d7e4ff;
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- 프로젝트 메타 패널 ---------- */
.post-meta {
  margin: 22px 0 34px;
  padding: 18px 24px;
}

.desc-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--divider);
}

.desc-row:last-child {
  border-bottom: none;
}

.desc-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 1px;
}

.desc-value {
  text-align: right;
  color: var(--text-secondary);
}

.desc-value a {
  color: var(--ice-cyan);
}

/* ---------- 강조 색상 ---------- */
.c-blue {
  color: #70a5f0;
}

.c-red {
  color: var(--error);
}

/* ---------- TODO 배지 (미확정 정보 표시) ---------- */
#content .todo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--warning);
  border: 1px solid rgba(241, 184, 75, 0.35);
  background: rgba(241, 184, 75, 0.08);
  border-radius: 6px;
  padding: 2px 8px;
  vertical-align: 2px;
}

/* ---------- 푸터 내비게이션 ---------- */
.post__footer {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.post__footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 반응형 ---------- */
@media (max-width: 640px) {
  .post {
    padding-top: 104px;
  }

  .post__hero img {
    aspect-ratio: 16 / 10;
  }

  .desc-row {
    flex-direction: column;
    gap: 2px;
  }

  .desc-value {
    text-align: left;
  }
}
