*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
p,
dl,
dd {
  margin: 0;
}

:root {
  --background: #f3f4f6;
  --primary: #2563eb;
  --secondary: #1d4ed8;
}

body {
  padding: 16px;
  font-family: system-ui, sans-serif;
  background: var(--background);
  color: #222;
}

article {
  border: 1px solid #999;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  margin-block: 32px;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: white;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.08);
}

/*
article * {
  border: 1px solid red;
}
*/

article > img {
  width: 96px;
  height: 96px;
  border-radius: 100%;
}

article h2 {
  font-size: 1.5rem;
  line-height: 1.1;
}

article p {
  text-align: center;
  max-width: 40ch;
  color: #666;
  line-height: 1.5;
}

article dl {
  display: flex;
  width: 100%;
  padding-block: 16px;
  text-align: center;
}

article dl > div {
  flex: 1;
}

article dt {
  color: #666;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
}

article dd {
  font-weight: 600;
  font-size: 1.125rem;
}

article div[aria-label="Profile actions"] {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

article div[aria-label="Profile actions"] > button {
  font: inherit;
  flex: 1;
  cursor: pointer;
  padding: 0.75em 1.25em;
  border-radius: 999px;
}

article button:first-child {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

article button:last-child {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

article button:first-child:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

article button:last-child:hover {
  background: #eff6ff;
}
