:root {
  --purple: #4B2E83;
  --gold: #B7A57A;
  --cream: #FCFAF4;
  --text: #1C1A17;
  --text-soft: #4F4A42;
  --line: #E6DFCF;
  --label-line: #D9D0BC;
  --sidebar-text: #E8E3F3;
  --sidebar-soft: #CFC6E6;
  --sidebar-line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.page {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

/* Sidebar */

.profile {
  flex: 0 0 460px;
  background: var(--purple);
  color: #fff;
  padding: 64px 44px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.profile__photo {
  width: 180px;
  height: 180px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gold);
  display: block;
}

.profile__name {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.profile__rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
}

.profile__role {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  color: var(--sidebar-text);
}

.profile__org {
  margin: 0;
  font-size: 16px;
  color: var(--sidebar-soft);
}

.links {
  align-self: stretch;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--sidebar-line);
  font-size: 17px;
  font-weight: 500;
}

.links li { border-top: 1px solid var(--sidebar-line); }

.links a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 4px;
  color: #fff;
  text-decoration: none;
}

.links a:hover { background: rgba(255, 255, 255, 0.08); }

.links svg { flex: none; }

/* Main content */

.content {
  flex: 1 1 560px;
  max-width: 880px;
  padding: 72px 72px 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__head::before {
  content: "";
  width: 40px;
  height: 5px;
  background: var(--gold);
  flex: none;
}

.section__title {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}

.lede {
  margin: 0;
  font-size: 30px;
  line-height: 1.38;
  font-weight: 400;
}

.body-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-soft);
}

.body-text strong { color: var(--text); }

.focus {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Background */

.groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--label-line);
}

.label__text {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}

.roles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roles li {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roles li + li { border-top: 1px solid var(--line); }

.role__title { font-size: 20px; font-weight: 700; }
.role__org { font-size: 16px; font-weight: 600; color: var(--purple); }

.role__desc {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}

.education {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.education__note {
  margin: 0;
  font-size: 16px;
  color: var(--text-soft);
}

.degrees {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}

.degrees li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.degrees li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
}

.degrees strong { font-weight: 700; }
.degrees span { color: var(--text-soft); }

/* Tablet and phone */

@media (max-width: 900px) {
  .profile {
    flex: 1 1 100%;
    padding: 40px 24px 28px;
  }

  .profile__photo { width: 150px; height: 150px; }
  .profile__name { font-size: 28px; }
  .links { margin-top: 20px; }

  .content {
    flex: 1 1 100%;
    max-width: none;
    padding: 36px 24px 48px;
    gap: 40px;
  }

  .section__title { font-size: 18px; }
  .lede { font-size: 23px; line-height: 1.4; }
  .body-text { font-size: 17px; }
  .role__title { font-size: 18px; }
}

@media (max-width: 380px) {
  .profile__name { font-size: 25px; }
}
