.profile {
  --ink: #27212e;
  --plum: #312438;
  --accent: #d7b5ef;
  --muted: #5d5563;
  --rule: #dcd5db;
  --paper: #fcfaf7;
  --c-heading: var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding-bottom: clamp(4rem, 7vw, 9rem);
}

.profile-wrap {
  width: min(calc(100% - clamp(3.6rem, 9vw, 14rem)), 116rem);
  margin-inline: auto;
}

.profile-hero {
  --c-heading: #fff9f3;
  color: #fff9f3;
  background: radial-gradient(ellipse at 93% 65%, #4e3758, transparent 53%), #261e2b;
  overflow: hidden;
}

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 9rem);
  padding-block: clamp(4.8rem, 6vw, 8.4rem);
}

.profile .profile-label {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #725380;
  font: 600 1.18rem/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-label::before {
  content: '';
  width: 2.8rem;
  height: 2px;
  flex: none;
  background: currentColor;
}

.profile-hero .profile-label { color: var(--accent); }

.profile #profile-name {
  margin-block: 1.8rem 2rem !important;
  font: 400 clamp(6.5rem, 7.6vw, 11rem)/.99 'Instrument Serif', Georgia, serif !important;
  letter-spacing: -.055em;
}

.profile #profile-name em {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: .85em;
  font-weight: 400;
}

.profile .profile-summary {
  max-width: 53rem;
  color: #e2d8e5;
  font-size: clamp(1.7rem, 1.5vw, 2.05rem);
  line-height: 1.58;
}

.profile-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 2.6rem;
  margin-top: 2.8rem;
}

.profile .profile-button,
.profile .profile-link {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 4.6rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile .profile-button {
  padding: 1rem 1.9rem;
  border-radius: .7rem;
  color: var(--ink);
  background: #e3c7f5;
  text-decoration: none;
}

.profile .profile-button:hover { background: #f1dffd; }
.profile .profile-link { color: inherit; }
.profile .profile-link:hover { text-decoration: underline; text-underline-offset: .4rem; }
.profile-hero .profile-links a:focus-visible { outline-color: #fff; }

.profile-portrait {
  position: relative;
  width: min(87%, 31rem);
  margin: 1.5rem auto;
  z-index: 0;
}

.profile-portrait::before,
.profile-portrait::after {
  content: '';
  position: absolute;
  z-index: -1;
}

.profile-portrait::before {
  inset: -2.3rem -3rem 18% 22%;
  background-image: radial-gradient(#b294bf 1.2px, transparent 1.4px);
  background-size: 9px 9px;
}

.profile-portrait::after {
  inset: .9rem -.9rem -.9rem .9rem;
  background: #bc97cf;
  transform: rotate(2deg);
}

.profile-portrait img {
  width: 100%;
  aspect-ratio: 1;
  border: .65rem solid #fff9f3;
  object-fit: cover;
  filter: grayscale(1);
  transform: rotate(-2deg);
}

.profile-facts {
  background: #efe7f1;
  border-bottom: 1px solid #ded1e1;
}

.profile-facts dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  padding-block: 2.5rem;
}

.profile-facts dl > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: clamp(1.8rem, 4vw, 6rem);
  border-inline-start: 1px solid #cfc0d3;
}

.profile-facts dl > div:first-child { padding-left: 0; border: 0; }
.profile-facts dl > div:last-child { padding-right: 0; }

.profile-facts dd {
  order: -1;
  color: #48304f;
  font: 600 clamp(3rem, 3.7vw, 5rem)/1.1 var(--font-heading);
  letter-spacing: -.055em;
}

.profile-facts dt {
  margin-top: .45rem;
  color: #55495b;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.45;
}

.profile-work,
.profile-personal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 7vw, 10rem);
}

.profile-work { padding-block: clamp(5rem, 7vw, 9.5rem); }

.profile h2 {
  margin-block: 1.2rem 1.6rem !important;
  font: 400 clamp(3.9rem, 4.5vw, 6rem)/1.03 'Instrument Serif', Georgia, serif !important;
  letter-spacing: -.035em;
}

.profile .profile-body,
.profile-stories p {
  color: var(--muted);
  font-size: 1.65rem;
  line-height: 1.65;
}

.profile-work .profile-link { margin-top: 1.2rem; color: #674275; }

.profile-stories article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.8rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.profile-stories article:last-child { border-bottom: 1px solid var(--rule); }

.profile-stories article > :first-child {
  color: #775284;
  font-size: 2.2rem;
  margin-top: .3rem;
}

.profile-stories h3 {
  margin-bottom: .7rem;
  font-size: clamp(2rem, 2vw, 2.45rem);
  letter-spacing: -.035em;
}

.profile-personal {
  align-items: center;
  padding: clamp(2.6rem, 4vw, 5.6rem);
  border-radius: 1.6rem;
  background: var(--plum);
  --c-heading: #fff9f3;
  --muted: #e2d8e5;
}

.profile-personal .profile-label { color: var(--accent); }

.profile-personal blockquote {
  margin: 0;
  padding: .4rem 0 .4rem clamp(2.8rem, 5vw, 7rem);
  border: 0;
  border-inline-start: 1px solid #77647e;
  color: #edcfef;
  font: 400 clamp(3.4rem, 4vw, 5.6rem)/1.12 'Instrument Serif', Georgia, serif;
  letter-spacing: -.035em;
}

.profile-quote-mark {
  display: block;
  height: .55em;
  color: #c899dd;
  font: 400 1.65em/.95 Georgia, serif;
}

@media (max-width: 720px) {
  .profile-intro { grid-template-columns: 1fr; gap: 3rem; }
  .profile-portrait { width: min(68%, 24rem); }
  .profile-work, .profile-personal { grid-template-columns: 1fr; }
  .profile-personal blockquote {
    padding: 2.6rem 0 0;
    border: 0;
    border-top: 1px solid #77647e;
  }
}

@media (max-width: 480px) {
  .profile #profile-name { font-size: clamp(5.4rem, 15vw, 7rem) !important; }
  .profile-facts dl { padding-block: 1.8rem; }
  .profile-facts dl > div { justify-content: flex-start; padding-inline: 1rem; }
  .profile-facts dd { font-size: 2.7rem; }
  .profile-facts dt { font-size: 1.25rem; }
}
