@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  /* TDS 계열 그레이 스케일 (다크) */
  --bg: #0b0d10;
  --bg-elevated: #14171c;
  --bg-hover: #1b1f26;
  --line: #23272f;
  --line-strong: #2f343d;

  --text: #eaedf1;
  --text-secondary: #a7b0bd;
  --text-tertiary: #6b7684;

  /* TDS Blue */
  --blue: #3182f6;
  --blue-hover: #4a92f8;
  --blue-dim: rgba(49, 130, 246, 0.14);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --page: 720px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 상단에 은은한 글로우 — 모더니즘 톤의 최소 장식 */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 480px;
  background: radial-gradient(
    60% 100% at 50% 0%,
    rgba(49, 130, 246, 0.16) 0%,
    rgba(49, 130, 246, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--blue-dim);
  color: #fff;
}

/* ---------- 레이아웃 ---------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px 120px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 16, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar__logo {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--bg-elevated) center / cover no-repeat;
}

.topbar__link {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar__link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.topbar__link[aria-current="page"] {
  background: var(--blue-dim);
  color: var(--blue-hover);
}

/* ---------- 프로필 헤더 ---------- */

.hero {
  padding: 88px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero__avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated) center / 72% no-repeat;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--text-tertiary);
  overflow: hidden;
}

.hero__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
}

.hero__name {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero__tagline {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.hero__links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  background: var(--bg-hover);
  border-color: var(--blue);
  color: var(--text);
}

/* ---------- 본문 (마크다운) ---------- */

.prose {
  padding-top: 8px;
}

/* 헤더 바로 아래 첫 블록은 구분선을 중복해서 그리지 않는다 */
.prose > :first-child {
  margin-top: 40px;
}

.prose > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  letter-spacing: -0.03em;
  line-height: 1.35;
  scroll-margin-top: 80px;
}

.prose h1 {
  margin: 72px 0 20px;
  font-size: 32px;
  font-weight: 800;
}

.prose h2 {
  margin: 72px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 26px;
  font-weight: 800;
}

.prose h3 {
  margin: 40px 0 12px;
  font-size: 19px;
  font-weight: 700;
}

.prose p {
  margin: 18px 0;
  color: var(--text-secondary);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  color: var(--blue-hover);
  font-weight: 600;
  border-bottom: 1px solid rgba(49, 130, 246, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--blue-hover);
}

.prose ul,
.prose ol {
  margin: 18px 0;
  padding-left: 22px;
  color: var(--text-secondary);
}

.prose li {
  margin: 10px 0;
}

.prose li::marker {
  color: var(--text-tertiary);
}

.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 17px;
}

.prose blockquote p {
  margin: 10px 0;
  color: var(--text);
}

.prose blockquote p:first-child {
  margin-top: 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  margin: 64px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

.prose pre {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow-x: auto;
}

.prose pre code {
  padding: 0;
  background: none;
}

.prose img {
  max-width: 100%;
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--text-tertiary);
  font-weight: 600;
}

/* 마크다운 안의 center 정렬 블록 (README 호환) */
.prose [align="center"] {
  text-align: center;
}

/* ---------- 인덱스 ---------- */

.index__title {
  margin: 96px 0 12px;
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.index__desc {
  margin: 0 0 44px;
  color: var(--text-secondary);
  font-size: 17px;
}

.card-list {
  display: grid;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  background: var(--bg-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card__avatar {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg) center / 70% no-repeat;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text-tertiary);
  overflow: hidden;
}

.card__name {
  font-size: 17px;
  font-weight: 700;
}

.card__desc {
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---------- 푸터 ---------- */

.footer {
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 14px;
}

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

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 40px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}
