/* The careers page: frei-mkt "pages / Careers" (desktop 4067:4009, phone 4067:4128). A white page
   with the title and the intro, the photo, the open roles and the contact line. The shared style
   sheet of the new pages comes first: it has the font, the nav bar and the footer. */
.careers-page {
  background: #ffffff;
  color: #111214;
}

.careers-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 120px 24px 0;
  text-align: center;
}
.careers-head h1 {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #111214;
}
.careers-head p {
  max-width: 640px;
  font-size: 21px;
  line-height: 30px;
  color: #2b2e35;
}

/* The photo: 15 px from each side of the window, a radius of 40 px, and the 16:9 crop of Figma. */
.careers-photo {
  padding: 72px 15px 0;
}
.careers-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 810;
  object-fit: cover;
  border-radius: 40px;
}

/* The open roles: a column of 720 px. Each role is a row between two hairlines, and the whole row
   is the link. */
.roles {
  padding: 120px 24px 0;
}
.roles-inner {
  max-width: 720px;
  margin: 0 auto;
}
.roles h2 {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #111214;
}
.roles p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 26px;
  color: #2b2e35;
}
/* Figma: a gap of 16 px, a space of 24 px and a gap of 16 px. */
.role-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(17, 18, 20, 0.1);
}
.role-list li {
  border-top: 1px solid rgba(17, 18, 20, 0.1);
}
.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  line-height: 24px;
}
.role-name {
  font-size: 17px;
  font-weight: 500;
  color: #111214;
}
.role-count {
  flex: none;
  font-size: 15px;
  color: #5e5e5e;
}
/* The hover of a role: the name turns blue, in place of the fade of css/shared.css. */
.role:hover {
  opacity: 1;
}
.role-name {
  transition: color var(--hover-duration) var(--hover-ease);
}
.role:hover .role-name,
.role:focus-visible .role-name {
  color: #0a7aff;
}

.careers-contact {
  max-width: 668px;
  margin: 0 auto;
  padding: 120px 24px 200px;
  font-size: 21px;
  line-height: 30px;
  color: #111214;
  text-align: center;
}
.careers-contact a {
  color: #0a7aff;
}

/* A phone: the sizes of frei-mkt 4067:4128. The photo is 8 px from each side, with a radius of
   28 px and the 374:460 crop of Figma. */
@media (max-width: 760px) {
  .careers-head {
    gap: 16px;
    padding-top: 56px;
  }
  .careers-head h1 {
    font-size: 44px;
  }
  .careers-head p {
    font-size: 19px;
    line-height: 28px;
  }
  .careers-photo {
    padding: 40px 8px 0;
  }
  .careers-photo img {
    aspect-ratio: 374 / 460;
    border-radius: 28px;
  }
  .roles {
    padding-top: 72px;
  }
  .roles h2 {
    font-size: 28px;
  }
  .roles p {
    margin-top: 12px;
  }
  .role-list {
    margin-top: 44px;
  }
  .role {
    padding: 20px 0;
  }
  .careers-contact {
    max-width: none;
    padding: 72px 24px 120px;
    font-size: 19px;
    line-height: 28px;
  }
}
