:root {
  --ink: #000;
  --muted: #5f5f5f;
  --navy: #101a2d;
  --lime: #c8ff55;
  --canvas: #edf1f5;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.resume-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  padding: .65rem max(1rem, calc((100vw - 8.5in) / 2));
  color: #fff;
  background: var(--navy);
  box-shadow: 0 .25rem 1rem rgba(16, 26, 45, .18);
  font-family: Aptos, Arial, sans-serif;
}

.back-link,
.download-button {
  color: inherit;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
}

.back-link::before {
  content: "MR";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: .65rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: .45rem;
  color: var(--lime);
  font: 700 .7rem/1 ui-monospace, monospace;
}

.download-button {
  padding: .62rem .95rem;
  border-radius: 999px;
  color: var(--navy);
  background: var(--lime);
}

.resume-page {
  width: min(8.5in, calc(100% - 2rem));
  min-height: 11in;
  margin: 2rem auto;
  padding: .55in .65in .5in;
  background: #fff;
  box-shadow: 0 1.4rem 4rem rgba(15, 23, 42, .14);
  font-size: 10pt;
  line-height: 1.08;
}

.resume-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 12pt;
}

.resume-heading h1 {
  margin: 0 0 1pt;
  font-family: "Aptos Display", Aptos, Arial, sans-serif;
  font-size: 25pt;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
}

.headline {
  margin: 0 0 2pt;
  font-size: 10.5pt;
  font-weight: 700;
  line-height: 1.08;
}

.resume-heading address {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 5pt;
  margin: 0;
  color: var(--muted);
  font-size: 10pt;
  font-style: normal;
  line-height: 1.08;
}

.resume-heading a {
  color: inherit;
  text-decoration: none;
}

.resume-page section {
  margin: 0;
}

.resume-page h2 {
  margin: 11pt 0 5pt;
  color: #4285e8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15pt;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.resume-page section > p {
  margin: 0 0 9pt;
  font-size: 10pt;
  line-height: 1.35;
}

.profile-section { margin-bottom: 10pt; }

.resume-job { margin: 0 0 10pt; }

.resume-job h3,
.education-item h3 {
  margin: 0 0 2pt;
  font-size: 12pt;
  font-weight: 400;
}

.resume-job h3 em,
.education-item h3 em {
  font-size: 10.5pt;
  font-weight: 400;
}

.resume-job time,
.education-item time {
  display: block;
  margin-bottom: 3pt;
  font: 700 8.5pt/1 Aptos, Arial, sans-serif;
  text-transform: uppercase;
}

.resume-page ul {
  margin: 3pt 0 0 18pt;
  padding: 0;
  font-size: 9.6pt;
  line-height: 1.22;
}

.resume-page li { margin: 0 0 2pt; }

.skills-list { list-style: none; margin-left: 0 !important; }

.education-item { margin: 0 0 12pt; }

.resume-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12pt;
  align-items: start;
  margin: 2pt 0;
}

.resume-entry h3 {
  margin: 0;
  font-size: 10pt;
  font-weight: 700;
  line-height: 1.05;
}

.resume-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 9.3pt;
  font-style: italic;
  line-height: 1.08;
}

.resume-entry time {
  white-space: nowrap;
  font-size: 9.5pt;
  line-height: 1.05;
}

.education-entry {
  margin-bottom: 4pt;
}

.education-entry p {
  color: var(--ink);
  font-size: 9.6pt;
  font-style: normal;
}

.education-entry p span {
  color: var(--muted);
  font-size: 9.3pt;
}

.resume-page strong { font-weight: 700; }

@media (max-width: 700px) {
  .resume-toolbar { padding: .65rem 1rem; }
  .resume-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 2rem 1.25rem;
    box-shadow: none;
  }
  .resume-heading h1 { font-size: 24pt; }
  .resume-heading { align-items: flex-start; flex-direction: column; }
  .resume-entry {
    grid-template-columns: 1fr;
    gap: 1pt;
    margin: 6pt 0;
  }
  .resume-entry time {
    grid-row: 1;
    color: #233c60;
    font-size: 8.5pt;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .resume-heading address span { display: none; }
  .resume-heading address { justify-content: flex-start; gap: 2pt 8pt; }
  .resume-heading address a { width: 100%; }
}

@media print {
  @page { size: letter; margin: 0; }
  body { background: #fff; }
  .resume-toolbar { display: none; }
  .resume-page {
    width: 8.5in;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: .55in .65in .5in;
    box-shadow: none;
  }
  .resume-page section,
  .resume-entry { break-inside: avoid; }
}
