:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #1e1d1c;
  background: #f2f2ef;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0, transparent 42%),
    #f2f2ef;
}

.profile-card {
  position: relative;
  width: min(100%, 404px);
  height: min(720px, calc(100vh - 56px));
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 46px;
  background: #fbfbf9;
  box-shadow:
    0 28px 55px rgba(28, 29, 29, 0.12),
    0 3px 10px rgba(28, 29, 29, 0.06),
    inset 0 1px 0 #fff;
}

.profile-card::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(248, 248, 245, 0) 0%,
    rgba(248, 248, 245, 0.24) 18%,
    rgba(248, 248, 245, 0.62) 38%,
    rgba(248, 248, 245, 0.88) 62%,
    rgba(248, 248, 245, 0.99) 100%
  );
}

.photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #d4dfdd;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 30px 30px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.description {
  max-width: 29ch;
  margin: 16px 0 25px;
  color: #393c39;
  font-size: 1.05rem;
  line-height: 1.46;
  letter-spacing: -0.022em;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: #111111;
  box-shadow: 0 7px 14px rgba(17, 17, 17, 0.2);
}

.button-primary:hover {
  background: #2a2a2a;
  box-shadow: 0 10px 18px rgba(17, 17, 17, 0.25);
}

.button-secondary {
  color: #1e1d1c;
  border-color: #e0e2dd;
  background: #f5f5f1;
}

.button-secondary:hover {
  background: #ebede8;
}

@media (max-width: 390px) {
  body {
    padding: 16px;
  }

  .profile-card {
    border-radius: 32px;
    height: calc(100vh - 32px);
    min-height: 560px;
  }

  .profile-content {
    padding: 24px;
  }

  .actions {
    gap: 6px;
  }

  .button {
    padding: 0 7px;
    font-size: 0.84rem;
  }
}
