:root {
  --orange: #f4613e;
  --purple: #9554c8;
  --pink: #ee3b7e;
  --yellow: #f9bc2f;
  --blue: #3a8def;
  --green: #6db56d;
  --white: #fefefe;
  --white-semi-transparent: rgba(255, 255, 255, 0.95);
  --black: rgba(0, 0, 0, 0.8);
  --black-light: rgba(0, 0, 0, 0.7);
  --black-lighter: rgba(0, 0, 0, 0.6);
  --light-gray: #b2b2b2;
  --text: var(--black);
  --text-light: var(--black-light);
  --text-lighter: var(--black-lighter);
  --separator: var(--light-gray);
  --text-reverse: var(--white);
  --text-reverse-semi-transparent: var(--white-semi-transparent);
  --section-title: var(--orange);
  --gradient: linear-gradient(230deg, #f4613e, #f75153, #f54368, #ee3b7e, #e23a94, #cf40a8, #b54ab9, #9554c8);
}

/* Generic */
.section_title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  font-weight: bolder;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--separator);
}
.section ~ .section {
  margin-top: 2rem;
}

/* Specific */
.intro-section {
  display: grid;
  grid-template-areas: "intro-text education";
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
}
.intro-section_intro-text {
  grid-area: intro-text;
}
.intro-section_intro-text p {
  font-size: 18px;
  margin-top: 0.5rem 0;
}
.intro-section_education {
  grid-area: education;
}
.intro-section_education ul ~ ul {
  margin-top: 1rem;
}
.intro-section_education_entry {
  list-style: none;
}
.intro-section_education_entry li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}
.intro-section_education_entry-title {
  color: var(--text);
  font-weight: bold;
}
.intro-section_education_entry-period {
  font-size: 0.9rem;
  font-weight: bold;
}
.intro-section_education_entry-org, .intro-section_education_entry-period {
  color: var(--text-lighter);
}

.experiences-section {
  overflow: hidden;
}
.experiences-section .experience {
  position: relative;
  padding-left: 2rem;
}
.experiences-section .experience:not(:last-child) {
  margin-bottom: 2rem;
}
.experiences-section .experience::before {
  z-index: 1;
  position: absolute;
  content: " ";
  width: 14px;
  height: 14px;
  outline: 3px solid var(--separator);
  background-color: white;
  border-radius: 50%;
  top: 0.7rem;
  left: 0.25rem;
}
.experiences-section .experience::after {
  z-index: 0;
  position: absolute;
  content: " ";
  height: calc(100% + 2rem);
  width: 3px;
  top: calc(0.7rem + 14px);
  left: calc(0.25rem + 14px / 2 - 1.5px);
  background-color: var(--separator);
}
.experiences-section .experience:last-child::after {
  height: calc(100% - (0.7rem + 14px) - 1rem);
}
.experiences-section .experience_header {
  display: grid;
  grid-template-areas: "title location" "duration location";
}
.experiences-section .experience_header_title {
  grid-area: title;
  font-weight: bold;
}
.experiences-section .experience_header_location {
  grid-area: location;
  justify-self: flex-end;
  font-weight: bold;
}
.experiences-section .experience_header_duration {
  grid-area: duration;
}
.experiences-section .experience_body {
  display: grid;
  grid-template-areas: "mission separator skills";
  grid-template-columns: 2fr 1px 1fr;
  gap: 1rem;
  color: var(--text);
}
.experiences-section .experience_body_separator {
  border-right: 1px solid var(--separator);
  height: 100%;
  transform: scaleY(95%);
}
.experiences-section .experience_body_mission {
  grid-area: mission;
}
.experiences-section .experience_body_skills {
  grid-area: skills;
}
.experiences-section .experience_body_skills dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.experiences-section .experience_body dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 1rem 0;
}
.experiences-section .experience_body dt {
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.experiences-section .experience_body dd {
  margin-left: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.tag {
  font-size: 0.8rem;
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  border: 1px solid var(--orange);
}
.tag--main {
  border: none;
  color: var(--text-reverse-semi-transparent);
  letter-spacing: 0.4px;
  background-clip: unset;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}
