:root {
  --navy: #1a2e4a;
  --blue: #2e5c8a;
  --blue-mid: #3d6d9e;
  --border: #c8d6e8;
  --border-light: #e2eaf4;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-light: #6b7c93;
}

/* === BASE === */

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 11pt;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
}

.container {
  max-width: 52rem;
  margin: 0.65in auto;
  padding: 0 0.75in;
}

/* === HEADER === */

header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
}

.header-name {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 21pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 0.3rem;
  line-height: 1.1;
}

.header-contact {
  font-size: 9.5pt;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.header-contact a {
  color: var(--blue-mid);
  text-decoration: none;
}

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

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-right: 1.1em;
  white-space: nowrap;
}

.contact-icon {
  width: 13px;
  height: 13px;
  color: var(--blue-mid);
  flex-shrink: 0;
  position: relative;
  top: 0.05em;
}

/* === SECTIONS === */

.resume-section {
  margin-bottom: 1.4rem;
}

.section-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.85rem;
  padding-bottom: 0.3rem;
  border-bottom: 1.5px solid var(--border);
}

/* === SUMMARY === */

.summary-text {
  font-size: 10.5pt;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* === JOB ENTRIES === */

.job-entry {
  margin-bottom: 1.1rem;
  page-break-inside: avoid;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.job-header-left {
  flex: 1;
}

.job-header-right {
  text-align: right;
  flex-shrink: 0;
}

.job-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11pt;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}

.job-company {
  font-size: 10pt;
  color: var(--text-secondary);
  margin: 0.1rem 0 0;
  line-height: 1.3;
}

.job-date {
  font-size: 9.5pt;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.job-location {
  font-size: 9pt;
  color: var(--text-light);
  font-style: italic;
  margin: 0.1rem 0 0;
  line-height: 1.3;
}

/* === LISTS === */

.resume-list {
  list-style: none;
  padding-left: 0.9rem;
  margin: 0;
}

.resume-list li {
  font-size: 10.5pt;
  line-height: 1.45;
  color: var(--text);
  position: relative;
  margin-bottom: 0.45rem;
}

.resume-list li::before {
  content: '▸';
  position: absolute;
  left: -0.9rem;
  color: var(--blue-mid);
  font-size: 7.5pt;
  top: 0.18em;
}

.resume-list li:last-child {
  margin-bottom: 0;
}

.tech-line {
  color: var(--text-secondary) !important;
  font-size: 9.5pt !important;
}

/* === SKILLS === */

.skills-grid {
  display: grid;
  gap: 0.4rem;
}

.skill-row {
  display: flex;
  gap: 0.75rem;
  font-size: 10.5pt;
  line-height: 1.45;
  align-items: baseline;
}

.skill-label {
  font-weight: 700;
  color: var(--navy);
  min-width: 11.5rem;
  flex-shrink: 0;
  font-size: 10pt;
}

.skill-value {
  color: var(--text-secondary);
}

/* === PRINT === */

@media print {
  @page {
    margin: 0.75in;
    size: letter;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: white;
    font-size: 10.5pt;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .job-entry {
    page-break-inside: avoid;
  }

  a {
    text-decoration: none !important;
    color: var(--text-secondary) !important;
  }

  .separator {
    color: var(--border) !important;
  }
}
