/* About and Contact share the case studies' centered, paragraph-led typography. */
.profile-page {
  --profile-copy-width: 62ch;
  text-align: center;
}

.profile-page .profile-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.profile-page .profile-opening {
  padding-top: clamp(8rem, 12vw, 12rem);
}

.profile-page .profile-portrait {
  width: 100%;
  max-width: 52rem;
  margin: clamp(2.5rem, 5vw, 5rem) auto 0;
}

.profile-page .profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
}

.profile-page .profile-section:last-child {
  padding-bottom: clamp(5rem, 10vw, 10rem);
}

.profile-page :is(h1, h2) {
  margin-inline: auto;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-transform: none;
  text-wrap: balance;
}

.profile-page h1 {
  max-width: 20ch;
  font-size: clamp(2.75rem, 6vw, 6.5rem);
}

.profile-page h2 {
  max-width: 24ch;
  font-size: clamp(2.125rem, 4.4vw, 4.5rem);
}

.profile-page .profile-prose {
  width: 100%;
  max-width: var(--profile-copy-width);
  margin: clamp(1.75rem, 3vw, 3rem) auto 0;
  font-size: var(--type-body);
  line-height: 1.55;
  letter-spacing: -.02em;
}

.profile-page .profile-prose p {
  max-width: none;
  text-wrap: pretty;
}

.profile-page .profile-prose p + p {
  margin-top: 1.35em;
}

.profile-page .profile-prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.profile-page .profile-prose a:hover {
  text-decoration-color: currentColor;
}

.profile-page .profile-actions {
  margin-top: clamp(1.75rem, 3vw, 3rem);
}

.profile-page .text-link {
  min-height: 44px;
  font-size: var(--type-body);
  font-weight: 400;
  letter-spacing: -.02em;
  text-transform: none;
}

.profile-page .profile-signature {
  max-width: none;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.contact-page .contact-composition {
  min-height: calc(100svh - 66px);
  padding-block: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-page .contact-direct {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-page .contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: .75em 1.25em;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-size: clamp(.875rem, 2.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}

.contact-page .contact-email:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

/* A single biography and portrait share the site's column grid. */
.about-page {
  text-align: left;
}

.about-page .about-composition {
  padding-block: clamp(8rem, 11vw, 11rem) clamp(4rem, 8vw, 8rem);
}

.about-page h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(3rem, 5vw, 5.5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 6rem);
  margin-top: clamp(3rem, 6vw, 6rem);
}

.about-page .about-biography {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.45vw, 1.5rem);
  line-height: 1.6;
  letter-spacing: -.015em;
}

.about-page .about-portrait {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 7rem;
  margin: 0;
  max-width: none;
}

.about-page .about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: 34rem;
  margin-top: 1.75rem;
}

.about-page .about-actions .about-action {
  display: inline-flex;
  flex: 1 1 14rem;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #e7e5dd;
  color: var(--ink);
  font-family: "F37 Moon", sans-serif;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 220ms ease;
}

.about-page .about-actions .about-action:focus-visible {
  background: var(--volt);
}

@media (hover: hover) and (pointer: fine) {
  .about-page .about-actions .about-action:hover { background: var(--volt); }
}

@media (max-width: 899px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
  }

  .about-page .about-portrait {
    position: static;
    grid-column: 1;
    grid-row: 1;
  }

  .about-page .about-biography {
    grid-row: 2;
    max-width: 62ch;
    font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page .about-portrait { position: static; }
  .about-page .about-actions .about-action { transition: none; }
}

@media (max-width: 650px) {
  .about-page .about-composition { padding-block: 32px 64px; }
  .about-grid { margin-top: 24px; gap: 28px; }
  .about-page .about-biography { font-size: 18px; line-height: 1.55; }
  .about-page .about-actions .about-action { font-size: 17px; }
  .contact-page .contact-email { font-size: clamp(16px, 4.25vw, 18px); }
}
