@font-face {
  font-family: "Petrona";
  src: url("../fonts/petrona-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.swd-about-page {
  --about-background: #f0f1e9;
  --about-ink: #0a3039;
  --about-accent: #e65252;
  background: var(--about-background);
  color: var(--about-ink);
  font-family: "Petrona", Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
  overflow-x: clip;
}

.swd-about-page *,
.swd-about-page *::before,
.swd-about-page *::after {
  box-sizing: border-box;
}

.swd-about-page ::selection {
  background: var(--about-ink);
  color: var(--about-background);
}

.swd-about-page a:focus-visible {
  outline: 2px solid var(--about-ink);
  outline-offset: 6px;
}

.about-skip-link {
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--about-ink);
  color: var(--about-background);
  transform: translateY(-200%);
}

.about-skip-link:focus {
  transform: translateY(0);
}

.about-content {
  width: min(1148px, calc(100% - 96px));
  margin-inline: auto;
  padding-top: 96px;
  padding-bottom: 370px;
}

.about-title {
  margin: 0 0 48px;
  font: 400 72px/1.1 "Bebas Neue", sans-serif;
  text-transform: uppercase;
}

.about-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 92px;
}

.about-statement {
  max-width: 510px;
  font: 400 42px/1.19 "Bebas Neue", sans-serif;
  text-transform: uppercase;
}

.about-prose {
  max-width: 520px;
}

.about-statement p {
  margin: 0 0 24px;
}

.about-statement strong,
.about-statement b {
  color: var(--about-accent);
  font-weight: 400;
}

.about-prose p {
  margin: 0 0 30px;
}

.about-statement > :last-child,
.about-prose > :last-child {
  margin-bottom: 0;
}

.about-introduction a,
.about-team-description a {
  color: inherit;
  text-underline-offset: 4px;
}

.about-introduction,
.about-team-member {
  overflow-wrap: anywhere;
}

.about-team {
  margin-top: 220px;
  padding: 0;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 66px;
  max-width: 1064px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-team-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 230 / 336;
  object-fit: cover;
  filter: grayscale(1);
}

.about-team-portrait-empty {
  background: #d9ddd5;
}

.swd-about-page .about-team-name {
  margin: 14px 0 0;
  font: 400 38px/1.1 "Bebas Neue", sans-serif;
  text-transform: uppercase;
}

.about-team-role {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.about-team-description {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.6;
}

.about-team-description p {
  margin: 0 0 12px;
}

@media (max-width: 1199px) {
  .about-content {
    padding-top: 72px;
    padding-bottom: 180px;
  }

  .about-introduction {
    column-gap: 60px;
  }

  .about-statement {
    font-size: 34px;
    line-height: 1.25;
  }

  .about-team {
    margin-top: 140px;
  }

  .about-team-grid {
    gap: 56px 28px;
  }

  .swd-about-page .about-team-name {
    font-size: 30px;
  }

  .about-team-role {
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .about-content {
    width: calc(100% - 48px);
    padding-top: 64px;
    padding-bottom: 100px;
  }

  .about-title {
    margin-bottom: 36px;
    font-size: 56px;
  }

  .about-introduction {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .about-statement {
    max-width: 560px;
    font-size: 34px;
  }

  .about-prose {
    max-width: none;
    font-size: 18px;
  }

  .about-team {
    margin-top: 80px;
  }

  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 24px;
  }
}

@media (max-width: 479px) {
  /* still two portraits per row on phones (owner rule): tighter gaps and smaller captions instead of one column */
  .about-team-grid {
    gap: 36px 16px;
  }

  .swd-about-page .about-team-name {
    font-size: 26px;
  }

  .about-team-role {
    font-size: 15px;
  }

  .about-team-description {
    font-size: 16px;
  }
}
