.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-block-start: var(--space-10);
}

@media (min-width: 64rem) {
  .about {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-16);
  }

  .about__nav {
    position: sticky;
    inset-block-start: calc(var(--header-height) + var(--space-6));
    align-self: start;
  }
}

.about__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* On narrow screens the section pills wrap into full rows (no side-scroller that cuts
   the last pills off at the screen edge). */
.about__nav-list > li {
  display: flex;
  flex: 1 1 auto;
}

.about__nav-list > li > .about__nav-link {
  flex: 1 1 auto;
  justify-content: center;
}

@media (min-width: 64rem) {
  .about__nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    border-inline-start: 1px solid var(--color-border-strong);
  }

  .about__nav-list > li {
    flex: none;
  }

  .about__nav-list > li > .about__nav-link {
    justify-content: flex-start;
  }
}

.about__nav-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--tap);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.about__nav-link .icon {
  color: var(--color-gold-600);
}

.about__nav-link:hover {
  color: var(--color-forest-800);
  border-color: var(--color-forest-600);
}

@media (min-width: 64rem) {
  .about__nav-link {
    margin-inline-start: -1px;
    border: 0;
    border-inline-start: 2px solid transparent;
    border-radius: 0;
    background-color: transparent;
  }

  .about__nav-link:hover {
    border-inline-start-color: var(--color-accent);
  }
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-inline-size: 0;
}

.about__title {
  margin-block-end: var(--space-5);
  padding-block-end: var(--space-3);
  border-block-end: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

.about__prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-inline-size: var(--measure);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.about__prose p {
  white-space: pre-line;
}

/* 68ch is a Latin measure: in Arabic and Persian it leaves a third of the
   card empty, and the card itself is already a comfortable line length. */
[dir="rtl"] .about__prose {
  max-inline-size: none;
}

.about__section--lead .about__prose p:first-child {
  color: var(--color-text-strong);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
}
