/* ATS-safe print résumé — Precision Manuscript: charcoal + teal accents, single column */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --text: #182232;
  --muted: #4a5568;
  --accent: #006a61;
  --line: #c5c6cd;
  --paper: #fbf8fa;
  --font: "Source Sans 3", "Calibri", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 10pt;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--paper);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.resume {
  max-width: 7.5in;
  margin: 0 auto;
  padding: 0.42in 0.5in 0.4in;
  background: #fff;
  box-shadow: 0 1px 24px rgba(24, 34, 50, 0.06);
}

/* Header — name first, clear contact block for recruiters */
.resume-header {
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--text);
  text-align: center;
}

.resume-header h1 {
  margin: 0 0 0.2rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
}

.resume-header .label {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}

.contact-primary,
.contact-links {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-links {
  margin-top: 0.1rem;
}

.contact-primary a,
.contact-links a {
  color: var(--muted);
  text-decoration: none;
}

/* Sections — standard ATS headings */
section {
  margin-top: 0.5rem;
}

section h2 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.14rem;
  border-bottom: 1.5px solid var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

section p {
  margin: 0;
  text-align: left;
  hyphens: none;
}

/* Skills — plain lines, no pill clouds */
.skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-list li {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.skills-list strong {
  font-weight: 700;
  color: var(--text);
}

/* Experience */
.job {
  margin-bottom: 0.55rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.job-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin-bottom: 0.08rem;
}

.job-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.job-meta {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  flex: 1 1 auto;
}

.job-dates {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.job ul {
  margin: 0;
  padding-left: 1.1rem;
}

.job li {
  margin-bottom: 0.12rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.job li::marker {
  color: var(--accent);
}

/* Projects */
.project {
  margin-bottom: 0.38rem;
  break-inside: avoid;
  page-break-inside: avoid;
  font-size: 0.9rem;
  line-height: 1.35;
}

.project-featured {
  padding-left: 0.45rem;
  border-left: 2.5px solid var(--accent);
}

.project-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.project-keywords {
  display: block;
  margin: 0.08rem 0 0.06rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text);
}

.project-url {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Education, certs, languages */
.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  margin-bottom: 0.12rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.two-col-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.two-col-footer section {
  flex: 1 1 45%;
  min-width: 2.5in;
}

@page {
  size: A4;
  margin: 0.5in 0.55in;
}

@media print {
  body {
    background: #fff;
  }

  .resume {
    padding: 0;
    max-width: none;
    box-shadow: none;
  }

  a {
    color: var(--muted);
    text-decoration: none;
  }

  section,
  .job,
  .project {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media screen and (max-width: 640px) {
  .resume {
    box-shadow: none;
    padding: 1.25rem 1rem 2rem;
  }

  .resume-header h1 {
    font-size: 1.45rem;
  }
}
