@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;
}

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

a {
  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;
  max-width: 100%;
  gap: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

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

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

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

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

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

.doc-link {
  color: #555;
  display: inline;
  overflow-wrap: anywhere;
}

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

.inline-github-link {
  color: #555;
  display: inline;
  overflow-wrap: anywhere;
}

.inline-github-link .icon {
  width: 13px;
  height: 13px;
  margin: 0 0 0 4px;
  vertical-align: -0.12em;
}

.doc-link .github-icon {
  width: 13px;
  height: 13px;
  margin: 0 0 0 4px;
  vertical-align: -0.12em;
}

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

.link-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-left: 3px;
  vertical-align: -0.1em;
  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.45rem 1.1rem;
  margin-top: 0;
  color: #777;
}

.social-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.title-link .icon,
.footer-link .icon {
  flex: 0 0 auto;
}

.title-link .icon {
  margin-right: 0;
}

.title-link .link-icon {
  margin-left: 0;
}

.inline-icon {
  margin-left: 5px;
  margin-right: 0;
}

.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>');
}

.essay-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="M12 20h9"></path><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"></path></svg>');
}

.linkedin-icon {
  width: 14px;
  height: 14px;
  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="currentColor"><path d="M22.23 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.46c.98 0 1.77-.77 1.77-1.73V1.73C24 .77 23.21 0 22.23 0zM7.12 20.45H3.56V9h3.56v11.45zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.61 0 4.27 2.37 4.27 5.46v6.28z"/></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 */
main > section {
  margin: 0;
}

main > section + section {
  margin-top: 1rem;
}

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;
  overflow-wrap: anywhere;
}

section ul {
  margin: 0;
  padding-left: 1.25rem;
}

section li + li {
  margin-top: 0.28rem;
}

section code {
  font-family: inherit;
  font-weight: 500;
}

.section-group + .section-group {
  margin-top: 1rem;
}

.section-group > h3 {
  margin-bottom: 0.6rem;
}

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

/* Education & Language Styles */
.experience-item,
.project-item,
.app-item,
.education-item,
.language-item {
  margin-bottom: 1rem;
}

.experience-item:last-child,
.project-item:last-child,
.app-item:last-child,
.education-item:last-child,
.language-item:last-child {
  margin-bottom: 0;
}

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

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

/* Project Styles */
.project-item h3 {
  font-size: 1rem;
}

.project-item p {
  margin-bottom: 0.45rem;
}

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

.compact-list {
  list-style: none;
  padding-left: 0;
}

.compact-list li {
  font-size: 0.85rem;
}

.link-list .title-link + .title-link {
  margin-left: 0.75rem;
}

/* Print styles - 콘텐츠 자연스럽게 흐르도록 설정 */
@media print {
  @page {
    margin: 0.5cm;
    size: A4;
  }

  .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;
  }

  main > section + section {
    margin-top: 0.75rem;
  }

  .experience-item,
  .project-item,
  .app-item,
  .education-item,
  li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  h2 {
    margin-top: 0;
  }

  .footer {
    margin-top: 1rem !important;
    padding: 0.7rem 0 0 !important;
  }

  .footer-info {
    font-size: 0.82rem !important;
  }
}

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

  .title {
    font-size: 1.5rem;
  }

  .social-links {
    gap: 0.45rem 0.9rem;
  }

  .link-list .title-link + .title-link {
    margin-left: 0.6rem;
  }
}

/* Footer 스타일 */
.footer {
  margin-top: 1.25rem;
  padding: 0.9rem 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: 769px) {
  .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;
}
