/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --font:
    Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --blue: #2563eb;
  --gray-light: #dee2e6;
  --text: #212529;
  --text-muted: #6c757d;
  --white: #ffffff;
  --border: #dee2e6;
  --link: #3c78d8;
  --link-hover: #2558b0;

  --container-max: 860px;
  --container-px: 24px;
}

/* ===========================
   Container
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ===========================
   Profile Section
   =========================== */
.profile-section {
  padding: 40px 0 32px;
}

.profile-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.profile-img-wrapper {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--blue);
}

.profile-img {
  display: block;
  width: 200px;
}

.profile-info-col {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text);
}

.profile-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.profile-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.88rem;
  padding: 12px 0;
}

.profile-contacts li {
  display: flex;
  align-items: center;
}

.profile-contacts li + li::before {
  content: "|";
  margin: 0 10px;
  color: var(--gray-light);
}

/* ===========================
   Link Cards (#links 섹션)
   =========================== */
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  color: inherit;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.link-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #c7d2fe;
  text-decoration: none !important;
}

.link-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.link-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0 !important;
}

.link-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-card-tags span {
  font-size: 0.78rem;
  color: #4f7be8;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 3px 12px;
  background: transparent;
  transition: background 0.15s ease;
}

.link-card:hover .link-card-tags span {
  background: #eef2ff;
}

/* ===========================
   Resume Section
   =========================== */
.resume-section {
  margin-top: 48px;
}

.section-header {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-body {
  font-size: 0.95rem;
}

/* ===========================
   Experience / Education
   =========================== */
.exp-company {
  display: flex;
  align-items: start;
}

.exp-company-header {
  flex: 1;
}

.exp-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.exp-company-body {
  flex: 4;
}

.exp-company-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.exp-department {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===========================
   ETC
   =========================== */
.etc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.etc-list li {
  font-size: 0.9rem;
}

/* ===========================
   Footer
   =========================== */
.resume-footer {
  margin-top: 50px;
}

.footer-text {
  padding: 14px 0 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--text-muted);
}

.footer-text a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ===========================
   Responsive — Tablet (≤ 768px)
   =========================== */
@media (max-width: 768px) {
  :root {
    --container-px: 18px;
  }

  .profile-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .link-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   Responsive — Mobile (≤ 480px)
   =========================== */
@media (max-width: 480px) {
  :root {
    --container-px: 14px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-contacts {
    flex-direction: column;
    gap: 4px;
  }

  .profile-contacts li + li::before {
    display: none;
  }

  .resume-section {
    margin-top: 36px;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .link-cards {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Print
   =========================== */
@media print {
  a {
    color: var(--text);
  }
  .resume-section {
    page-break-inside: avoid;
  }
}
