.profile-page {
  padding-block: clamp(22px, 3vw, 48px);
}

.profile-panel {
  --profile-panel-width: clamp(1060px, 74vw, 1540px);
  width: min(var(--profile-panel-width), calc(100% - 24px));
  margin-inline: auto;
  padding: clamp(12px, 2.6vw, 28px);
  border-radius: var(--radius-dialog);
  background: var(--color-plain);
}

.profile-panel:not(:has(.profile-video)) {
  --profile-panel-width: clamp(900px, 64vw, 1340px);
}

.profile-voices { width: min(100%, 20rem); margin-inline: auto; min-width: 0; display: grid; gap: .65rem; padding-top: .5rem; }
.profile-copy :is(.profile-links, .profile-voices, .profile-video) h2 { font-family: var(--font-latin); letter-spacing: .05em; }
.profile-voices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; min-width: 0; }
.voice-button { display: grid; grid-template-columns: 1rem minmax(0, 1fr) 1rem; align-items: center; gap: .65rem; text-align: center; width: 100%; min-height: 46px; padding: .6rem .9rem; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.voice-button::before { content: ""; }
.voice-button span:first-child { min-width: 0; overflow-wrap: anywhere; }
.voice-button:focus-visible { outline: 2px solid #a66bd0; outline-offset: 2px; }
.voice-icon { width: 1rem; height: 1rem; background: currentColor; clip-path: polygon(20% 7%, 91% 50%, 20% 93%); }
.voice-button[data-playing] .voice-icon { clip-path: inset(14% round 1px); }
.voice-error { color: #952341; text-align: left; margin: 0; }

@media (700px < width <= 850px), (850px < width <= 1024px) and (orientation: portrait) {
  .profile-panel, .profile-panel:not(:has(.profile-video)) { --profile-panel-width: 34rem; }
}
