* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10pt;
  color: #111;
  background: #bebebe;
  line-height: 1.5;
}

.page {
  max-width: 880px;
  margin: 44px auto;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

/* ── HEADER ── */
.header {
  padding: 40px 48px 0;
}

.header-eyebrow {
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 14px;
}

.header-name {
  font-family: 'Playfair Display', serif;
  font-size: 30pt;
  font-weight: 900;
  color: #000;
  line-height: 1;
  letter-spacing: -1px;
}

.header-rule {
  border: none;
  border-top: 3px solid #000;
}

.header-tagline {
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #555;
  margin-top: 8px;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.header-contact-item {
  font-size: 8.5pt;
  color: #555;
}

.header-contact-item a {
  color: inherit;
  text-decoration: none;
}

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

.header-eyebrow a {
  color: #aaa;
  text-decoration: none;
}

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

/* ── BODY GRID ── */
.body {
  display: grid;
  grid-template-columns: 228px 1fr;
  border-top: 1px solid #ddd;
  margin-top: 2px;
}

/* ── SIDEBAR ── */
.sidebar {
  background: #f4f4f2;
  padding: 28px 22px 36px;
  border-right: 1px solid #e0e0dc;
}

.sb-section {
  margin-bottom: 26px;
}

.sb-title {
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #999;
  padding-bottom: 7px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 13px;
}

/* Sidebar skills */
.skill-group {
  margin-bottom: 9px;
}

.skill-label {
  font-size: 7.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #111;
  margin-bottom: 2px;
}

.skill-value {
  font-size: 8.5pt;
  color: #555;
  line-height: 1.55;
}

/* Sidebar education */
.edu-item {
  margin-bottom: 12px;
}

.edu-degree {
  font-size: 8.5pt;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.edu-school {
  font-size: 8pt;
  color: #666;
}

.edu-year {
  font-size: 7.5pt;
  color: #aaa;
  margin-top: 1px;
}

/* Sidebar certs */
.cert-item {
  font-size: 8.5pt;
  color: #555;
  margin-bottom: 7px;
  line-height: 1.45;
  padding-left: 9px;
  border-left: 2px solid #bbb;
}

/* ── MAIN ── */
.main {
  padding: 28px 38px 36px;
}

.main-section {
  margin-bottom: 26px;
}

.main-title {
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #999;
  padding-bottom: 7px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 14px;
}

/* Summary */
.summary-text {
  font-size: 9.5pt;
  color: #333;
  line-height: 1.75;
}

/* Experience */
.job {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

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

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1px;
}

.job-company {
  font-family: 'Playfair Display', serif;
  font-size: 12.5pt;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.job-date {
  font-size: 8pt;
  color: #888;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.job-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.job-title {
  font-size: 9pt;
  color: #666;
  font-style: italic;
}

.job-location {
  font-size: 8pt;
  color: #aaa;
}

.job ul {
  padding-left: 15px;
}

.job ul li {
  font-size: 9pt;
  color: #444;
  margin-bottom: 3px;
  line-height: 1.55;
}

.job ul li strong {
  color: #111;
  font-weight: 600;
}

/* Projects */
.proj-item {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.proj-num {
  font-family: 'Playfair Display', serif;
  font-size: 18pt;
  font-weight: 900;
  color: #e0e0e0;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: right;
  margin-top: -2px;
}

.proj-body {
  flex: 1;
}

.proj-name {
  font-size: 9pt;
  font-weight: 700;
  color: #111;
  margin-bottom: 1px;
}

.proj-desc {
  font-size: 8.5pt;
  color: #555;
  line-height: 1.5;
}

/* ── FOOTER ── */
.footer-accent {
  height: 5px;
  background: #000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ── PRINT ── */
@media print {
  body {
    background: #fff;
  }

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

  /* slightly tighter rhythm on paper keeps the CV to two pages */
  @page {
    margin: 10mm 0;
  }

  .summary-text {
    line-height: 1.6;
  }

  .main-section {
    margin-bottom: 20px;
  }

  .job {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  /* let long jobs flow across pages, but never strand a heading or split a bullet/card */
  .main-title,
  .job-head,
  .job-sub {
    break-after: avoid;
  }

  .job ul li,
  .proj-item {
    break-inside: avoid;
  }
}

.proj-name a,
.proj-desc a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}
