#home-bonds {
  --bonds-cream: #f2e6ce;
  --bonds-ink: #2d382c;
  --bonds-red: #8a372a;
  --bonds-rule: #cec0a5;
  --bonds-serif: "Jianghu Noto Serif SC", var(--serif);
  padding-block: clamp(50px, 7vw, 96px);
  background: radial-gradient(ellipse at 20% 0%, #38493a 0, transparent 68%), #242f28;
  color: var(--bonds-cream);
}

.home-bonds__inner {
  width: var(--longscroll-width);
  margin-inline: auto;
}

#home-bonds-title {
  margin: 0 0 clamp(18px, 2.4vw, 32px);
  font: 700 clamp(34px, 5vw, 62px)/1.12 var(--bonds-serif);
  letter-spacing: .075em;
}

.home-bonds__choices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  border-block: 1px solid #d5c09961;
}

.home-bonds__choice {
  min-height: 52px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #e3d4b8;
  font: 620 clamp(15px, 1.65vw, 20px)/1.25 var(--bonds-serif);
  letter-spacing: .08em;
  transition: background .18s ease, color .18s ease;
}

.home-bonds__choice:hover,
.home-bonds__choice[aria-pressed="true"] {
  background: #e3c89f16;
  color: #fff0d3;
}

.home-bonds__choice[aria-pressed="true"] {
  border-bottom-color: #df9b7e;
}

.home-bonds__choice:focus-visible {
  outline: 2px solid #ffe5b7;
  outline-offset: -3px;
}

.home-bonds__spread {
  --page-inset: clamp(26px, 4.2vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  border: 1px solid #c5b89d;
  border-radius: 3px;
  background: #f5edda;
  color: var(--bonds-ink);
  box-shadow: 0 3px #ccbda1, 0 6px #9c8b72, 0 15px 32px #10191457;
}

.home-bonds__profile,
.home-bonds__acquaintances {
  min-width: 0;
  padding: var(--page-inset);
}

.home-bonds__profile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(to left, #886e4c2c, transparent 22px),
    radial-gradient(ellipse at 7% 4%, #fcf5e7 0%, transparent 77%);
}

.home-bonds__books {
  margin: 0 0 8px;
  color: var(--bonds-red);
  font: 670 13px/1.55 var(--bonds-serif);
  letter-spacing: .04em;
}

.home-bonds__name {
  scroll-margin-top: 76px;
  margin: 0 0 5px;
  color: #2b3a2e;
  font: 400 clamp(48px, 6vw, 85px)/1.02 "Jianghu Ma Shan Zheng", var(--bonds-serif);
  overflow-wrap: anywhere;
}

.home-bonds__alias,
.home-bonds__role {
  margin: 0;
  color: #685543;
  font: 600 14px/1.6 var(--bonds-serif);
  overflow-wrap: anywhere;
}

.home-bonds__role {
  margin-block: 16px 0;
  color: #3d4b3d;
  font-weight: 700;
}

.home-bonds__bio {
  max-width: 24em;
  margin: 10px 0 0;
  font: 500 clamp(15px, 1.3vw, 18px)/1.85 var(--bonds-serif);
  text-wrap: pretty;
}

.home-bonds__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 22px;
}

.home-bonds__link,
.home-bonds__back {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bonds-red);
  font: 670 14px/1.35 var(--sans);
  text-decoration: underline;
  text-decoration-color: #a065537d;
  text-underline-offset: 4px;
}

.home-bonds__link:hover,
.home-bonds__back:hover { text-decoration-color: currentColor; }

.home-bonds__link-arrow {
  font-size: 17px;
  text-decoration: none;
}

.home-bonds__back {
  color: #526052;
  text-decoration-color: #52605287;
}

.home-bonds__acquaintances {
  border-inline-start: 1px solid #ccbda0;
  background: linear-gradient(to right, #a4876427, transparent 21px);
}

.home-bonds__list-title {
  margin: 0 0 12px;
  color: #344437;
  font: 710 clamp(20px, 2.4vw, 29px)/1.2 var(--bonds-serif);
  letter-spacing: .075em;
}

.home-bonds__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--bonds-rule);
  list-style: none;
}

.home-bonds__list li {
  border-bottom: 1px solid var(--bonds-rule);
}

.home-bonds__person {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 1.8fr) auto;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  min-height: 54px;
  padding: 7px 8px 7px 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bonds-ink);
  text-align: start;
  transition: background .18s ease;
}

.home-bonds__person:hover { background: #c7ac7626; }

.home-bonds__person-name {
  font: 715 clamp(17px, 1.6vw, 22px)/1.3 var(--bonds-serif);
  overflow-wrap: anywhere;
}

.home-bonds__relationship {
  color: #655543;
  font: 570 14px/1.5 var(--sans);
}

.home-bonds__person-arrow {
  grid-column: 3;
  color: var(--bonds-red);
  font: 400 25px/1 var(--bonds-serif);
  transition: transform .18s ease;
}

.home-bonds__person:hover .home-bonds__person-arrow { transform: translateX(3px); }

.home-bonds__empty {
  color: #685543;
  font: 560 14px/1.6 var(--sans);
}

.home-bonds__spread :is(button, a, .home-bonds__name):focus-visible {
  outline: 2px solid #8b4230;
  outline-offset: 2px;
}

@media (max-width: 740px) {
  .home-bonds__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-bonds__choice { min-height: 43px; }
  .home-bonds__choice:nth-child(-n+3) { box-shadow: 0 1px #d5c09944; }

  .home-bonds__spread {
    --page-inset: clamp(18px, 4.8vw, 36px);
    grid-template-columns: minmax(0, 1fr);
  }

  .home-bonds__profile { background: radial-gradient(ellipse at 7% 4%, #fcf5e7 0%, transparent 85%); }

  .home-bonds__acquaintances {
    border-top: 1px solid var(--bonds-rule);
    border-inline-start: 0;
    background: linear-gradient(#92784e12, transparent 16px);
  }

  .home-bonds__person {
    grid-template-columns: minmax(76px, 1fr) minmax(0, 1.8fr) auto;
    gap: 6px 8px;
    min-height: 47px;
  }

  .home-bonds__relationship { font-size: 13px; }
}
