.amethyst-profile {
  --profile-text: #5f5b61;
  --profile-ink: var(--ink, #242325);
  --profile-plum: var(--amethyst-plum, #614568);
  --profile-highlight: #ebe5ef;
  --profile-paragraph: 16px;
  --profile-section: clamp(36px, 4vw, 48px);
  --profile-label-before: 8px;
  --profile-label-after: 20px;
  --profile-section-heading-size: clamp(26px, 3.5vw, 36px);
  color: var(--profile-ink);
  background: var(--milk, #f6f3ec);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.amethyst-profile__hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  padding-top: 85px;
  background: var(--paper, #efede5);
}

.amethyst-profile__portrait {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 240px;
  color: var(--profile-plum);
  font: 400 clamp(38px, 7vw, 80px)/1 var(--display, sans-serif);
}

.amethyst-profile__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  align-self: center;
}

.amethyst-profile > .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  padding: 16px 0 0;
  font-size: 14px;
}

.amethyst-profile__body {
  margin-inline: auto;
  padding: var(--profile-section) 0 calc(1.5 * var(--profile-section));
  color: var(--profile-text);
}

.amethyst-profile__body > * + *,
.amethyst-profile__panel > .amethyst-profile__subsection,
.amethyst-profile__panel + .amethyst-profile__panel {
  margin-top: var(--profile-section);
}

.amethyst-profile__body :is(h2, h3, h4) {
  margin: 0;
  color: var(--profile-ink);
  font-family: var(--display, sans-serif);
  font-weight: 500;
}

.amethyst-profile__body h2,
.amethyst-profile__subsection h3 {
  font-size: var(--profile-section-heading-size);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.amethyst-profile__body h4 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.amethyst-profile__body p,
.amethyst-profile__body :is(ul, blockquote) { margin: 0; }
.amethyst-profile__text > :not(h2),
.amethyst-profile__text p + p,
.amethyst-profile__subsection :is(h3 + p, p + p, h3 + ul) { margin-top: var(--profile-paragraph); }
.amethyst-profile__text > h2 + *,
.amethyst-profile__subsection > :is(h2, h3) + *,
.amethyst-profile__subsection > p + ul,
.amethyst-profile__intro,
.amethyst-profile__intro p + p { margin-top: var(--profile-paragraph); }

.amethyst-profile__body .amethyst-profile__label {
  display: table;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border-radius: 0;
  background: var(--profile-highlight);
  color: var(--profile-plum);
  font: 650 12px/1.45 var(--body, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.amethyst-profile__panel h2 + .amethyst-profile__label,
.amethyst-profile__subsection .amethyst-profile__label + h2 { margin-top: var(--profile-label-before); }
.amethyst-profile__label + .amethyst-profile__reasons { margin-top: var(--profile-label-after); }
.amethyst-profile__reasons > * + div { margin-top: var(--amethyst-list-group-gap, calc(1.5 * var(--profile-paragraph))); }
.amethyst-profile__reasons h4 + ul { margin-top: var(--amethyst-heading-list-gap, var(--profile-paragraph)); }
.amethyst-profile__list { padding-inline-start: 20px; list-style: disc; }
.amethyst-profile__list li + li { margin-top: 5px; }

.amethyst-profile__rich > * + * { margin-top: var(--profile-paragraph); }
.amethyst-profile__body .amethyst-profile__rich > :is(h3, h4) {
  font: 600 16px/1.5 var(--display, sans-serif);
  letter-spacing: normal;
}
.amethyst-profile__rich :is(ul, ol) {
  margin-bottom: 0;
  padding-inline-start: 20px;
}
.amethyst-profile__rich ul { list-style: disc; }
.amethyst-profile__rich ol { list-style: decimal; }
.amethyst-profile__rich li + li { margin-top: 5px; }
.amethyst-profile__rich > :is(p, ul, ol) + :is(h3, h4) {
  margin-top: var(--amethyst-list-group-gap, calc(1.5 * var(--profile-paragraph)));
}
.amethyst-profile__rich > :is(h3, h4) + :is(p, ul, ol) {
  margin-top: var(--amethyst-heading-list-gap, var(--profile-paragraph));
}
.amethyst-profile__subsection > .amethyst-profile__label + .amethyst-profile__rich {
  margin-top: var(--profile-label-before);
}
.amethyst-profile__subsection > .amethyst-profile__label + .amethyst-profile__rich > h2:not(:first-child) {
  margin-top: calc(1.5 * var(--profile-paragraph));
}
.amethyst-profile__subsection > .amethyst-profile__label + .amethyst-profile__rich > h2 + :is(p, ul, ol) {
  margin-top: var(--profile-paragraph);
}
.amethyst-profile__rich a { text-decoration: underline; text-underline-offset: 3px; }

.amethyst-profile__tabs { display: none; }
.amethyst-profile__practices.is-enhanced .amethyst-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.amethyst-profile__tabs button {
  max-width: 100%;
  padding: 7px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--profile-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.amethyst-profile__tabs button[aria-selected="true"] {
  color: var(--profile-ink);
  border-color: var(--profile-plum);
}

.amethyst-profile__tabs small { font-size: .875em; }
.amethyst-profile__practices.is-enhanced .amethyst-profile__panel:not(.is-active) { display: none; }
.amethyst-profile__practices.is-enhanced .amethyst-profile__panel { margin-top: 0; }
.amethyst-profile__panel,
.amethyst-profile__subsection { scroll-margin-top: 100px; }

.amethyst-profile__records { display: grid; gap: var(--profile-paragraph); }
.amethyst-profile__record p { margin: 0; font-size: 16px; line-height: 1.65; }
.amethyst-profile__record p + p { margin-top: 0; }
.amethyst-profile__record strong { color: var(--profile-ink); font-weight: 600; }
.amethyst-profile__record-date { font-variant-numeric: tabular-nums; }

.amethyst-profile__highlight {
  padding: clamp(18px, 3vw, 32px);
  border-radius: 0;
  background: var(--profile-highlight);
}

.amethyst-profile__body > :is(.amethyst-profile__video, .amethyst-profile__quote),
.amethyst-profile__body > :is(.amethyst-profile__video, .amethyst-profile__quote) + * {
  margin-top: calc(1.25 * var(--profile-section));
}

.amethyst-profile__video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 10rem);
  align-items: center;
  gap: 16px 24px;
}

.amethyst-profile__body .amethyst-profile__video blockquote { margin-top: var(--profile-paragraph); }
.amethyst-profile__video blockquote,
.amethyst-profile__quote {
  color: var(--profile-plum);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
}

.amethyst-profile__quote cite { display: block; margin-top: var(--profile-paragraph); text-align: right; }

.amethyst-profile__poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: #e1d8e8;
}

.amethyst-profile__poster img { width: 100%; height: 100%; object-fit: cover; }
.amethyst-profile__poster span,
.amethyst-profile__video-dialog button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #242325;
  color: #fff;
}

.amethyst-profile__poster span { position: absolute; }
.amethyst-profile__video-dialog { max-width: 92vw; max-height: 92vh; padding: 0; border: 0; background: #242325; }
.amethyst-profile__video-dialog::backdrop { background: rgb(0 0 0 / .72); }
.amethyst-profile__video-dialog button { position: absolute; z-index: 1; top: 8px; right: 8px; cursor: pointer; }
.amethyst-profile__video-dialog video { display: block; max-width: 100%; max-height: 90vh; }
.amethyst-profile__links,
.amethyst-profile__links div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.amethyst-profile__links a { color: var(--profile-plum); text-decoration: underline; text-underline-offset: .2em; }
.amethyst-profile__faq summary { cursor: pointer; font-weight: 400; }
.amethyst-profile__faq details + details { margin-top: 5px; }
.amethyst-profile__faq summary + p { margin-top: 5px; }

@media (min-width: 701px) {
  .amethyst-profile__record--work:has(.amethyst-profile__record-date) {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    column-gap: 24px;
  }
}

@media (max-width: 700px) {
  .amethyst-profile__hero { grid-template-columns: minmax(0, 1fr); padding-top: 76px; }
  .amethyst-profile__portrait { min-height: 132px; }
  .amethyst-profile__portrait img { max-height: 460px; object-position: center 35%; }
}

@media (max-width: 380px) {
  .amethyst-profile__video { grid-template-columns: minmax(0, 1fr); }
  .amethyst-profile__poster { width: min(100%, 10rem); }
}
