#print-resume {
  margin-left: max(16px, 2vh);
}

#resume {
  margin-top: max(32px, 4vh);
}

#resume .resume-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

#resume h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--grey-darkest);
}

#resume .tagline {
  font-size: 24px;
  font-weight: 300;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--grey-medium);
}

#resume .contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-style: normal;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  color: var(--grey-dark);
  text-align: right;
}

#resume .contact strong {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-darkest);
}

#resume .contact a {
  font-weight: 300;
}

#resume .resume-group {
  margin-top: max(32px, 4vh);
}

#resume h2 {
  font-size: 24px;
  font-weight: 300;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--grey-light);
}

#resume .summary {
  margin-top: max(12px, 1.5vh);
  max-width: 75ch;
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  color: var(--grey-dark);
  text-wrap: pretty;
}

#resume .entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: max(32px, 3vw);
  margin-top: max(20px, 2.5vh);
}

#resume h2 + .entry {
  margin-top: max(12px, 1.5vh);
}

#resume .entry-main {
  max-width: 75ch;
}

#resume h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--grey-darkest);
}

#resume .entry-main p {
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  color: var(--grey-dark);
  text-wrap: pretty;
}

#resume .entry-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}

#resume .entry-meta strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  color: var(--grey-darkest);
}

#resume .entry-meta em {
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: var(--grey-dark);
}

@media (max-width: 640px) {
  #resume .resume-head {
    flex-direction: column;
    gap: 16px;
  }

  #resume .contact {
    align-items: flex-start;
    text-align: left;
  }

  #resume .entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #resume .entry-meta {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    white-space: normal;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  html,
  body {
    width: 8.5in;
    background-color: var(--white);
    overflow: visible;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  main {
    padding: 0.65in 1.82in 0.5in 1.92in;
  }

  main > header,
  main > footer,
  #print-resume {
    display: none;
  }

  #name,
  #tab:checked ~ #name {
    position: absolute;
    top: 0.55in;
    left: 0;
    margin-left: 0;
    animation: none;
    transition: none;
  }

  #name dfn {
    display: none;
  }

  #name svg {
    width: 1.42in;
    height: auto;
    max-height: none;
  }

  main > section {
    padding: 0;
  }

  #resume {
    max-width: none;
    margin-top: 0;
  }

  #resume .resume-head {
    flex-direction: row;
    align-items: flex-start;
  }

  #resume h1 {
    font-size: 22pt;
    line-height: 24pt;
  }

  #resume .tagline {
    font-size: 12.5pt;
    line-height: 14.5pt;
  }

  #resume .contact {
    align-items: flex-end;
    text-align: right;
    font-size: 7.4pt;
    line-height: 8.8pt;
  }

  #resume .resume-group {
    margin-top: 11pt;
  }

  #resume h2 {
    font-size: 12.5pt;
    line-height: 14pt;
  }

  #resume .summary {
    margin-top: 4pt;
    max-width: 68ch;
    font-size: 7.5pt;
    line-height: 9pt;
    text-wrap: auto;
  }

  #resume .entry {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14pt;
    margin-top: 6pt;
    break-inside: avoid;
  }

  #resume h2 + .entry {
    margin-top: 4pt;
  }

  #resume .entry-main {
    max-width: 65ch;
  }

  #resume h3,
  #resume .entry-meta strong {
    font-size: 7.7pt;
    line-height: 9.2pt;
  }

  #resume .entry-main p,
  #resume .entry-meta em {
    font-size: 7.5pt;
    line-height: 8.9pt;
  }

  #resume .entry-main p {
    text-wrap: auto;
  }

  #resume .entry-meta {
    align-items: flex-end;
    text-align: right;
    flex-direction: column;
    gap: 0;
    white-space: nowrap;
  }
}
