/* 팔레트/리셋/폰트는 shared.css 참고 — 이 파일은 홈(사이드바 + CV) 레이아웃만. */
:root {
  --sidebar-width: 220px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 32px 24px;
}

.sidebar h1 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 28px;
}

#sidebar-nav {
  display: flex;
  flex-direction: column;
}

.nav-link {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: pre-line;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
  font-weight: 600;
}

.nav-project-list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-error {
  color: var(--muted);
  font-size: 13px;
}

.main {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  overflow: auto;
}

#home {
  max-width: 640px;
  padding: 64px 56px;
  line-height: 1.6;
}

.cv-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}

.cv-header h2 {
  font-size: 24px;
  margin: 0 0 4px;
}

.cv-title {
  margin: 0 0 12px;
  color: var(--muted);
}

.contact {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.contact a {
  color: var(--muted);
  text-decoration: none;
}

.contact a:hover {
  color: var(--text);
}

.contact .sep {
  margin: 0 8px;
  color: var(--border);
}

.cv-section {
  margin-bottom: 36px;
}

.cv-section h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cv-section p {
  margin: 0;
  color: var(--text);
}

.cv-entry {
  margin-bottom: 18px;
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.cv-entry-title {
  font-weight: 600;
}

.cv-entry-date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.cv-entry p {
  color: var(--muted);
  font-size: 14px;
}

.demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.demo-frame[hidden] {
  display: none;
}

@media (max-width: 640px) {
  :root {
    --sidebar-width: 160px;
  }
  .sidebar {
    padding: 20px 16px;
  }
}
