@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #ffffff;
  --bg-fade: #efefef;
  --text: #202020;
  --text-sub: #5f5f5f;
  --text-mute: #8a8a8a;
  --line: #e8e8e8;
  --dark: #1f1f1f;
  --dark-hover: #3a3a3a;
  --radius: 16px;
  --font: "Pretendard Variable", Pretendard, Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding: 120px 24px 120px;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(
      ellipse 80% 60% at 50% 0%,
      var(--bg-fade) 0%,
      var(--bg) 70%
    )
    no-repeat var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* 레퍼런스의 얇은 세로 가이드 라인 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ---------- 히어로 ---------- */
.title {
  text-align: center;
}

.title p {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* ---------- 링크 영역 ---------- */
.link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-sub);
  text-align: center;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--dark);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.link:hover {
  background: var(--dark-hover);
  transform: translateY(-2px);
}

.link:active {
  transform: translateY(0);
}

/* ---------- 포트폴리오 ---------- */
.portfolio {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.project {
  width: 100%;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, transform 0.25s ease,
    border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: #dcdcdc;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.project .name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project .desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ---------- 등장 애니메이션 ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title,
.link-container,
.portfolio {
  animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.link-container {
  animation-delay: 0.1s;
}

.portfolio {
  animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .title,
  .link-container,
  .portfolio {
    animation: none;
  }
  .link,
  .project {
    transition: none;
  }
}

/* ---------- 모바일 ---------- */
@media (max-width: 600px) {
  body {
    gap: 56px;
    padding: 80px 20px 80px;
  }

  .portfolio {
    padding-top: 40px;
  }

  .project {
    padding: 22px 20px;
  }
}