/* manus.mn — 디자인 시스템 1차 (2026-05-06)
   톤: C* (한국어 시간축 narrative mix)
   참조: action-dashboard-2026-04-30 패턴 + feedback_presentation_style.md
   원칙: 라이트 + Pretendard + 강조 1색 + minimal text-dominant
*/

/* === 리셋 === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 톤 변수 (라이트 + 강조 1색) */
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-faded: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;

  /* 타이포 (자연 호흡) */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'D2Coding', monospace;

  /* 간격 */
  --max-w: 720px;
  --max-w-wide: 960px;
}

/* === 본문 === */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.container-wide {
  max-width: var(--max-w-wide);
}

/* === 타이포 === */
h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.3;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

p + p {
  margin-top: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

a:hover {
  border-bottom-color: var(--accent);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--border-soft);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

/* === 헤더 (사이트 네비) === */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--bg);
}

.site-nav {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.site-nav .brand {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  border-bottom: none;
}

.site-nav .links {
  display: flex;
  gap: 24px;
}

.site-nav .links a {
  color: var(--text-muted);
  border-bottom: none;
}

.site-nav .links a:hover {
  color: var(--text);
}

.site-nav .links a.active {
  color: var(--text);
  font-weight: 500;
}

/* === Hero === */
.hero {
  margin: 24px 0 56px;
}

.hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 560px;
}

.hero .meta {
  font-size: 13px;
  color: var(--text-faded);
  margin-top: 20px;
}

/* === 카드 (outcome / 영역) === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--text-muted);
}

.card .num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.card .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.card .year {
  font-size: 12px;
  color: var(--text-faded);
  margin-top: 4px;
}

/* === 영역 카드 (Work) === */
.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.area-card:hover {
  border-color: var(--text-muted);
}

.area-card h3 {
  margin-top: 0;
  font-size: 16px;
}

.area-card .desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.area-card .links {
  font-size: 13px;
  margin-top: 10px;
}

/* === 시간축 리스트 (Writings) === */
.timeline-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.timeline-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.timeline-list li:last-child {
  border-bottom: none;
}

.timeline-list .year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faded);
  min-width: 60px;
  flex-shrink: 0;
}

.timeline-list .title {
  font-size: 15px;
  color: var(--text);
  flex: 1;
}

.timeline-list .meta {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === Link list (외부 채널) === */
.link-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 15px;
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

/* === Footer === */
.site-footer {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-faded);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  border-bottom: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* === 모바일 반응형 === */
@media (max-width: 640px) {
  .container { padding: 40px 20px 64px; }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  .hero .lede { font-size: 16px; }
  .site-nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  .site-nav .links { gap: 16px; }
  .timeline-list li { flex-direction: column; gap: 4px; }
  .timeline-list .year { min-width: 0; }
}

/* === 접근성 === */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
