:root {
  --primary: #1a1e23;
  --line-height: 1.6;
  --size-h1: 3.6rem;
  --size-h2: 2.4rem;
  --size-body: 1.8rem;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 400;
  min-height: 100vh;
}

h1 {
  font-size: var(--size-h1);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--size-h2);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

a,
a:hover {
  color: var(--primary);
  text-decoration: none;
}

p {
  margin: 0;
}

p.body {
  font-size: var(--size-body);
  line-height: var(--line-height);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1rem;
}

main section {
  border-bottom: 1px solid var(--primary);
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
}

main section:first-child {
  padding-top: 0;
}

main section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.paper {
  max-width: 110rem;
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
    0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  margin: 5rem auto;
  padding: 4rem 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title {
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-info ul {
  display: flex;
  list-style: none;
  font-size: var(--size-body);
}

.contact-info li::after {
  content: "|";
  margin-left: 1rem;
  margin-right: 1rem;
}

.contact-info li:last-child::after {
  content: none;
}

.experience .job {
  margin-bottom: 3rem;
}

.experience .job:last-child {
  margin-bottom: 0;
}

.about-job {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: var(--size-body);
}

.company,
.location,
.job-title,
.dates {
  display: inline-flex;
}

.company::after {
  content: "\2013";
  margin: 0 0.6rem;
}

.location::after {
  content: "\2022";
  margin: 0 0.6rem;
}

.job-title {
  font-weight: 700;
}

.job-title::after {
  content: "\002c";
  margin-right: 0.6rem;
}

.list {
  font-size: var(--size-body);
  margin-top: 1.5rem;
  padding-left: 1.8rem;
  line-height: var(--line-height);
}

.list li {
  margin-bottom: 0.5rem;
}

.list li:last-child {
  margin-bottom: 0;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

@media only screen and (max-width: 1130px) {
  :root {
    --line-height: 1.9;
    --size-h1: 2.4rem;
    --size-h2: 2rem;
    --size-body: 1.4rem;
  }

  .paper {
    margin: 5rem auto;
    padding: 3rem 6rem;
  }

  h1 {
    font-size: var(--size-h1);
    margin-bottom: 1rem;
    font-weight: 500;
  }

  h2 {
    font-size: var(--size-h2);
    margin-bottom: 1rem;
    font-weight: 500;
  }

  p.body {
    font-size: var(--size-body);
    line-height: var(--line-height);
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .contact-info ul {
    flex-direction: column;
    align-items: center;
    font-size: var(--size-body);
  }

  .contact-info li {
    margin: 0.5rem auto;
  }

  .contact-info li::after {
    content: none;
  }

  .about-job {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: var(--size-body);
  }

  .about-job > span {
    margin: 0.5rem auto;
  }

  .location {
    display: none;
  }

  .job-title {
    order: 1;
    font-size: 1.6rem;
    font-weight: 500;
  }

  .dates {
    order: 2;
  }

  .company {
    order: 3;
  }

  .company::after,
  .location::after,
  .job-title::after {
    content: none;
  }

  .experience .job {
    margin-bottom: 2.2rem;
  }

  .experience .job:last-child {
    margin-bottom: 0;
  }

  .list {
    font-size: var(--size-body);
    line-height: var(--line-height);
  }

  .list li {
    margin-bottom: 1rem;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .skills p {
    text-align: center;
  }
}

@media only screen and (max-width: 640px) {
  .paper {
    margin: 5rem auto;
    padding: 3rem 1.5rem;
  }
}

@media print {
  :root {
    --size-body: 10pt;
    --line-height: 1.2;
  }

  body {
    font-family: "Helvetica", sans-serif;
    color: black;
  }

  .paper {
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  h1 {
    font-size: 14pt;
    font-weight: 700;
  }

  h2 {
    font-size: 11pt;
    font-weight: 700;
  }

  .experience .job {
    margin-bottom: 1.5rem;
  }

  .list li {
    margin-bottom: 0.4rem;
  }
}
