/* Design Tokens (Light Only) */
:root {
  --radius: 16px;
  --gap: 14px;
  --pad: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --bg: #f7f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #2563eb;
  --accent: #22c55e;
  --ring: rgba(37, 99, 235, 0.45);
  --link: #0f172a;
  --border: #e5e7eb;
  --grad-1: 255, 255, 255;
  --grad-2: 245, 248, 255;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo",
    sans-serif;
  background: radial-gradient(
      1000px 600px at 15% 10%,
      rgba(var(--grad-2), 0.4),
      transparent
    ),
    radial-gradient(
      800px 500px at 90% 0%,
      rgba(var(--grad-2), 0.3),
      transparent
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
}

header {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 18px 0 26px;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}
.who {
  display: grid;
  gap: 6px;
}
.who h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.who .role {
  font-weight: 500;
  color: var(--brand);
  font-size: 15px;
}
.who p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.imforming {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.2px;
  animation: fadeIn 0.6s ease-out;
}

/* 부드러운 등장 효과 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 모드 전환 버튼 숨김 처리 (기능 삭제됨) */
.mode-toggle {
  display: none !important;
}

.quick {
  margin: 8px 0 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

/* 제목 */
.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* 기술 스택 뱃지 */
.badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(8px);
}

/* 설명 */
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* 버튼 그룹 */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: var(--brand);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.link-stretch {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

footer {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin: 26px 0 10px;
}

/* a11y */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

/* Narrow screens */
@media (max-width: 560px) {
  header {
    grid-template-columns: 64px 1fr;
    grid-auto-rows: auto;
  }
  .avatar {
    width: 64px;
    height: 64px;
  }
  /* 모드 토글 관련 스타일 제거됨 */
  .card {
    padding: 14px;
  }
}
