@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./assets/cormorant-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./assets/cormorant-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.team,
.team-page {
  --team-paper: #f4efe6;
  --team-ink: #211d19;
  --team-muted: #63564b;
  --team-accent: #824833;
  --team-line: #cbbfae;
  --team-serif: 'Cormorant Garamond', Georgia, serif;
  color-scheme: light;
  color: var(--team-ink);
  background-color: var(--team-paper);
}

.team-page .header {
  position: relative;
  inset: auto;
  padding-block: 9px;
  color: var(--team-ink);
}

.team-page .brand-mark {
  color: var(--team-accent);
}

.team-page .section-links a {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  padding-inline: clamp(7px, 1.3vw, 18px);
}

.team-page .section-links a:hover {
  color: var(--team-accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.team-page :focus-visible {
  outline-color: var(--team-accent);
}

.team-page .brand > span:last-child {
  font-size: clamp(1.38rem, 2.12vw, 2rem);
}

.team-page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 27%);
  align-items: end;
  gap: clamp(15px, 2vw, 38px);
  border-block-start: 1px solid var(--team-line);
  padding-block: clamp(44px, 6vw, 90px) clamp(30px, 4.3vw, 64px);
}

.team-page-title h1,
.team-roster-section h2,
.team-name {
  font-family: var(--team-serif);
  font-weight: 500;
  letter-spacing: -.047em;
}

.team-page-title h1 {
  font-size: clamp(4.1rem, 10.2vw, 10rem);
  line-height: .82;
}

.team-page-title p {
  max-width: 31ch;
  color: var(--team-muted);
  font-size: clamp(.96rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.team-directory {
  padding-block-end: clamp(52px, 7vw, 105px);
}

.team-leadership {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(26px, 4.65vw, 77px);
}

.team-lead,
.team-roster li {
  scroll-margin-block-start: 20px;
}

.team-lead:target .team-name,
.team-roster li:target .team-name {
  color: var(--team-accent);
}

.team-lead .team-portrait {
  width: 100%;
  height: clamp(245px, 28.5vw, 490px);
  object-fit: cover;
  object-position: center 45%;
  background: #dfd4c4;
}

.team-lead.team-profile--vyacheslav-marshak .team-portrait {
  object-position: center 9%;
}

.team-lead .team-profile-info {
  padding-block: clamp(18px, 2vw, 31px) clamp(19px, 3vw, 40px);
  border-block-end: 1px solid var(--team-line);
}

.team-affiliation {
  margin-block-end: 8px;
  color: var(--team-accent);
  font-size: .77rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.team-name {
  color: var(--team-ink);
  font-size: clamp(2rem, 4.3vw, 4.6rem);
  line-height: .98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.team-role {
  color: var(--team-muted);
  margin-block-start: 9px;
  font-size: clamp(.88rem, 1.19vw, 1.05rem);
  line-height: 1.48;
}

.team-profile-actions {
  margin-block-start: 11px;
  column-gap: 18px;
}

.team-profile-actions .text-link {
  color: var(--team-accent);
  gap: 6px;
  font-size: .88rem;
}

.team-roster-section {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 53px);
  margin-block-start: clamp(40px, 8vw, 122px);
}

.team-roster-section h2 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 5vw, 5.2rem);
  line-height: .91;
}

.team-roster {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--team-line);
}

.team-roster li {
  border-block-end: 1px solid var(--team-line);
}

.team-roster .team-profile-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 9px 18px;
  padding-block: clamp(17px, 2.4vw, 35px);
}

.team-roster .team-name {
  font-size: clamp(1.9rem, 3.3vw, 3.5rem);
  text-wrap: initial;
}

.team-roster .team-role {
  margin: 0;
}

.team-page .footer {
  color-scheme: light;
  color: var(--team-ink);
  border-color: var(--team-line);
  background: #e8dfd1;
}

.team-page .footer .text-link {
  color: var(--team-muted);
}

.team-page .footer .text-link:hover,
.team-page .footer .text-link[aria-current='page'] {
  color: var(--team-accent);
}

@media (max-width: 650px) {
  .team-page-title,
  .team-leadership,
  .team-roster-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-page-title { padding-block-start: 38px; }
  .team-page-title h1 { font-size: clamp(3.65rem, 13.2vw, 5.1rem); }
  .team-lead .team-portrait { height: auto; aspect-ratio: 5 / 4; }
  .team-roster .team-profile-info { grid-template-columns: minmax(0, 1fr); }
}
.team {
  background: var(--team-paper);
  color: var(--team-ink);
  padding-block: clamp(52px, 8vw, 112px);
}

.team .team-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block-end: clamp(14px, 2.3vw, 34px);
  border-block-end: 1px solid var(--team-line);
}

.team .team-heading h2 {
  color: var(--team-ink);
  font: 500 clamp(3rem, 7.4vw, 7.25rem) / .9 var(--team-serif);
  letter-spacing: -.055em;
}

.team .team-heading .text-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--team-accent);
}

.team .team-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 52px);
  margin: clamp(20px, 3vw, 42px) 0 0;
  padding: 0;
  list-style: none;
}

.team .team-featured-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0;
  border-block-end: 1px solid var(--team-line);
  border-radius: 0;
  background: none;
  color: inherit;
}

.team .team-featured-link .team-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 0;
}

.team .team-profile--vyacheslav-marshak .team-portrait {
  object-position: center 10%;
}

.team .team-featured-link .team-profile-info {
  padding: clamp(18px, 2vw, 30px) 0 clamp(22px, 2.7vw, 38px);
}

.team .team-featured-link .team-name {
  font-size: clamp(1.85rem, 3.45vw, 3.5rem);
}

.team .team-featured-link:hover .team-name {
  color: var(--team-accent);
}

.team a:focus-visible {
  outline: 2px solid var(--team-accent);
  outline-offset: 5px;
}

@media (max-width: 600px) {
  .team .team-featured { grid-template-columns: minmax(0, 1fr); }
}
