@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
 
:root {
  --bg: #fff;
  --text: #000;
  --muted: #707070;
  --placeholder: #efefef;
  --line: #e3e3e3;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --head: 64px;
}
 
* { box-sizing: border-box; margin: 0; padding: 0; }
 
html { scroll-behavior: smooth; }
 
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
 
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
 
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
 
/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head);
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
  background: var(--bg);
}
.logo { font-weight: 600; }
.nav { display: flex; gap: 32px; font-size: 0.9375rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
 
.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 0 5px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s;
}
.menu-button.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-button.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
 
/* Layout */
main > section,
.footer {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}
main > section { scroll-margin-top: var(--head); }
 
.portfolio,
.about,
.contact { padding-bottom: 120px; }
 
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
 
/* Hero */
.hero { padding: 72px 0 120px; }
.hero-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: end;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero h2 {
  margin-top: 28px;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.hero-description { margin-top: 20px; color: var(--muted); }
.hero-buttons { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
 
.button { font-weight: 500; }
.button.primary { padding: 12px 28px; background: var(--text); color: var(--bg); }
.button.primary:hover { background: #444; }
.button.secondary { padding-bottom: 2px; border-bottom: 1px solid currentColor; }
.button.secondary:hover { color: var(--muted); }
 
.profile-image,
.about-image,
.thumb {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
}
.profile-image,
.about-image { aspect-ratio: 1 / 1; }
.thumb { aspect-ratio: 16 / 9; }
 
.profile-info { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.profile-info .name { color: var(--text); font-weight: 500; }
 
/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 32px;
}
.project a { display: block; }
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}
.project-info p { font-size: 0.875rem; color: var(--muted); }
.project-info h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.project-link { font-size: 0.875rem; border-bottom: 1px solid currentColor; }
.project a:hover .project-link { color: var(--muted); }
 
/* About */
.about-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h3 { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; }
.about-description { margin-top: 12px; font-size: 1.25rem; line-height: 1.5; }
.skills { display: flex; flex-direction: column; margin-top: 56px; font-size: 0.9375rem; line-height: 1.9; color: var(--muted); }
 
/* Contact */
.contact .section-head { margin-bottom: 12px; }
.contact-intro { font-size: 1.25rem; color: var(--muted); }
.contact-wrapper { margin-top: 40px; }
.contact-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-size: 0.9375rem; color: var(--muted); }
.contact-value { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.contact-item:hover .contact-value { text-decoration: underline; text-underline-offset: 4px; }
 
.footer { padding-bottom: 40px; font-size: 0.875rem; color: var(--muted); }
 
/* Mobile */
@media (max-width: 760px) {
  .menu-button { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--head);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 20px;
    background: var(--bg);
    color: var(--text);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.125rem; }
 
  .hero { padding: 32px 0 88px; }
  .hero-container { grid-template-columns: 1fr; gap: 56px; }
  .hero-profile { max-width: 260px; }
 
  .portfolio,
  .about,
  .contact { padding-bottom: 88px; }
  .section-head h2 { font-size: 1.5rem; }
 
  .grid { grid-template-columns: 1fr; }
  .about-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .about-image { max-width: 220px; }
  .about-text h3 { font-size: 1.75rem; }
  .skills { margin-top: 40px; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }
}
 