@font-face {
  font-family: "IBMPlexSansKR";
  src: url("/fonts/IBMPlexSansKR-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBMPlexSansKR";
  src: url("/fonts/IBMPlexSansKR-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBMPlexSansKR";
  src: url("/fonts/IBMPlexSansKR-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBMPlexSansKR";
  src: url("/fonts/IBMPlexSansKR-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBMPlexSansKR";
  src: url("/fonts/IBMPlexSansKR-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBMPlexSansKR", sans-serif;
  line-height: 1.5;
  color: #555;
  background-color: #fff;
  font-size: 0.9rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.title-medium {
  font-weight: 500;
}

.main {
  margin: 1.5rem auto;
  width: 720px;
  padding: 0 1.5rem;
}

a,
.project-features div {
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.article .experience-item h3 {
  margin-bottom: 0.3rem;
}

a:hover {
  background-color: #666;
  color: #fff;
}

.title-link {
  color: #555;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
}

.title-link:hover {
  background-color: #666;
  color: #fff;
}

.blog-link {
  color: #555;
  display: inline;
  width: fit-content;
}

.blog-link b {
  white-space: nowrap;
}

.blog-link .icon {
  vertical-align: middle;
}

.blog-link:hover {
  background-color: #666;
  color: #fff;
}

.link-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Header Styles */
header {
  margin-bottom: 1rem;
}

.title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #444;
}

.title-desc {
  font-size: 1rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
  color: #777;
}

.social-link {
  display: inline-flex;
  align-items: center;
  margin-right: 1.3rem;
  font-size: 0.85rem;
}

.icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}

.github-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>');
}

.blog-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>');
}

.email-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
}

.phone-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>');
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
}

/* Section Styles */
section {
  margin-bottom: 0rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4rem;
  color: #444;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #444;
}

h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.8rem 0 0.5rem 0;
  color: #555;
}

section p,
section li {
  font-size: 0.85rem;
  color: #666;
}

.about p {
  margin-bottom: 0.7rem;
  font-size: 0.87rem;
}

/* Education & Language Styles */
.education-item,
.language-item {
  margin-bottom: 0.7rem;
}

.app-item h3 {
  margin-bottom: 0.3rem;
}

.app-item ul {
  margin-left: 1.3rem;
}

.app-item li {
  margin-bottom: 0.3rem;
}

.education-item h3,
.language-item h3 {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Experience Styles */
.experience-item {
  margin-bottom: 1rem;
}

.experience-item h3 {
  margin-bottom: 0.5rem;
}

.experience-item ul {
  margin-left: 1.3rem;
}

.experience-item li {
  margin-bottom: 0.3rem;
}

.experience-item ul li {
  font-weight: 400;
  font-size: 0.85rem;
}

/* Project Styles */
.project {
  margin-bottom: 1.5rem;
}

.project h3 {
  font-size: 1rem;
}

.project-period {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.project ul {
  margin-left: 1.3rem;
  margin-bottom: 0.5rem;
}

.project li {
  margin-bottom: 0.2rem;
}

/* Print styles - 콘텐츠 자연스럽게 흐르도록 설정 */
@media print {
  .phone-number:before {
    content: "7730-4966" !important;
    letter-spacing: normal !important;
  }

  body {
    font-size: 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .main {
    width: 100%;
    margin: 0;
    padding: 0.8rem;
  }

  a {
    color: #444;
  }

  .social-link {
    font-size: 0.9rem; /* 0.8rem에서 0.9rem으로 증가 */
  }

  /* 페이지 설정 최적화 */
  @page {
    margin: 0.5cm;
    size: A4;
  }

  /* section이 끊기지 않도록 강화된 설정 */
  /* section {
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-before: auto;
    break-before: auto;
    page-break-after: auto;
    break-after: auto;
  } */

  /* 프로젝트, 경험, 스킬 그룹도 끊기지 않도록 */
  /* .project,
  .experience-item,
  .skill-group,
  .education-item,
  .app-item {
    page-break-inside: avoid;
    break-inside: avoid;
  } */

  /* 헤더 설정 - section과 함께 이동하도록 */
  /* h2,
  h3,
  h4 {
    page-break-after: avoid;
    break-after: avoid;
    page-break-before: auto;
    break-before: auto;
  }

  /* 리스트 항목도 끊기지 않도록 */
  /* li {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  header {
    page-break-after: avoid;
    break-after: avoid;
  } */
  */

  /* 기본 스타일 유지 */
  h2 {
    margin-top: 0.8rem;
  }
}

@media (max-width: 768px) {
  .main {
    width: 100%;
  }

  .title {
    font-size: 1.5rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.7rem;
  }

  .social-link {
    margin-right: 0;
  }

  /* Toy Project 섹션의 링크들이 모바일에서 자연스럽게 보이도록 */
  .app-item ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .app-item ul li .title-link {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
  }
}

/* Footer 스타일 */
.footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-info {
  color: #666;
  font-size: 0.9rem;
}

.footer-info p {
  margin: 5px 0;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-link {
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #000;
  text-decoration: underline;
}

/* 반응형 조정 */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.phone-number:before {
  content: "****-****";
  letter-spacing: 2px;
}

.phone-number:hover:before {
  content: "7730-4966";
  letter-spacing: 0px;
}

.app-item p {
  margin-bottom: 5px;
}
