.vita-page .content-body {
  padding-top: 0;
}

.vita-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 0 0 24px;
  background: transparent;
  margin-bottom: 28px;
  margin-top: -36px;
  z-index: 2;
}

.vita-hero::before {
  content: none;
}

.vita-strapi-page .vita-hero {
  margin-top: 0;
  padding-top: 16px;
}

.vita-copy-name {
  margin: 0 0 6px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vita-copy-title {
  margin-bottom: 14px;
  display: block;
}

.vita-hero-text {
  max-width: 820px;
  margin-top: auto;
}

.vita-hero-photo {
  position: relative;
  width: 89%;
  max-width: 320px;
}

.vita-hero-photo::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  background: var(--highlight);
  z-index: 0;
}

.vita-hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

.vita-cms {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 18px;
}

.vita-hero-text button {
  font-family: var(--font-family);
  margin-top: 18px;
}

.vita-principles-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10002;
  place-items: center;
  padding: 24px 16px;
  background: rgba(8, 8, 10, 0.68);
  backdrop-filter: blur(10px) saturate(1.05);
}

.vita-principles-overlay.is-open {
  display: grid;
}

.vita-principles-sheet {
  position: relative;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 243, 214, 0.35) transparent;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 28px 30px 24px;
  color: #fff3d6;
}

.vita-principles-sheet::-webkit-scrollbar {
  width: 6px;
}

.vita-principles-sheet::-webkit-scrollbar-track {
  background: transparent;
}

.vita-principles-sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 243, 214, 0.35);
  border-radius: 3px;
}

.vita-principles-sheet::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 243, 214, 0.55);
}

.vita-principles-close {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #fff3d6;
  padding: 0;
  box-shadow: none;
}

.vita-principles-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 18px;
  font-size: 18px;
  line-height: 1.5;
  list-style: none;
  counter-reset: principle;
}

.vita-principles-list li {
  counter-increment: principle;
}

.vita-principles-list li::before {
  content: counter(principle, upper-roman);
  display: block;
  margin-bottom: 8px;
  color: limegreen;
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.principles-open {
  overflow: hidden;
}

.vita-intro {
  margin: 0;
  line-height: 1.4;
}

.vita-intro p {
  font-size: 20px;
}

.vita-list-intro a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.vita-list-intro a:hover {
  color: var(--highlight);
}

.vita-section {
  margin: 32px 0;
}

.vita-section--generic,
.vita-section--list,
.vita-section--history {
  margin: 0;
}

.vita-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.vita-list--projects {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}



.vita-list--projects li {
  font-size: 26px;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 0.6rem;
}

.vita-list--projects .vita-item-title {
  font-weight: 200;
}

.vita-list--projects a:hover .vita-item-title {
  color: limegreen;
}


.vita-list a {
  text-decoration: none;
  color: inherit;
  display: block; 
  width: fit-content;
}

.vita-item-title {
  font-size: 1.4em;
  display: block;
  font-weight: 600;
  transition: color 0.2s ease;
}

.vita-list a:hover .vita-item-title {
  color: limegreen;
}

.vita-list li {
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.vita-item-meta {
  font-size: 14px;
  font-weight: 300;
}

.vita-visit-list {
  --visit-gap: 28px;
  --vita-dot-size: 12px;
  --vita-line-width: 2px;
  --vita-axis: 22px;

  position: relative;
  display: grid;
  gap: var(--visit-gap);
  margin-top: 24px;
  padding-left: calc(var(--vita-axis) + var(--vita-dot-size) / 2);
}

.vita-visit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.vita-visit::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--vita-axis));
  top: 7px;
  width: var(--vita-dot-size);
  height: var(--vita-dot-size);
  border-radius: 50%;
  background: #000;
  box-sizing: border-box;
  transform: translateX(-50%);
}

.vita-visit::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--vita-axis));
  top: calc(7px + var(--vita-dot-size) / 2);
  width: var(--vita-line-width);
  height: calc(100% + var(--visit-gap));
  background: #000;
  transform: translateX(-50%);
}

.vita-visit:last-child::after {
  display: none;
}

.vita-visit-date {
  margin: 0;
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.vita-visit-role {
  font-size: 14px;
  font-weight: 300;
}

.vita-visit-establishment {
  font-size: 24px;
  font-weight: 400;
}

.vita-generic-body {
  display: block;
  margin-top: 0;
  max-width: 100%;
}

.vita-generic-fields {
  display: block;
}

.vita-generic-field {
  display: block;
  margin: 0 0 12px;
}

.vita-generic-field-value {
  display: block;
  gap: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 300;
  text-align: justify;
}

.vita-generic-field-value > * {
  margin: 0;
}

.vita-generic-field-value p + p,
.vita-generic-field-value li + li {
  margin-top: 12px;
}

.vita-term {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 8px;
  border: var(--line-width) solid #000;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.vita-generic-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.vita-generic-empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.72;
}

@media (max-width: 720px) {
  .vita-visit-list {
    margin-top: 12px;
  }

  .vita-visit {
    padding: 2px 0;
  }
}

@media (max-width: 640px) {
  .vita-list--projects li {
    font-size: 19px;
    padding-left: 1.25rem;
  }
}

@media (min-width: 1000px) {
  .vita-hero {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 40px;
    padding-top: 8px;
  }

  .vita-hero-photo {
    max-width: none;
  }
}
