:root {
  --navy: #333d50;
  --ink: #3e4859;
  --sidebar: #e4e4e4;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #202020;
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.42;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.resume {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "sidebar main";
  width: min(100%, 1000px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}

.resume-header {
  grid-area: header;
  min-height: 182px;
  background: var(--navy);
  color: #fff;
}

.header-copy {
  margin-left: 39.5%;
  padding: 18px 24px 22px;
}

.header-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
}

.header-copy p {
  margin: 8px 0 0;
  font-size: clamp(17px, 2.5vw, 25px);
  font-weight: 400;
}

.sidebar {
  position: relative;
  grid-area: sidebar;
  padding: 144px 34px 60px;
  background: var(--sidebar);
}

.avatar {
  position: absolute;
  top: -137px;
  left: 50%;
  display: grid;
  width: 238px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #66778a, #aeb8bf);
  color: #fff;
  box-shadow: 0 0 0 1px rgb(51 61 80 / 12%);
}

.avatar span {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
}

.side-section {
  margin-top: 40px;
}

.contact-section {
  margin-top: 0;
}

.side-section h2,
.resume-section > h2 {
  margin: 0;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.3;
}

.side-section h2 {
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.contact-list,
.bullet-list {
  margin: 0;
  padding-left: 19px;
}

.contact-list {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: var(--navy);
}

.bullet-list li {
  padding-left: 0;
  margin-bottom: 7px;
}

.interests-section {
  margin-top: 44px;
}

.main-content {
  position: relative;
  grid-area: main;
  padding: 56px 50px 60px 24px;
}

.main-content::before {
  position: absolute;
  top: 76px;
  bottom: 58px;
  left: 40px;
  width: 1px;
  background: var(--navy);
  content: "";
}

.resume-section {
  position: relative;
  margin: 0 0 36px;
  padding-left: 64px;
}

.section-icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
}

.section-icon svg {
  width: 21px;
  height: 21px;
  fill: #fff;
}

.resume-section > h2 {
  min-height: 35px;
  padding: 0 0 6px;
  font-size: 25px;
  letter-spacing: 3px;
}

.profile-copy {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.43;
}

.project-list {
  padding-top: 10px;
}

.timeline-item {
  position: relative;
  margin: 0 0 24px;
}

.timeline-item::before,
.education-item::before {
  position: absolute;
  top: 4px;
  left: -51px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.timeline-item h3,
.education-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.project-role {
  margin: 0 0 12px 4px;
  font-size: 18px;
}

.timeline-item ul {
  margin: 0;
  padding-left: 27px;
  font-size: 16px;
  line-height: 1.4;
}

.education-section {
  margin-top: 6px;
  margin-bottom: 0;
}

.education-item {
  position: relative;
  margin-top: 22px;
}

.education-item::before {
  top: 4px;
}

.education-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.education-heading h3 {
  max-width: 75%;
}

.education-heading span {
  flex-shrink: 0;
  padding-top: 2px;
}

.education-item p {
  margin: 12px 0 0;
  font-size: 18px;
}

@media (min-width: 1001px) {
  .resume {
    min-height: 1000px;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--paper);
    font-size: 15px;
  }

  .resume {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "sidebar"
      "main";
  }

  .resume-header {
    min-height: 160px;
  }

  .header-copy {
    margin-left: 0;
    padding: 28px 24px 24px 190px;
  }

  .header-copy h1 {
    font-size: clamp(27px, 7vw, 40px);
  }

  .header-copy p {
    font-size: 16px;
  }

  .sidebar {
    padding: 28px 28px 34px;
  }

  .avatar {
    top: -125px;
    left: 24px;
    width: 150px;
    transform: none;
    border-width: 5px;
  }

  .avatar span {
    font-size: 34px;
  }

  .contact-section {
    margin-top: 0;
  }

  .side-section {
    margin-top: 28px;
  }

  .main-content {
    padding: 36px 22px 40px 18px;
  }

  .main-content::before {
    top: 54px;
    bottom: 40px;
    left: 34px;
  }

  .resume-section {
    margin-bottom: 32px;
    padding-left: 52px;
  }

  .section-icon {
    left: 0;
    width: 30px;
    height: 30px;
  }

  .section-icon svg {
    width: 19px;
    height: 19px;
  }

  .resume-section > h2,
  .side-section h2 {
    font-size: 21px;
    letter-spacing: 2px;
  }

  .profile-copy,
  .timeline-item ul {
    font-size: 14px;
  }

  .timeline-item h3,
  .project-role,
  .education-item p {
    font-size: 16px;
  }

  .timeline-item::before,
  .education-item::before {
    left: -42px;
  }

  .education-heading {
    display: block;
  }

  .education-heading h3 {
    max-width: none;
  }

  .education-heading span {
    display: block;
    margin-top: 6px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .resume {
    width: 210mm;
    min-height: 297mm;
  }
}
