/* About page — bio panel and portrait inside the big centred card.
   Sizes are design pixels × var(--u), so the whole card scales with the screen. */

.about {
  justify-content: flex-start;
  align-items: stretch;
  gap: calc(108 * var(--u));
}

.about__back {
  font-size: calc(44 * var(--u));
  line-height: normal;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.about__back:hover {
  color: rgba(255, 255, 255, 0.95);
}

.about__row {
  display: flex;
  flex: 1;
  gap: calc(12 * var(--u));
  min-height: 0;
}

/* ---------- Bio ---------- */

.about__bio {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: calc(20 * var(--u));
  overflow: hidden;
  background: var(--color-page);
  border-radius: calc(6 * var(--u));
}

.about__text {
  max-width: calc(480 * var(--u));
  font-size: calc(16 * var(--u));
  font-weight: 300;
  line-height: normal;
  color: var(--color-text);
}

/* One empty line between paragraphs, as in the design */
.about__text p + p {
  margin-top: 1lh;
}

.about__title {
  font-size: calc(28 * var(--u));
  line-height: normal;
  text-align: right;
  color: var(--color-text-strong);
}

/* ---------- Portrait: square, as tall as the row ---------- */

.about__photo {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: calc(6 * var(--u));
}

.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
