/*
 * ineumeyer personal business-card overlay.
 * Does not redesign the Ad Astra public chrome canon.
 * Personalizes only: quiet site identity, understated owner name,
 * three destinations, and narrow-viewport wrapping for longer labels.
 */

/* Top chrome: small typographic site identity. No logo, no monogram. */
body.ph-home .aa-chrome-brand-wordmark {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: var(--header-lockup-height, 56px) !important;
  width: auto !important;
  max-width: min(86vw, 520px) !important;
  padding: 0 8px;
  filter: none !important;
  opacity: 0.78 !important;
  visibility: visible !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  color: rgba(236, 244, 252, 0.78);
}

html[data-theme="stellar"] body.ph-home .aa-chrome-brand-wordmark {
  color: rgba(214, 236, 255, 0.72);
  text-shadow: none;
  animation: none !important;
}

html[data-theme="dark"] body.ph-home .aa-chrome-brand-wordmark {
  color: rgba(242, 244, 247, 0.7);
  text-shadow: none;
  animation: none !important;
}

html[data-theme="light"] body.ph-home .aa-chrome-brand-wordmark {
  color: rgba(20, 24, 32, 0.58);
  text-shadow: none;
  animation: none !important;
}

/* Owner name: one line, modestly larger than destination links. */
body.ph-home .ph-headline,
body.ph-home.toward-mission .ph-headline {
  display: block;
  width: 100%;
  max-width: var(--public-composition-rail, 40rem) !important;
  margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.1rem, 2.52vw, 1.26rem) !important;
  font-weight: 550 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.25 !important;
  text-wrap: nowrap;
}

html[data-theme="stellar"] body.ph-home .ph-headline {
  color: rgba(234, 246, 255, 0.92);
  text-shadow: 0 0 6px rgba(124, 206, 255, 0.18);
  animation: none !important;
}

html[data-theme="dark"] body.ph-home .ph-headline {
  color: rgba(244, 248, 252, 0.9);
  text-shadow: none;
  animation: none !important;
}

html[data-theme="light"] body.ph-home .ph-headline {
  color: rgba(20, 24, 32, 0.82);
  text-shadow: none;
  animation: none !important;
}

body.ph-home .ph-mission-gateway {
  flex-wrap: wrap;
  margin-top: clamp(12px, 1.8vh, 18px) !important;
}

@media (max-width: 700px) {
  body.ph-home .ph-mission-gateway {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 2.4vh, 18px);
  }
}

@media (max-width: 430px) {
  body.ph-home .ph-headline,
  body.ph-home.toward-mission .ph-headline {
    font-size: clamp(1.02rem, 2.85vw, 1.18rem) !important;
  }
}

body.ph-home.aa-chrome-page {
  --aa-chrome-menu-width: min(92vw, 420px);
}

body.ph-home .aa-chrome-drawer .aa-chrome-nav-link {
  white-space: nowrap;
}
