.tree-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(35,133,255,.08), transparent 34rem),
    #0a0d11;
}

.tree-page .site-nav a.active {
  color: #fff;
}

.tree-main {
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 70px;
}

.tree-intro {
  text-align: center;
  margin-bottom: 36px;
}

.tree-intro .eyebrow {
  margin-bottom: 12px;
  color: #6caeff;
}

.tree-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.tree-intro > p:last-child {
  margin: 16px 0 0;
  color: rgba(255,255,255,.46);
  font-size: .95rem;
}

.tree-wrap {
  overflow-x: auto;
  padding: 12px 0 20px;
}

.family-tree {
  display: block;
  width: 100%;
  min-width: 1080px;
  height: auto;
}

.family-tree text {
  fill: rgba(255,255,255,.88);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-anchor: middle;
}

.family-tree .male,
.family-tree .female {
  font-size: 16px;
  font-weight: 620;
}

.family-tree .male tspan:first-child {
  font-weight: 720;
}

.family-tree .male tspan:nth-child(2) {
  fill: rgba(255,255,255,.48);
  font-size: 12px;
}

.family-tree .female {
  fill: rgba(255,255,255,.78);
}

.family-tree .small {
  font-size: 14px;
}

.family-tree .small tspan:nth-child(2) {
  font-size: 11px;
}

.family-tree .line,
.family-tree .marriage {
  fill: none;
  stroke: rgba(255,255,255,.30);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.family-tree .marriage {
  stroke: rgba(255,255,255,.45);
}

.family-tree .person-link text {
  transition: fill .15s ease;
}

@media (hover:hover) and (pointer:fine) {
  .family-tree .person-link:hover text {
    fill: #79b7ff;
  }
}

@media (max-width: 720px) {
  .tree-main {
    width: calc(100% - 24px);
    padding-top: 48px;
  }

  .family-tree {
    min-width: 980px;
  }
}
