:root {
  --ink: #1a1a1a;
  --muted: #555;
  --rule: #cfcfcf;
  --page-pad: 12mm;
}

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

html, body {
  background: #e8e8e8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 24px auto;
  padding: var(--page-pad);
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  font-size: 10.5pt;
  line-height: 1.32;
}

.resume-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.photo {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 2px;
}

.name {
  font-family: 'Poppins', sans-serif;
  font-size: 24pt;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.05;
}

.title {
  font-family: 'Poppins', sans-serif;
  font-size: 13pt;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 9.5pt;
  gap: 1px;
}

.contact-links {
  display: flex;
  gap: 10px;
  margin-top: 1px;
}

.contact-link {
  color: var(--ink);
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 7px 0;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15pt;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 32px;
}

.education-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.education-school { font-weight: 700; font-size: 11pt; }
.education-period { font-weight: 700; }
.education-degree { text-decoration: underline; }

.entry { margin-bottom: 9px; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.entry-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12pt;
}

.entry-period { font-weight: 700; white-space: nowrap; }

.entry-company {
  text-decoration: underline;
  font-weight: 600;
  margin-bottom: 3px;
}

.entry-bullets {
  list-style: disc;
  padding-left: 18px;
}

.entry-bullets li { margin-bottom: 1px; }

.entry-skills { margin-top: 3px; }

@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff; }
  .page {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .entry, .resume-header, .education-grid { break-inside: avoid; }
}
