/*
 * Founder profile
 * Load after home-rhythm.css and typography.css. This layer styles only the new
 * homepage profile and the new About-page founder portrait.
 */

.editorial-home .home-bio {
  padding: var(--home-section-pad) var(--gutter);
  background: #f6f3e9;
}

.editorial-home .founder-passport {
  width: min(100%, 1040px);
  margin: 0 auto;
  border: 1px solid #d8d4c9;
  background: #fbfaf5;
  color: var(--ink);
}

.editorial-home .passport-body {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 4vw, 48px);
}

.editorial-home .passport-portrait {
  width: min(100%, 250px);
  margin: 0;
  padding: 3px;
  border: 1px solid #e6e1d6;
  background: #fffdf7;
}

.editorial-home .passport-portrait picture,
.editorial-home .passport-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.editorial-home .passport-profile {
  min-width: 0;
  padding-left: clamp(32px, 4vw, 48px);
  border-left: 1px solid #d8d4c9;
}

/* This follows the final typography layer, whose heading family is intentional. */
.editorial-home .passport-profile > h2 {
  margin: 0;
  font-family: var(--headline) !important;
  font-size: clamp(28px, 3vw, 36px) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12 !important;
}

.editorial-home .passport-byline {
  margin: 8px 0 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.editorial-home .passport-bio {
  max-width: 590px;
  margin: var(--home-space-24, 24px) 0 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.editorial-home .passport-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--home-space-12, 12px) var(--home-space-24, 24px);
  margin-top: var(--home-space-24, 24px);
}

.editorial-home .passport-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-block: 3px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.4;
}

/* Only the replacement About portrait opts out of the generic editorial crop. */
.support-page[data-support-page="about"] .about-founder-portrait {
  width: 100%;
  max-width: 260px;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto;
  border: 1px solid #e6e1d6;
  background: none;
}

.support-page[data-support-page="about"] .about-founder-portrait img {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .editorial-home .passport-body {
    grid-template-columns: 1fr;
    gap: var(--home-space-24, 24px);
    padding: var(--home-space-24, 24px);
  }

  .editorial-home .passport-portrait {
    width: min(100%, 180px);
  }

  .editorial-home .passport-profile {
    padding-top: var(--home-space-24, 24px);
    padding-left: 0;
    border-top: 1px solid #d8d4c9;
    border-left: 0;
  }

  .editorial-home .passport-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--home-space-12, 12px);
  }

  .support-page[data-support-page="about"] .about-founder-portrait {
    max-width: 240px;
  }
}
