/* About page only. Base styles (nav, blobs, buttons, fonts) come from style.css. */

.about {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 96px) 24px 64px;
}

/* Photo */
.about-photo {
  position: relative;
  align-self: stretch;
  margin: 78px 0 72px;
  aspect-ratio: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown only until profile.jpg exists (the img removes itself on error) */
.about-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.35);
}

/* Text */
.about-text h1 {
  margin: 0 0 20px;
}

.about-text p {
  max-width: 56ch;
  margin: 0 0 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.about-text .btn-group {
  margin-top: 28px;
}

/* Current page in the nav */
.nav a[aria-current="page"] {
  color: #fff;
}

/* Mobile: stack, photo on top at a smaller size */
@media (max-width: 760px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 280px;
    align-self: start;
    margin: 0;
    aspect-ratio: 4 / 5;
  }
}
