/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #f3f4f6;
  color: #111827;
  padding: 40px 16px 80px;
  font-size: 15px;
  line-height: 1.6;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 4px 16px rgba(0, 0, 0, .06);
  overflow: hidden;
}

/* Header */
.header {
  padding: 48px 48px 36px;
  border-bottom: 1px solid #e5e7eb;
}

.header-name {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.header-meta a,
.header-meta span {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-meta a:hover {
  text-decoration: underline;
}

.pdf-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 16px;
  background: #fff;
  border: 1.5px solid #475569;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}

.pdf-btn:hover {
  background: #475569;
  color: #fff;
}

/* Header icons */
.header-icon {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Body wrapper */
.body {
  padding: 40px 48px;
}

/* Bio */
.bio {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #f0f0f0;
}

/* Sections */
.section {
  margin-bottom: 36px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #475569;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #475569;
}

/* Job entries */
.job {
  padding-left: 14px;
  border-left: 2px solid #e5e7eb;
  margin-bottom: 28px;
}

.job:last-child {
  margin-bottom: 0;
}

.job-company {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #111;
  margin-bottom: 2px;
}

.job-company a {
  color: inherit;
  text-decoration: none;
}

.job-company a:hover {
  text-decoration: underline;
}

.job-company-meta {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7280;
  font-size: 12px;
}

.job-role {
  font-size: 13px;
  color: #475569;
  font-style: italic;
  margin-bottom: 10px;
}

.job-role + .job-role {
  margin-top: -6px;
}

.job-desc {
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
}

.job-desc ul {
  padding-left: 18px;
}

.job-desc li {
  margin-bottom: 5px;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 0 0 60px;
  }

  .page {
    border-radius: 0;
    box-shadow: none;
  }

  .header,
  .body {
    padding: 28px 20px;
  }

  .header-name {
    font-size: 26px;
  }

  .header-meta {
    gap: 10px;
  }
}

/* Print / PDF */
@media print {
  body {
    background: #fff;
    padding: 0;
    font-size: 11pt;
  }

  .page {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
  }

  .header {
    padding: 24px 32px 20px;
  }

  .body {
    padding: 24px 32px;
  }

  .pdf-btn {
    display: none;
  }

  .job {
    break-inside: avoid;
  }

  .section {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
