.about-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.45s;
}

.about-layer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s;
}

.about-layer__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 18, 16, 0.55);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.about-layer.is-open .about-layer__backdrop {
  opacity: 1;
}

.about-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  overflow-y: auto;
  padding: 40px 48px;
  background: #8e1f5c;
  color: #f9e3ec;
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-layer.is-open .about-panel {
  transform: none;
}

.about-panel__top {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 56px;
}

.about-close {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.about-close:hover,
.about-close:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.about-close:focus,
.about-close:focus-visible {
  outline: none;
}

.about-panel h2 {
  margin: 0 0 28px;
  color: #ffffff;
  font-family: Fraunces, "Iowan Old Style", Palatino, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.about-panel p {
  margin: 0 0 18px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.about-panel p:nth-of-type(2) {
  margin-bottom: 0;
}

.about-panel strong {
  color: #ffffff;
  font-weight: 700;
}

.about-panel p.about-cv {
  margin: 40px 0 0;
}

.cv-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #f9e3ec;
  border-radius: 999px;
  background: transparent;
  color: #f9e3ec;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
}

.cv-cta:hover,
.cv-cta:focus-visible {
  background: #f9e3ec;
  color: #8e1f5c;
}

.cv-cta svg {
  display: block;
  fill: currentColor;
}

.about-footer {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid #a9457b;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.about-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.about-footer a,
.about-footer a:visited {
  color: #ffffff;
  text-decoration: none;
}

.about-footer a:hover,
.about-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.about-footer svg {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -2px;
  fill: currentColor;
}

.about-panel a:focus-visible {
  outline: 2px solid #f9e3ec;
  outline-offset: 3px;
}

body.about-open {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

@media (max-width: 639px) {
  a[href="a-propos.html"],
  .about-close {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 44px;
    margin-top: calc((1.4em - 44px) / 2);
    margin-bottom: calc((1.4em - 44px) / 2);
    padding-top: calc((44px - 1.4em) / 2);
    padding-bottom: calc((44px - 1.4em) / 2);
  }

  .about-layer:not(.is-open) {
    display: none;
  }

  .about-layer {
    transition: visibility 0s linear 0.25s;
  }

  .about-layer__backdrop {
    display: none;
  }

  .about-panel {
    left: 0;
    width: 100%;
    padding:
      calc(40px + env(safe-area-inset-top, 0px))
      calc(20px + env(safe-area-inset-right, 0px))
      calc(40px + env(safe-area-inset-bottom, 0px))
      calc(20px + env(safe-area-inset-left, 0px));
    box-shadow: none;
    transform: none;
    opacity: 0;
    transition: opacity 0.25s ease-out;
  }

  .about-layer.is-open .about-panel {
    opacity: 1;
  }

  .about-close:hover,
  .about-footer a:hover {
    text-decoration: none;
  }

  .cv-cta:hover {
    background: transparent;
    color: #f9e3ec;
  }

  .cv-cta:active {
    background: #f9e3ec;
    color: #8e1f5c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-layer,
  .about-layer__backdrop,
  .about-panel {
    transition: none;
  }
}
