:root {
  /* 메인 배경 컬러 (단색) */
  --bg: #FF9ECB;

  /* 카드 / 버튼 / 링크 배경 (화이트 기반) */
  --card-bg: #ffffff;

  /* 포인트 컬러 */
  --accent: #C346AF;
  --accent-soft: rgba(195, 70, 175, 0.15);

  /* 텍스트 컬러 */
  --text-main: #3A0032;
  --text-sub: #6A2B58;

  /* 테두리 / 그림자 */
  --border: rgba(195, 70, 175, 0.45);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.12);

  --radius-xl: 20px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Pretendard", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  /* 가운데 정렬용 flex 제거 → 스크롤 정상 동작 */
  display: block;
  padding: 24px 16px;
  overflow-x: hidden; /* 가로로 튀어나오는 것 방지 */
}

img {
  max-width: 100%;
  display: block;
}

/* Card Wrapper */
.page-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 26px 20px 22px;
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 26px;
}

/* 1:1 원형 프로필 사진 */
.avatar {
  width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  background: #fff;
  box-shadow: 0 8px 26px rgba(195, 70, 175, 0.25);
}

.name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tagline {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
}

.chip-main {
  background: var(--accent);
  color: #ffffff;
}

/* 링크 리스트 */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
}

.link-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* hover 시 연한 핑크 오버레이 */
.link-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
  transition: background 0.25s ease;
}

.link-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(195, 70, 175, 0.22);
}

.link-item:hover::after {
  background: rgba(255, 255, 255, 0.5);
}

.link-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
}

.link-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(195, 70, 175, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.link-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.45;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(195, 70, 175, 0.4);
}

.footer-left,
.footer-right {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 70, 175, 0.25);
}

/* 반응형 – 살짝 확대 */
@media (min-width: 640px) {
  body {
    padding: 36px 16px;
  }

  .avatar {
    width: 130px;
  }

  .name {
    font-size: 1.7rem;
  }
}
